[lfs-dev] LFS SVN and Systemd Report

Bryan Kadzban bryan at kadzban.is-a-geek.net
Thu May 31 21:02:42 PDT 2012


Bruce Dubbs wrote:
> Andrew Benton wrote:
>> On Thu, 31 May 2012 16:58:00 +0100 Bruce Dubbs
>> <bruce.dubbs at gmail.com> wrote:
>> 
>>> Try this diff for configure.ac.
>> It helps. I can get through configure Ok, but I can't see a way to
>> get through make without dbus.
> 
> Did you try in a Chapter 6 environment?  I can't get it to work
> without pkg-config.

Note that to excise pkg-config runs from the systemd-184-shipped
configure script, you need to:

1) In the environment, set KMOD_CFLAGS and KMOD_LIBS to something that
isn't an empty string

2) Do the same for BLKID_{CFLAGS,LIBS}

3) Do the same for DBUS_{CFLAGS,LIBS} (can set them to " ")

4) Pass the following four args to configure:

--with-dbuspolicydir="" --with-dbussessionservicedir=""
--with-dbussystemservicedir="" --with-dbusinterfacedir=""

The "argument-not-provided" branch of the AC_ARG_WITH macros for all
four of those args tries to run pkg-config to find the right directory,
so if pkg-config isn't present, the args need to be provided.

> You can try the same environment.  Get lfs-SVN-20120524.tar.xz from 
> http://www.linuxfromscratch.org/~bdubbs/systemd-udev/ and extract to
> an empty partition.  Mount that partition as /mnt/lfs and chroot into
> it as in Chapter 6.

I'll be trying this for future testing.  For the moment I'm trying to
change around Dan's v1 patch to be a bit more autoconf-like (make it use
--disable-systemd to do what we want instead of --enable-udev-only,
since autoconf docs indicate that --enable-foo should never turn
something off, and also make it handle many of the issues that people
have found here, with gperf and cap_init).

I also have a piece in there to remove the "find m4" check, since that's
only required for systemd config files, not for udev.

Haven't started changing Makefile.am yet, though.

My tentative plan is to get something sent off to linux-hotplug, rather
than creating a patch for systemd for the book.  If they reject it,
though, then what we'll want to do is change the autofoo stuff, then run
autoreconf, *then* generate a patch -- so the patch touches Makefile.in,
configure, and any other generated file.

(That way the chroot doesn't require pkg.m4 either.)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20120531/c7fbb356/attachment.sig>


More information about the lfs-dev mailing list