hardcoding sbin

Richard Hughes hughsient at gmail.com
Wed Mar 7 01:25:00 PST 2007


On 07/03/07, David Zeuthen <david at fubar.dk> wrote:
> On Wed, 2007-03-07 at 08:48 +0000, Richard Hughes wrote:
> > In the tools/Makefile.am we have:
> >
> > if HAVE_UMOUNT_HAL
> > slashsbindir = /sbin
> > slashsbin_PROGRAMS = umount.hal
> >
> > umount_hal_SOURCES = umount-hal.c
> > umount_hal_LDADD = @DBUS_LIBS@ $(top_builddir)/libhal/libhal.la
> > $(top_builddir)/libhal-storage/libhal-storage.la
> > endif
> >
> > Which breaks completely if we are building to a prefix.
>
> Don't pass --enable-umount-helper if you're building to prefix
> like /home/hughsie/.root? The thing is that /sbin/umount.<helper> is
> part of the ABI for that patch to util-linux - in other words:
> util-linux expects to find unmount helpers in /sbin.

Gotcha.

> > Is there an equivalent to sbin_PROGRAMS for /sbin?
>
> I could be talked into taking a patch so you can specify the path for
> where to install the umount helper, would default to /sbin, but it just
> seems so futile...

Sure, no worries. I just wondered if there was a standard way of doing this.

Ohh, and it looks like my build errors last night were because of
automake-1.10 - when using automake-1.7 make distcheck passes.

Richard.


More information about the hal mailing list