All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Don't install systemd scripts with --without-systemdsystemunitdir
@ 2010-08-27  2:10 Michael Forney
  2010-08-31  6:58 ` [PATCH] Don't install systemd scripts with Martin Pitt
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michael Forney @ 2010-08-27  2:10 UTC (permalink / raw)
  To: linux-hotplug

Currently, the scripts get installed to /no/ if that option is
specified.
---
 configure.ac |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 0a18bb6..31c5b18 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,8 +66,10 @@ AC_SUBST([FIRMWARE_PATH], [$FIRMWARE_PATH])
 AC_ARG_WITH([systemdsystemunitdir],
 	AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
 	[], [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
-AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
-AM_CONDITIONAL(WITH_SYSTEMD, [test -n "$with_systemdsystemunitdir"])
+if test "x$with_systemdsystemunitdir" != xno; then
+    AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
+fi
+AM_CONDITIONAL(WITH_SYSTEMD, [test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ])
 
 AC_ARG_ENABLE([extras],
 	AS_HELP_STRING([--disable-extras], [disable extras with external dependencies]),
-- 
1.7.2.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Don't install systemd scripts with
  2010-08-27  2:10 [PATCH] Don't install systemd scripts with --without-systemdsystemunitdir Michael Forney
@ 2010-08-31  6:58 ` Martin Pitt
  2010-09-02  5:43 ` [PATCH] Don't install systemd scripts with --without-systemdsystemunitdir Michael Forney
  2010-09-02  6:59 ` [PATCH] Don't install systemd scripts with Martin Pitt
  2 siblings, 0 replies; 4+ messages in thread
From: Martin Pitt @ 2010-08-31  6:58 UTC (permalink / raw)
  To: linux-hotplug

Hello Michael,

Michael Forney [2010-08-26 19:10 -0700]:
> Currently, the scripts get installed to /no/ if that option is
> specified.

I can't reproduce this: I tried

  ./configure --prefix=/usr --without-systemdsystemunitdir
  make
  make install DESTDIR=/tmp/x/

and I don't get a /tmp/x/no, nor does grepping for SYSTEMD reveal any
assignment to "no".

What's the particular configure command you are using?

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Don't install systemd scripts with --without-systemdsystemunitdir
  2010-08-27  2:10 [PATCH] Don't install systemd scripts with --without-systemdsystemunitdir Michael Forney
  2010-08-31  6:58 ` [PATCH] Don't install systemd scripts with Martin Pitt
@ 2010-09-02  5:43 ` Michael Forney
  2010-09-02  6:59 ` [PATCH] Don't install systemd scripts with Martin Pitt
  2 siblings, 0 replies; 4+ messages in thread
From: Michael Forney @ 2010-09-02  5:43 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 1508 bytes --]

Excerpts from Martin Pitt's message of Mon Aug 30 23:58:47 -0700 2010:
> Hello Michael,
> 
> Michael Forney [2010-08-26 19:10 -0700]:
> > Currently, the scripts get installed to /no/ if that option is
> > specified.
> 
> I can't reproduce this: I tried
> 
>   ./configure --prefix=/usr --without-systemdsystemunitdir
>   make
>   make install DESTDIR=/tmp/x/
> 
> and I don't get a /tmp/x/no, nor does grepping for SYSTEMD reveal any
> assignment to "no".
> 
> What's the particular configure command you are using?
> 
> Martin

Hi Martin,

I am not sure why you are having trouble reproducing it. I ran the same
commands and still saw the issue I described. I have attached a log for
reference.

Logically though, what is happening is when
--without-systemdsystemunitdir gets passed to configure,
with_systemdsystemunitdir gets assigned the value 'no'. Configure then
checks if this string is non-zero (which it is), and enables
WITH_SYSTEMD. This causes the scripts to get installed to the directory
$(systemdsystemunitdir) which is 'no'.

This seems to be a problem with several projects using this option,
including NetworkManager, which has been fixed
(https://bugzilla.gnome.org/show_bug.cgi?id=628439), and dbus, which has
been not yet commented on
(https://bugs.freedesktop.org/attachment.cgi?id=38319).

I just tested this with master and I still see the problem. Are you sure
your build directory is clean?

Thanks for taking the time to look at my patch!

-- 
Michael Forney <mforney@mforney.org>

[-- Attachment #2: udev.log --]
[-- Type: application/octet-stream, Size: 29356 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Don't install systemd scripts with
  2010-08-27  2:10 [PATCH] Don't install systemd scripts with --without-systemdsystemunitdir Michael Forney
  2010-08-31  6:58 ` [PATCH] Don't install systemd scripts with Martin Pitt
  2010-09-02  5:43 ` [PATCH] Don't install systemd scripts with --without-systemdsystemunitdir Michael Forney
@ 2010-09-02  6:59 ` Martin Pitt
  2 siblings, 0 replies; 4+ messages in thread
From: Martin Pitt @ 2010-09-02  6:59 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 750 bytes --]

Hello Michael,

Michael Forney [2010-09-01 22:43 -0700]:
> I am not sure why you are having trouble reproducing it. I ran the same
> commands and still saw the issue I described. I have attached a log for
> reference.

Ah, it seems that you are using an older autoconf and automake; I
already get the non-verbose output by default, like

   CC     libudev/libudev-util.lo
 
and no trace of /no/. I suppose the newer auto* tools just fixed this
once and for all.

Anyway, stuff still works with your patch (I tested both --without and
with an actual directory), so I applied it. Thanks!

Martin
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-02  6:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-27  2:10 [PATCH] Don't install systemd scripts with --without-systemdsystemunitdir Michael Forney
2010-08-31  6:58 ` [PATCH] Don't install systemd scripts with Martin Pitt
2010-09-02  5:43 ` [PATCH] Don't install systemd scripts with --without-systemdsystemunitdir Michael Forney
2010-09-02  6:59 ` [PATCH] Don't install systemd scripts with Martin Pitt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.