Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • scripts
  • link-vmlinux.sh
Find file BlameHistoryPermalink
  • Richard Acayan's avatar
    kbuild: explicitly run mksysmap as sed script from link-vmlinux.sh · 96c96566
    Richard Acayan authored Jun 05, 2024
    In commit b18b0470 ("kbuild: change scripts/mksysmap into sed
    script"), the mksysmap script was transformed into a sed script,
    made directly executable with "#!/bin/sed -f". Apparently, the path to
    sed is different on NixOS.
    
    The shebang can't use the env command, otherwise the "sed -f" command
    would be treated as a single argument. This can be solved with the -S
    flag, but that is a GNU extension. Explicitly use sed instead of relying
    on the executable shebang to fix NixOS builds without breaking build
    environments using Busybox.
    
    Fixes: b18b0470
    
     ("kbuild: change scripts/mksysmap into sed script")
    Reported-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
    Signed-off-by: default avatarRichard Acayan <mailingradian@gmail.com>
    Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
    Tested-by: default avatarDmitry Safonov <0x7f454c46@gmail.com>
    Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
    96c96566
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7