Open MoSal opened 1 week ago
The issue here is that curl is missing Requires.private for libidn2. This should be fixed upstream: https://github.com/curl/curl/commit/f057de5a1a950a90d1920021db152a4b695f1a8a
The issue here is that curl is missing Requires.private for libidn2. This should be fixed upstream: curl/curl@f057de5
Cool. The package dependency part remains.
libcurl-devel
should pull libunistring-devel
, directly or indirectly.
Cool. The package dependency part remains.
libcurl-devel
should not pull in libunistring-devel
because libcurl does not depend on libunistring (static or not).
It is libidn2-devel
that statically depends on libunistring-devel
. (so the depends=
would be added to libidn2-devel
)
Also, in general we don't list static linking dependencies in packages with some exceptions (e.g. glib for qemu-user-static or incidentally because the dependencies headers are included in public headers). Not sure if curl is an exception though.
If so, the fix for that would be adding libunistring-devel to here: https://github.com/void-linux/void-packages/blob/master/srcpkgs/libidn2/template#L17
it is libidn2-devel that statically depends on libunistring-devel.
So it would be pulled indirectly, which is fine.
This is the first time I use void. So apologies for not understanding its ecosystem well.
libpsl.a
uses symbols from libunistring
too, just in case this gets missed.
Is this a new report?
Yes
System Info
Void 6.6.35-2-lts x86_64-musl GenuineIntel uptodate rFF
Package(s) Affected
libcurl-devel-8.8.0_1
Does a report exist for this bug with the project's home (upstream) and/or another distro?
No response
Expected behaviour
Linking against libcurl statically should work.
Actual behaviour
Linking against libcurl statically fails due to:
-lunistring
from theLibs.private
line in/usr/lib/pkgconfig/libcurl.pc
Steps to reproduce
Example file
t.c
:Build and link statically (after installing
libunistring-devel
):Add Missing
-lunistring
toLibs.private
line in/usr/lib/pkgconfig/libcurl.pc
Build and link statically again
Success.