Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/5] Add the systemd package
Date: Fri, 03 Feb 2012 21:32:50 +0100	[thread overview]
Message-ID: <87liojd5e5.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <1328279247-7277-2-git-send-email-maxime.ripard@free-electrons.com> (Maxime Ripard's message of "Fri, 3 Feb 2012 15:27:23 +0100")

>>>>> "Maxime" == Maxime Ripard <maxime.ripard@free-electrons.com> writes:

 Maxime> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
 Maxime> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

Looks good, a few minor comments:

 Maxime> diff --git a/fs/skeleton/etc/mtab b/fs/skeleton/etc/mtab
 Maxime> index e1c2045..4c0a094 120000
 Maxime> --- a/fs/skeleton/etc/mtab
 Maxime> +++ b/fs/skeleton/etc/mtab
 Maxime> @@ -1 +1 @@
 Maxime> -../proc/mounts
 Maxime> \ No newline at end of file
 Maxime> +/proc/mounts
 Maxime> \ No newline at end of file

Is this needed by systemd? I would prefer to see this as a seperate
patch.

 Maxime> diff --git a/linux/linux.mk b/linux/linux.mk
 Maxime> index dbe1ad7..d7c9c9c 100644
 Maxime> --- a/linux/linux.mk
 Maxime> +++ b/linux/linux.mk
 Maxime> @@ -150,6 +150,8 @@ define LINUX_CONFIGURE_CMDS
 Maxime>  	$(if $(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV),
 Maxime>  		$(call KCONFIG_SET_OPT,CONFIG_UEVENT_HELPER_PATH,\"/sbin/mdev\",$(@D)/.config))
 Maxime>  	yes '' | $(TARGET_MAKE_ENV) $(MAKE1) $(LINUX_MAKE_FLAGS) -C $(@D) oldconfig
 Maxime> +	$(if $(BR2_PACKAGE_SYSTEMD),
 Maxime> +		$(call KCONFIG_ENABLE_OPT,CONFIG_CGROUPS,$(@D)/.config),)

The very last ',' can be removed. This could also go in a seperate
patch.

 Maxime> +++ b/package/systemd/Config.in
 Maxime> @@ -0,0 +1,19 @@
 Maxime> +config BR2_PACKAGE_SYSTEMD
 Maxime> +	bool "systemd"
 Maxime> +	depends on BR2_PACKAGE_UDEV
 Maxime> +	select BR2_PACKAGE_DBUS
 Maxime> +	select BR2_PACKAGE_LIBCAP
 Maxime> +	help
 Maxime> +	  systemd is a system and service manager for Linux, compatible with
 Maxime> +	  SysV and LSB init scripts. systemd provides aggressive parallelization
 Maxime> +	  capabilities, uses socket and D-Bus activation for starting services,
 Maxime> +	  offers on-demand starting of daemons, keeps track of processes using
 Maxime> +	  Linux cgroups, supports snapshotting and restoring of the system
 Maxime> +	  state, maintains mount and automount points and implements an
 Maxime> +	  elaborate transactional dependency-based service control logic. It can

This looks a bit too wide. "It can" should go on the next line.
 
 Maxime> +++ b/package/systemd/systemd.mk
 Maxime> @@ -0,0 +1,68 @@
 Maxime> +#############################################################
 Maxime> +#
 Maxime> +# systemd
 Maxime> +#
 Maxime> +#############################################################
 Maxime> +SYSTEMD_VERSION = 37
 Maxime> +SYSTEMD_SITE = http://www.freedesktop.org/software/systemd/
 Maxime> +SYSTEMD_SOURCE = systemd-$(SYSTEMD_VERSION).tar.bz2
 Maxime> +SYSTEMD_DEPENDENCIES = \
 Maxime> +	host-intltool \
 Maxime> +	libcap \
 Maxime> +	udev \
 Maxime> +	dbus
 Maxime> +
 Maxime> +# Build after Busybox
 Maxime> +ifeq ($(BR2_PACKAGE_BUSYBOX),y)
 Maxime> +	SYSTEMD_DEPENDENCIES += busybox
 Maxime> +endif
 Maxime> +
 Maxime> +SYSTEMD_CONF_OPT += \
 Maxime> +	--with-distro=other \
 Maxime> +	--disable-selinux \
 Maxime> +	--disable-pam \
 Maxime> +	--disable-libcryptsetup \
 Maxime> +	--disable-gtk \
 Maxime> +	--disable-plymouth \
 Maxime> +	--with-rootdir=/ \
 Maxime> +	--with-dbuspolicydir=/etc/dbus-1/system.d \
 Maxime> +	--with-dbussessionservicedir=/usr/share/dbus-1/services \
 Maxime> +	--with-dbussystemservicedir=/usr/share/dbus-1/system-services \
 Maxime> +	--with-dbusinterfacedir=/usr/share/dbus-1/interfaces \
 Maxime> +	--with-udevrulesdir=/etc/udev/rules.d \
 Maxime> +	--with-sysvinit-path=/etc/init.d/ \
 Maxime> +	--without-sysvrcd-path
 Maxime> +
 Maxime> +ifeq ($(BR2_PACKAGE_ACL),y)
 Maxime> +	SYSTEMD_CONF_OPT += --enable-acl

You're missing
SYSTEMD_DEPENDENCIES += acl

 Maxime> +++ b/package/udev/udev.mk
 Maxime> @@ -12,7 +12,7 @@ UDEV_CONF_OPT =			\
 Maxime>  	--sbindir=/sbin		\
 Maxime>  	--with-rootlibdir=/lib	\
 Maxime>  	--libexecdir=/lib/udev	\
 Maxime> -	--disable-introspection
 Maxime> +	--disable-introspection \

Why?

-- 
Bye, Peter Korsgaard

  reply	other threads:[~2012-02-03 20:32 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-03 14:27 [Buildroot] [RFC v2] Add systemd to buildroot Maxime Ripard
2012-02-03 14:27 ` [Buildroot] [PATCH 1/5] Add the systemd package Maxime Ripard
2012-02-03 20:32   ` Peter Korsgaard [this message]
2012-02-04 13:13     ` Maxime Ripard
2012-02-05  9:58       ` Peter Korsgaard
2012-02-03 14:27 ` [Buildroot] [PATCH 2/5] Rework of the init system Maxime Ripard
2012-02-09 23:12   ` Arnout Vandecappelle
2012-02-03 14:27 ` [Buildroot] [PATCH 3/5] Fix installation for the lighttpd package Maxime Ripard
2012-02-03 14:27 ` [Buildroot] [PATCH 4/5] Add systemd unit for lighttpd Maxime Ripard
2012-02-03 14:27 ` [Buildroot] [PATCH 5/5] Add the systemd units files to openssh Maxime Ripard
  -- strict thread matches above, loose matches on Subject: below --
2012-03-22  9:27 [Buildroot] [pull request v2] Pull request for branch for-2012.05/systemd Maxime Ripard
2012-03-22  9:27 ` [Buildroot] [PATCH 1/5] Add the systemd package Maxime Ripard
2012-03-22 20:39   ` Peter Korsgaard
2012-03-23  8:51     ` Maxime Ripard
2012-03-23  9:04       ` Peter Korsgaard
2012-03-23  9:26 [Buildroot] [pull request v3] Pull request for branch for-2012.05/systemd Maxime Ripard
2012-03-23  9:26 ` [Buildroot] [PATCH 1/5] Add the systemd package Maxime Ripard
2012-03-23 15:49 [Buildroot] [pull request v4] Pull request for branch for-2012.05/systemd Maxime Ripard
2012-03-23 15:49 ` [Buildroot] [PATCH 1/5] Add the systemd package Maxime Ripard
2012-03-31 21:59   ` Peter Korsgaard

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=87liojd5e5.fsf@macbook.be.48ers.dk \
    --to=jacmet@uclibc.org \
    --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