Bug 2430595 - mupdf-devel missing pkg-config (.pc) file
Summary: mupdf-devel missing pkg-config (.pc) file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mupdf
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Michael J Gruber
QA Contact: Fedora Extras Quality Assurance
URL: https://codeberg.org/divyaranjan/emac...
Whiteboard:
Depends On: 2432586
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-01-17 16:06 UTC by d1vay
Modified: 2026-02-12 00:43 UTC (History)
2 users (show)

Fixed In Version: mupdf-1.27.1-3.fc45
Clone Of:
Environment:
Last Closed: 2026-02-12 00:43:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description d1vay 2026-01-17 16:06:11 UTC
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"

Comment 1 Michael J Gruber 2026-01-17 16:14:07 UTC
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?

Comment 2 Fedora Update System 2026-02-11 23:05:58 UTC
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

Comment 3 Fedora Update System 2026-02-12 00:43:08 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.