From: "Luis R. Rodriguez" <mcgrof@suse.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "Stefano Stabellini" <stefano.stabellini@eu.citrix.com>,
"Jan Rękorajski" <baggins@pld-linux.org>,
"Ian Jackson" <ian.jackson@eu.citrix.com>,
"Jacek Konieczny" <jajcus@jajcus.net>,
"M A Young" <m.a.young@durham.ac.uk>,
xen-devel@lists.xenproject.org,
"Luis R. Rodriguez" <mcgrof@do-not-panic.com>
Subject: Re: [PATCH v6 13/13] systemd: add xen systemd service and module files
Date: Wed, 2 Jul 2014 22:25:29 +0200 [thread overview]
Message-ID: <20140702202529.GZ27687@wotan.suse.de> (raw)
In-Reply-To: <1404309762.5562.103.camel@kazak.uk.xensource.com>
On Wed, Jul 02, 2014 at 03:02:42PM +0100, Ian Campbell wrote:
> On Thu, 2014-06-12 at 18:18 -0700, Luis R. Rodriguez wrote:
>
> > As for integration with xen, we house keep all the systemd files
> > under a new directory tools/hotplug/Linux/systemd/ and will be targetted
>
> "targeted".
>
Amended.
> > by default when building on Linux systems if systemd enabled at
> > build time,
>
> This should be predicated on the presence of the systemd libraries, not
> on actually running systemd. Think e.g. build chroots. Maybe that's what
> you were trying to say anyway?
Indeed. Fix this up a bit to clarify.
> > which is only required on the build box, not the user
> > system.
> >
> > The systemd files will be sanitized for meta @VARIABLES@ upon
> > configuration and installed upon the install target. Systems that
> > do not use systemd can still get systemd service unit files installed
> > if the build system enabled systemd support, this however does not
> > mandate a requirement of having systemd libraries present. Old init
> > scripts are always installed.
> >
> > If you don't specify a prefix you will end up with the services
> > files under /usr/local/lib/systemd/system/ by default, and systemd
> > modules-load.d conf files under /usr/local/lib/modules-load.d/ which
> > systemd does look for (although it seems this is not documented).
> >
> > Distributions are expected to provide their /usr/ prefix to end up in
> > the more generic location upon distribution install at
> > /usr/lib/systemd/system/ and /usr/lib/modules-load.d/ respectively.
>
> > @@ -184,6 +185,27 @@ change take effect.
> > [1] http://wiki.xen.org/wiki/XenStoreReference
> > [2] http://wiki.xen.org/wiki/Xenstored
> >
> > +Systemd and legacy init support
> > +===============================
> > +
> > +If you have systemd development packages installed you can build binaries
> > +with systemd support. Systemd support is enabled by default if you have
> > +systemd development libraries present. Binaries built with systemd supprot
>
> "support" (please run a spell checker)
Amended.
> > +will require systemd libraries to be present on the host system, however
> > +systemd initialization will only occur if the system booted with systemd as its
> > +init. If systemd was not the init the legacy initialization will be used.
> > +Systemd is enabled by default if you have systemd development libraries
>
> This is starting to repeat itself I think (this is the second time this
> paragraph talks about the default).
Nuked.
> > diff --git a/m4/README.source b/m4/README.source
> > index 76f7c5a..8805b8e 100644
> > --- a/m4/README.source
> > +++ b/m4/README.source
> > @@ -26,3 +26,13 @@ Date: Mon Feb 3 15:59:18 2014 -0800
> > With the newly added glib.mk, some of the noinst_* variables need to use
> > += in the evaluation to avoid multiple definition warnings from
> > automake.
> > +
> > +systemd.m4
> > +==========
> > +
> > +systemd.m4 was contributed to by Luis R. Rodriguez <mcgrof@do-not-panic.com>,
> > +its current home project can be found at:
> > +
> > +https://github.com/mcgrof/funk-systemd
> > +
> > +There is a plan to upstream this library somehow to systemd.
>
> This last sentence doesn't belong here, we don't much care what upstream
> plans to do (whether or not that is you).
OK, nuked verbosity.
> > +AC_DEFUN([AX_CHECK_SYSTEMD_LIBS], [
> > + AC_CHECK_HEADER([systemd/sd-daemon.h], [
> > + AC_CHECK_LIB([systemd-daemon], [sd_listen_fds], [libsystemddaemon="y"])
> > + ])
> > + AS_IF([test "x$libsystemddaemon" = x], [
> > + AC_MSG_ERROR([Unable to find a suitable libsystemd-daemon library])
> > + ])
> > +
> > + PKG_CHECK_MODULES([SYSTEMD], [libsystemd-daemon])
> > + dnl pkg-config older than 0.24 does not set these for
> > + dnl PKG_CHECK_MODULES()
>
> What is the implication of this? THat we have a workaround for it here
> or that we don't support system on systems with pkg-config older than
> that?
Nothing, the purpose of the additions of the two AC_SUBST() is to ensure the
variables are always present, even if users are on older version of pkg-config.
> > worth also noting is that as of version 208
> > + dnl of systemd pkg-config --cflags currently yields no extra flags yet.
>
> Why is it worth noting that?
I think its worth noting it as although support exists its not yet relevant,
if issues should come up with it at a later point in time it may become more
imporant.
> > + AC_SUBST([SYSTEMD_CFLAGS])
> > + AC_SUBST([SYSTEMD_LIBS])
> > +
> > + AS_IF([test "x$SYSTEMD_DIR" = x], [
> > + dnl In order to use the line below we need to fix upstream systemd
> > + dnl to properly ${prefix} for child variables in
> > + dnl src/core/systemd.pc.in but this is a bit complex at the
> > + dnl moment as they depend on another rootprefix, which can vary
> > + dnl from prefix in practice. We provide our own definition as we
> > + dnl *know* where systemd will dump this to, but this does limit
> > + dnl us to stick to a non custom systemdsystemunitdir, dnl to work
>
> dnl in the middle of the line suggests a rewrapping snafu.
Fixed.
Luis`
next prev parent reply other threads:[~2014-07-02 20:25 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-13 1:18 [PATCH v6 00/13] xen: add systemd support Luis R. Rodriguez
2014-06-13 1:18 ` [PATCH v6 01/13] xenstored: enable usage of config.h on both xenstored and oxenstored Luis R. Rodriguez
2014-06-13 1:18 ` [PATCH v6 02/13] cxenstored: add support for systemd active sockets Luis R. Rodriguez
2014-07-02 13:02 ` Ian Campbell
2014-07-02 19:00 ` Luis R. Rodriguez
2014-07-03 9:13 ` Ian Campbell
2014-07-03 17:06 ` Luis R. Rodriguez
2014-07-04 14:32 ` Ian Campbell
2014-07-08 3:08 ` Luis R. Rodriguez
2014-07-17 19:45 ` Luis R. Rodriguez
2014-07-17 20:16 ` Dave Scott
2014-07-17 23:13 ` Luis R. Rodriguez
2014-07-18 9:27 ` Anil Madhavapeddy
2014-06-13 1:18 ` [PATCH v6 03/13] oxenstored: " Luis R. Rodriguez
2014-07-02 13:08 ` Ian Campbell
2014-07-02 19:09 ` Luis R. Rodriguez
2014-07-03 8:42 ` Dave Scott
2014-07-03 17:43 ` Luis R. Rodriguez
2014-06-13 1:18 ` [PATCH v6 04/13] oxenstored: force FD_CLOEXEC with Unix.set_close_on_exec on LSB init Luis R. Rodriguez
2014-07-02 13:08 ` Ian Campbell
2014-06-13 1:18 ` [PATCH v6 05/13] tools/xendomains: make xl the default and remove xm usage Luis R. Rodriguez
2014-06-13 1:18 ` [PATCH v6 06/13] tools/xendomains: do space cleanups Luis R. Rodriguez
2014-06-13 1:18 ` [PATCH v6 07/13] tools/xendomains: move to libexec and use a smaller init helper Luis R. Rodriguez
2014-06-13 7:06 ` Jacek Konieczny
2014-06-13 18:32 ` Luis R. Rodriguez
2014-07-02 13:12 ` Ian Campbell
2014-06-13 1:18 ` [PATCH v6 08/13] autoconf: xen: force a refresh with autoconf Luis R. Rodriguez
2014-06-13 1:18 ` [PATCH v6 09/13] autoconf: update m4/pkg.m4 Luis R. Rodriguez
2014-07-02 13:13 ` Ian Campbell
2014-07-02 19:10 ` Luis R. Rodriguez
2014-06-13 1:18 ` [PATCH v6 10/13] autoconf: xen: move standard path variables to config/Paths.mk.in Luis R. Rodriguez
2014-07-02 13:34 ` Ian Campbell
2014-07-02 19:32 ` Luis R. Rodriguez
2014-07-03 9:15 ` Ian Campbell
2014-07-03 18:30 ` Luis R. Rodriguez
2014-07-04 14:33 ` Ian Campbell
2014-07-08 18:41 ` Luis R. Rodriguez
2014-07-08 18:53 ` Luis R. Rodriguez
2014-07-10 16:18 ` Ian Campbell
2014-07-14 23:41 ` Luis R. Rodriguez
2014-07-03 18:53 ` Luis R. Rodriguez
2014-07-04 14:36 ` Ian Campbell
2014-07-08 18:52 ` Luis R. Rodriguez
2014-07-10 16:16 ` Ian Campbell
2014-07-14 23:42 ` Luis R. Rodriguez
2014-06-13 1:18 ` [PATCH v6 11/13] xencommons: move module list into a generic place Luis R. Rodriguez
2014-07-02 13:44 ` Ian Campbell
2014-07-02 21:56 ` Luis R. Rodriguez
2014-07-03 9:15 ` Ian Campbell
2014-06-13 1:18 ` [PATCH v6 12/13] autoconf: xen: enable explicit preference option for xenstored preference Luis R. Rodriguez
2014-07-02 13:54 ` Ian Campbell
2014-07-02 20:09 ` Luis R. Rodriguez
2014-07-03 9:20 ` Ian Campbell
2014-07-03 18:57 ` Luis R. Rodriguez
2014-07-04 14:37 ` Ian Campbell
2014-07-08 18:54 ` Luis R. Rodriguez
2014-06-13 1:18 ` [PATCH v6 13/13] systemd: add xen systemd service and module files Luis R. Rodriguez
2014-06-13 19:55 ` Luis R. Rodriguez
2014-06-19 19:47 ` Bastian Blank
2014-06-19 20:21 ` Luis R. Rodriguez
2014-06-19 20:26 ` Luis R. Rodriguez
2014-06-20 5:59 ` David Sutton
2014-07-02 14:02 ` Ian Campbell
2014-07-02 20:25 ` Luis R. Rodriguez [this message]
2014-06-19 19:03 ` [PATCH v6 00/13] xen: add systemd support Luis R. Rodriguez
2014-07-02 14:48 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140702202529.GZ27687@wotan.suse.de \
--to=mcgrof@suse.com \
--cc=Ian.Campbell@citrix.com \
--cc=baggins@pld-linux.org \
--cc=ian.jackson@eu.citrix.com \
--cc=jajcus@jajcus.net \
--cc=m.a.young@durham.ac.uk \
--cc=mcgrof@do-not-panic.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).