systemd: split out libraries from ${PN}
--- meta-oe/recipes-core/systemd/systemd_git.bb | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-)
meta-oe/recipes-core/systemd/systemd_git.bb +12 -2
@@ -14,7 +14,7 @@ inherit gitpkgv PKGV = "v${GITPKGVTAG}" PV = "git" -PR = "r15" +PR = "r16" inherit useradd pkgconfig autotools vala perlnative
@@ -59,6 +59,11 @@ do_install() { ln -s ${base_bindir}/systemd ${D}/init } +python populate_packages_prepend (){ + systemdlibdir = d.getVar("base_libdir", True) + do_split_packages(d, systemdlibdir, '^lib(.*)\.so\.*', 'lib%s', 'Systemd %s library', extra_depends='', allow_links=True) +} + PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze" USERADD_PACKAGES = "${PN}"
@@ -79,7 +84,7 @@ FILES_${PN}-vconsole-setup = "${base_libdir}/systemd/systemd-vconsole-setup \ RRECOMMENDS_$PN}-vconsole-setup = "kbd kbd-consolefonts" -FILES_${PN} += " ${base_bindir}/* \ +FILES_${PN} = " ${base_bindir}/* \ ${datadir}/dbus-1/services \ ${datadir}/dbus-1/system-services \ ${datadir}/polkit-1 \
@@ -93,6 +98,11 @@ FILES_${PN} += " ${base_bindir}/* \ ${bindir}/systemd* \ ${libdir}/tmpfiles.d/*.conf \ ${libdir}/systemd \ + ${libdir}/binfmt.d \ + ${libdir}/modules-load.d \ + ${libdir}/sysctl.d \ + ${localstatedir} \ + ${libexecdir} \ " FILES_${PN}-dbg += "${base_libdir}/systemd/.debug ${base_libdir}/systemd/*/.debug ${base_libdir}/security/.debug/"
Signature · 1 line
1.7.2.5
Quoted 1 line · Koen Kooi
...
@@ -93,6 +98,11 @@ FILES_${PN} += " ${base_bindir}/* \
meta-oe/recipes-core/systemd/systemd_git.bb FILES_${PN} += " ${base_bindir}/* \ · line 106
Quoted 10 lines
${bindir}/systemd* \ ${libdir}/tmpfiles.d/*.conf \ ${libdir}/systemd \meta-oe/recipes-core/systemd/systemd_git.bb +5
-0+ ${libdir}/binfmt.d \ + ${libdir}/modules-load.d \ + ${libdir}/sysctl.d \ + ${localstatedir} \ + ${libexecdir} \ "
Those changes seems to be unrelated. Can you split it in two patches?
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Op 8 feb. 2012, om 17:24 heeft Otavio Salvador het volgende geschreven:
Quoted 13 lines · Koen Kooi
...
meta-oe/recipes-core/systemd/systemd_git.bb +5
-0@@ -93,6 +98,11 @@ FILES_${PN} += " ${base_bindir}/* \ ${bindir}/systemd* \ ${libdir}/tmpfiles.d/*.conf \ ${libdir}/systemd \ + ${libdir}/binfmt.d \ + ${libdir}/modules-load.d \ + ${libdir}/sysctl.d \ + ${localstatedir} \ + ${libexecdir} \ "
Quoted 1 line
Those changes seems to be unrelated. Can you split it in two patches?
It's not unrelated, FILES_${PN} changed from += to =, so we need to mop up the stray files.
Quoted 9 lines · Koen Kooi
...
+ ${libdir}/binfmt.d \
meta-oe/recipes-core/systemd/systemd_git.bb FILES_${PN} += " ${base_bindir}/* \ · line 103
Quoted 2 lines
meta-oe/recipes-core/systemd/systemd_git.bb +2
-0+ ${libdir}/modules-load.d \ + ${libdir}/sysctl.d \It's not unrelated, FILES_${PN} changed from += to =, so we need to mop up the stray files.
Those are new files being added, not ones handled by standard FILES_${PN} matching so += to = doesn't justify this.
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Op 8 feb. 2012, om 17:34 heeft Otavio Salvador het volgende geschreven:
Quoted 9 lines · Koen Kooi
...
meta-oe/recipes-core/systemd/systemd_git.bb FILES_${PN} += " ${base_bindir}/* \ · line 103
Quoted 3 lines
meta-oe/recipes-core/systemd/systemd_git.bb +3
-0+ ${libdir}/binfmt.d \ + ${libdir}/modules-load.d \ + ${libdir}/sysctl.d \It's not unrelated, FILES_${PN} changed from += to =, so we need to mop up the stray files.
Those are new files being added, not ones handled by standard FILES_${PN} matching so += to = doesn't justify this.
Those 3 are indeed not in ${PN}, but does that really need a seperate patch?
Quoted 2 lines · Koen Kooi
Those 3 are indeed not in ${PN}, but does that really need a seperate patch?
This fixes another thing that is not cited on the commit log :-( I'd prefer it to be explicited on the commit log or another commit for it.
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Martin Jansa
Acked-byQuoted 1 line · Koen Kooi
Signed-off-by Koen Kooi <[email protected]>
Quoted 58 lines
--- meta-oe/recipes-core/systemd/systemd_git.bb | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-)meta-oe/recipes-core/systemd/systemd_git.bb +12
-2@@ -14,7 +14,7 @@ inherit gitpkgv PKGV = "v${GITPKGVTAG}" PV = "git" -PR = "r15" +PR = "r16" inherit useradd pkgconfig autotools vala perlnative@@ -59,6 +59,11 @@ do_install() { ln -s ${base_bindir}/systemd ${D}/init } +python populate_packages_prepend (){ + systemdlibdir = d.getVar("base_libdir", True) + do_split_packages(d, systemdlibdir, '^lib(.*)\.so\.*', 'lib%s', 'Systemd %s library', extra_depends='', allow_links=True) +} + PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze" USERADD_PACKAGES = "${PN}"@@ -79,7 +84,7 @@ FILES_${PN}-vconsole-setup = "${base_libdir}/systemd/systemd-vconsole-setup \ RRECOMMENDS_$PN}-vconsole-setup = "kbd kbd-consolefonts" -FILES_${PN} += " ${base_bindir}/* \ +FILES_${PN} = " ${base_bindir}/* \ ${datadir}/dbus-1/services \ ${datadir}/dbus-1/system-services \ ${datadir}/polkit-1 \@@ -93,6 +98,11 @@ FILES_${PN} += " ${base_bindir}/* \ ${bindir}/systemd* \ ${libdir}/tmpfiles.d/*.conf \ ${libdir}/systemd \ + ${libdir}/binfmt.d \ + ${libdir}/modules-load.d \ + ${libdir}/sysctl.d \ + ${localstatedir} \ + ${libexecdir} \ " FILES_${PN}-dbg += "${base_libdir}/systemd/.debug ${base_libdir}/systemd/*/.debug ${base_libdir}/security/.debug/"Signature · 7 lines
1.7.2.5 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Martin Jansa
Acked-byQuoted 1 line · Koen Kooi
Signed-off-by Koen Kooi <[email protected]>
I'm using this for some time in meta-oe-contrib/shr
Quoted 58 lines
--- meta-oe/recipes-core/systemd/systemd_git.bb | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-)meta-oe/recipes-core/systemd/systemd_git.bb +12
-2@@ -14,7 +14,7 @@ inherit gitpkgv PKGV = "v${GITPKGVTAG}" PV = "git" -PR = "r15" +PR = "r16" inherit useradd pkgconfig autotools vala perlnative@@ -59,6 +59,11 @@ do_install() { ln -s ${base_bindir}/systemd ${D}/init } +python populate_packages_prepend (){ + systemdlibdir = d.getVar("base_libdir", True) + do_split_packages(d, systemdlibdir, '^lib(.*)\.so\.*', 'lib%s', 'Systemd %s library', extra_depends='', allow_links=True) +} + PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze" USERADD_PACKAGES = "${PN}"@@ -79,7 +84,7 @@ FILES_${PN}-vconsole-setup = "${base_libdir}/systemd/systemd-vconsole-setup \ RRECOMMENDS_$PN}-vconsole-setup = "kbd kbd-consolefonts" -FILES_${PN} += " ${base_bindir}/* \ +FILES_${PN} = " ${base_bindir}/* \ ${datadir}/dbus-1/services \ ${datadir}/dbus-1/system-services \ ${datadir}/polkit-1 \@@ -93,6 +98,11 @@ FILES_${PN} += " ${base_bindir}/* \ ${bindir}/systemd* \ ${libdir}/tmpfiles.d/*.conf \ ${libdir}/systemd \ + ${libdir}/binfmt.d \ + ${libdir}/modules-load.d \ + ${libdir}/sysctl.d \ + ${localstatedir} \ + ${libexecdir} \ " FILES_${PN}-dbg += "${base_libdir}/systemd/.debug ${base_libdir}/systemd/*/.debug ${base_libdir}/security/.debug/"Signature · 7 lines
1.7.2.5 _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]