Skip to content

Wrong version in git build

This might be a user problem....

As of recently, I am unable to build packages from git. The problem relates to the versioning of libxfce4ui and the value placed in libxfce4ui-2.pc:

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libxfce4ui
Description: Widgets library for Xfce
Requires: gtk+-3.0 libxfce4util-1.0
Version: 4.18.0git-62cd98b
Libs: -L${libdir} -lxfce4ui-2
Cflags: -I${includedir}/xfce4/libxfce4ui-2

This now generates the following error message when building any other components:

checking for libxfce4ui-2 >= 4.18.2... found, but 4.18.0git-62cd98b
*** The required package libxfce4ui-2 was found on your system,
*** but the installed version (4.18.0git-62cd98b) is too old.
*** Please upgrade libxfce4ui-2 to atleast version 4.18.2, or adjust
*** the PKG_CONFIG_PATH environment variable if you installed
*** the new version of the package in a nonstandard prefix so
*** pkg-config is able to find it.
make: *** [Makefile:496: config.status] Error 1

If I change the version value in libxfce4ui-2.pc, configure and build then works.

My system is Arch linux, and I generally build all Xfce components directly from git about once a week.

To build libxfce4ui, I use the following:

make clean
./autogen.sh --prefix=/usr \
             --sysconfdir=/etc \
             --libexecdir=/usr/lib \
             --localstatedir=/var \
             --disable-static \
             --disable-debug \
             --enable-tests 
make
sudo make install