-
Notifications
You must be signed in to change notification settings - Fork 755
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
-liconv is missing in libarchive.pc #1766
Comments
Starting with 3.6.2 iconv is now in Requires.private, which breaks pkgconf because iconv doesn't install a .pc file. |
Regressed in #1723 which seems to have been added randomly for the sake of msys2? Nonstandard stuff strikes again... |
Yes this is totally broken, e.g. with my OBS build (https://build.opensuse.org/package/binary/home:alvistack/libarchive-libarchive-3.6.2/CentOS_8_Stream/x86_64/libarchive-devel-3.6.2-2.1.x86_64.rpm), nothing could provide Manually rollback this patch could help, e.g.:
|
Does this help #1812 ? |
Add the required linker flags to Libs.private if built with iconv. Fixes libarchive#1766
I'm confused that why only libiconv in |
this problem was not reported by CI, developers may consider adding more test cases In CI. |
#1819 is aiming on the same issue |
Is anything new on this bug? |
No it was not. Even after that commit, iconv.pc is still a pkg-config dependency if you build libarchive against The PR that was merged was wrong -- it only solved things for glibc. |
Oh, I see! :( |
my solution is modifying libarchive.pc after installing: gsed -i '/Libs.private: /s|$| -liconv|' out/lib/pkgconfig/libarchive.pc
gsed -i '/Requires.private:/d' out/lib/pkgconfig/libarchive.pc it works for me. |
But this is just a downstream workaround. This issue should be fixed upstream so we avoid these types of ugly workarounds. |
I've seen a few PRs that were retracted. Is there an open PR that actually fixes the problem? |
It doesn't look like there are any that are still open. I think all of the PRs for this have been closed, unfortunately. |
https://www.libarchive.org/downloads/libarchive-3.6.1.tar.xz
installed libarchive.pc :
-liconv
is not inLibs.private
The text was updated successfully, but these errors were encountered: