As a test of the new jhalfs/BLFS tools, I have tried
to compile 'accountservice' (the first package in the
book). The tool generated the following build order:
dbus libffi python2 pcre glib2 dbus-glib perl-xml-parser
intltool pkgconfig  polkit accountsservice.

Knowing that libxml2 and expat were already installed,
you can check that it accounts for all required and
recommended dependencies.

Everything builds OK until dbus-glib, where configure stops
with:
[...]
checking for XML_ParserCreate_MM in -lexpat... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for pkg-config... no
checking for DBUS... no
configure: error: in `/sources/dbus-glib/dbus-glib-0.98':
configure: error: The pkg-config script could not be found or is too 
old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively, you may set the environment variables DBUS_CFLAGS
and DBUS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
[...]
So, unless the variables DBUS_CFLAGS and DBUS_LIBS are given,
the build is impossible without pkg-config.

Proposed solution: add pkg-config as a required dependency,
and suppress glib2, since it is a dependency of pkg-config.
See attached patch.

Regards
Pierre
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to