Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • S slapos.recipe.cmmi
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedi
  • slapos.recipe.cmmi
  • Merge requests
  • !21

Open
Created Aug 21, 2025 by Louis Thevenet@louis.thevenetDeveloper
  • Report abuse
Report abuse

Create lib -> lib64 symlink if lib doesn't exist and lib64 does

  • Overview 2
  • Commits 1
  • Changes 1

The convention in slapos is to install libraries in lib/, but on some systems libraries might get installed to lib64/. The current workaround for this is to add a post-install with:

# if lib doesn't exist, then create a symlink 'lib' pointing to lib64
post-install =
  cd ${:location}
  [ -d lib ] || ln -s lib64 lib

(as in libcap)

In my work on NixOS, libraries almost always got installed in lib64/, this fix removes the need to patch every library in slapos. Which I did in this commit for example.

Edited Aug 22, 2025 by Louis Thevenet
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: symlink-lib-lib64
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7