All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for 4.6] configure: don't silently disable systemd support
@ 2015-09-09 22:35 Wei Liu
  2015-09-10 10:54 ` Ian Campbell
  0 siblings, 1 reply; 4+ messages in thread
From: Wei Liu @ 2015-09-09 22:35 UTC (permalink / raw)
  To: Xen-devel; +Cc: Wei Liu, Ian Jackson, Ian Campbell

Originally when user runs ./configure --enable-systemd and systemd
development library is not available the build system silently disables
systemd support. This is not in line with normal expectation.

Instead, configure should error out when user has asked for systemd
support but development libraries can't be found.

Reported-by: George Dunlap <george.dunlap@eu.citrix.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
Please rerun ./autogen.sh.
---
 m4/systemd.m4 | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/m4/systemd.m4 b/m4/systemd.m4
index 8284993..84508a1 100644
--- a/m4/systemd.m4
+++ b/m4/systemd.m4
@@ -85,7 +85,11 @@ AC_DEFUN([AX_CHECK_SYSTEMD], [
 		AC_DEFINE([HAVE_SYSTEMD], [1], [Systemd available and enabled])
 			systemd=y
 			AX_CHECK_SYSTEMD_LIBS()
-	    ],[systemd=n])
+	    ],[
+		AS_IF([test "x$enable_systemd" != "x"],
+			[AC_MSG_ERROR([Unable to find systemd development library])],
+			[systemd=n])
+	    ])
 	],[systemd=n])
 ])
 
-- 
2.1.4

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

* Re: [PATCH for 4.6] configure: don't silently disable systemd support
  2015-09-09 22:35 [PATCH for 4.6] configure: don't silently disable systemd support Wei Liu
@ 2015-09-10 10:54 ` Ian Campbell
  2015-09-10 11:04   ` Wei Liu
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Campbell @ 2015-09-10 10:54 UTC (permalink / raw)
  To: Wei Liu, Xen-devel; +Cc: Ian Jackson

On Wed, 2015-09-09 at 23:35 +0100, Wei Liu wrote:
> Originally when user runs ./configure --enable-systemd and systemd
> development library is not available the build system silently disables
> systemd support. This is not in line with normal expectation.
> 
> Instead, configure should error out when user has asked for systemd
> support but development libraries can't be found.
> 
> Reported-by: George Dunlap <george.dunlap@eu.citrix.com>
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> ---
> Please rerun ./autogen.sh.
> ---
>  m4/systemd.m4 | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)
> 
> diff --git a/m4/systemd.m4 b/m4/systemd.m4
> index 8284993..84508a1 100644
> --- a/m4/systemd.m4
> +++ b/m4/systemd.m4
> @@ -85,7 +85,11 @@ AC_DEFUN([AX_CHECK_SYSTEMD], [
>  		AC_DEFINE([HAVE_SYSTEMD], [1], [Systemd available and
> enabled])
>  			systemd=y
>  			AX_CHECK_SYSTEMD_LIBS()
> -	    ],[systemd=n])
> +	    ],[
> +> 	> 	> AS_IF([test "x$enable_systemd" != "x"],

At this point the value of enable_systemd is either empty or ...what...? I
think "yes"?, with "no" having been ruled out earlier?

Or can it be just "y"?

I could live with this version, but I think it would be less of a brain ben
der if the check was inverted to be "x$enable_systemd" = "xyes" i.e. more
explicit.

Ian.

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

* Re: [PATCH for 4.6] configure: don't silently disable systemd support
  2015-09-10 10:54 ` Ian Campbell
@ 2015-09-10 11:04   ` Wei Liu
  2015-09-10 11:18     ` Wei Liu
  0 siblings, 1 reply; 4+ messages in thread
From: Wei Liu @ 2015-09-10 11:04 UTC (permalink / raw)
  To: Ian Campbell; +Cc: Xen-devel, Wei Liu, Ian Jackson

On Thu, Sep 10, 2015 at 11:54:16AM +0100, Ian Campbell wrote:
> On Wed, 2015-09-09 at 23:35 +0100, Wei Liu wrote:
> > Originally when user runs ./configure --enable-systemd and systemd
> > development library is not available the build system silently disables
> > systemd support. This is not in line with normal expectation.
> > 
> > Instead, configure should error out when user has asked for systemd
> > support but development libraries can't be found.
> > 
> > Reported-by: George Dunlap <george.dunlap@eu.citrix.com>
> > Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> > ---
> > Please rerun ./autogen.sh.
> > ---
> >  m4/systemd.m4 | 6 +++++-
> >  1 file changed, 5 insertions(+), 1 deletion(-)
> > 
> > diff --git a/m4/systemd.m4 b/m4/systemd.m4
> > index 8284993..84508a1 100644
> > --- a/m4/systemd.m4
> > +++ b/m4/systemd.m4
> > @@ -85,7 +85,11 @@ AC_DEFUN([AX_CHECK_SYSTEMD], [
> >  		AC_DEFINE([HAVE_SYSTEMD], [1], [Systemd available and
> > enabled])
> >  			systemd=y
> >  			AX_CHECK_SYSTEMD_LIBS()
> > -	    ],[systemd=n])
> > +	    ],[
> > +> 	> 	> AS_IF([test "x$enable_systemd" != "x"],
> 
> At this point the value of enable_systemd is either empty or ...what...? I
> think "yes"?, with "no" having been ruled out earlier?
> 
> Or can it be just "y"?
> 

At this point, it can't be no. It's either empty or "yes" (or "y"?). I
printed it out when I wrote this patch but could remember exactly what
it was.

> I could live with this version, but I think it would be less of a brain ben
> der if the check was inverted to be "x$enable_systemd" = "xyes" i.e. more
> explicit.
> 

I can do that as well. V2 coming soon.

Wei.

> Ian.

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

* Re: [PATCH for 4.6] configure: don't silently disable systemd support
  2015-09-10 11:04   ` Wei Liu
@ 2015-09-10 11:18     ` Wei Liu
  0 siblings, 0 replies; 4+ messages in thread
From: Wei Liu @ 2015-09-10 11:18 UTC (permalink / raw)
  To: Ian Campbell; +Cc: Xen-devel, Wei Liu, Ian Jackson

On Thu, Sep 10, 2015 at 12:04:10PM +0100, Wei Liu wrote:
> On Thu, Sep 10, 2015 at 11:54:16AM +0100, Ian Campbell wrote:
> > On Wed, 2015-09-09 at 23:35 +0100, Wei Liu wrote:
> > > Originally when user runs ./configure --enable-systemd and systemd
> > > development library is not available the build system silently disables
> > > systemd support. This is not in line with normal expectation.
> > > 
> > > Instead, configure should error out when user has asked for systemd
> > > support but development libraries can't be found.
> > > 
> > > Reported-by: George Dunlap <george.dunlap@eu.citrix.com>
> > > Signed-off-by: Wei Liu <wei.liu2@citrix.com>
> > > ---
> > > Please rerun ./autogen.sh.
> > > ---
> > >  m4/systemd.m4 | 6 +++++-
> > >  1 file changed, 5 insertions(+), 1 deletion(-)
> > > 
> > > diff --git a/m4/systemd.m4 b/m4/systemd.m4
> > > index 8284993..84508a1 100644
> > > --- a/m4/systemd.m4
> > > +++ b/m4/systemd.m4
> > > @@ -85,7 +85,11 @@ AC_DEFUN([AX_CHECK_SYSTEMD], [
> > >  		AC_DEFINE([HAVE_SYSTEMD], [1], [Systemd available and
> > > enabled])
> > >  			systemd=y
> > >  			AX_CHECK_SYSTEMD_LIBS()
> > > -	    ],[systemd=n])
> > > +	    ],[
> > > +> 	> 	> AS_IF([test "x$enable_systemd" != "x"],
> > 
> > At this point the value of enable_systemd is either empty or ...what...? I
> > think "yes"?, with "no" having been ruled out earlier?
> > 
> > Or can it be just "y"?
> > 
> 
> At this point, it can't be no. It's either empty or "yes" (or "y"?). I

For the record, it was "yes".

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

end of thread, other threads:[~2015-09-10 11:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-09 22:35 [PATCH for 4.6] configure: don't silently disable systemd support Wei Liu
2015-09-10 10:54 ` Ian Campbell
2015-09-10 11:04   ` Wei Liu
2015-09-10 11:18     ` Wei Liu

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.