#1104307 vflib3 FTCBFS: hard codes the build architecture pkg-config

Package:
src:vflib3
Source:
src:vflib3
Submitter:
Helmut Grohne
Date:
2025-04-29 11:00:02 UTC
Severity:
normal
Tags:
#1104307#5
Date:
2025-04-28 04:58:32 UTC
From:
To:
vflib3 fails to cross build from source, because the upstream
configure.in hard codes the build architecture pkg-config for detecting
freetype2. As a consequence, it fails locating freetype2, misses the
flags and fails.

The common way to fix this problem is using PKG_CHECK_MODULES as that
macro takes care of figuring out the right pkg-config. I'm attaching a
patch to implement that, but I was unable to make autoreconf pick up and
substitute it. I fear for actually using it, you'll have to vendor
pkg.m4 into aclocal.m4. I'll leave the integration of the change up to
you.

Helmut

#1104307#10
Date:
2025-04-28 21:19:00 UTC
From:
To:
On 28.04.25 Helmut Grohne (helmut@subdivi.de) wrote:

Hello,

I've applied the patch to the repo for now. Unfortunately the build
fails:

Disabled the TrueType1 font driver
./configure: line 5538: syntax error near unexpected token `FREETYPE2,freetype2'
./configure: line 5538: ` PKG_CHECK_MODULES(FREETYPE2,freetype2)'

Please review, thanks!

Hilmar

#1104307#15
Date:
2025-04-28 21:39:54 UTC
From:
To:
Hi Hilmar,

Yes. I hinted at the problem in my submission as I am seeing it in the
same way. For some reason autoconf does not pick up pkgconf's pkg.m4 and
does not substitute PKG_CHECK_MODULES. I suggested that you may need to
vendor pkg.m4 into aclocal.m4. It is not clear to me when autoconf
searches /usr/share/aclocal and when not. It also appears to not read
acinclude.m4 here.

Helmut