* [PATCH v6] systemd: added python-systemd package generation.
@ 2013-04-23 16:03 Yevhen Kyriukha
0 siblings, 0 replies; 5+ messages in thread
From: Yevhen Kyriukha @ 2013-04-23 16:03 UTC (permalink / raw)
To: openembedded-core; +Cc: Yevhen Kyriukha
---
meta/recipes-core/systemd/systemd_199.bb | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/meta/recipes-core/systemd/systemd_199.bb b/meta/recipes-core/systemd/systemd_199.bb
index 5240443..6a4e1a9 100644
--- a/meta/recipes-core/systemd/systemd_199.bb
+++ b/meta/recipes-core/systemd/systemd_199.bb
@@ -16,7 +16,13 @@ DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
SECTION = "base/shell"
-inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d update-alternatives
+inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d update-alternatives pythonnative python-dir
+
+# need to export these variables for python-config to work
+export BUILD_SYS
+export HOST_SYS
+export STAGING_INCDIR
+export STAGING_LIBDIR
SRC_URI = "http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.xz \
file://touchscreen.rules \
@@ -51,6 +57,8 @@ PACKAGECONFIG ??= "xz"
PACKAGECONFIG[gcrypt] = "--enable-gcrypt,--disable-gcrypt,libgcrypt"
# Compress the journal
PACKAGECONFIG[xz] = "--enable-xz,--disable-xz,xz"
+# Use python-systemd
+PACKAGECONFIG[python] = "--with-python,--without-python,python"
CACHED_CONFIGUREVARS = "ac_cv_path_KILL=${base_bindir}/kill"
@@ -65,7 +73,6 @@ EXTRA_OECONF = " --with-rootprefix=${base_prefix} \
--disable-tcpwrap \
--enable-split-usr \
--disable-microhttpd \
- --without-python \
--with-sysvrcnd-path=${sysconfdir} \
--with-firmware-path=/lib/firmware \
ac_cv_path_KILL=${base_bindir}/kill \
@@ -89,6 +96,8 @@ do_install() {
# provided by a seperate recipe
rm ${D}${systemd_unitdir}/system/serial-getty* -f
+ rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/systemd/*.la
+
# provide support for initramfs
ln -s ${base_sbindir}/systemd/systemd ${D}/init
ln -s ${base_sbindir}/systemd/systemd-udevd ${D}/${base_sbindir}/udev/udevd
@@ -119,7 +128,7 @@ python populate_packages_prepend (){
}
PACKAGES_DYNAMIC += "^lib(udev|gudev|systemd).*"
-PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze ${PN}-kernel-install"
+PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze ${PN}-kernel-install python-${PN}"
USERADD_PACKAGES = "${PN}"
GROUPADD_PARAM_${PN} = "-r lock; -r systemd-journal"
@@ -129,6 +138,9 @@ FILES_${PN}-analyze = "${bindir}/systemd-analyze"
FILES_${PN}-initramfs = "/init"
RDEPENDS_${PN}-initramfs = "${PN}"
+FILES_python-${PN} = "${PYTHON_SITEPACKAGES_DIR}/systemd/*.py* ${PYTHON_SITEPACKAGES_DIR}/systemd/*.so"
+RDEPENDS_python-${PN} = "python-core python-datetime python-logging python-syslog"
+
FILES_${PN}-gui = "${bindir}/systemadm"
FILES_${PN}-vconsole-setup = "${systemd_unitdir}/systemd-vconsole-setup \
@@ -189,7 +201,7 @@ FILES_${PN} = " ${base_bindir}/* \
/lib/udev/rules.d/99-systemd.rules \
"
-FILES_${PN}-dbg += "${systemd_unitdir}/.debug ${systemd_unitdir}/*/.debug ${base_libdir}/security/.debug/ ${base_sbindir}/systemd/.debug ${base_sbindir}/systemd/system-generators/.debug ${base_sbindir}/udev/.debug"
+FILES_${PN}-dbg += "${systemd_unitdir}/.debug ${systemd_unitdir}/*/.debug ${base_libdir}/security/.debug/ ${base_sbindir}/systemd/.debug ${base_sbindir}/systemd/system-generators/.debug ${base_sbindir}/udev/.debug ${PYTHON_SITEPACKAGES_DIR}/systemd/.debug"
FILES_${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.systemd"
RDEPENDS_${PN} += "dbus"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v6] systemd: added python-systemd package generation.
@ 2013-06-23 1:36 Yevhen Kyriukha
2013-06-23 6:27 ` Martin Jansa
0 siblings, 1 reply; 5+ messages in thread
From: Yevhen Kyriukha @ 2013-06-23 1:36 UTC (permalink / raw)
To: openembedded-core; +Cc: Yevhen Kyriukha
---
meta/recipes-core/systemd/systemd_204.bb | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/meta/recipes-core/systemd/systemd_204.bb b/meta/recipes-core/systemd/systemd_204.bb
index b8b1290..ea0cdd2 100644
--- a/meta/recipes-core/systemd/systemd_204.bb
+++ b/meta/recipes-core/systemd/systemd_204.bb
@@ -10,9 +10,15 @@ PROVIDES = "udev"
PE = "1"
-DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native acl readline dbus libcap libcgroup glib-2.0 qemu-native util-linux"
+DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native acl readline dbus libcap libcgroup glib-2.0 qemu-native util-linux pythonnative python-dir"
DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
+# need to export these variables for python-config to work
+export BUILD_SYS
+export HOST_SYS
+export STAGING_INCDIR
+export STAGING_LIBDIR
+
SECTION = "base/shell"
inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d update-alternatives qemu
@@ -51,6 +57,8 @@ DEPENDS += "libgcrypt"
# Compress the journal
PACKAGECONFIG[xz] = "--enable-xz,--disable-xz,xz"
PACKAGECONFIG[tcp-wrappers] = "--enable-tcpwrap,--disable-tcpwrap,tcp-wrappers"
+# Use python-systemd
+PACKAGECONFIG[python] = "--with-python,--without-python,python"
CACHED_CONFIGUREVARS = "ac_cv_path_KILL=${base_bindir}/kill"
@@ -71,7 +79,6 @@ EXTRA_OECONF = " --with-rootprefix=${rootprefix} \
--disable-tcpwrap \
--enable-split-usr \
--disable-microhttpd \
- --without-python \
--with-sysvrcnd-path=${sysconfdir} \
--with-firmware-path=/lib/firmware \
ac_cv_path_KILL=${base_bindir}/kill \
@@ -93,6 +100,8 @@ do_install() {
# Provided by a separate recipe
rm ${D}${systemd_unitdir}/system/serial-getty* -f
+ rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/systemd/*.la
+
# Provide support for initramfs
ln -s ${rootlibexecdir}/systemd/systemd ${D}/init
ln -s ${rootlibexecdir}/systemd/systemd-udevd ${D}/${base_sbindir}/udevd
@@ -121,7 +130,7 @@ python populate_packages_prepend (){
}
PACKAGES_DYNAMIC += "^lib(udev|gudev|systemd).*"
-PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze ${PN}-kernel-install"
+PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze ${PN}-kernel-install python-${PN}"
USERADD_PACKAGES = "${PN}"
GROUPADD_PARAM_${PN} = "-r lock; -r systemd-journal"
@@ -131,6 +140,9 @@ FILES_${PN}-analyze = "${bindir}/systemd-analyze"
FILES_${PN}-initramfs = "/init"
RDEPENDS_${PN}-initramfs = "${PN}"
+FILES_python-${PN} = "${PYTHON_SITEPACKAGES_DIR}/systemd/*.py* ${PYTHON_SITEPACKAGES_DIR}/systemd/*.so"
+RDEPENDS_python-${PN} = "python-core python-datetime python-logging python-syslog"
+
FILES_${PN}-gui = "${bindir}/systemadm"
FILES_${PN}-vconsole-setup = "${rootlibexecdir}/systemd/systemd-vconsole-setup \
@@ -187,7 +199,7 @@ FILES_${PN} = " ${base_bindir}/* \
/lib/udev/rules.d/99-systemd.rules \
"
-FILES_${PN}-dbg += "${rootlibdir}/.debug ${systemd_unitdir}/.debug ${systemd_unitdir}/*/.debug ${base_libdir}/security/.debug/"
+FILES_${PN}-dbg += "${rootlibdir}/.debug ${systemd_unitdir}/.debug ${systemd_unitdir}/*/.debug ${base_libdir}/security/.debug/ ${PYTHON_SITEPACKAGES_DIR}/systemd/.debug"
FILES_${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.systemd"
RDEPENDS_${PN} += "dbus util-linux-mount"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v6] systemd: added python-systemd package generation.
2013-06-23 1:36 [PATCH v6] systemd: added python-systemd package generation Yevhen Kyriukha
@ 2013-06-23 6:27 ` Martin Jansa
2013-06-23 10:21 ` Yevhen Kyriukha
0 siblings, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2013-06-23 6:27 UTC (permalink / raw)
To: Yevhen Kyriukha; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 4537 bytes --]
-DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native
acl readline dbus libcap libcgroup glib-2.0 qemu-native util-linux"
+DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native
acl readline dbus libcap libcgroup glib-2.0 qemu-native util-linux
pythonnative python-dir"
This doesn't look right, did you want to inherit them?
On Sun, Jun 23, 2013 at 3:36 AM, Yevhen Kyriukha <kirgene@gmail.com> wrote:
> ---
> meta/recipes-core/systemd/systemd_204.bb | 20 ++++++++++++++++----
> 1 file changed, 16 insertions(+), 4 deletions(-)
>
> diff --git a/meta/recipes-core/systemd/systemd_204.bbb/meta/recipes-core/systemd/
> systemd_204.bb
> index b8b1290..ea0cdd2 100644
> --- a/meta/recipes-core/systemd/systemd_204.bb
> +++ b/meta/recipes-core/systemd/systemd_204.bb
> @@ -10,9 +10,15 @@ PROVIDES = "udev"
>
> PE = "1"
>
> -DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native
> acl readline dbus libcap libcgroup glib-2.0 qemu-native util-linux"
> +DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native
> acl readline dbus libcap libcgroup glib-2.0 qemu-native util-linux
> pythonnative python-dir"
> DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
>
> +# need to export these variables for python-config to work
> +export BUILD_SYS
> +export HOST_SYS
> +export STAGING_INCDIR
> +export STAGING_LIBDIR
> +
> SECTION = "base/shell"
>
> inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d
> update-alternatives qemu
> @@ -51,6 +57,8 @@ DEPENDS += "libgcrypt"
> # Compress the journal
> PACKAGECONFIG[xz] = "--enable-xz,--disable-xz,xz"
> PACKAGECONFIG[tcp-wrappers] =
> "--enable-tcpwrap,--disable-tcpwrap,tcp-wrappers"
> +# Use python-systemd
> +PACKAGECONFIG[python] = "--with-python,--without-python,python"
>
> CACHED_CONFIGUREVARS = "ac_cv_path_KILL=${base_bindir}/kill"
>
> @@ -71,7 +79,6 @@ EXTRA_OECONF = " --with-rootprefix=${rootprefix} \
> --disable-tcpwrap \
> --enable-split-usr \
> --disable-microhttpd \
> - --without-python \
> --with-sysvrcnd-path=${sysconfdir} \
> --with-firmware-path=/lib/firmware \
> ac_cv_path_KILL=${base_bindir}/kill \
> @@ -93,6 +100,8 @@ do_install() {
> # Provided by a separate recipe
> rm ${D}${systemd_unitdir}/system/serial-getty* -f
>
> + rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/systemd/*.la
> +
> # Provide support for initramfs
> ln -s ${rootlibexecdir}/systemd/systemd ${D}/init
> ln -s ${rootlibexecdir}/systemd/systemd-udevd
> ${D}/${base_sbindir}/udevd
> @@ -121,7 +130,7 @@ python populate_packages_prepend (){
> }
> PACKAGES_DYNAMIC += "^lib(udev|gudev|systemd).*"
>
> -PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze
> ${PN}-kernel-install"
> +PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze
> ${PN}-kernel-install python-${PN}"
>
> USERADD_PACKAGES = "${PN}"
> GROUPADD_PARAM_${PN} = "-r lock; -r systemd-journal"
> @@ -131,6 +140,9 @@ FILES_${PN}-analyze = "${bindir}/systemd-analyze"
> FILES_${PN}-initramfs = "/init"
> RDEPENDS_${PN}-initramfs = "${PN}"
>
> +FILES_python-${PN} = "${PYTHON_SITEPACKAGES_DIR}/systemd/*.py*
> ${PYTHON_SITEPACKAGES_DIR}/systemd/*.so"
> +RDEPENDS_python-${PN} = "python-core python-datetime python-logging
> python-syslog"
> +
> FILES_${PN}-gui = "${bindir}/systemadm"
>
> FILES_${PN}-vconsole-setup =
> "${rootlibexecdir}/systemd/systemd-vconsole-setup \
> @@ -187,7 +199,7 @@ FILES_${PN} = " ${base_bindir}/* \
> /lib/udev/rules.d/99-systemd.rules \
> "
>
> -FILES_${PN}-dbg += "${rootlibdir}/.debug ${systemd_unitdir}/.debug
> ${systemd_unitdir}/*/.debug ${base_libdir}/security/.debug/"
> +FILES_${PN}-dbg += "${rootlibdir}/.debug ${systemd_unitdir}/.debug
> ${systemd_unitdir}/*/.debug ${base_libdir}/security/.debug/
> ${PYTHON_SITEPACKAGES_DIR}/systemd/.debug"
> FILES_${PN}-dev += "${base_libdir}/security/*.la
> ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.systemd"
>
> RDEPENDS_${PN} += "dbus util-linux-mount"
> --
> 1.7.9.5
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
[-- Attachment #2: Type: text/html, Size: 5950 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v6] systemd: added python-systemd package generation.
2013-06-23 6:27 ` Martin Jansa
@ 2013-06-23 10:21 ` Yevhen Kyriukha
2013-06-24 8:35 ` Martin Jansa
0 siblings, 1 reply; 5+ messages in thread
From: Yevhen Kyriukha @ 2013-06-23 10:21 UTC (permalink / raw)
To: Martin Jansa; +Cc: Patches and discussions about the oe-core layer
Oh, yes.
You should move "pythonnative python-dir" from DEPENDS and append to inherit.
Best regards,
Yevhen
2013/6/23 Martin Jansa <martin.jansa@gmail.com>:
> -DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native
> acl readline dbus libcap libcgroup glib-2.0 qemu-native util-linux"
> +DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native
> acl readline dbus libcap libcgroup glib-2.0 qemu-native util-linux
> pythonnative python-dir"
>
> This doesn't look right, did you want to inherit them?
>
>
> On Sun, Jun 23, 2013 at 3:36 AM, Yevhen Kyriukha <kirgene@gmail.com> wrote:
>>
>> ---
>> meta/recipes-core/systemd/systemd_204.bb | 20 ++++++++++++++++----
>> 1 file changed, 16 insertions(+), 4 deletions(-)
>>
>> diff --git a/meta/recipes-core/systemd/systemd_204.bb
>> b/meta/recipes-core/systemd/systemd_204.bb
>> index b8b1290..ea0cdd2 100644
>> --- a/meta/recipes-core/systemd/systemd_204.bb
>> +++ b/meta/recipes-core/systemd/systemd_204.bb
>> @@ -10,9 +10,15 @@ PROVIDES = "udev"
>>
>> PE = "1"
>>
>> -DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native
>> acl readline dbus libcap libcgroup glib-2.0 qemu-native util-linux"
>> +DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native
>> acl readline dbus libcap libcgroup glib-2.0 qemu-native util-linux
>> pythonnative python-dir"
>> DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
>>
>> +# need to export these variables for python-config to work
>> +export BUILD_SYS
>> +export HOST_SYS
>> +export STAGING_INCDIR
>> +export STAGING_LIBDIR
>> +
>> SECTION = "base/shell"
>>
>> inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d
>> update-alternatives qemu
>> @@ -51,6 +57,8 @@ DEPENDS += "libgcrypt"
>> # Compress the journal
>> PACKAGECONFIG[xz] = "--enable-xz,--disable-xz,xz"
>> PACKAGECONFIG[tcp-wrappers] =
>> "--enable-tcpwrap,--disable-tcpwrap,tcp-wrappers"
>> +# Use python-systemd
>> +PACKAGECONFIG[python] = "--with-python,--without-python,python"
>>
>> CACHED_CONFIGUREVARS = "ac_cv_path_KILL=${base_bindir}/kill"
>>
>> @@ -71,7 +79,6 @@ EXTRA_OECONF = " --with-rootprefix=${rootprefix} \
>> --disable-tcpwrap \
>> --enable-split-usr \
>> --disable-microhttpd \
>> - --without-python \
>> --with-sysvrcnd-path=${sysconfdir} \
>> --with-firmware-path=/lib/firmware \
>> ac_cv_path_KILL=${base_bindir}/kill \
>> @@ -93,6 +100,8 @@ do_install() {
>> # Provided by a separate recipe
>> rm ${D}${systemd_unitdir}/system/serial-getty* -f
>>
>> + rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/systemd/*.la
>> +
>> # Provide support for initramfs
>> ln -s ${rootlibexecdir}/systemd/systemd ${D}/init
>> ln -s ${rootlibexecdir}/systemd/systemd-udevd
>> ${D}/${base_sbindir}/udevd
>> @@ -121,7 +130,7 @@ python populate_packages_prepend (){
>> }
>> PACKAGES_DYNAMIC += "^lib(udev|gudev|systemd).*"
>>
>> -PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze
>> ${PN}-kernel-install"
>> +PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze
>> ${PN}-kernel-install python-${PN}"
>>
>> USERADD_PACKAGES = "${PN}"
>> GROUPADD_PARAM_${PN} = "-r lock; -r systemd-journal"
>> @@ -131,6 +140,9 @@ FILES_${PN}-analyze = "${bindir}/systemd-analyze"
>> FILES_${PN}-initramfs = "/init"
>> RDEPENDS_${PN}-initramfs = "${PN}"
>>
>> +FILES_python-${PN} = "${PYTHON_SITEPACKAGES_DIR}/systemd/*.py*
>> ${PYTHON_SITEPACKAGES_DIR}/systemd/*.so"
>> +RDEPENDS_python-${PN} = "python-core python-datetime python-logging
>> python-syslog"
>> +
>> FILES_${PN}-gui = "${bindir}/systemadm"
>>
>> FILES_${PN}-vconsole-setup =
>> "${rootlibexecdir}/systemd/systemd-vconsole-setup \
>> @@ -187,7 +199,7 @@ FILES_${PN} = " ${base_bindir}/* \
>> /lib/udev/rules.d/99-systemd.rules \
>> "
>>
>> -FILES_${PN}-dbg += "${rootlibdir}/.debug ${systemd_unitdir}/.debug
>> ${systemd_unitdir}/*/.debug ${base_libdir}/security/.debug/"
>> +FILES_${PN}-dbg += "${rootlibdir}/.debug ${systemd_unitdir}/.debug
>> ${systemd_unitdir}/*/.debug ${base_libdir}/security/.debug/
>> ${PYTHON_SITEPACKAGES_DIR}/systemd/.debug"
>> FILES_${PN}-dev += "${base_libdir}/security/*.la
>> ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.systemd"
>>
>> RDEPENDS_${PN} += "dbus util-linux-mount"
>> --
>> 1.7.9.5
>>
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v6] systemd: added python-systemd package generation.
2013-06-23 10:21 ` Yevhen Kyriukha
@ 2013-06-24 8:35 ` Martin Jansa
0 siblings, 0 replies; 5+ messages in thread
From: Martin Jansa @ 2013-06-24 8:35 UTC (permalink / raw)
To: Yevhen Kyriukha; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 5207 bytes --]
On Sun, Jun 23, 2013 at 01:21:07PM +0300, Yevhen Kyriukha wrote:
> Oh, yes.
> You should move "pythonnative python-dir" from DEPENDS and append to inherit.
me? it's your patch, please send v7.
> 2013/6/23 Martin Jansa <martin.jansa@gmail.com>:
> > -DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native
> > acl readline dbus libcap libcgroup glib-2.0 qemu-native util-linux"
> > +DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native
> > acl readline dbus libcap libcgroup glib-2.0 qemu-native util-linux
> > pythonnative python-dir"
> >
> > This doesn't look right, did you want to inherit them?
> >
> >
> > On Sun, Jun 23, 2013 at 3:36 AM, Yevhen Kyriukha <kirgene@gmail.com> wrote:
> >>
> >> ---
> >> meta/recipes-core/systemd/systemd_204.bb | 20 ++++++++++++++++----
> >> 1 file changed, 16 insertions(+), 4 deletions(-)
> >>
> >> diff --git a/meta/recipes-core/systemd/systemd_204.bb
> >> b/meta/recipes-core/systemd/systemd_204.bb
> >> index b8b1290..ea0cdd2 100644
> >> --- a/meta/recipes-core/systemd/systemd_204.bb
> >> +++ b/meta/recipes-core/systemd/systemd_204.bb
> >> @@ -10,9 +10,15 @@ PROVIDES = "udev"
> >>
> >> PE = "1"
> >>
> >> -DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native
> >> acl readline dbus libcap libcgroup glib-2.0 qemu-native util-linux"
> >> +DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native
> >> acl readline dbus libcap libcgroup glib-2.0 qemu-native util-linux
> >> pythonnative python-dir"
> >> DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
> >>
> >> +# need to export these variables for python-config to work
> >> +export BUILD_SYS
> >> +export HOST_SYS
> >> +export STAGING_INCDIR
> >> +export STAGING_LIBDIR
> >> +
> >> SECTION = "base/shell"
> >>
> >> inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d
> >> update-alternatives qemu
> >> @@ -51,6 +57,8 @@ DEPENDS += "libgcrypt"
> >> # Compress the journal
> >> PACKAGECONFIG[xz] = "--enable-xz,--disable-xz,xz"
> >> PACKAGECONFIG[tcp-wrappers] =
> >> "--enable-tcpwrap,--disable-tcpwrap,tcp-wrappers"
> >> +# Use python-systemd
> >> +PACKAGECONFIG[python] = "--with-python,--without-python,python"
> >>
> >> CACHED_CONFIGUREVARS = "ac_cv_path_KILL=${base_bindir}/kill"
> >>
> >> @@ -71,7 +79,6 @@ EXTRA_OECONF = " --with-rootprefix=${rootprefix} \
> >> --disable-tcpwrap \
> >> --enable-split-usr \
> >> --disable-microhttpd \
> >> - --without-python \
> >> --with-sysvrcnd-path=${sysconfdir} \
> >> --with-firmware-path=/lib/firmware \
> >> ac_cv_path_KILL=${base_bindir}/kill \
> >> @@ -93,6 +100,8 @@ do_install() {
> >> # Provided by a separate recipe
> >> rm ${D}${systemd_unitdir}/system/serial-getty* -f
> >>
> >> + rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/systemd/*.la
> >> +
> >> # Provide support for initramfs
> >> ln -s ${rootlibexecdir}/systemd/systemd ${D}/init
> >> ln -s ${rootlibexecdir}/systemd/systemd-udevd
> >> ${D}/${base_sbindir}/udevd
> >> @@ -121,7 +130,7 @@ python populate_packages_prepend (){
> >> }
> >> PACKAGES_DYNAMIC += "^lib(udev|gudev|systemd).*"
> >>
> >> -PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze
> >> ${PN}-kernel-install"
> >> +PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze
> >> ${PN}-kernel-install python-${PN}"
> >>
> >> USERADD_PACKAGES = "${PN}"
> >> GROUPADD_PARAM_${PN} = "-r lock; -r systemd-journal"
> >> @@ -131,6 +140,9 @@ FILES_${PN}-analyze = "${bindir}/systemd-analyze"
> >> FILES_${PN}-initramfs = "/init"
> >> RDEPENDS_${PN}-initramfs = "${PN}"
> >>
> >> +FILES_python-${PN} = "${PYTHON_SITEPACKAGES_DIR}/systemd/*.py*
> >> ${PYTHON_SITEPACKAGES_DIR}/systemd/*.so"
> >> +RDEPENDS_python-${PN} = "python-core python-datetime python-logging
> >> python-syslog"
> >> +
> >> FILES_${PN}-gui = "${bindir}/systemadm"
> >>
> >> FILES_${PN}-vconsole-setup =
> >> "${rootlibexecdir}/systemd/systemd-vconsole-setup \
> >> @@ -187,7 +199,7 @@ FILES_${PN} = " ${base_bindir}/* \
> >> /lib/udev/rules.d/99-systemd.rules \
> >> "
> >>
> >> -FILES_${PN}-dbg += "${rootlibdir}/.debug ${systemd_unitdir}/.debug
> >> ${systemd_unitdir}/*/.debug ${base_libdir}/security/.debug/"
> >> +FILES_${PN}-dbg += "${rootlibdir}/.debug ${systemd_unitdir}/.debug
> >> ${systemd_unitdir}/*/.debug ${base_libdir}/security/.debug/
> >> ${PYTHON_SITEPACKAGES_DIR}/systemd/.debug"
> >> FILES_${PN}-dev += "${base_libdir}/security/*.la
> >> ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.systemd"
> >>
> >> RDEPENDS_${PN} += "dbus util-linux-mount"
> >> --
> >> 1.7.9.5
> >>
> >> _______________________________________________
> >> Openembedded-core mailing list
> >> Openembedded-core@lists.openembedded.org
> >> http://lists.openembedded.org/mailman/listinfo/openembedded-core
> >
> >
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-06-24 8:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-23 1:36 [PATCH v6] systemd: added python-systemd package generation Yevhen Kyriukha
2013-06-23 6:27 ` Martin Jansa
2013-06-23 10:21 ` Yevhen Kyriukha
2013-06-24 8:35 ` Martin Jansa
-- strict thread matches above, loose matches on Subject: below --
2013-04-23 16:03 Yevhen Kyriukha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox