Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Aug 21, 2022
Merged

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

merged 1 commit into from Aug 21, 2022

Conversation

ghost
Copy link

@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)
Copy link
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant