- Package:
- src:vflib3
- Source:
- src:vflib3
- Submitter:
- Helmut Grohne
- Date:
- 2025-04-29 11:00:02 UTC
- Severity:
- normal
- Tags:
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
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
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