Skip to content

build: fix failure to correctly link to zlib#32

Merged
tillkamppeter merged 1 commit intoOpenPrinting:masterfrom
eli-schwartz:zlib-pkgconfig
Mar 8, 2024
Merged

build: fix failure to correctly link to zlib#32
tillkamppeter merged 1 commit intoOpenPrinting:masterfrom
eli-schwartz:zlib-pkgconfig

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