On 14. 11. 2026 21:31, Daniel Sahlberg wrote:
This seems to concern serf-X.pc and it moves zlib from:
Libs.private: [...] -lz
to:
Requires.private: libssl libcrypto zlib

I must admit I don't fully understand PC files but it seems reasonable to
me. The output of the PC file is very much the same in 1.3.x although it is
created a bit different so when backported the patch will be a bit
different.

I'm positive, although I can't vote for it for lack of background knowledge.


Libs.private are the linker arguments that were used to link serf.so and that a consumer that links serf.a statically must use. Requires.private is the equivalent list of pkg-config dependencies. That's fine as far as it goes, but the patch itself is incomplete: it doesn't document this change and it doesn't make the equivalent change in the CMake build.

In other words, it looks like one of the too many LLM-generated patches that are thrown over one's shoulder without real understanding.

But yes, in general, this is the way to go: use package dependencies in the .pc file instead of bespoke constructed paths to possibly non-standard install locations. You'd use Libs.private for special linker parameters that the package doesn't give you.

-- Brane


Kind regards,
Daniel



Den tors 12 nov. 2026 kl 22:34 skrev BillyONeal (via GitHub) via dev< 
[email protected]>:

BillyONeal opened a new pull request, #10:
URL:https://github.com/apache/serf/pull/10

    This was detected by GPT 6.1 Sol in
https://github.com/microsoft/vcpkg/pull/54958 ; zlib changed their names.


--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail:[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to