Bug 2430595
| Summary: | mupdf-devel missing pkg-config (.pc) file | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | d1vay |
| Component: | mupdf | Assignee: | Michael J Gruber <mjg> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | lizhenbo, mjg |
| Target Milestone: | --- | Keywords: | RFE |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| URL: | https://codeberg.org/divyaranjan/emacs-reader/issues/122 | ||
| Whiteboard: | |||
| Fixed In Version: | mupdf-1.27.1-3.fc45 | Doc Type: | --- |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-02-12 00:43:08 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 2432586 | ||
| Bug Blocks: | |||
It's certainly true that mupdf-devel ships no mupdf.pc. The simple reason is that upstream ships no such config. In other words, upstream does not support building against mupdf-devel in the way in which you're trying. On the other hand, shipping mupdf.pc should not break anything, and I had one sitting in my local dist-git tree since 2022 ... So I'll look into shipping one. Needs come with proper provides and such, of course. Also, what about mupdf-cpp-devel? FEDORA-2026-e112969837 (mupdf-1.27.1-3.fc45, python-PyMuPDF-1.27.1-2.fc45, and 2 more) has been submitted as an update to Fedora 45. https://bodhi.fedoraproject.org/updates/FEDORA-2026-e112969837 FEDORA-2026-e112969837 (mupdf-1.27.1-3.fc45, python-PyMuPDF-1.27.1-2.fc45, and 2 more) has been pushed to the Fedora 45 stable repository. If problem still persists, please make note of it in this bug report. |
mupdf-devel does not ship a pkg-config (.pc) file, making it difficult to compile software that depends on libmupdf. Reproducible: Always Steps to Reproduce: Steps to Reproduce: 1. Install mupdf-devel: dnf install mupdf-devel 2. Run: pkg-config --cflags --libs mupdf 3. Observe failure Actual Results: Package mupdf was not found in the pkg-config search path. Expected Results: Expected results: pkg-config returns appropriate cflags and libs for linking against mupdf. Additional Information: Workaround: -- Step 1. create mupdf.pc for yourself file (e.g. /usr/local/lib64/pkgconfig/mupdf.pc): prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: mupdf Description: Library for rendering PDF documents Requires.private: freetype2 Version: 1.26.9 Libs: -L${libdir} -lmupdf Libs.private: -lmujs -lgumbo -lopenjp2 -ljbig2dec -ljpeg -lz -lm Cflags: -I${includedir} -- Step 2. Add location to PKG (e.g. /usr/local/lib/pkgconfig/mupdf.pc) export PKG_CONFIG_PATH="/usr/local/lib64/pkgconfig:$PKG_CONFIG_PATH"