Bryan Kadzban | 8 Jun 2012 08:35

[PATCH] Allow configuring without systemd-only dependencies

Some dependencies (intltool, m4, dbus, pkg-config, PAM) are only
required or useful for systemd, not for udev.  Leave these required by
default, but allow them to be made optional if the right flag is used to
./configure.

Signed-Off-By: Bryan Kadzban <bryan <at> kadzban.is-a-geek.net>

-----

This is necessary for anyone who wants to build udev only.  It's not
sufficient, but without this or something like it, ./configure fails
hard.  This change touches *only* configure; if the dependencies are
made optional in a ./configure run, and they don't exist on the system
(or in some cases, even if they do) make will fail hard.

I'm not attached to the --with-X flag's name; coming up with a better
one would be fine.

Unfortunately there's no "use intltool if it's present, otherwise don't
bother" variant of IT_PROG_INTLTOOL.  If that's wanted, I could hack it
together with another invocation of AC_PATH_PROG, but this is slightly
simpler.
diff --git a/configure.ac b/configure.ac
index 70f3e96..446fb95 100644
--- a/configure.ac
+++ b/configure.ac
 <at>  <at>  -44,8 +44,15  <at>  <at>  AS_IF([test "x$host_cpu" = "xmips" || test "x$host_cpu" = "xmipsel" ||
 LT_PREREQ(2.2)
(Continue reading)

William Hubbs | 8 Jun 2012 18:15
Picon

Re: [PATCH] Allow configuring without systemd-only dependencies

On Thu, Jun 07, 2012 at 11:35:00PM -0700, Bryan Kadzban wrote:
> Some dependencies (intltool, m4, dbus, pkg-config, PAM) are only
> required or useful for systemd, not for udev.  Leave these required by
> default, but allow them to be made optional if the right flag is used to
> ./configure.

How about using --disable-systemd to take out these dependencies instead
of adding another switch?

William

Bryan Kadzban | 9 Jun 2012 09:01

Re: [PATCH] Allow configuring without systemd-only dependencies

William Hubbs wrote:
> On Thu, Jun 07, 2012 at 11:35:00PM -0700, Bryan Kadzban wrote:
>> Some dependencies (intltool, m4, dbus, pkg-config, PAM) are only
>> required or useful for systemd, not for udev.  Leave these required by
>> default, but allow them to be made optional if the right flag is used to
>> ./configure.
> 
> How about using --disable-systemd to take out these dependencies instead
> of adding another switch?

Well, this is the minimum to let us (LFS) at least get a build process
together to upgrade from udev-182.  systemd as-is has too many build
dependencies for us to use it the way it is today.  I figured I'd see
what upstream thought about just doing the minimum we need first.  (We
can override variables at make time to build just the udev binary and
helpers.)

But if a --disable-systemd switch ends up getting committed, sure,
that'd work too.
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Gmane