Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] allow xserver without the systemd login daemon.
Date: Sun, 29 Mar 2015 15:08:27 +0200	[thread overview]
Message-ID: <20150329150827.4491e5d4@free-electrons.com> (raw)
In-Reply-To: <1427548538-7789-1-git-send-email-sagaert.johan@proximus.be>

Dear Sagaert Johan,

On Sat, 28 Mar 2015 14:15:38 +0100, Sagaert Johan wrote:
> Thanks to Noel Vellemans for the hint.
> Signed-off-by: Sagaert Johan <sagaert.johan@proximus.be>
> ---
>  package/x11r7/xserver_xorg-server/xserver_xorg-server.mk | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk b/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
> index bb5381c..db2e653 100644
> --- a/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
> +++ b/package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
> @@ -64,6 +64,11 @@ XSERVER_XORG_SERVER_CONF_OPTS = \
>  	--with-fontrootdir=/usr/share/fonts/X11/ \
>  	--$(if $(BR2_PACKAGE_XSERVER_XORG_SERVER_XVFB),en,dis)able-xvfb
>  
> +ifneq ($(BR2_INIT_SYSTEMD),y)
> +	XSERVER_XORG_SERVER_CONF_OPTS += \
> +	--disable-systemd-logind
> +endif

This seems good, but I'd like to see a more complete solution, that
takes care of both --{enable,disable}-systemd-login and
--{with,without}-systemd-daemon.

You should pass both the enabling and disabling options, and use
BR2_PACKAGE_SYSTEMD for the condition.

I believe something like:

ifeq ($(BR2_PACKAGE_SYSTEMD),y)
XSERVER_XORG_CONF_OPTS += \
	--with-systemd-daemon \
	--enable-systemd-logind
else
XSERVER_XORG_CONF_OPTS += \
	--without-systemd-daemon \
	--disable-systemd-logind
endif

would be more appropriate, but I'd like to have some feedback from a
X.org person. Bernd, can you comment on this?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2015-03-29 13:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-28 13:15 [Buildroot] [PATCH 1/1] allow xserver without the systemd login daemon Sagaert Johan
2015-03-29 13:08 ` Thomas Petazzoni [this message]
2015-03-29 14:00   ` Bernd Kuhls
2015-03-31 18:11   ` Arnout Vandecappelle

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=20150329150827.4491e5d4@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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