Summary: | app-text/mupdf hardcode /usr/lib in .pc files (was: app-text/fbpdf-0_p20190202 fails to link with LLD because of /usr/lib in the link command line) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Johannes Huber (RETIRED) <johu> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | slyfox |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 731004 | ||
Attachments: | build.log |
Description
Agostino Sarubbo
2020-07-31 06:40:59 UTC
Created attachment 651800 [details]
build.log
build log and emerge --info
> x86_64-pc-linux-gnu-clang -o fbpdf fbpdf.o mupdf.o draw.o -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -fuse-ld=lld -Wl,--defsym=__gentoo_check_ldflags__=0 -L/usr/lib -lmupdf -lfreetype -lopenjp2 -lcrypto -lm
fbpdf does not hardcode /usr/lib directly but uses mupfd's pkg-config files:
$ pkg-config --libs mupdf
-L/usr/lib -lmupdf -lfreetype -lopenjp2 -lcrypto
Reassigning to app-text/mupdf maintainer.
Wrong path seems to come from mupdf-1.10a-add-desktop-pc-xpm-files.patch patch: --- /dev/null +++ ./platform/debian/mupdf.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib ... The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0985c4811a165c289d7cde5a81ea960077d7a235 commit 0985c4811a165c289d7cde5a81ea960077d7a235 Author: Sam James <sam@gentoo.org> AuthorDate: 2020-08-14 04:09:42 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2020-08-14 04:21:22 +0000 app-text/mupdf: security bump to 1.17.0 * Debundle dev-lang/mujs again for the security bug (bundled copy is probably OK in terms of release mujs, but not a new bug (CVE-2020-24343). * Document bundled libs with references to check when bumping. Useful for both security@ and the maintainer. * Include extra Debian patches for improved cross-compilation support (mostly pkg-config). * Fix existing patch to respect libdir in pkgconfig file. * Fix missing || dies. Bug: https://bugs.gentoo.org/737034 Bug: https://bugs.gentoo.org/737020 Closes: https://bugs.gentoo.org/725672 Closes: https://bugs.gentoo.org/734898 Package-Manager: Portage-3.0.2, Repoman-2.3.23 Signed-off-by: Sam James <sam@gentoo.org> app-text/mupdf/Manifest | 1 + .../mupdf/files/mupdf-1.17.0-cross-fixes.patch | 103 ++++++++++++++ app-text/mupdf/mupdf-1.17.0.ebuild | 153 +++++++++++++++++++++ 3 files changed, 257 insertions(+) |