Hi Felix,
On 4/04/2025 12:31 am, Felix Salfelder wrote:
Package: libfreetype-dev
Version: 2.13.3+dfsg-1
Severity: normal
X-Debbugs-Cc: fe...@salfelder.org
Dear maintainers
When trying to build some package, I ran into the following, which I
think is a bug in libfreetype-dev.
1. some package uses freetype2.pc fails to configure.
2. The config.log reveals problem about missing bzip2.pc
3. $ find /usr/ -name freetype2.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/freetype2.pc
4. $ dpkg -S /usr/lib/x86_64-linux-gnu/pkgconfig/freetype2.pc
libfreetype-dev:amd64: /usr/lib/x86_64-linux-gnu/pkgconfig/freetype2.pc
5. $ grep bzip2 /usr/lib/x86_64-linux-gnu/pkgconfig/freetype2.pc
Requires.private: zlib, bzip2, libpng, libbrotlidec
6. # apt install libbzip2-dev
Error: Unable to locate package libbzip2-dev
7. # apt install libbzip3-dev
[..] OK.
It appears to that libbzip has undergone a version bump that was missed
in freetype2.pc. I could build some package in question after tweaking
the pc files to use bzip3 instead. I did not investigate any further
though.
bzip2 and bzip3 are separate and co-installable. However, freetype links
against bzip2 only.
libbz2-dev is a dependency of libfreetype-dev. libbz2-dev also installs
the pkg-config file bzip2.pc in /usr/share/pkgconfig/bzip2.pc.
If libbz2-dev is not installed, then your system is misconfigured.
$ pkg-config --libs bzip2
-lbz2
Based on your information, this does not look like a freetype bug.
What package are you trying to build?
Hugh
Best wishes
felix
-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12.5-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL
set to en_US.utf8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled
Versions of packages libfreetype-dev depends on:
ii libbrotli-dev 1.1.0-2+b4
ii libbz2-dev 1.0.8-5+b1
ii libc6-dev [libc-dev] 2.40-6
ii libfreetype6 2.13.3+dfsg-1
ii libpng-dev 1.6.47-1.1
ii zlib1g-dev [libz-dev] 1:1.2.13.dfsg-3
libfreetype-dev recommends no packages.
Versions of packages libfreetype-dev suggests:
pn freetype2-doc <none>
-- no debconf information