* [meta-oe][PATCH v2 0/3] systemd: package split
@ 2012-01-10 9:00 Anders Darander
2012-01-10 9:00 ` [meta-oe][PATCH v2 1/3] systemd: split out systemd-analyze Anders Darander
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Anders Darander @ 2012-01-10 9:00 UTC (permalink / raw)
To: openembedded-devel; +Cc: Anders Darander
At least while using rpm-packaging, the systemd package (rpm) got a dependency
on python, as systemd-analyze needs this (in the shebang). When trying to
create a small image using systemd, this isn't always desirable. Thus the
splitting of systemd-analyze to a separate package.
As an RRECOMMENDS for python-pycairo is added for systemd-analyze, we also add
new patch to conditionally build cairo with x11-support. This is desired for
x11-less systems, to reduce build time and size. The actual patch is similar
to how it is solved in oe-core.
Conditionally RRECOMMENDS kbd and kbd-consolefonts: if the machine in
question do not have keyboards, there is no need for kbd and
kbd-consolefonts.
The first patch should be fine for pulling. The 2nd patch should also be
relativly non-controversial.
The 3rd patch is new for v2, and can be omitted if more discussions is needed.
All patches has been verified on a few internal arm-based machines, with a
custom distro.
------------------------------------
v2: * The SRC_URI update has been applied to master.
* Let systemd-analyze RDEPENDS on python-dbus, and RRECOMMENDS
python-pycairo.
* Add a patch to conditionally enable/disable x11 support when buildling
cairo.
* Add patch which makes the systemd's RRECOMMENDS on kbd and
kbd-consolefonts conditional on the keyboard MACHINE_FEATURES.
The following changes since commit d3a451bbd08f7bb0ddea1aa0b314a72d65c660d4:
systemd: git repo moved (2012-01-10 08:25:55 +0100)
are available in the git repository at:
git://github.com/darander/meta-oe systemd-move
https://github.com/darander/meta-oe/tree/systemd-move
Anders Darander (3):
systemd: split out systemd-analyze
cairo: conditionally enable x11 dependencies
systemd: conditionally RRECOMMENDS kbd*
meta-oe/recipes-core/systemd/systemd_git.bb | 10 +++++++---
meta-oe/recipes-graphics/cairo/cairo.inc | 7 ++++++-
meta-oe/recipes-graphics/cairo/cairo_1.10.2.bb | 2 ++
meta-oe/recipes-graphics/cairo/cairomm_1.10.0.bb | 2 ++
4 files changed, 17 insertions(+), 4 deletions(-)
--
1.7.8.3
^ permalink raw reply [flat|nested] 6+ messages in thread* [meta-oe][PATCH v2 1/3] systemd: split out systemd-analyze
2012-01-10 9:00 [meta-oe][PATCH v2 0/3] systemd: package split Anders Darander
@ 2012-01-10 9:00 ` Anders Darander
2012-01-10 9:00 ` [meta-oe][PATCH v2 2/3] cairo: conditionally enable x11 dependencies Anders Darander
2012-01-10 9:00 ` [meta-oe][PATCH v2 3/3] systemd: conditionally RRECOMMENDS kbd* Anders Darander
2 siblings, 0 replies; 6+ messages in thread
From: Anders Darander @ 2012-01-10 9:00 UTC (permalink / raw)
To: openembedded-devel
Split systemd-analyze to a separate package, to remove the implicit
dependency on python. (At least the rpm-packaging backend created a
run-time dependency on python).
Add an RDEPENDS_${PN}-analyze on python-dbus, as this is required for
systemd-analyze to work.
Signed-off-by: Anders Darander <anders@chargestorm.se>
---
meta-oe/recipes-core/systemd/systemd_git.bb | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/meta-oe/recipes-core/systemd/systemd_git.bb b/meta-oe/recipes-core/systemd/systemd_git.bb
index bdaaf16..0fa61a7 100644
--- a/meta-oe/recipes-core/systemd/systemd_git.bb
+++ b/meta-oe/recipes-core/systemd/systemd_git.bb
@@ -14,7 +14,7 @@ inherit gitpkgv
PKGV = "v${GITPKGVTAG}"
PV = "git"
-PR = "r7"
+PR = "r8"
inherit useradd pkgconfig autotools vala perlnative
@@ -57,11 +57,15 @@ do_install() {
ln -s ${base_bindir}/systemd ${D}/init
}
-PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs"
+PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze"
USERADD_PACKAGES = "${PN}"
GROUPADD_PARAM_${PN} = "-r lock"
+FILES_${PN}-analyze = "${bindir}/systemd-analyze"
+RDEPENDS_${PN}-analyze = "python-dbus"
+RRECOMMENDS_${PN}-analyze = "python-pycairo"
+
FILES_${PN}-initramfs = "/init"
RDEPENDS_${PN}-initramfs = "${PN}"
--
1.7.8.3
^ permalink raw reply related [flat|nested] 6+ messages in thread* [meta-oe][PATCH v2 2/3] cairo: conditionally enable x11 dependencies
2012-01-10 9:00 [meta-oe][PATCH v2 0/3] systemd: package split Anders Darander
2012-01-10 9:00 ` [meta-oe][PATCH v2 1/3] systemd: split out systemd-analyze Anders Darander
@ 2012-01-10 9:00 ` Anders Darander
2012-01-10 9:00 ` [meta-oe][PATCH v2 3/3] systemd: conditionally RRECOMMENDS kbd* Anders Darander
2 siblings, 0 replies; 6+ messages in thread
From: Anders Darander @ 2012-01-10 9:00 UTC (permalink / raw)
To: openembedded-devel
Take the same approach to conditionally enable x11 and x11-dependencies as used in oe-core.
Signed-off-by: Anders Darander <anders@chargestorm.se>
---
meta-oe/recipes-graphics/cairo/cairo.inc | 7 ++++++-
meta-oe/recipes-graphics/cairo/cairo_1.10.2.bb | 2 ++
meta-oe/recipes-graphics/cairo/cairomm_1.10.0.bb | 2 ++
3 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/meta-oe/recipes-graphics/cairo/cairo.inc b/meta-oe/recipes-graphics/cairo/cairo.inc
index 6157004..bd38233 100644
--- a/meta-oe/recipes-graphics/cairo/cairo.inc
+++ b/meta-oe/recipes-graphics/cairo/cairo.inc
@@ -1,7 +1,12 @@
SECTION = "libs"
-DEPENDS = "virtual/libx11 pixman libsm libpng fontconfig libxrender glib-2.0"
+X11DEPENDS = "virtual/libx11 libsm libxrender"
+DEPENDS = "pixman libpng fontconfig glib-2.0"
DESCRIPTION = "Cairo graphics library"
LICENSE = "MPL LGPL"
+PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
+ ${@base_contains('DISTRO_FEATURES', 'gtk-directfb', 'directfb', '', d)}"
+PACKAGECONFIG[x11] = "--with-x=yes,--without-x,${X11DEPENDS}"
+PACKAGECONFIG[gtk-directfb] = "--enable-directfb=yes,,directfb"
#check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points
require cairo-fpu.inc
diff --git a/meta-oe/recipes-graphics/cairo/cairo_1.10.2.bb b/meta-oe/recipes-graphics/cairo/cairo_1.10.2.bb
index 9de75ed..e7b65af 100644
--- a/meta-oe/recipes-graphics/cairo/cairo_1.10.2.bb
+++ b/meta-oe/recipes-graphics/cairo/cairo_1.10.2.bb
@@ -2,6 +2,8 @@ require cairo.inc
LIC_FILES_CHKSUM = "file://COPYING;md5=e73e999e0c72b5ac9012424fa157ad77"
+PR = "r1"
+
SRC_URI = "http://cairographics.org/releases/cairo-${PV}.tar.gz;name=cairo \
"
SRC_URI[cairo.md5sum] = "f101a9e88b783337b20b2e26dfd26d5f"
diff --git a/meta-oe/recipes-graphics/cairo/cairomm_1.10.0.bb b/meta-oe/recipes-graphics/cairo/cairomm_1.10.0.bb
index e4fec3c..496a605 100644
--- a/meta-oe/recipes-graphics/cairo/cairomm_1.10.0.bb
+++ b/meta-oe/recipes-graphics/cairo/cairomm_1.10.0.bb
@@ -5,6 +5,8 @@ DESCRIPTION = "C++ bindings for Cairo graphics library"
LICENSE = "LGPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=c46bda00ffbb0ba1dac22f8d087f54d9"
+PR = "r1"
+
DEPENDS = "cairo libsigc++-2.0"
SRC_URI = "http://cairographics.org/releases/cairomm-${PV}.tar.gz;name=archive"
--
1.7.8.3
^ permalink raw reply related [flat|nested] 6+ messages in thread* [meta-oe][PATCH v2 3/3] systemd: conditionally RRECOMMENDS kbd*
2012-01-10 9:00 [meta-oe][PATCH v2 0/3] systemd: package split Anders Darander
2012-01-10 9:00 ` [meta-oe][PATCH v2 1/3] systemd: split out systemd-analyze Anders Darander
2012-01-10 9:00 ` [meta-oe][PATCH v2 2/3] cairo: conditionally enable x11 dependencies Anders Darander
@ 2012-01-10 9:00 ` Anders Darander
2012-01-10 11:19 ` Otavio Salvador
2 siblings, 1 reply; 6+ messages in thread
From: Anders Darander @ 2012-01-10 9:00 UTC (permalink / raw)
To: openembedded-devel
If the machine lacks keyboard support, there is no need for kbd*-packages.
Signed-off-by: Anders Darander <anders@chargestorm.se>
---
meta-oe/recipes-core/systemd/systemd_git.bb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta-oe/recipes-core/systemd/systemd_git.bb b/meta-oe/recipes-core/systemd/systemd_git.bb
index 0fa61a7..7af8357 100644
--- a/meta-oe/recipes-core/systemd/systemd_git.bb
+++ b/meta-oe/recipes-core/systemd/systemd_git.bb
@@ -14,7 +14,7 @@ inherit gitpkgv
PKGV = "v${GITPKGVTAG}"
PV = "git"
-PR = "r8"
+PR = "r9"
inherit useradd pkgconfig autotools vala perlnative
@@ -101,7 +101,7 @@ RDEPENDS_${PN} += "dbus-systemd udev-systemd"
# of blacklist support, so use proper modprobe from module-init-tools
# And pull in the kernel modules mentioned in INSTALL
# swapon -p is also not supported by busybox
-RRECOMMENDS_${PN} += "kbd kbd-consolefonts \
+RRECOMMENDS_${PN} += "${@base_contains("MACHINE_FEATURES", "keyboard", "kbd kbd-consolefonts", "", d)} \
systemd-serialgetty \
util-linux-agetty \
util-linux-swaponoff \
--
1.7.8.3
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [meta-oe][PATCH v2 3/3] systemd: conditionally RRECOMMENDS kbd*
2012-01-10 9:00 ` [meta-oe][PATCH v2 3/3] systemd: conditionally RRECOMMENDS kbd* Anders Darander
@ 2012-01-10 11:19 ` Otavio Salvador
2012-01-10 11:50 ` Anders Darander
0 siblings, 1 reply; 6+ messages in thread
From: Otavio Salvador @ 2012-01-10 11:19 UTC (permalink / raw)
To: openembedded-devel
NACK!
If you use MACHINE_FEATURES it needs to set PACKAGE_ARCH to machine too.
On Tue, Jan 10, 2012 at 07:00, Anders Darander <anders@chargestorm.se>wrote:
> If the machine lacks keyboard support, there is no need for kbd*-packages.
>
> Signed-off-by: Anders Darander <anders@chargestorm.se>
> ---
> meta-oe/recipes-core/systemd/systemd_git.bb | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta-oe/recipes-core/systemd/systemd_git.bbb/meta-oe/recipes-core/systemd/
> systemd_git.bb
> index 0fa61a7..7af8357 100644
> --- a/meta-oe/recipes-core/systemd/systemd_git.bb
> +++ b/meta-oe/recipes-core/systemd/systemd_git.bb
> @@ -14,7 +14,7 @@ inherit gitpkgv
> PKGV = "v${GITPKGVTAG}"
>
> PV = "git"
> -PR = "r8"
> +PR = "r9"
>
> inherit useradd pkgconfig autotools vala perlnative
>
> @@ -101,7 +101,7 @@ RDEPENDS_${PN} += "dbus-systemd udev-systemd"
> # of blacklist support, so use proper modprobe from module-init-tools
> # And pull in the kernel modules mentioned in INSTALL
> # swapon -p is also not supported by busybox
> -RRECOMMENDS_${PN} += "kbd kbd-consolefonts \
> +RRECOMMENDS_${PN} += "${@base_contains("MACHINE_FEATURES", "keyboard",
> "kbd kbd-consolefonts", "", d)} \
> systemd-serialgetty \
> util-linux-agetty \
> util-linux-swaponoff \
> --
> 1.7.8.3
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>
--
Otavio Salvador O.S. Systems
E-mail: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [meta-oe][PATCH v2 3/3] systemd: conditionally RRECOMMENDS kbd*
2012-01-10 11:19 ` Otavio Salvador
@ 2012-01-10 11:50 ` Anders Darander
0 siblings, 0 replies; 6+ messages in thread
From: Anders Darander @ 2012-01-10 11:50 UTC (permalink / raw)
To: openembedded-devel
* Otavio Salvador <otavio@ossystems.com.br> [120110 12:20]:
> NACK!
> If you use MACHINE_FEATURES it needs to set PACKAGE_ARCH to machine too.
Thanks for noticing!
I've just submitted a v3, hopefully I've set the PACKAGE_ARCH in a
correct way. (I tried to grep through meta-oe to see how PACKAGE_ARCH is
set).
Please, let me know if I should have set PACKAGE_ARCH to something else,
or in some other way.
Cheers,
Anders
> On Tue, Jan 10, 2012 at 07:00, Anders Darander <anders@chargestorm.se>wrote:
> > If the machine lacks keyboard support, there is no need for kbd*-packages.
> > Signed-off-by: Anders Darander <anders@chargestorm.se>
> > ---
> > meta-oe/recipes-core/systemd/systemd_git.bb | 4 ++--
> > 1 files changed, 2 insertions(+), 2 deletions(-)
> > diff --git a/meta-oe/recipes-core/systemd/systemd_git.bbb/meta-oe/recipes-core/systemd/
> > systemd_git.bb
> > index 0fa61a7..7af8357 100644
> > --- a/meta-oe/recipes-core/systemd/systemd_git.bb
> > +++ b/meta-oe/recipes-core/systemd/systemd_git.bb
> > @@ -14,7 +14,7 @@ inherit gitpkgv
> > PKGV = "v${GITPKGVTAG}"
> > PV = "git"
> > -PR = "r8"
> > +PR = "r9"
> > inherit useradd pkgconfig autotools vala perlnative
> > @@ -101,7 +101,7 @@ RDEPENDS_${PN} += "dbus-systemd udev-systemd"
> > # of blacklist support, so use proper modprobe from module-init-tools
> > # And pull in the kernel modules mentioned in INSTALL
> > # swapon -p is also not supported by busybox
> > -RRECOMMENDS_${PN} += "kbd kbd-consolefonts \
> > +RRECOMMENDS_${PN} += "${@base_contains("MACHINE_FEATURES", "keyboard",
> > "kbd kbd-consolefonts", "", d)} \
> > systemd-serialgetty \
> > util-linux-agetty \
> > util-linux-swaponoff \
--
Anders Darander
ChargeStorm AB / eStorm AB
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-01-10 11:58 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-10 9:00 [meta-oe][PATCH v2 0/3] systemd: package split Anders Darander
2012-01-10 9:00 ` [meta-oe][PATCH v2 1/3] systemd: split out systemd-analyze Anders Darander
2012-01-10 9:00 ` [meta-oe][PATCH v2 2/3] cairo: conditionally enable x11 dependencies Anders Darander
2012-01-10 9:00 ` [meta-oe][PATCH v2 3/3] systemd: conditionally RRECOMMENDS kbd* Anders Darander
2012-01-10 11:19 ` Otavio Salvador
2012-01-10 11:50 ` Anders Darander
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.