GEGL build doesn't find babl anymore
After the recent version bumps, I noticed the following on my first build attempt:
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Using 'PKG_CONFIG_PATH' from environment with value: '/home/schumaml/Development/opt/gimp/master/lib/i386-linux-gnu/pkgconfig:/home/schumaml/Development/opt/gimp/master/share/pkgconfig:/home/schumaml/Development/opt/gimp/master/lib/pkgconfig:'
Dependency babl found: NO found 0.1.82 but need: '>=0.1.84'
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency babl found: NO
../../source/gegl/meson.build:160:0: ERROR: Invalid version of dependency, need 'babl' ['>=0.1.84'] found '0.1.82'.
A full log can be found at /home/schumaml/Development/build/gegl/meson-logs/meson-log.txt
FAILED: build.ninja
/usr/bin/meson --internal regenerate /home/schumaml/Development/source/gegl /home/schumaml/Development/build/gegl --backend ninja
ninja: error: rebuilding 'build.ninja': subcommand failed
I thought this was because I had forgotten to export the environment variables required to make the build find the babl I had just built and installed successfully, but a quick check confirmed this wasn#t the case, and pkg-config finds babl 0.1.85 as expected:
$ pkg-config --debug --modversion babl
Error printing enabled by default due to use of output options besides --exists, --atleast/exact/max-version or --list-all. Value of --silence-errors: 0
Error printing enabled
Adding virtual 'pkg-config' package to list of known packages
Looking for package 'babl'
Looking for package 'babl-uninstalled'
Reading 'babl' from file '/home/schumaml/Development/opt/gimp/master/lib/i386-linux-gnu/pkgconfig/babl.pc'
Parsing package file '/home/schumaml/Development/opt/gimp/master/lib/i386-linux-gnu/pkgconfig/babl.pc'
line>prefix=/home/schumaml/Development/opt/gimp/master
Variable declaration, 'prefix' has value '/home/schumaml/Development/opt/gimp/master'
line>libdir=${prefix}/lib/i386-linux-gnu
Variable declaration, 'libdir' has value '/home/schumaml/Development/opt/gimp/master/lib/i386-linux-gnu'
line>includedir=${prefix}/include
Variable declaration, 'includedir' has value '/home/schumaml/Development/opt/gimp/master/include'
line>
line>Name: babl
line>Description: Pixel encoding and color space conversion engine.
line>Version: 0.1.85
line>Requires.private: lcms2 >= 2.8
line>Libs: -L${libdir} -lbabl-0.1
line>Libs.private: -lm -pthread -ldl
Unknown keyword 'Libs.private' in '/home/schumaml/Development/opt/gimp/master/lib/i386-linux-gnu/pkgconfig/babl.pc'
line>Cflags: -I${includedir}/babl-0.1
Path position of 'babl' is 1
Adding 'babl' to list of known packages
0.1.85
The relevant part of the meson-log.txt file seems to be this:
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Determining dependency 'babl' with pkg-config executable '/usr/bin/pkg-config'
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --modversion babl` -> 0
0.1.82
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config --cflags babl` -> 0
-I/usr/include/babl-0.1
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config babl --libs` -> 0
-L/usr/lib/i386-linux-gnu -lbabl-0.1
PKG_CONFIG_PATH:
Called `/usr/bin/pkg-config babl --libs` -> 0
-lbabl-0.1
Using 'PKG_CONFIG_PATH' from environment with value: '/home/schumaml/Development/opt/gimp/master/lib/i386-linux-gnu
/pkgconfig:/home/schumaml/Development/opt/gimp/master/share/pkgconfig:/home/schumaml/Development/opt/gimp/master/li
b/pkgconfig:'
For the few important calls to pkg-config, the value of PKG_CONFIG_PATH is apparently ignored/not picked up, making it pick up the system babl. But the value I set for the build environment is obviously present, as the following lines shows... any idea what might be causing this and how to fix it?
Edited by Michael Schumacher