-
-
Notifications
You must be signed in to change notification settings - Fork 18k
fixLibtool(): replace /usr/bin/file in ./configure, add file to common-path.nix #168413
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1021,6 +1021,21 @@ configurePhase() { | |
| echo "fixing libtool script $i" | ||
| fixLibtool "$i" | ||
| done | ||
|
|
||
| # replace `/usr/bin/file` with `file` in any `configure` | ||
| # scripts with vendored libtool code. Preserve mtimes to | ||
| # prevent some packages (e.g. libidn2) from spontaneously | ||
| # autoreconf'ing themselves | ||
This conversation was marked as resolved.
Outdated
Show resolved
Hide resolved
|
||
| CONFIGURE_MTIME_REFERENCE=$(mktemp configure.mtime.reference.XXX) | ||
|
||
| find . \ | ||
| -executable \ | ||
| -type f \ | ||
| -name configure \ | ||
| -execdir grep -l 'GNU Libtool is free software; you can redistribute it and/or modify' {} \; \ | ||
| -execdir touch -r {} "$CONFIGURE_MTIME_REFERENCE" \; \ | ||
| -execdir sed -i s_/usr/bin/file_file_g {} \; \ | ||
| -execdir touch -r "$CONFIGURE_MTIME_REFERENCE" {} \; | ||
| rm -f "$CONFIGURE_MTIME_REFERENCE" | ||
| fi | ||
|
|
||
| if [[ -z "${dontAddPrefix:-}" && -n "$prefix" ]]; then | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.