Skip to content

libtool: fix shebang-fixing from 2.4.7 version bump#187694

Merged
trofi merged 1 commit intostagingfrom
unknown repository
Aug 21, 2022
Merged

libtool: fix shebang-fixing from 2.4.7 version bump#187694
trofi merged 1 commit intostagingfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Aug 21, 2022

Description of changes

Libtool 2.4.7 changed the shebangs in libtoolize.in and ltmain.sh from /bin/sh (which is a special sandbox exception) to /usr/bin/env sh (which is not).

My PR (#167071) to bump the libtool version adjusted both of these shebangs, when it should only have adjusted the one in libtoolize.in.

ltmain.sh is not a script to be executed at libtool-invocation-time. It is a script which is vendored into a release at libtoolize-invocation-time.

Thanks to @trofi for reporting this.

Things done
  • Built on platform(s)
    • powerpc64le-linux
  • Tested compilation of many packages that depend on this change
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Libtool 2.4.7 changed the shebangs in `libtoolize.in` and `ltmain.sh`
from `/bin/sh` (which is a special sandbox exception) to `/usr/bin/env
sh` (which is not).

My PR (#167071) to bump the libtool version adjusted both of these
shebangs, when it should only have adjusted the one in
`libtoolize.in`.

`ltmain.sh` is not a script to be *executed* at
`libtool`-invocation-time.  It is a script which is *vendored into a
release* at `libtoolize`-invocation-time.

Thanks to @trofi for reporting this

  #167071 (review)
@ofborg ofborg bot added 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels Aug 21, 2022
Copy link
Copy Markdown
Contributor

@trofi trofi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Built most of my desktop x86_64-linux system without any problems.
Tested tarball on ski-1.4.0 does not contain /nix/store references any more.

Seems to work. Thank you!

@trofi trofi merged commit f07e452 into NixOS:staging Aug 21, 2022
@ghost ghost deleted the pr/libtool/fixshebangs2 branch January 23, 2024 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant