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

build: fix failure to correctly link to zlib #32

Merged
merged 1 commit into from
Mar 8, 2024

Conversation

eli-schwartz
Copy link
Contributor

@eli-schwartz eli-schwartz commented Dec 19, 2023

Checking for the header is NOT sufficient when utilizing its shared library symbols. Look it up with pkg-config explicitly, and explicitly add it to ensure that at runtime, libppd has its own DT_NEEDED dependency on libz.so; if libppd successfully links at all -- not a given, if -Wl,-no-undefined is used -- then it may transitively get libz.so from its recursive dependencies, but this is no guarantee at all.

Fixes failure to build discovered at https://bugs.gentoo.org/920273

Checking for the header is NOT sufficient when utilizing its shared
library symbols. Look it up with pkg-config explicitly, and explicitly
add it to ensure that at runtime, libppd has its own DT_NEEDED
dependency on libz.so; if libppd successfully links at all -- not a
given, if -Wl,-no-undefined is used -- then it *may* transitively get
libz.so from its recursive dependencies, but this is no guarantee at
all.

Fixes failure to build discovered at https://bugs.gentoo.org/920273
@tillkamppeter tillkamppeter merged commit a040f26 into OpenPrinting:master Mar 8, 2024
@tillkamppeter
Copy link
Member

Thanks a lot for the fix, and sorry for having overlooked it in the first place.

@eli-schwartz eli-schwartz deleted the zlib-pkgconfig branch March 8, 2024 11:32
@eli-schwartz
Copy link
Contributor Author

No big deal, the important thing is to get it in before the next tagged release.

orbea added a commit to orbea/gentoo that referenced this pull request Mar 17, 2024
Closes: https://bugs.gentoo.org/920273
Upstream-PR: OpenPrinting/libppd#32
Upstream-Commit: OpenPrinting/libppd@a040f26
Signed-off-by: orbea <orbea@riseup.net>
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request Mar 21, 2024
Closes: https://bugs.gentoo.org/920273
Upstream-PR: OpenPrinting/libppd#32
Upstream-Commit: OpenPrinting/libppd@a040f26
Signed-off-by: orbea <orbea@riseup.net>
Closes: #35780
Signed-off-by: Sam James <sam@gentoo.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants