-
Notifications
You must be signed in to change notification settings - Fork 528
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
Bootstrap libltdl to fix libtool v2.4 + automake v1.17 build #1877
Changes from all commits
9225d1c
0f02498
fdfef49
e724ed5
6f7ad7e
cfec6e7
7cec1c0
d1e1f48
87fe0e5
2791f69
e6b7103
fd8221d
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 |
---|---|---|
|
@@ -159,6 +159,21 @@ jobs: | |
export CPPFLAGS="-I$HOMEBREW_PREFIX/include${CPPFLAGS:+ $CPPFLAGS}" | ||
export LDFLAGS="-L$HOMEBREW_PREFIX/lib${LDFLAGS:+ $LDFLAGS}" | ||
export CFLAGS="-Wno-compound-token-split-by-macro${CFLAGS:+ $CFLAGS}" # needed fir ltdl with Xcode | ||
|
||
# libtool package referenced below fails to copy its configure* | ||
# files, possibly due to a packaging/brewing bug. The following sed | ||
# command restores installed libtoolize code to its earlier (and | ||
# working) variation. | ||
echo "brew libtool package details:" | ||
brew info libtool --json | grep -E 'rebuild|tap_git_head' | ||
# This hack was tested on libtoolize package with the following output: | ||
# "rebuild": 2, | ||
# "tap_git_head": "5cede8ea3b7b12c7f68215f75a951430b38d945f", | ||
# | ||
editable=$HOMEBREW_CELLAR/libtool/2.4.7/bin/glibtoolize | ||
sed -i.bak 's@ltdl_ac_aux_dir=""@ltdl_ac_aux_dir="../build-aux"@' $editable || true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sooner or later, this hack will fail. I did not make it conditional on brew libtool package variation because doing so is difficult (for me) and the failure is very unlikely to produce false positives; CI tests will just start failing again instead. We will simply remove this hack when it is no longer needed. |
||
diff -u $editable.bak $editable || true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This sed-based edit restores the earlier/working variation of libtoolize script: - ltdl_ac_aux_dir=""
+ ltdl_ac_aux_dir="../build-aux" The actual name of this directory is misleading in Squid context. Ignore it. |
||
|
||
./test-builds.sh ${{ matrix.layer.name }} | ||
|
||
- name: Publish build logs | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you do not want to see this noise in CI logs, I will remove it. I added it to make package changes easier to detect while this temporary
sed
workaround is in place.