Patchwork [2/2] udev: Split out consolekit and udev-acl

login
register
mail settings
Submitter Paul Eggleton
Date Nov. 1, 2011, 4:14 p.m.
Message ID <5b7c51578822d870d425fc2bf5bb282c553af292.1320163967.git.paul.eggleton@linux.intel.com>
Download mbox | patch
Permalink /patch/14137/
State Accepted
Commit 0c905ba71a8bf0fcd96ccaaa27faca00830ba8bb
Headers show

Comments

Paul Eggleton - Nov. 1, 2011, 4:14 p.m.
From: Holger Hans Peter Freyther <zecke@selfish.org>

This can safe another megabyte on the tar.bz2 of the minimal
image. udev-acl is linking to glibc which will pull in libglib,
libgio, libgthread, libgmodule, libgobject.

2.0M 2011-07-02 01:57 after.tar.bz2
3.0M 2011-07-02 01:52 before.tar.bz2

Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
---
 meta/recipes-core/udev/udev-new.inc |    6 ++++++
 meta/recipes-core/udev/udev_164.bb  |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)
Koen Kooi - Nov. 1, 2011, 4:31 p.m.
Recent udevs removed udev-acl and ck is on its way out as well. For more changes do a git log on the meta-oe udev dir :)

Op 1 nov. 2011 om 17:14 heeft Paul Eggleton <paul.eggleton@linux.intel.com> het volgende geschreven:

> From: Holger Hans Peter Freyther <zecke@selfish.org>
> 
> This can safe another megabyte on the tar.bz2 of the minimal
> image. udev-acl is linking to glibc which will pull in libglib,
> libgio, libgthread, libgmodule, libgobject.
> 
> 2.0M 2011-07-02 01:57 after.tar.bz2
> 3.0M 2011-07-02 01:52 before.tar.bz2
> 
> Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
> ---
> meta/recipes-core/udev/udev-new.inc |    6 ++++++
> meta/recipes-core/udev/udev_164.bb  |    2 +-
> 2 files changed, 7 insertions(+), 1 deletions(-)
> 
> diff --git a/meta/recipes-core/udev/udev-new.inc b/meta/recipes-core/udev/udev-new.inc
> index 0247a83..eac7903 100644
> --- a/meta/recipes-core/udev/udev-new.inc
> +++ b/meta/recipes-core/udev/udev-new.inc
> @@ -35,6 +35,7 @@ libexecdir = "${base_libdir}/udev"
> EXTRA_OECONF = "--disable-introspection --with-rootlibdir=${base_libdir} \
>                 --with-pci-ids-path=${datadir}/pci.ids"
> 
> +PACKAGES =+ "udev-acl udev-consolekit"
> PACKAGES =+ "udev-cache libudev libudev-dev libudev-dbg"
> PACKAGES =+ "libgudev libgudev-dev libgudev-dbg"
> 
> @@ -57,6 +58,11 @@ FILES_libgudev-dev = "${includedir}/gudev* ${libdir}/libgudev*.so ${libdir}/libg
>                      ${libdir}/libgudev*.a ${libdir}/pkgconfig/gudev*.pc"
> FILES_udev-cache = "${sysconfdir}/init.d/udev-cache"
> 
> +FILES_udev-acl = "${base_libdir}/udev/udev-acl ${base_libdir}/udev/rules.d/70-acl.rules"
> +
> +RDEPENDS_udev-consolekit += "udev-acl"
> +FILES_udev-consolekit = "${libdir}/ConsoleKit"
> +
> do_install_append () {
>    install -d ${D}${sysconfdir}/init.d
>    install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev
> diff --git a/meta/recipes-core/udev/udev_164.bb b/meta/recipes-core/udev/udev_164.bb
> index 689b5fd..7cbe4d8 100644
> --- a/meta/recipes-core/udev/udev_164.bb
> +++ b/meta/recipes-core/udev/udev_164.bb
> @@ -1,6 +1,6 @@
> include udev-new.inc
> 
> -PR = "r5"
> +PR = "r6"
> 
> SRC_URI += "file://udev-166-v4l1-1.patch"
> 
> -- 
> 1.7.5.4
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Patch

diff --git a/meta/recipes-core/udev/udev-new.inc b/meta/recipes-core/udev/udev-new.inc
index 0247a83..eac7903 100644
--- a/meta/recipes-core/udev/udev-new.inc
+++ b/meta/recipes-core/udev/udev-new.inc
@@ -35,6 +35,7 @@  libexecdir = "${base_libdir}/udev"
 EXTRA_OECONF = "--disable-introspection --with-rootlibdir=${base_libdir} \
                 --with-pci-ids-path=${datadir}/pci.ids"
 
+PACKAGES =+ "udev-acl udev-consolekit"
 PACKAGES =+ "udev-cache libudev libudev-dev libudev-dbg"
 PACKAGES =+ "libgudev libgudev-dev libgudev-dbg"
 
@@ -57,6 +58,11 @@  FILES_libgudev-dev = "${includedir}/gudev* ${libdir}/libgudev*.so ${libdir}/libg
                      ${libdir}/libgudev*.a ${libdir}/pkgconfig/gudev*.pc"
 FILES_udev-cache = "${sysconfdir}/init.d/udev-cache"
 
+FILES_udev-acl = "${base_libdir}/udev/udev-acl ${base_libdir}/udev/rules.d/70-acl.rules"
+
+RDEPENDS_udev-consolekit += "udev-acl"
+FILES_udev-consolekit = "${libdir}/ConsoleKit"
+
 do_install_append () {
 	install -d ${D}${sysconfdir}/init.d
 	install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/udev
diff --git a/meta/recipes-core/udev/udev_164.bb b/meta/recipes-core/udev/udev_164.bb
index 689b5fd..7cbe4d8 100644
--- a/meta/recipes-core/udev/udev_164.bb
+++ b/meta/recipes-core/udev/udev_164.bb
@@ -1,6 +1,6 @@ 
 include udev-new.inc
 
-PR = "r5"
+PR = "r6"
 
 SRC_URI += "file://udev-166-v4l1-1.patch"