All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	Ian Campbell <ian.campbell@citrix.com>
Cc: George Dunlap <george.dunlap@eu.citrix.com>,
	Stefano Stabellini <stefano.stabellini@citrix.com>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH 2/5] raisin: Detect systemd
Date: Mon, 19 Oct 2015 11:01:37 +0100	[thread overview]
Message-ID: <5624BF81.3060603@citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1510161502090.27957@kaball.uk.xensource.com>

On 16/10/15 15:04, Stefano Stabellini wrote:
> On Fri, 16 Oct 2015, Ian Campbell wrote:
>> On Fri, 2015-10-16 at 14:39 +0100, Stefano Stabellini wrote:
>>> On Wed, 14 Oct 2015, George Dunlap wrote:
>>>> Add systemd development libraries if we detect systemd present on the
>>>> system
>>>>
>>>> Signed-off-by: George Dunlap <george.dunlap@citrix.com>
>>>
>>> Please use spaces for indentation
>>>
>>>     
>>>>  components/xen | 10 ++++++++++
>>>>  1 file changed, 10 insertions(+)
>>>>
>>>> diff --git a/components/xen b/components/xen
>>>> index 090cceb..93ed288 100644
>>>> --- a/components/xen
>>>> +++ b/components/xen
>>>> @@ -8,6 +8,11 @@ function xen_check_package() {
>>>>      local DEP_Debian_common="build-essential python-dev gettext uuid
>>>> -dev   \
>>>>               libncurses5-dev libyajl-dev libaio-dev pkg-config
>>>> libglib2.0-dev  \
>>>>               libssl-dev libpixman-1-dev bridge-utils wget"
>>>> +
>>>> +    if [[ -e "/usr/lib/systemd" ]]
>>>
>>> I don't know much about systemd but isn't there a better way to detect
>>> systemd? Check if it is running for example?
>>
>> You might want to build with systemd support even if systemd isn't actually
>> the current init system the system was booted with?
> 
> That is possible but also the vice versa might be true: one might want
> to build without systemd even if systemd is running. Maybe we need some
> kind of variable that can be overridden by the user?

You mean like XEN_CONFIG_EXTRA? :-D

For people frobbing around with XEN_CONFIG_EXTRA, I think it's
reasonable for them to get a build error if they add --with-systemd but
don't have the requisite packages.  (I'm pretty sure that's what will
happen now, at any rate.)

Since I'm going to be checking for systemd packages anyway due to the
container issue, maybe it would just make sense to include the dep
automatically only if the systemd packages are installed.

Alternately, I suppose we could extend the check-package "syntax" to
have "if package X in stalled, add dependency Y" -- similar to the '|'
operator we added earlier.  Then we could do something like this:

systemd:systemd-devel systemd-container:systemd-container-devel

What do you think?

 -George

  reply	other threads:[~2015-10-19 10:01 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-14 16:21 [PATCH 0/5] raisin: Miscelaneous improvements George Dunlap
2015-10-14 16:21 ` [PATCH 1/5] raisin: Handle aliases for packages, add pciutils-dev / libpci-dev alias George Dunlap
2015-10-16 13:37   ` Stefano Stabellini
2015-10-19  9:52     ` George Dunlap
2015-10-14 16:21 ` [PATCH 2/5] raisin: Detect systemd George Dunlap
2015-10-14 16:34   ` George Dunlap
2015-10-16 13:41     ` Stefano Stabellini
2015-10-19  9:54       ` George Dunlap
2015-10-19 11:09         ` Stefano Stabellini
2015-10-16 13:39   ` Stefano Stabellini
2015-10-16 14:02     ` Ian Campbell
2015-10-16 14:04       ` Stefano Stabellini
2015-10-19 10:01         ` George Dunlap [this message]
2015-10-19 11:15           ` Stefano Stabellini
2015-10-14 16:21 ` [PATCH 3/5] raisin: Allow iasl to alias acpica-tools, unify Fedora and CentOS deps for xen George Dunlap
2015-10-16 13:42   ` Stefano Stabellini
2015-10-14 16:21 ` [PATCH 4/5] raisin: Change update/release parsing OSes George Dunlap
2015-10-16 13:49   ` Stefano Stabellini
2015-10-19  9:16     ` George Dunlap
2015-10-19 11:26       ` Stefano Stabellini
2015-10-19 11:39         ` George Dunlap
2015-10-14 16:21 ` [PATCH 5/5] raisin: Add XEN_CONFIG_EXTRA to config file George Dunlap
2015-10-16 13:53   ` Stefano Stabellini
2015-10-19  9:24     ` George Dunlap
2015-10-19 11:37       ` Stefano Stabellini
2015-10-19 11:42         ` George Dunlap
2015-10-19 11:49           ` Stefano Stabellini

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=5624BF81.3060603@citrix.com \
    --to=george.dunlap@citrix.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=ian.campbell@citrix.com \
    --cc=stefano.stabellini@citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xen.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 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.