[OE-core] [PATCH v6] systemd: added python-systemd package generation.

2013-06-22 Thread 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

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v6] systemd: added python-systemd package generation.

2013-06-23 Thread Yevhen Kyriukha
Oh, yes.
You should move "pythonnative python-dir" from DEPENDS and append to inherit.
Best regards,
Yevhen


2013/6/23 Martin Jansa :
> -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  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
>
>
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v7] systemd: added python-systemd package generation.

2013-06-26 Thread 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..a12c6c9 100644
--- a/meta/recipes-core/systemd/systemd_204.bb
+++ b/meta/recipes-core/systemd/systemd_204.bb
@@ -13,9 +13,15 @@ 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 += "${@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
+inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d 
update-alternatives qemu pythonnative python-dir
 
 SRC_URI = "http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.xz \
file://touchscreen.rules \
@@ -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


[OE-core] Check if environment variable is empty

2013-06-29 Thread Yevhen Kyriukha
Hi!

How do I check if environment variable is empty or not in *.bbclass.

Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] Create btrfs subvolume during image building

2013-07-02 Thread Yevhen Kyriukha
Hi!

I'd like to create image with btrfs rootfs partition.
I want to store all files on separate subvolume on btrfs partition.
For this purpose I'm creating *.bbclass that simply extends IMAGE_CMD.

The problem is that to create btrfs subvolume I need to mount it first, but
only root can execute "mount".

Are there any ways to accomplish this?

Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v8] systemd: added python-systemd package generation.

2013-07-04 Thread Yevhen Kyriukha
---
 meta/recipes-core/systemd/systemd_204.bb |   24 +++-
 1 file changed, 19 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-core/systemd/systemd_204.bb 
b/meta/recipes-core/systemd/systemd_204.bb
index b8b1290..2a6ed0c 100644
--- a/meta/recipes-core/systemd/systemd_204.bb
+++ b/meta/recipes-core/systemd/systemd_204.bb
@@ -13,9 +13,16 @@ 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 += "${@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
+inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d 
update-alternatives qemu \
+${@base_contains('DISTRO_FEATURES', 'python', 'pythonnative 
python-dir', '', d)}
 
 SRC_URI = "http://www.freedesktop.org/software/systemd/systemd-${PV}.tar.xz \
file://touchscreen.rules \
@@ -42,7 +49,8 @@ LDFLAGS_libc-uclibc_append = " -lrt"
 
 GTKDOC_DOCDIR = "${S}/docs/"
 
-PACKAGECONFIG ??= "xz tcp-wrappers"
+PACKAGECONFIG ??= "xz tcp-wrappers \
+   ${@base_contains('DISTRO_FEATURES', 'python', 'python', '', 
d)}"
 # Sign the journal for anti-tampering
 PACKAGECONFIG[gcrypt] = "--enable-gcrypt,--disable-gcrypt,libgcrypt"
 # regardless of PACKAGECONFIG, libgcrypt is always required to expand
@@ -51,6 +59,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 +81,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 +102,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 +132,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 +142,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 +201,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


Re: [OE-core] [PATCH v8] systemd: added python-systemd package generation.

2013-07-10 Thread Yevhen Kyriukha
Ok, agree with you to have 2 recipes.
But can you show me the way how to avoid building systemd twice (in
systemd and python-systemd) while including python bindings in
python-systemd.
Best regards,
Yevhen


2013/7/9 Burton, Ross :
> On 5 July 2013 00:31, Yevhen Kyriukha  wrote:
>> +inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d 
>> update-alternatives qemu \
>> +${@base_contains('DISTRO_FEATURES', 'python', 'pythonnative 
>> python-dir', '', d)}
>
> You've just invented a new DISTRO_FEATURE, right?  I don't think we
> should invent these without due thought.  There's a good discussion to
> be had around a distro feature to enable all Pythonic integration
> where possible, but it hasn't been had yet.
>
> I see two options here:
>
> 1) systemd doesn't enable Python, and we add another recipe
> systemd-python that only builds and ships the Python bindings.
>
> 2) Decide as a project that we need a new DISTRO_FEATURE "python" that
> means "has full support for Python", meaning that every package that
> had Python integration should enable it.
>
> I'm currently leaning towards (1) as it's less intrusive on the OE
> environment as a whole.
>
> Ross
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] Make package from initramfs image

2013-07-12 Thread Yevhen Kyriukha
Hi!

I want to build package from initramfs image for putting it into /boot
directory and have ability of its upgrade.

The problem is do_install, do_package and other functions needed to
create package are not called.
How can I make it?

Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v1] btrfs-tools: upgrade to upstream revision.

2013-08-02 Thread Yevhen Kyriukha
---
 ...ix_race_condition_with_multithreaded_make.patch | 36 --
 .../btrfs-tools/btrfs-tools/fix_use_of_gcc.patch   | 31 ---
 .../btrfs-tools/btrfs-tools_git.bb | 13 +++-
 3 files changed, 4 insertions(+), 76 deletions(-)
 delete mode 100644 
meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
 delete mode 100644 
meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch

diff --git 
a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
 
b/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
deleted file mode 100644
index 40175b8..000
--- 
a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-Upstream-Status: Pending
-
-Fix makefile for multithreaded (make -j ) building.
-
-btrfsctl.c
-| i586-poky-linux-gcc  -m32   -march=i586 
--sysroot=/intel/poky/builds/world/tmp/sysroots/qemux86 
-Wp,-MMD,./.btrfsctl.o.d,-MT,btrfsctl.o -Wall -D_FILE_OFFSET_BITS=64 
-D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c btrfsctl.c
-| btrfsctl.c:37:21: fatal error: version.h: No such file or directory
-| compilation terminated.
-| btrfslabel.c:40:21: fatal error: version.h: No such file or directory
-| compilation terminated.
-
-Signed-Off-By: Nitin A Kamble 
-2012/01/02
-
-Index: git/Makefile
-===
 git.orig/Makefile
-+++ git/Makefile
-@@ -26,14 +26,13 @@ else
-   check = ls
- endif
- 
--.c.o:
-+%.o: %.c version.h
-   $(check) $<
-   $(CC) $(DEPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c $<
- 
-+all: $(progs) manpages
- 
--all: version $(progs) manpages
--
--version:
-+version.h: version.sh
-   bash version.sh
- 
- btrfs: $(objects) btrfs.o btrfs_cmds.o scrub.o
diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch 
b/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch
deleted file mode 100644
index 7f6594a..000
--- a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-Nitin A Kamble  2011/06/09
-Upstream-Status: Pending
-
-Avoid these kinds of errors while doing cross build:
-
-| ccache i586-poky-linux-gcc -march=i586 
--sysroot=/disk0/pokybuild/build0/tmp/sysroots/qemux86 
-Wp,-MMD,./.btrfsctl.o.d,-MT,btrfsctl.o -Wall -D_FILE_OFFSET_BITS=64 
-D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c btrfsctl.c
-| gcc -O2 -pipe -g -feliminate-unused-debug-types -o btrfsctl btrfsctl.o 
ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o root-tree.o 
dir-item.o file-item.o inode-item.o inode-map.o crc32c.o rbtree.o 
extent-cache.o extent_io.o volumes.o utils.o btrfs-list.o -Wl,-O1  
-Wl,--as-needed -luuid
-| /usr/bin/ld: i386 architecture of input file `btrfsctl.o' is incompatible 
with i386:x86-64 output
-| /usr/bin/ld: i386 architecture of input file `ctree.o' is incompatible with 
i386:x86-64 output
-
-Index: git/Makefile
-===
 git.orig/Makefile
-+++ git/Makefile
-@@ -41,13 +41,13 @@ btrfs: $(objects) btrfs.o btrfs_cmds.o s
-   $(objects) $(LDFLAGS) $(LIBS)
- 
- calc-size: $(objects) calc-size.o
--  gcc $(CFLAGS) -o calc-size calc-size.o $(objects) $(LDFLAGS) $(LIBS)
-+  $(CC) $(CFLAGS) -o calc-size calc-size.o $(objects) $(LDFLAGS) $(LIBS)
- 
- find-root: $(objects) find-root.o
--  gcc $(CFLAGS) -o find-root find-root.o $(objects) $(LDFLAGS) $(LIBS)
-+  $(CC) $(CFLAGS) -o find-root find-root.o $(objects) $(LDFLAGS) $(LIBS)
- 
- restore: $(objects) restore.o
--  gcc $(CFLAGS) -o restore restore.o $(objects) $(LDFLAGS) $(LIBS) 
$(RESTORE_LIBS)
-+  $(CC) $(CFLAGS) -o restore restore.o $(objects) $(LDFLAGS) $(LIBS) 
$(RESTORE_LIBS)
- 
- btrfsctl: $(objects) btrfsctl.o
-   $(CC) $(CFLAGS) -o btrfsctl btrfsctl.o $(objects) $(LDFLAGS) $(LIBS)
diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb 
b/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
index ef575ae..d63f1e0 100644
--- a/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
+++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
@@ -12,21 +12,16 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=fcb02dc552a041dee27e4b85c7396067"
 SECTION = "base"
 DEPENDS = "util-linux attr"
 
-SRCREV = "fdb6c0402337d9607c7a39155088eaf033742752"
+SRCREV = "194aa4a1bd6447bb545286d0bcb0b0be8204d79f"
 SRC_URI = 
"git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git;protocol=git"
 
 S = "${WORKDIR}/git"
 
-PV = "0.19+git${SRCPV}"
+PV = "0.20+git${SRCPV}"
 
-PR = "r6"
+PR = "r7"
 
-SRC_URI += " file://fix_use_of_gcc.patch \
-file://weak-defaults.patch \
-file://fix_race_condition_with_multithreaded_make.patch "
-
-SRC_URI[md5sum] = "78b1700d318de8518abfaab71f99a885"
-SRC_URI[sha256sum]

Re: [OE-core] [PATCH v1] btrfs-tools: upgrade to upstream revision.

2013-08-03 Thread Yevhen Kyriukha
2013/8/2 Saul Wold :
>
> Please add an explanation of why the patches are removed and a
> Signed-off-by: in the commit message.
>
> Thanks
> Sau!
>
>
>
> On 08/02/2013 12:41 PM, Yevhen Kyriukha wrote:
>>
>> ---
>>   ...ix_race_condition_with_multithreaded_make.patch | 36
>> --
>>   .../btrfs-tools/btrfs-tools/fix_use_of_gcc.patch   | 31
>> ---
>>   .../btrfs-tools/btrfs-tools_git.bb | 13 +++-
>>   3 files changed, 4 insertions(+), 76 deletions(-)
>>   delete mode 100644
>> meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
>>   delete mode 100644
>> meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch
>>
>> diff --git
>> a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
>> b/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
>> deleted file mode 100644
>> index 40175b8..000
>> ---
>> a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
>> +++ /dev/null
>> @@ -1,36 +0,0 @@
>> -Upstream-Status: Pending
>> -
>> -Fix makefile for multithreaded (make -j ) building.
>> -
>> -btrfsctl.c
>> -| i586-poky-linux-gcc  -m32   -march=i586
>> --sysroot=/intel/poky/builds/world/tmp/sysroots/qemux86
>> -Wp,-MMD,./.btrfsctl.o.d,-MT,btrfsctl.o -Wall -D_FILE_OFFSET_BITS=64
>> -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c
>> btrfsctl.c
>> -| btrfsctl.c:37:21: fatal error: version.h: No such file or directory
>> -| compilation terminated.
>> -| btrfslabel.c:40:21: fatal error: version.h: No such file or directory
>> -| compilation terminated.
>> -
>> -Signed-Off-By: Nitin A Kamble 
>> -2012/01/02
>> -
>> -Index: git/Makefile
>> -===
>>  git.orig/Makefile
>> -+++ git/Makefile
>> -@@ -26,14 +26,13 @@ else
>> -   check = ls
>> - endif
>> -
>> --.c.o:
>> -+%.o: %.c version.h
>> -   $(check) $<
>> -   $(CC) $(DEPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c $<
>> -
>> -+all: $(progs) manpages
>> -
>> --all: version $(progs) manpages
>> --
>> --version:
>> -+version.h: version.sh
>> -   bash version.sh
>> -
>> - btrfs: $(objects) btrfs.o btrfs_cmds.o scrub.o
>> diff --git
>> a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch
>> b/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch
>> deleted file mode 100644
>> index 7f6594a..000
>> --- a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch
>> +++ /dev/null
>> @@ -1,31 +0,0 @@
>> -Nitin A Kamble  2011/06/09
>> -Upstream-Status: Pending
>> -
>> -Avoid these kinds of errors while doing cross build:
>> -
>> -| ccache i586-poky-linux-gcc -march=i586
>> --sysroot=/disk0/pokybuild/build0/tmp/sysroots/qemux86
>> -Wp,-MMD,./.btrfsctl.o.d,-MT,btrfsctl.o -Wall -D_FILE_OFFSET_BITS=64
>> -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c
>> btrfsctl.c
>> -| gcc -O2 -pipe -g -feliminate-unused-debug-types -o btrfsctl btrfsctl.o
>> ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o root-tree.o
>> dir-item.o file-item.o inode-item.o inode-map.o crc32c.o rbtree.o
>> extent-cache.o extent_io.o volumes.o utils.o btrfs-list.o -Wl,-O1
>> -Wl,--as-needed -luuid
>> -| /usr/bin/ld: i386 architecture of input file `btrfsctl.o' is
>> incompatible with i386:x86-64 output
>> -| /usr/bin/ld: i386 architecture of input file `ctree.o' is incompatible
>> with i386:x86-64 output
>> -
>> -Index: git/Makefile
>> -===
>>  git.orig/Makefile
>> -+++ git/Makefile
>> -@@ -41,13 +41,13 @@ btrfs: $(objects) btrfs.o btrfs_cmds.o s
>> -   $(objects) $(LDFLAGS) $(LIBS)
>> -
>> - calc-size: $(objects) calc-size.o
>> --  gcc $(CFLAGS) -o calc-size calc-size.o $(objects) $(LDFLAGS)
>> $(LIBS)
>> -+  $(CC) $(CFLAGS) -o calc-size calc-size.o $(objects) $(LDFLAGS)
>> $(LIBS)
>> -
>> - find-root: $(objects) find-root.o
>> --  gcc $(CFLAGS) -o find-root find-root.o $(objects) $(LDFLAGS)
>> $(LIBS)
>> -+  $(CC) $(CFLAGS) -o find-root find-root.o $(objects) $(LDFLAGS)
>> $(LIBS)
>> -
>> - restore: $(objects) restore.o
>&g

[OE-core] [PATCH v2] btrfs-tools: upgrade to upstream revision.

2013-08-03 Thread Yevhen Kyriukha
Two patches were removed because changes that they provide are already exist.

Signed-off-by: Yevhen Kyriukha 
---
 ...ix_race_condition_with_multithreaded_make.patch | 36 --
 .../btrfs-tools/btrfs-tools/fix_use_of_gcc.patch   | 31 ---
 .../btrfs-tools/btrfs-tools_git.bb | 11 ++-
 3 files changed, 3 insertions(+), 75 deletions(-)
 delete mode 100644 
meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
 delete mode 100644 
meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch

diff --git 
a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
 
b/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
deleted file mode 100644
index 40175b8..000
--- 
a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-Upstream-Status: Pending
-
-Fix makefile for multithreaded (make -j ) building.
-
-btrfsctl.c
-| i586-poky-linux-gcc  -m32   -march=i586 
--sysroot=/intel/poky/builds/world/tmp/sysroots/qemux86 
-Wp,-MMD,./.btrfsctl.o.d,-MT,btrfsctl.o -Wall -D_FILE_OFFSET_BITS=64 
-D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c btrfsctl.c
-| btrfsctl.c:37:21: fatal error: version.h: No such file or directory
-| compilation terminated.
-| btrfslabel.c:40:21: fatal error: version.h: No such file or directory
-| compilation terminated.
-
-Signed-Off-By: Nitin A Kamble 
-2012/01/02
-
-Index: git/Makefile
-===
 git.orig/Makefile
-+++ git/Makefile
-@@ -26,14 +26,13 @@ else
-   check = ls
- endif
- 
--.c.o:
-+%.o: %.c version.h
-   $(check) $<
-   $(CC) $(DEPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c $<
- 
-+all: $(progs) manpages
- 
--all: version $(progs) manpages
--
--version:
-+version.h: version.sh
-   bash version.sh
- 
- btrfs: $(objects) btrfs.o btrfs_cmds.o scrub.o
diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch 
b/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch
deleted file mode 100644
index 7f6594a..000
--- a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-Nitin A Kamble  2011/06/09
-Upstream-Status: Pending
-
-Avoid these kinds of errors while doing cross build:
-
-| ccache i586-poky-linux-gcc -march=i586 
--sysroot=/disk0/pokybuild/build0/tmp/sysroots/qemux86 
-Wp,-MMD,./.btrfsctl.o.d,-MT,btrfsctl.o -Wall -D_FILE_OFFSET_BITS=64 
-D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c btrfsctl.c
-| gcc -O2 -pipe -g -feliminate-unused-debug-types -o btrfsctl btrfsctl.o 
ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o root-tree.o 
dir-item.o file-item.o inode-item.o inode-map.o crc32c.o rbtree.o 
extent-cache.o extent_io.o volumes.o utils.o btrfs-list.o -Wl,-O1  
-Wl,--as-needed -luuid
-| /usr/bin/ld: i386 architecture of input file `btrfsctl.o' is incompatible 
with i386:x86-64 output
-| /usr/bin/ld: i386 architecture of input file `ctree.o' is incompatible with 
i386:x86-64 output
-
-Index: git/Makefile
-===
 git.orig/Makefile
-+++ git/Makefile
-@@ -41,13 +41,13 @@ btrfs: $(objects) btrfs.o btrfs_cmds.o s
-   $(objects) $(LDFLAGS) $(LIBS)
- 
- calc-size: $(objects) calc-size.o
--  gcc $(CFLAGS) -o calc-size calc-size.o $(objects) $(LDFLAGS) $(LIBS)
-+  $(CC) $(CFLAGS) -o calc-size calc-size.o $(objects) $(LDFLAGS) $(LIBS)
- 
- find-root: $(objects) find-root.o
--  gcc $(CFLAGS) -o find-root find-root.o $(objects) $(LDFLAGS) $(LIBS)
-+  $(CC) $(CFLAGS) -o find-root find-root.o $(objects) $(LDFLAGS) $(LIBS)
- 
- restore: $(objects) restore.o
--  gcc $(CFLAGS) -o restore restore.o $(objects) $(LDFLAGS) $(LIBS) 
$(RESTORE_LIBS)
-+  $(CC) $(CFLAGS) -o restore restore.o $(objects) $(LDFLAGS) $(LIBS) 
$(RESTORE_LIBS)
- 
- btrfsctl: $(objects) btrfsctl.o
-   $(CC) $(CFLAGS) -o btrfsctl btrfsctl.o $(objects) $(LDFLAGS) $(LIBS)
diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb 
b/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
index ef575ae..6c9b7c0 100644
--- a/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
+++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
@@ -12,21 +12,16 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=fcb02dc552a041dee27e4b85c7396067"
 SECTION = "base"
 DEPENDS = "util-linux attr"
 
-SRCREV = "fdb6c0402337d9607c7a39155088eaf033742752"
+SRCREV = "194aa4a1bd6447bb545286d0bcb0b0be8204d79f"
 SRC_URI = 
"git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git;protocol=git"
 
 S = "${WORKDIR}/git"
 
-PV = "0.19+git${SRCPV}"
+PV = "0.20+git${SRCPV}"
 
 P

Re: [OE-core] [PATCH v1] btrfs-tools: upgrade to upstream revision.

2013-08-04 Thread Yevhen Kyriukha
OK, I'll fix it and send v3 of this patch.
Best regards,
Yevhen


2013/8/3 Saul Wold :
> On 08/03/2013 08:30 AM, Yevhen Kyriukha wrote:
>>
>> 2013/8/2 Saul Wold :
>>>
>>>
>>> Please add an explanation of why the patches are removed and a
>>> Signed-off-by: in the commit message.
>>>
>>> Thanks
>>>  Sau!
>>>
>>>
>>>
>>> On 08/02/2013 12:41 PM, Yevhen Kyriukha wrote:
>>>>
>>>>
>>>> ---
>>>>...ix_race_condition_with_multithreaded_make.patch | 36
>>>> --
>>>>.../btrfs-tools/btrfs-tools/fix_use_of_gcc.patch   | 31
>>>> ---
>>>>.../btrfs-tools/btrfs-tools_git.bb | 13 +++-
>>>>3 files changed, 4 insertions(+), 76 deletions(-)
>>>>delete mode 100644
>>>>
>>>> meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
>>>>delete mode 100644
>>>> meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch
>>>>
>>>> diff --git
>>>>
>>>> a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
>>>>
>>>> b/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
>>>> deleted file mode 100644
>>>> index 40175b8..000
>>>> ---
>>>>
>>>> a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
>>>> +++ /dev/null
>>>> @@ -1,36 +0,0 @@
>>>> -Upstream-Status: Pending
>>>> -
>>>> -Fix makefile for multithreaded (make -j ) building.
>>>> -
>>>> -btrfsctl.c
>>>> -| i586-poky-linux-gcc  -m32   -march=i586
>>>> --sysroot=/intel/poky/builds/world/tmp/sysroots/qemux86
>>>> -Wp,-MMD,./.btrfsctl.o.d,-MT,btrfsctl.o -Wall -D_FILE_OFFSET_BITS=64
>>>> -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c
>>>> btrfsctl.c
>>>> -| btrfsctl.c:37:21: fatal error: version.h: No such file or directory
>>>> -| compilation terminated.
>>>> -| btrfslabel.c:40:21: fatal error: version.h: No such file or directory
>>>> -| compilation terminated.
>>>> -
>>>> -Signed-Off-By: Nitin A Kamble 
>>>> -2012/01/02
>>>> -
>>>> -Index: git/Makefile
>>>> -===
>>>>  git.orig/Makefile
>>>> -+++ git/Makefile
>>>> -@@ -26,14 +26,13 @@ else
>>>> -   check = ls
>>>> - endif
>>>> -
>>>> --.c.o:
>>>> -+%.o: %.c version.h
>>>> -   $(check) $<
>>>> -   $(CC) $(DEPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c $<
>>>> -
>>>> -+all: $(progs) manpages
>>>> -
>>>> --all: version $(progs) manpages
>>>> --
>>>> --version:
>>>> -+version.h: version.sh
>>>> -   bash version.sh
>>>> -
>>>> - btrfs: $(objects) btrfs.o btrfs_cmds.o scrub.o
>>>> diff --git
>>>> a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch
>>>> b/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch
>>>> deleted file mode 100644
>>>> index 7f6594a..000
>>>> --- a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch
>>>> +++ /dev/null
>>>> @@ -1,31 +0,0 @@
>>>> -Nitin A Kamble  2011/06/09
>>>> -Upstream-Status: Pending
>>>> -
>>>> -Avoid these kinds of errors while doing cross build:
>>>> -
>>>> -| ccache i586-poky-linux-gcc -march=i586
>>>> --sysroot=/disk0/pokybuild/build0/tmp/sysroots/qemux86
>>>> -Wp,-MMD,./.btrfsctl.o.d,-MT,btrfsctl.o -Wall -D_FILE_OFFSET_BITS=64
>>>> -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c
>>>> btrfsctl.c
>>>> -| gcc -O2 -pipe -g -feliminate-unused-debug-types -o btrfsctl
>>>> btrfsctl.o
>>>> ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o root-tree.o
>>>> dir-item.o file-item.o inode-item.o inode-map.o crc32c.o rbtree.o
>>>> extent-cache.o extent_io.o volumes.o utils.o btrfs-list.o -Wl,-O1
>>>> -Wl,--as-needed -luuid
>>>> -| /usr/bin/ld: i386 architecture of inp

[OE-core] [PATCH v3] btrfs-tools: upgrade to upstream revision.

2013-08-04 Thread Yevhen Kyriukha
Two patches were removed because changes that they provide are already exist.

Signed-off-by: Yevhen Kyriukha 
---
 ...ix_race_condition_with_multithreaded_make.patch | 36 --
 .../btrfs-tools/btrfs-tools/fix_use_of_gcc.patch   | 31 ---
 .../btrfs-tools/btrfs-tools_git.bb | 13 ++--
 3 files changed, 3 insertions(+), 77 deletions(-)
 delete mode 100644 
meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
 delete mode 100644 
meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch

diff --git 
a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
 
b/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
deleted file mode 100644
index 40175b8..000
--- 
a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_race_condition_with_multithreaded_make.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-Upstream-Status: Pending
-
-Fix makefile for multithreaded (make -j ) building.
-
-btrfsctl.c
-| i586-poky-linux-gcc  -m32   -march=i586 
--sysroot=/intel/poky/builds/world/tmp/sysroots/qemux86 
-Wp,-MMD,./.btrfsctl.o.d,-MT,btrfsctl.o -Wall -D_FILE_OFFSET_BITS=64 
-D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c btrfsctl.c
-| btrfsctl.c:37:21: fatal error: version.h: No such file or directory
-| compilation terminated.
-| btrfslabel.c:40:21: fatal error: version.h: No such file or directory
-| compilation terminated.
-
-Signed-Off-By: Nitin A Kamble 
-2012/01/02
-
-Index: git/Makefile
-===
 git.orig/Makefile
-+++ git/Makefile
-@@ -26,14 +26,13 @@ else
-   check = ls
- endif
- 
--.c.o:
-+%.o: %.c version.h
-   $(check) $<
-   $(CC) $(DEPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c $<
- 
-+all: $(progs) manpages
- 
--all: version $(progs) manpages
--
--version:
-+version.h: version.sh
-   bash version.sh
- 
- btrfs: $(objects) btrfs.o btrfs_cmds.o scrub.o
diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch 
b/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch
deleted file mode 100644
index 7f6594a..000
--- a/meta/recipes-devtools/btrfs-tools/btrfs-tools/fix_use_of_gcc.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-Nitin A Kamble  2011/06/09
-Upstream-Status: Pending
-
-Avoid these kinds of errors while doing cross build:
-
-| ccache i586-poky-linux-gcc -march=i586 
--sysroot=/disk0/pokybuild/build0/tmp/sysroots/qemux86 
-Wp,-MMD,./.btrfsctl.o.d,-MT,btrfsctl.o -Wall -D_FILE_OFFSET_BITS=64 
-D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c btrfsctl.c
-| gcc -O2 -pipe -g -feliminate-unused-debug-types -o btrfsctl btrfsctl.o 
ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o root-tree.o 
dir-item.o file-item.o inode-item.o inode-map.o crc32c.o rbtree.o 
extent-cache.o extent_io.o volumes.o utils.o btrfs-list.o -Wl,-O1  
-Wl,--as-needed -luuid
-| /usr/bin/ld: i386 architecture of input file `btrfsctl.o' is incompatible 
with i386:x86-64 output
-| /usr/bin/ld: i386 architecture of input file `ctree.o' is incompatible with 
i386:x86-64 output
-
-Index: git/Makefile
-===
 git.orig/Makefile
-+++ git/Makefile
-@@ -41,13 +41,13 @@ btrfs: $(objects) btrfs.o btrfs_cmds.o s
-   $(objects) $(LDFLAGS) $(LIBS)
- 
- calc-size: $(objects) calc-size.o
--  gcc $(CFLAGS) -o calc-size calc-size.o $(objects) $(LDFLAGS) $(LIBS)
-+  $(CC) $(CFLAGS) -o calc-size calc-size.o $(objects) $(LDFLAGS) $(LIBS)
- 
- find-root: $(objects) find-root.o
--  gcc $(CFLAGS) -o find-root find-root.o $(objects) $(LDFLAGS) $(LIBS)
-+  $(CC) $(CFLAGS) -o find-root find-root.o $(objects) $(LDFLAGS) $(LIBS)
- 
- restore: $(objects) restore.o
--  gcc $(CFLAGS) -o restore restore.o $(objects) $(LDFLAGS) $(LIBS) 
$(RESTORE_LIBS)
-+  $(CC) $(CFLAGS) -o restore restore.o $(objects) $(LDFLAGS) $(LIBS) 
$(RESTORE_LIBS)
- 
- btrfsctl: $(objects) btrfsctl.o
-   $(CC) $(CFLAGS) -o btrfsctl btrfsctl.o $(objects) $(LDFLAGS) $(LIBS)
diff --git a/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb 
b/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
index ef575ae..07e8529 100644
--- a/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
+++ b/meta/recipes-devtools/btrfs-tools/btrfs-tools_git.bb
@@ -12,21 +12,14 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=fcb02dc552a041dee27e4b85c7396067"
 SECTION = "base"
 DEPENDS = "util-linux attr"
 
-SRCREV = "fdb6c0402337d9607c7a39155088eaf033742752"
+SRCREV = "194aa4a1bd6447bb545286d0bcb0b0be8204d79f"
 SRC_URI = 
"git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git;protocol=git"
 
 S = "${WORKDIR}/git"
 
-PV = "0.19+git${SRCPV}"
+PV = "0.20+git${SRCPV}"
 
-P

[OE-core] [PATCH v1] gst-plugins-good: fix compilation of v4l2 against newer kernel headers.

2013-08-09 Thread Yevhen Kyriukha
Patch fixes "'V4L2_CID_VCENTER_DEPRECATED' undeclared" error.

Signed-off-by: Yevhen Kyriukha 
---
 .../0002-v4l2-fix-build-with-recent-kernels.patch  | 25 ++
 .../gstreamer/gst-plugins-good_0.10.31.bb  |  3 ++-
 2 files changed, 27 insertions(+), 1 deletion(-)
 create mode 100644 
meta/recipes-multimedia/gstreamer/gst-plugins-good-0.10.31/0002-v4l2-fix-build-with-recent-kernels.patch

diff --git 
a/meta/recipes-multimedia/gstreamer/gst-plugins-good-0.10.31/0002-v4l2-fix-build-with-recent-kernels.patch
 
b/meta/recipes-multimedia/gstreamer/gst-plugins-good-0.10.31/0002-v4l2-fix-build-with-recent-kernels.patch
new file mode 100644
index 000..25c2550
--- /dev/null
+++ 
b/meta/recipes-multimedia/gstreamer/gst-plugins-good-0.10.31/0002-v4l2-fix-build-with-recent-kernels.patch
@@ -0,0 +1,25 @@
+From 8e633d2059cb835448021cf79becb487aff10975 Mon Sep 17 00:00:00 2001
+From: Bastien Nocera 
+Date: Mon, 18 Mar 2013 14:59:35 +
+Subject: v4l2: fix compilation against newer kernel headers as on FC19
+
+---
+diff --git a/sys/v4l2/v4l2_calls.c b/sys/v4l2/v4l2_calls.c
+index 07d390a..4c10f4f 100644
+--- a/sys/v4l2/v4l2_calls.c
 b/sys/v4l2/v4l2_calls.c
+@@ -291,8 +291,12 @@ gst_v4l2_fill_lists (GstV4l2Object * v4l2object)
+ break;
+   case V4L2_CID_HFLIP:
+   case V4L2_CID_VFLIP:
++#ifndef V4L2_CID_PAN_RESET
+   case V4L2_CID_HCENTER:
++#endif
++#ifndef V4L2_CID_TILT_RESET
+   case V4L2_CID_VCENTER:
++#endif
+ #ifdef V4L2_CID_PAN_RESET
+   case V4L2_CID_PAN_RESET:
+ #endif
+--
+cgit v0.9.0.2-2-gbebe
diff --git a/meta/recipes-multimedia/gstreamer/gst-plugins-good_0.10.31.bb 
b/meta/recipes-multimedia/gstreamer/gst-plugins-good_0.10.31.bb
index 8868ba7..570031d 100644
--- a/meta/recipes-multimedia/gstreamer/gst-plugins-good_0.10.31.bb
+++ b/meta/recipes-multimedia/gstreamer/gst-plugins-good_0.10.31.bb
@@ -22,7 +22,8 @@ DEPENDS += "gst-plugins-base gconf cairo libpng zlib 
libid3tag flac \
 
 inherit gettext gconf
 
-SRC_URI += 
"file://0001-v4l2-fix-build-with-recent-kernels-the-v4l2_buffer-i.patch"
+SRC_URI += 
"file://0001-v4l2-fix-build-with-recent-kernels-the-v4l2_buffer-i.patch \
+file://0002-v4l2-fix-build-with-recent-kernels.patch"
 
 EXTRA_OECONF += "--disable-aalib --disable-esd --disable-shout2 
--disable-libcaca --disable-hal --without-check \
  --disable-orc --disable-examples --disable-taglib"
-- 
1.8.1.2

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v1] connman: fix systemd support for connman-* packages.

2013-08-12 Thread Yevhen Kyriukha
This patch fixes systemd's postinst/postrm script generation.

Signed-off-by: Yevhen Kyriukha 
---
 meta/recipes-connectivity/connman/connman.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-connectivity/connman/connman.inc 
b/meta/recipes-connectivity/connman/connman.inc
index 6b5ea0b..c5014b7 100644
--- a/meta/recipes-connectivity/connman/connman.inc
+++ b/meta/recipes-connectivity/connman/connman.inc
@@ -56,6 +56,7 @@ PACKAGECONFIG[wispr] = 
"--enable-wispr,--disable-wispr,gnutls,"
 INITSCRIPT_NAME = "connman"
 INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ."
 
+SYSTEMD_PACKAGES = "${PN} ${PN}-vpn"
 SYSTEMD_SERVICE_${PN} = "connman.service"
 SYSTEMD_SERVICE_${PN}-vpn = "connman-vpn.service"
 SYSTEMD_WIRED_SETUP = "ExecStartPre=-${libdir}/connman/wired-setup"
-- 
1.8.1.2

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2] connman: fix systemd support for connman-* packages.

2013-08-13 Thread Yevhen Kyriukha
This patch fixes systemd's postinst/postrm script generation.

Signed-off-by: Yevhen Kyriukha 
---
 meta/recipes-connectivity/connman/connman.inc | 8 
 1 file changed, 8 insertions(+)

diff --git a/meta/recipes-connectivity/connman/connman.inc 
b/meta/recipes-connectivity/connman/connman.inc
index 6b5ea0b..37ce3ec 100644
--- a/meta/recipes-connectivity/connman/connman.inc
+++ b/meta/recipes-connectivity/connman/connman.inc
@@ -56,6 +56,14 @@ PACKAGECONFIG[wispr] = 
"--enable-wispr,--disable-wispr,gnutls,"
 INITSCRIPT_NAME = "connman"
 INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ."
 
+python __anonymous () {
+systemd_packages = "${PN}"
+pkgconfig = d.getVar('PACKAGECONFIG', True)
+if ('openvpn' or 'vpnc' or 'l2tp' or 'pptp') in pkgconfig.split():
+systemd_packages += " ${PN}-vpn"
+d.setVar('SYSTEMD_PACKAGES', systemd_packages)
+}
+
 SYSTEMD_SERVICE_${PN} = "connman.service"
 SYSTEMD_SERVICE_${PN}-vpn = "connman-vpn.service"
 SYSTEMD_WIRED_SETUP = "ExecStartPre=-${libdir}/connman/wired-setup"
-- 
1.8.1.2

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2] connman: fix systemd support for connman-* packages.

2013-08-13 Thread Yevhen Kyriukha
2013/8/13 Saul Wold :
> On 08/13/2013 04:26 AM, Yevhen Kyriukha wrote:
>>
>> This patch fixes systemd's postinst/postrm script generation.
>>
>> Signed-off-by: Yevhen Kyriukha 
>> ---
>>   meta/recipes-connectivity/connman/connman.inc | 8 
>>   1 file changed, 8 insertions(+)
>>
>> diff --git a/meta/recipes-connectivity/connman/connman.inc
>> b/meta/recipes-connectivity/connman/connman.inc
>> index 6b5ea0b..37ce3ec 100644
>> --- a/meta/recipes-connectivity/connman/connman.inc
>> +++ b/meta/recipes-connectivity/connman/connman.inc
>> @@ -56,6 +56,14 @@ PACKAGECONFIG[wispr] =
>> "--enable-wispr,--disable-wispr,gnutls,"
>>   INITSCRIPT_NAME = "connman"
>>   INITSCRIPT_PARAMS = "start 05 5 2 3 . stop 22 0 1 6 ."
>>
>> +python __anonymous () {
>> +systemd_packages = "${PN}"
>> +pkgconfig = d.getVar('PACKAGECONFIG', True)
>> +if ('openvpn' or 'vpnc' or 'l2tp' or 'pptp') in pkgconfig.split():
>> +systemd_packages += " ${PN}-vpn"
>> +d.setVar('SYSTEMD_PACKAGES', systemd_packages)
>> +}
>> +
>>   SYSTEMD_SERVICE_${PN} = "connman.service"
>>   SYSTEMD_SERVICE_${PN}-vpn = "connman-vpn.service"
>>   SYSTEMD_WIRED_SETUP = "ExecStartPre=-${libdir}/connman/wired-setup"
>>
> Can't you use the base_contains style of anon python in the
> SYSTEMD_PACKAGES:
>
> SYSTEMD_PACKAGES = "${PN} ${@base_contains('PACKAGECONFIG', 'vpn',
> '${PN}-vpn', '', d)}"
>
> Or can any one of those in the list above trigger the vpn, it would be
> cleaner if we just trigger on just one item.
>
> Sau!

Here is how connman detects (in configure.ac) whether to build
connman-vpn or not:
AM_CONDITIONAL(VPN, test "${enable_openconnect}" != "no" -o \
"${enable_openvpn}" != "no" -o \
"${enable_vpnc}" != "no" -o \
"${enable_l2tp}" != "no" -o \
"${enable_pptp}" != "no")

This patch is doing the same check: if at least one of VPN
technologies were selected we should build connman-vpn.

base_contains is not an option in this case as it checks whether
environment variable contains all strings that you provide in second
parameter.

Regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [meta-oe][PATCH] cryptsetup: Updated to upstream version.

2013-08-31 Thread Yevhen Kyriukha
Also build static libraries.

Signed-off-by: Yevhen Kyriukha 
---
 .../cryptsetup/{cryptsetup_1.6.1.bb => cryptsetup_1.6.2.bb} | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)
 rename meta-oe/recipes-support/cryptsetup/{cryptsetup_1.6.1.bb => 
cryptsetup_1.6.2.bb} (87%)

diff --git a/meta-oe/recipes-support/cryptsetup/cryptsetup_1.6.1.bb 
b/meta-oe/recipes-support/cryptsetup/cryptsetup_1.6.2.bb
similarity index 87%
rename from meta-oe/recipes-support/cryptsetup/cryptsetup_1.6.1.bb
rename to meta-oe/recipes-support/cryptsetup/cryptsetup_1.6.2.bb
index 95f7e8d..6c3418a 100644
--- a/meta-oe/recipes-support/cryptsetup/cryptsetup_1.6.1.bb
+++ b/meta-oe/recipes-support/cryptsetup/cryptsetup_1.6.2.bb
@@ -12,8 +12,8 @@ LIC_FILES_CHKSUM = 
"file://COPYING;md5=32107dd283b1dfeb66c9b3e6be312326"
 DEPENDS = "util-linux lvm2 popt libgcrypt"
 
 SRC_URI = "http://cryptsetup.googlecode.com/files/cryptsetup-${PV}.tar.bz2";
-SRC_URI[md5sum] = "f374d11e3b0e7ca0f805756fd02e34ff"
-SRC_URI[sha256sum] = 
"baf36e663c03eb6440482d91c486d61ed47ce5c9268ad04c18ca09082755149c"
+SRC_URI[md5sum] = "cd834da49fbe92dd66df02cc5c61280f"
+SRC_URI[sha256sum] = 
"15723f0198303d4bcb99d480b7a773918e2d319f0348457988c063bdd03e109a"
 
 inherit autotools gettext
 
@@ -29,3 +29,5 @@ RRECOMMENDS_${PN} = "kernel-module-aes-generic \
  kernel-module-cbc \
  kernel-module-sha256-generic \
 "
+
+EXTRA_OECONF = "--enable-static"
-- 
1.8.1.2

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] Patch for psplash

2013-09-15 Thread Yevhen Kyriukha
Hi!

I made a patch for psplash to work without mmap support.
How can I submit this patch to psplash repository?

Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] systemd.bbclass: do not call 'systemctl restart ${SYSTEMD_SERVICE}' at systemd_postinst

2013-10-23 Thread Yevhen Kyriukha
Current version of opkg has an issue with upgrading systemd services:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=4213

Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] Gstreamer 1.2

2013-11-04 Thread Yevhen Kyriukha
Is anyone working on gstreamer 1.2 recipes for oe?

Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] curl: build with c-ares library support.

2013-11-08 Thread Yevhen Kyriukha
Also added c-ares library recipe.

In libcurl there is an issue with DNS lookups that cause crash on some 
platforms:
http://curl.haxx.se/mail/lib-2008-09/0197.html
To avoid this issue libcurl has to be built with c-ares name resolver.

Signed-off-by: Yevhen Kyriukha 
---
 meta/recipes-support/c-ares/c-ares_1.10.0.bb | 22 ++
 meta/recipes-support/curl/curl_7.33.0.bb |  3 ++-
 2 files changed, 24 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-support/c-ares/c-ares_1.10.0.bb

diff --git a/meta/recipes-support/c-ares/c-ares_1.10.0.bb 
b/meta/recipes-support/c-ares/c-ares_1.10.0.bb
new file mode 100644
index 000..27bedf4
--- /dev/null
+++ b/meta/recipes-support/c-ares/c-ares_1.10.0.bb
@@ -0,0 +1,22 @@
+DESCRIPTION = "c-ares is a C library that resolves names asynchronously."
+HOMEPAGE = "http://daniel.haxx.se/projects/c-ares/";
+SECTION = "libs"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 
"file://README;beginline=17;endline=18;md5=b320556568bc067d215a1e34c5b34a14"
+
+inherit autotools
+inherit pkgconfig
+
+SRC_URI = "http://c-ares.haxx.se/download/${BP}.tar.gz";
+SRC_URI[md5sum] = "1196067641411a75d3cbebe074fd36d8"
+SRC_URI[sha256sum] = 
"3d701674615d1158e56a59aaede7891f2dde3da0f46a6d3c684e0ae70f52d3db"
+
+EXTRA_OECONF = "--enable-shared"
+
+# install private headers to ares subdirectory
+do_install_append() {
+install -d ${D}/${includedir}/ares
+install -m 0644 ares*.h ${D}/${includedir}/ares/
+}
+
+FILES_${PN}-dev += "${includedir}/ares/*.h"
diff --git a/meta/recipes-support/curl/curl_7.33.0.bb 
b/meta/recipes-support/curl/curl_7.33.0.bb
index 8539fec..1af320e 100644
--- a/meta/recipes-support/curl/curl_7.33.0.bb
+++ b/meta/recipes-support/curl/curl_7.33.0.bb
@@ -5,7 +5,7 @@ SECTION = "console/network"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = 
"file://COPYING;beginline=7;md5=3a34942f4ae3fbf1a303160714e664ac"
 
-DEPENDS = "zlib gnutls"
+DEPENDS = "zlib gnutls c-ares"
 DEPENDS_class-native = "zlib-native openssl-native"
 DEPENDS_class-nativesdk = "nativesdk-zlib"
 
@@ -30,6 +30,7 @@ EXTRA_OECONF = "--with-zlib=${STAGING_LIBDIR}/../ \
 --enable-crypto-auth \
 --disable-ldap \
 --disable-ldaps \
+--enable-ares \
 ${CURLGNUTLS} \
 "
 
-- 
1.8.1.2

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] curl: build with c-ares library support

2013-11-12 Thread Yevhen Kyriukha
> I am still considering this patch, but need to understand what platforms
> curl is failing on.

As far as I've tested curl crashes on i386, cedartrail and x86-64 platforms.

The c-ares recipe was borrowed from meta-webos-ports.

I'll prepare new version of this patch that will include PACKAGECONFIG
switch.

Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2] curl: allow build with c-ares library support.

2013-11-13 Thread Yevhen Kyriukha
Also added c-ares library recipe.

In libcurl there is an issue with DNS lookups that cause crash on some 
platforms:
http://curl.haxx.se/mail/lib-2008-09/0197.html
To avoid this issue libcurl has to be built with c-ares name resolver.

Signed-off-by: Yevhen Kyriukha 
---
 meta/recipes-support/c-ares/c-ares_1.10.0.bb | 24 
 meta/recipes-support/curl/curl_7.33.0.bb |  2 ++
 2 files changed, 26 insertions(+)
 create mode 100644 meta/recipes-support/c-ares/c-ares_1.10.0.bb

diff --git a/meta/recipes-support/c-ares/c-ares_1.10.0.bb 
b/meta/recipes-support/c-ares/c-ares_1.10.0.bb
new file mode 100644
index 000..23b3d0e
--- /dev/null
+++ b/meta/recipes-support/c-ares/c-ares_1.10.0.bb
@@ -0,0 +1,24 @@
+# Copyright (c) 2012-2013 LG Electronics, Inc.
+
+DESCRIPTION = "c-ares is a C library that resolves names asynchronously."
+HOMEPAGE = "http://daniel.haxx.se/projects/c-ares/";
+SECTION = "libs"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 
"file://README;beginline=17;endline=18;md5=b320556568bc067d215a1e34c5b34a14"
+
+inherit autotools
+inherit pkgconfig
+
+SRC_URI = "http://c-ares.haxx.se/download/${BP}.tar.gz";
+SRC_URI[md5sum] = "1196067641411a75d3cbebe074fd36d8"
+SRC_URI[sha256sum] = 
"3d701674615d1158e56a59aaede7891f2dde3da0f46a6d3c684e0ae70f52d3db"
+
+EXTRA_OECONF = "--enable-shared"
+
+# install private headers to ares subdirectory
+do_install_append() {
+install -d ${D}/${includedir}/ares
+install -m 0644 ares*.h ${D}/${includedir}/ares/
+}
+
+FILES_${PN}-dev += "${includedir}/ares/*.h"
diff --git a/meta/recipes-support/curl/curl_7.33.0.bb 
b/meta/recipes-support/curl/curl_7.33.0.bb
index 8539fec..717c4f9 100644
--- a/meta/recipes-support/curl/curl_7.33.0.bb
+++ b/meta/recipes-support/curl/curl_7.33.0.bb
@@ -23,6 +23,8 @@ SRC_URI[sha256sum] = 
"0afde4cd949e2658eddc3cda675b19b165eea1af48ac5f3e1ec1607922
 
 inherit autotools pkgconfig binconfig
 
+PACKAGECONFIG[c-ares] = "--enable-ares,--disable-ares,c-ares"
+
 EXTRA_OECONF = "--with-zlib=${STAGING_LIBDIR}/../ \
 --without-libssh2 \
 --with-random=/dev/urandom \
-- 
1.8.1.2

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2] curl: allow build with c-ares library support.

2013-11-13 Thread Yevhen Kyriukha
2013/11/13 Saul Wold :
> On 11/13/2013 06:51 AM, Yevhen Kyriukha wrote:
>>
>> Also added c-ares library recipe.
>>
>> In libcurl there is an issue with DNS lookups that cause crash on some
>> platforms:
>> http://curl.haxx.se/mail/lib-2008-09/0197.html
>> To avoid this issue libcurl has to be built with c-ares name resolver.
>>
> This still does not fully explain why this is needed. Nor credits to origin
> of the c-ares recipe.
>

Do you meen to note layer name where I get this recipe from in commit?
The c-ares recipe was borrowed from meta-webos-ports.

> You also did not address Phil Blundell's comment about causing other issues,
> and possibibly using the existing libcurl internal threaded resolver.
>
> Can you test with the internal resolver to see if it address your issues,
> before we add a new recipe.
>

As far as I've tested curl crashes on i386 and Intel Cedartrail
platforms with internal threaded resolver.

Best regards,
Yevhen

>
>> Signed-off-by: Yevhen Kyriukha 
>> ---
>>   meta/recipes-support/c-ares/c-ares_1.10.0.bb | 24
>> 
>>   meta/recipes-support/curl/curl_7.33.0.bb |  2 ++
>>   2 files changed, 26 insertions(+)
>>   create mode 100644 meta/recipes-support/c-ares/c-ares_1.10.0.bb
>>
>
> This still needs to be split into 2 distict patches, one adding the c-ares
> recipe and a second one to use the PACKAGECONFIG.
>
> Sau!
>
>
>> diff --git a/meta/recipes-support/c-ares/c-ares_1.10.0.bb
>> b/meta/recipes-support/c-ares/c-ares_1.10.0.bb
>> new file mode 100644
>> index 000..23b3d0e
>> --- /dev/null
>> +++ b/meta/recipes-support/c-ares/c-ares_1.10.0.bb
>> @@ -0,0 +1,24 @@
>> +# Copyright (c) 2012-2013 LG Electronics, Inc.
>> +
>> +DESCRIPTION = "c-ares is a C library that resolves names asynchronously."
>> +HOMEPAGE = "http://daniel.haxx.se/projects/c-ares/";
>> +SECTION = "libs"
>> +LICENSE = "MIT"
>> +LIC_FILES_CHKSUM =
>> "file://README;beginline=17;endline=18;md5=b320556568bc067d215a1e34c5b34a14"
>> +
>> +inherit autotools
>> +inherit pkgconfig
>> +
>> +SRC_URI = "http://c-ares.haxx.se/download/${BP}.tar.gz";
>> +SRC_URI[md5sum] = "1196067641411a75d3cbebe074fd36d8"
>> +SRC_URI[sha256sum] =
>> "3d701674615d1158e56a59aaede7891f2dde3da0f46a6d3c684e0ae70f52d3db"
>> +
>> +EXTRA_OECONF = "--enable-shared"
>> +
>> +# install private headers to ares subdirectory
>> +do_install_append() {
>> +install -d ${D}/${includedir}/ares
>> +install -m 0644 ares*.h ${D}/${includedir}/ares/
>> +}
>> +
>> +FILES_${PN}-dev += "${includedir}/ares/*.h"
>> diff --git a/meta/recipes-support/curl/curl_7.33.0.bb
>> b/meta/recipes-support/curl/curl_7.33.0.bb
>> index 8539fec..717c4f9 100644
>> --- a/meta/recipes-support/curl/curl_7.33.0.bb
>> +++ b/meta/recipes-support/curl/curl_7.33.0.bb
>> @@ -23,6 +23,8 @@ SRC_URI[sha256sum] =
>> "0afde4cd949e2658eddc3cda675b19b165eea1af48ac5f3e1ec1607922
>>
>>   inherit autotools pkgconfig binconfig
>>
>> +PACKAGECONFIG[c-ares] = "--enable-ares,--disable-ares,c-ares"
>> +
>>   EXTRA_OECONF = "--with-zlib=${STAGING_LIBDIR}/../ \
>>   --without-libssh2 \
>>   --with-random=/dev/urandom \
>>
>


Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2] curl: allow build with c-ares library support.

2013-11-13 Thread Yevhen Kyriukha
2013/11/13 Saul Wold :
> On 11/13/2013 09:25 AM, Yevhen Kyriukha wrote:
>>
>> 2013/11/13 Saul Wold :
>>>
>>> On 11/13/2013 06:51 AM, Yevhen Kyriukha wrote:
>>>>
>>>>
>>>> Also added c-ares library recipe.
>>>>
>>>> In libcurl there is an issue with DNS lookups that cause crash on some
>>>> platforms:
>>>> http://curl.haxx.se/mail/lib-2008-09/0197.html
>>>> To avoid this issue libcurl has to be built with c-ares name resolver.
>>>>
>>> This still does not fully explain why this is needed. Nor credits to
>>> origin
>>> of the c-ares recipe.
>>>
>>
>> Do you meen to note layer name where I get this recipe from in commit?
>> The c-ares recipe was borrowed from meta-webos-ports.
>>
> Yes, you need to say that as part of your patch, but I still want more
> details below about using the internal threaded resolver before we add a new
> recipe.
>
>
>>> You also did not address Phil Blundell's comment about causing other
>>> issues,
>>> and possibibly using the existing libcurl internal threaded resolver.
>>>
>>> Can you test with the internal resolver to see if it address your issues,
>>> before we add a new recipe.
>>>
>>
>> As far as I've tested curl crashes on i386 and Intel Cedartrail
>> platforms with internal threaded resolver.
>>
> Did you explictly enable the threaded resolver with
> --enable-threaded-resolver?
>
> Thanks
> Sau!
>
>
>
>> Best regards,
>> Yevhen
>>
>>>
>>>> Signed-off-by: Yevhen Kyriukha 
>>>> ---
>>>>meta/recipes-support/c-ares/c-ares_1.10.0.bb | 24
>>>> 
>>>>meta/recipes-support/curl/curl_7.33.0.bb |  2 ++
>>>>2 files changed, 26 insertions(+)
>>>>create mode 100644 meta/recipes-support/c-ares/c-ares_1.10.0.bb
>>>>
>>>
>>> This still needs to be split into 2 distict patches, one adding the
>>> c-ares
>>> recipe and a second one to use the PACKAGECONFIG.
>>>
>>> Sau!
>>>
>>>
>>>> diff --git a/meta/recipes-support/c-ares/c-ares_1.10.0.bb
>>>> b/meta/recipes-support/c-ares/c-ares_1.10.0.bb
>>>> new file mode 100644
>>>> index 000..23b3d0e
>>>> --- /dev/null
>>>> +++ b/meta/recipes-support/c-ares/c-ares_1.10.0.bb
>>>> @@ -0,0 +1,24 @@
>>>> +# Copyright (c) 2012-2013 LG Electronics, Inc.
>>>> +
>>>> +DESCRIPTION = "c-ares is a C library that resolves names
>>>> asynchronously."
>>>> +HOMEPAGE = "http://daniel.haxx.se/projects/c-ares/";
>>>> +SECTION = "libs"
>>>> +LICENSE = "MIT"
>>>> +LIC_FILES_CHKSUM =
>>>>
>>>> "file://README;beginline=17;endline=18;md5=b320556568bc067d215a1e34c5b34a14"
>>>> +
>>>> +inherit autotools
>>>> +inherit pkgconfig
>>>> +
>>>> +SRC_URI = "http://c-ares.haxx.se/download/${BP}.tar.gz";
>>>> +SRC_URI[md5sum] = "1196067641411a75d3cbebe074fd36d8"
>>>> +SRC_URI[sha256sum] =
>>>> "3d701674615d1158e56a59aaede7891f2dde3da0f46a6d3c684e0ae70f52d3db"
>>>> +
>>>> +EXTRA_OECONF = "--enable-shared"
>>>> +
>>>> +# install private headers to ares subdirectory
>>>> +do_install_append() {
>>>> +install -d ${D}/${includedir}/ares
>>>> +install -m 0644 ares*.h ${D}/${includedir}/ares/
>>>> +}
>>>> +
>>>> +FILES_${PN}-dev += "${includedir}/ares/*.h"
>>>> diff --git a/meta/recipes-support/curl/curl_7.33.0.bb
>>>> b/meta/recipes-support/curl/curl_7.33.0.bb
>>>> index 8539fec..717c4f9 100644
>>>> --- a/meta/recipes-support/curl/curl_7.33.0.bb
>>>> +++ b/meta/recipes-support/curl/curl_7.33.0.bb
>>>> @@ -23,6 +23,8 @@ SRC_URI[sha256sum] =
>>>> "0afde4cd949e2658eddc3cda675b19b165eea1af48ac5f3e1ec1607922
>>>>
>>>>inherit autotools pkgconfig binconfig
>>>>
>>>> +PACKAGECONFIG[c-ares] = "--enable-ares,--disable-ares,c-ares"
>>>> +
>>>>EXTRA_OECONF = "--with-zlib=${STAGING_LIBDIR}/../ \
>>>>--without-libssh2 \
>>>>--with-random=/dev/urandom \
>>>>
>>>
>>
>>
>> Best regards,
>> Yevhen
>>
>>
>

Hmm... I thought that threaded resolver is used by default.
I had "longjmp causes uninitialized stack frame" error but enabling
threaded resolver explicitly fixed the problem.

Anyway I think that adding c-ares support in curl is good idea.
I'll prepare new version of patch (without mention of issue) if there
is no objections.

And in this case maybe it will be better to use threaded resolver by
default if c-ares is not specified.

How do you think?

Regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] Сontinuous kernel rebuild after upgrade

2013-11-14 Thread Yevhen Kyriukha
Hi,

After upgrading oe-core and bitbake to the latest revision
(616354f13732d13c17434d5b60b166f691c25761 and
616354f13732d13c17434d5b60b166f691c25761 respectively)
I'm having broblems building my kernel.

Kernel rebuilds everytime I run "bitbake ".
It starts rebuilding from "do_unpack" task.

I noticed interesting things:
If I interrupt the build process and then start building again, kernel
is started building from the point of interruption.
But if kernel building completed successfully then next time when I
run bitbake it starts rebuild.

My previous version of bitbake and oe-core are
565b3e31e0226c6e193ee0b031bd5e7bef25591e
and ae28ee3f7a060b9e0d13154a84f2444a98490b5b respectively.

Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] Continuous kernel rebuild after upgrade

2013-11-15 Thread Yevhen Kyriukha
2013/11/14 Yevhen Kyriukha :
> Hi,
>
> After upgrading oe-core and bitbake to the latest revision
> (616354f13732d13c17434d5b60b166f691c25761 and
> 616354f13732d13c17434d5b60b166f691c25761 respectively)
> I'm having broblems building my kernel.
>
> Kernel rebuilds everytime I run "bitbake ".
> It starts rebuilding from "do_unpack" task.
>
> I noticed interesting things:
> If I interrupt the build process and then start building again, kernel
> is started building from the point of interruption.
> But if kernel building completed successfully then next time when I
> run bitbake it starts rebuild.
>
> My previous version of bitbake and oe-core are
> 565b3e31e0226c6e193ee0b031bd5e7bef25591e
> and ae28ee3f7a060b9e0d13154a84f2444a98490b5b respectively.
>
> Best regards,
> Yevhen

Here is error log of python build script:

http://pastebin.com/EvPuYSQE

Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] Kernel recompile if "rm_work" defined

2013-11-18 Thread Yevhen Kyriukha
Hi,

When I set
INHERIT += "rm_work"
in my local.conf to save some space my kernel now recompiles each time
I run bitbake.

How to fix this without removing "rm_work" from config?

Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] Kernel recompile if "rm_work" defined

2013-11-20 Thread Yevhen Kyriukha
2013/11/18 Richard Purdie :
> On Mon, 2013-11-18 at 21:43 +0200, Yevhen Kyriukha wrote:
>> Hi,
>>
>> When I set
>> INHERIT += "rm_work"
>> in my local.conf to save some space my kernel now recompiles each time
>> I run bitbake.
>>
>> How to fix this without removing "rm_work" from config?
>
> Like this. I keep suggesting someone send me the patch but it never
> seems to happen...
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index 383043e..ff99c76 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -146,7 +146,6 @@ do_bundle_initramfs () {
> fi
> fi
>  }
> -do_bundle_initramfs[nostamp] = "1"
>
>  python do_devshell_prepend () {
>  os.environ["LDFLAGS"] = ''
>

Thanks for the answer but it didn't help.
Kernel still rebuilds.

Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] c-ares: added recipe.

2013-11-26 Thread Yevhen Kyriukha
Recipe was borrowed from meta-webos-ports.

Signed-off-by: Yevhen Kyriukha 
---
 meta/recipes-support/c-ares/c-ares_1.10.0.bb | 22 ++
 1 file changed, 22 insertions(+)
 create mode 100644 meta/recipes-support/c-ares/c-ares_1.10.0.bb

diff --git a/meta/recipes-support/c-ares/c-ares_1.10.0.bb 
b/meta/recipes-support/c-ares/c-ares_1.10.0.bb
new file mode 100644
index 000..27bedf4
--- /dev/null
+++ b/meta/recipes-support/c-ares/c-ares_1.10.0.bb
@@ -0,0 +1,22 @@
+DESCRIPTION = "c-ares is a C library that resolves names asynchronously."
+HOMEPAGE = "http://daniel.haxx.se/projects/c-ares/";
+SECTION = "libs"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = 
"file://README;beginline=17;endline=18;md5=b320556568bc067d215a1e34c5b34a14"
+
+inherit autotools
+inherit pkgconfig
+
+SRC_URI = "http://c-ares.haxx.se/download/${BP}.tar.gz";
+SRC_URI[md5sum] = "1196067641411a75d3cbebe074fd36d8"
+SRC_URI[sha256sum] = 
"3d701674615d1158e56a59aaede7891f2dde3da0f46a6d3c684e0ae70f52d3db"
+
+EXTRA_OECONF = "--enable-shared"
+
+# install private headers to ares subdirectory
+do_install_append() {
+install -d ${D}/${includedir}/ares
+install -m 0644 ares*.h ${D}/${includedir}/ares/
+}
+
+FILES_${PN}-dev += "${includedir}/ares/*.h"
-- 
1.8.1.2

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] [PATCH] psplash: add support for systems without mmap support.

2013-12-10 Thread Yevhen Kyriukha
Signed-off-by: Yevhen Kyriukha 
---
 ...-support-for-systems-without-mmap-support.patch | 133 +
 meta/recipes-core/psplash/psplash_git.bb   |   3 +-
 2 files changed, 135 insertions(+), 1 deletion(-)
 create mode 100644 
meta/recipes-core/psplash/files/0001-Add-support-for-systems-without-mmap-support.patch

diff --git 
a/meta/recipes-core/psplash/files/0001-Add-support-for-systems-without-mmap-support.patch
 
b/meta/recipes-core/psplash/files/0001-Add-support-for-systems-without-mmap-support.patch
new file mode 100644
index 000..76b21f5
--- /dev/null
+++ 
b/meta/recipes-core/psplash/files/0001-Add-support-for-systems-without-mmap-support.patch
@@ -0,0 +1,133 @@
+Add support for systems without mmap support.
+
+Patch adds support to display splash image on systems
+where mmap syscall is not available or is not working properly.
+
+Upstream-Status: Pending
+
+Signed-off-by: Yevhen Kyriukha 
+---
+ psplash-fb.c |   24 +---
+ psplash-fb.h |4 
+ psplash.c|6 ++
+ 3 files changed, 31 insertions(+), 3 deletions(-)
+
+diff --git a/psplash-fb.c b/psplash-fb.c
+index 71740cd..17893ab 100644
+--- a/psplash-fb.c
 b/psplash-fb.c
+@@ -19,12 +19,21 @@
+ void
+ psplash_fb_destroy (PSplashFB *fb)
+ {
++  if (fb->alloc == 1)
++  free(fb->base);
+   if (fb->fd >= 0)
+ close (fb->fd);
+ 
+   free(fb);
+ }
+ 
++void
++psplash_fb_flush (PSplashFB *fb)
++{
++  if (fb->alloc == 1)
++  pwrite(fb->fd, fb->base, fb->stride * fb->height, 0);
++}
++
+ static int
+ attempt_to_change_pixel_format (PSplashFB *fb,
+ struct fb_var_screeninfo *fb_var)
+@@ -119,6 +128,7 @@ psplash_fb_new (int angle)
+   memset (fb, 0, sizeof(PSplashFB));
+ 
+   fb->fd = -1;
++  fb->alloc = -1;
+ 
+   if ((fb->fd = open (fbdev, O_RDWR)) < 0)
+ {
+@@ -194,17 +204,25 @@ psplash_fb_new (int angle)
+   DBG("width: %i, height: %i, bpp: %i, stride: %i",
+   fb->width, fb->height, fb->bpp, fb->stride);
+ 
++  size_t size = fb->stride * fb->height;
++
+   fb->base = (char *) mmap ((caddr_t) NULL,
+   /*fb_fix.smem_len */
+-  fb->stride * fb->height,
++  size,
+   PROT_READ|PROT_WRITE,
+   MAP_SHARED,
+   fb->fd, 0);
+ 
+   if (fb->base == (char *)-1)
+ {
+-  perror("Error cannot mmap framebuffer ");
+-  goto fail;
++  fprintf(stdout, "Error cannot mmap framebuffer. Using malloc 
instead.\n");
++fb->base = (char*)malloc(size);
++  if (!fb->base)
++{
++  perror("Error cannot allocate memory.");
++  goto fail;
++}
++  fb->alloc = 1;
+ }
+ 
+   off = (unsigned long) fb_fix.smem_start % (unsigned long) getpagesize();
+diff --git a/psplash-fb.h b/psplash-fb.h
+index ef5b39e..0dbc5ea 100644
+--- a/psplash-fb.h
 b/psplash-fb.h
+@@ -48,6 +48,7 @@ typedef struct PSplashFB
+   intgreen_length;
+   intblue_offset;
+   intblue_length;
++  intalloc;
+ }
+ PSplashFB;
+ 
+@@ -57,6 +58,9 @@ psplash_fb_destroy (PSplashFB *fb);
+ PSplashFB*
+ psplash_fb_new (int angle);
+ 
++void
++psplash_fb_flush (PSplashFB *fb);
++
+ inline void
+ psplash_fb_plot_pixel (PSplashFB*fb, 
+  int  x, 
+diff --git a/psplash.c b/psplash.c
+index 09cf0d0..524d37d 100644
+--- a/psplash.c
 b/psplash.c
+@@ -57,6 +57,8 @@ psplash_draw_msg (PSplashFB *fb, const char *msg)
+   PSPLASH_TEXT_COLOR,
+   &radeon_font,
+   msg);
++
++  psplash_fb_flush (fb);
+ }
+ 
+ void
+@@ -90,6 +92,8 @@ psplash_draw_progress (PSplashFB *fb, int value)
+   PSPLASH_BAR_COLOR);
+ }
+ 
++  psplash_fb_flush (fb);
++
+   DBG("value: %i, width: %i, barwidth :%i\n", value, 
+   width, barwidth);
+ }
+@@ -289,6 +293,8 @@ main (int argc, char** argv)
+ 
+   psplash_draw_msg (fb, MSG);
+ 
++  psplash_fb_flush (fb);
++
+   psplash_main (fb, pipe_fd, 0);
+ 
+ 
+-- 
+1.7.9.5
+
diff --git a/meta/recipes-core/psplash/psplash_git.bb 
b/meta/recipes-core/psplash/psplash_git.bb
index 1cab296..91c3fef 100644
--- a/meta/recipes-core/psplash/psplash_git.bb
+++ b/meta/recipes-core/psplash/psplash_git.bb
@@ -7,9 +7,10 @@ LIC_FILES_CHKSUM = 
"file://psplash.h;beginline=1;endline=16;md5=840fb2356b10a85b
 
 SRCREV = "afd4e228c606a9998feae44a3fed4474803240b7"
 PV = "0.1+git${SRCPV}"
-PR = "r15"
+PR = "r16"
 
 SRC_URI = "git://git.yoctoproject.org/${BPN} \
+   file://0001-Add-support-for-systems-without-mmap-support.patch \
file://psplash-init \
${SPLASH_IMAGES}"
 
-- 
1.8.1.2

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] psplash: add support for systems without mmap support.

2013-12-10 Thread Yevhen Kyriukha
2013/12/10 Burton, Ross :
> Surely if your system has a broken mmap() you've got far bigger
> problems than the splash screen not working?

I'm using Intel Cedartrail platform where mmap is not working properly
with framebuffer.
It's a framebuffer driver problem and such problem may be present on
other platforms too.
Everything else is working as expected.

>
> Also, we're upstream for this so instead of patching the recipe, file
> a bug with a patch for psplash itself.

I had already asked a question here about how I can submit this changes.
I was told to send email to someone of developers of psplash.
I send email to Richard Purdie but there was no reply.

So now I decided to send a patch for psplash recipe.

Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] Failed to build opkg with curl support

2014-01-09 Thread Yevhen Kyriukha
I define "curl" in PACKAGECONFIG for opkg.
After that I'm getting circular dependency errors during building opkg.

Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] Failed to build opkg with curl support

2014-01-14 Thread Yevhen Kyriukha
Hi Paul,

2014/1/10 Paul Barker :
> On 9 January 2014 12:04, Yevhen Kyriukha  wrote:
>> I define "curl" in PACKAGECONFIG for opkg.
>> After that I'm getting circular dependency errors during building opkg.
>>
>> Best regards,
>> Yevhen
>
> Sorry, this is a known problem.
>
> The update-alternatives script needs to be moved out of opkg, either
> to opkg-utils or to its own recipe as it is the use of
> update-alternatives that is causing the circular dependencies. This is
> what I am planning to work on next as soon as I get some time.
>
> This is required for my ongoing development work on opkg so it should
> get sorted out soon. (Future versions of opkg will depend on
> libarchive which also indirectly depends on update-alternatives).
>
> Related to this is the fact that no other providers of
> update-alternatives seem to work, again due to circular dependencies.
>
> See http://thread.gmane.org/gmane.comp.handhelds.openembedded.core/45321
>
> Thanks,
>
> --
> Paul Barker
>
> Email: p...@paulbarker.me.uk
> http://www.paulbarker.me.uk

Can you give some estimates on how long the implementation of this
feature will take?

-- 
Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] update-alternatives: symlinks are not created

2014-01-23 Thread Yevhen Kyriukha
I've built custom image with busybox included and noticed that
symlinks for mkdir, ls, rm and other programs are not created.

In do_rootfs log I have the following error messages:
...
update-alternatives: error: alternative path /bin/busybox.suid doesn't exist
...
update-alternatives: error: alternative path /bin/busybox.nosuid doesn't exist
...

-- 
Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] Do not build initramfs

2013-01-28 Thread Yevhen Kyriukha
I want to build an image ("core-image-minimal" for example) without
initramfs support.
How can I do it?

When I run "bibake core-image-minimal" I'm getting 2 image types: the
actual image with needed packages and initramfs image.

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] Multiple systemd service packages for single recipe

2013-01-30 Thread Yevhen Kyriukha
How can I generate multiple systemd service packages for single recipe?

I'm building connman with VPN support and I want to have
connman-systemd and connman-vpn-systemd packages.
I'm using following syntax for connman recipe but no
"connman-vpn-systemd" is generated:

SYSTEMD_PACKAGES += "${PN}-systemd ${PN}-vpn-systemd"
SYSTEMD_SERVICE_${PN}-systemd = "connman.service"
SYSTEMD_SERVICE_${PN}-vpn-systemd = "connman-vpn.service"
FILES_${PN}-vpn-systemd +=
"${datadir}/dbus-1/system-services/net.connman.vpn.service"

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] systemd: add python-systemd package

2013-03-28 Thread Yevhen Kyriukha
Hi!

It would be great if someone add changes to systemd recipe to generate
python-systemd package (
http://www.freedesktop.org/software/systemd/python-systemd/).

Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH] systemd: added python-systemd package generation.

2013-04-05 Thread Yevhen Kyriukha
---
 meta/recipes-core/systemd/systemd_199.bb |   21 +
 1 file changed, 17 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-core/systemd/systemd_199.bb 
b/meta/recipes-core/systemd/systemd_199.bb
index ba1d133..2a3d351 100644
--- a/meta/recipes-core/systemd/systemd_199.bb
+++ b/meta/recipes-core/systemd/systemd_199.bb
@@ -10,12 +10,18 @@ PROVIDES = "udev"
 
 PE = "1"
 
-DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native acl 
readline dbus libcap libcgroup tcp-wrappers glib-2.0"
+DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native acl 
readline dbus libcap libcgroup tcp-wrappers glib-2.0 python"
 DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
 
 SECTION = "base/shell"
 
-inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d
+inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d 
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 \
@@ -63,9 +69,9 @@ EXTRA_OECONF = " --with-rootprefix=${base_prefix} \
  --disable-coredump \
  --disable-introspection \
  --disable-tcpwrap \
+ --with-python \
  --enable-split-usr \
  --disable-microhttpd \
- --without-python \
  --with-sysvrcnd-path=${sysconfdir} \
  ac_cv_path_KILL=${base_bindir}/kill \
"
@@ -114,7 +120,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} python-${PN}-dbg python-${PN}-staticdev"
 
 USERADD_PACKAGES = "${PN}"
 GROUPADD_PARAM_${PN} = "-r lock; -r systemd-journal"
@@ -124,6 +130,13 @@ FILES_${PN}-analyze = "${base_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"
+FILES_python-${PN}-staticdev = "${PYTHON_SITEPACKAGES_DIR}/systemd/*.la"
+RDEPENDS_python-${PN} = "python-core"
+FILES_python-${PN}-dbg = "${PYTHON_SITEPACKAGES_DIR}/systemd/.debug"
+RDEPENDS_python-${PN} = "python-core"
+
 FILES_${PN}-gui = "${bindir}/systemadm"
 
 FILES_${PN}-vconsole-setup = "${systemd_unitdir}/systemd-vconsole-setup \
-- 
1.7.9.5


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH] systemd: added python-systemd package generation.

2013-04-05 Thread Yevhen Kyriukha
2013/4/6 Martin Jansa 
>
> On Sat, Apr 06, 2013 at 12:13:00AM +0300, Yevhen Kyriukha wrote:
> > ---
> >  meta/recipes-core/systemd/systemd_199.bb |   21 +
> >  1 file changed, 17 insertions(+), 4 deletions(-)
> >
> > diff --git a/meta/recipes-core/systemd/systemd_199.bb 
> > b/meta/recipes-core/systemd/systemd_199.bb
> > index ba1d133..2a3d351 100644
> > --- a/meta/recipes-core/systemd/systemd_199.bb
> > +++ b/meta/recipes-core/systemd/systemd_199.bb
> > @@ -10,12 +10,18 @@ PROVIDES = "udev"
> >
> >  PE = "1"
> >
> > -DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native 
> > acl readline dbus libcap libcgroup tcp-wrappers glib-2.0"
> > +DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native 
> > acl readline dbus libcap libcgroup tcp-wrappers glib-2.0 python"
> >  DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
> >
> >  SECTION = "base/shell"
> >
> > -inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d
> > +inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d 
> > 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 \
> > @@ -63,9 +69,9 @@ EXTRA_OECONF = " --with-rootprefix=${base_prefix} \
> >   --disable-coredump \
> >   --disable-introspection \
> >   --disable-tcpwrap \
> > + --with-python \
> >   --enable-split-usr \
> >   --disable-microhttpd \
> > - --without-python \
> >   --with-sysvrcnd-path=${sysconfdir} \
> >   ac_cv_path_KILL=${base_bindir}/kill \
> > "
> > @@ -114,7 +120,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} python-${PN}-dbg python-${PN}-staticdev"
> >
> >  USERADD_PACKAGES = "${PN}"
> >  GROUPADD_PARAM_${PN} = "-r lock; -r systemd-journal"
> > @@ -124,6 +130,13 @@ FILES_${PN}-analyze = "${base_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"
> > +FILES_python-${PN}-staticdev = "${PYTHON_SITEPACKAGES_DIR}/systemd/*.la"
> > +RDEPENDS_python-${PN} = "python-core"
> > +FILES_python-${PN}-dbg = "${PYTHON_SITEPACKAGES_DIR}/systemd/.debug"
> > +RDEPENDS_python-${PN} = "python-core"
>
> You have 3x RDEPENDS_python-${PN} (maybe you wanted -dbg and -staticdev,
> but those do not need python-core imho).
>
> It's more common to start with ${PN}, but maybe it makes sense with
> python- prefix if you think about it as python module not systemd
> package...
>
> > +
> >  FILES_${PN}-gui = "${bindir}/systemadm"
> >
> >  FILES_${PN}-vconsole-setup = "${systemd_unitdir}/systemd-vconsole-setup \
> > --
> > 1.7.9.5
> >
> >
> > ___
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
> --
> Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com


> You have 3x RDEPENDS_python-${PN} (maybe you wanted -dbg and -staticdev,
> but those do not need python-core imho).

Yes, I meant -dbg and -staticdev. I don't know what to write in
RDEPENDS for these packages.

> It's more common to start with ${PN}, but maybe it makes sense with
> python- prefix if you think about it as python module not systemd
> package...

It's python package that is an interface to some systemd functionality
therefore I named it "python-systemd".

I'll send new version of this patch as I found some missing rdepends.

Regards,
Yevhen

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH v2] systemd: added python-systemd package generation.

2013-04-05 Thread 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 e574548..00daf99 100644
--- a/meta/recipes-core/systemd/systemd_199.bb
+++ b/meta/recipes-core/systemd/systemd_199.bb
@@ -15,7 +15,13 @@ DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 
'libpam', '', d)}"
 
 SECTION = "base/shell"
 
-inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d
+inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d 
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 \
@@ -44,11 +50,13 @@ LDFLAGS_libc-uclibc_append = " -lrt"
 
 GTKDOC_DOCDIR = "${S}/docs/"
 
-PACKAGECONFIG ??= "xz"
+PACKAGECONFIG ??= "xz python"
 # Sign the journal for anti-tampering
 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} \
  ac_cv_path_KILL=${base_bindir}/kill \
"
@@ -114,7 +121,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} python-${PN}-dbg python-${PN}-staticdev"
 
 USERADD_PACKAGES = "${PN}"
 GROUPADD_PARAM_${PN} = "-r lock; -r systemd-journal"
@@ -124,6 +131,11 @@ FILES_${PN}-analyze = "${base_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_python-${PN}-staticdev = "${PYTHON_SITEPACKAGES_DIR}/systemd/*.la"
+FILES_python-${PN}-dbg = "${PYTHON_SITEPACKAGES_DIR}/systemd/.debug"
+
 FILES_${PN}-gui = "${bindir}/systemadm"
 
 FILES_${PN}-vconsole-setup = "${systemd_unitdir}/systemd-vconsole-setup \
-- 
1.7.9.5


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v2] systemd: added python-systemd package generation.

2013-04-06 Thread Yevhen Kyriukha
2013/4/6 Koen Kooi :
>
> Op 6 apr. 2013, om 00:38 heeft Yevhen Kyriukha  het 
> volgende geschreven:
>
>> ---
>> 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 e574548..00daf99 100644
>> --- a/meta/recipes-core/systemd/systemd_199.bb
>> +++ b/meta/recipes-core/systemd/systemd_199.bb
>> @@ -15,7 +15,13 @@ DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 
>> 'libpam', '', d)}"
>>
>> SECTION = "base/shell"
>>
>> -inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d
>> +inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d 
>> 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 \
>> @@ -44,11 +50,13 @@ LDFLAGS_libc-uclibc_append = " -lrt"
>>
>> GTKDOC_DOCDIR = "${S}/docs/"
>>
>> -PACKAGECONFIG ??= "xz"
>> +PACKAGECONFIG ??= "xz python"
>> # Sign the journal for anti-tampering
>> 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-python ?
>
I use
>> +PACKAGECONFIG[python] = "--with-python,--without-python,python"

>>  --with-sysvrcnd-path=${sysconfdir} \
>>  ac_cv_path_KILL=${base_bindir}/kill \
>>"
>> @@ -114,7 +121,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} python-${PN}-dbg python-${PN}-staticdev"
>>
>> USERADD_PACKAGES = "${PN}"
>> GROUPADD_PARAM_${PN} = "-r lock; -r systemd-journal"
>> @@ -124,6 +131,11 @@ FILES_${PN}-analyze = "${base_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_python-${PN}-staticdev = "${PYTHON_SITEPACKAGES_DIR}/systemd/*.la"
>
> Do libtool archives belong in -staticdev?
>
>
>> +FILES_python-${PN}-dbg = "${PYTHON_SITEPACKAGES_DIR}/systemd/.debug"
>> +
>> FILES_${PN}-gui = "${bindir}/systemadm"
>>
>> FILES_${PN}-vconsole-setup = "${systemd_unitdir}/systemd-vconsole-setup \
>> --
>> 1.7.9.5
>>
>>
>> ___
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>

Best regards,
Yevhen

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] Multiple *.bbappend files support

2013-04-15 Thread Yevhen Kyriukha
Is there a way to use multiple *.bbappend files in different layers?

I'm using meta-raspberrypi and my own layer.
Both extend base-files with *.bbappend and both have PRINC = "1".
But only first of *.bbappend files applied (that is in meta-raspberrypi).
PR of base-files also increments by one (not by two).

Best regards,
Yevhen

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] Multiple *.bbappend files support

2013-04-15 Thread Yevhen Kyriukha
Great, thanks!
Best regards,
Yevhen


2013/4/15 Koen Kooi :
>
> Op 15 apr. 2013, om 12:26 heeft Yevhen Kyriukha  het 
> volgende geschreven:
>
>> Is there a way to use multiple *.bbappend files in different layers?
>>
>> I'm using meta-raspberrypi and my own layer.
>> Both extend base-files with *.bbappend and both have PRINC = "1".
>> But only first of *.bbappend files applied (that is in meta-raspberrypi).
>> PR of base-files also increments by one (not by two).
>
> Yeah, try to make all bbappends use:
>
> PRINC := "${@int(PRINC) + 1}"
>
> regards,
>
> Koen

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] Multiple *.bbappend files support

2013-04-15 Thread Yevhen Kyriukha
2013/4/15 Richard Purdie :
> On Mon, 2013-04-15 at 13:37 +0300, Yevhen Kyriukha wrote:
>> Great, thanks!
>> Best regards,
>> Yevhen
>>
>>
>> 2013/4/15 Koen Kooi :
>> >
>> > Op 15 apr. 2013, om 12:26 heeft Yevhen Kyriukha  het 
>> > volgende geschreven:
>> >
>> >> Is there a way to use multiple *.bbappend files in different layers?
>> >>
>> >> I'm using meta-raspberrypi and my own layer.
>> >> Both extend base-files with *.bbappend and both have PRINC = "1".
>> >> But only first of *.bbappend files applied (that is in meta-raspberrypi).
>> >> PR of base-files also increments by one (not by two).
>> >
>> > Yeah, try to make all bbappends use:
>> >
>> > PRINC := "${@int(PRINC) + 1}"
>> >
>
> I'd just add that with the PR server now in use, the need to add this
> PRINC stuff should be removed...
>
> Cheers,
>
> Richard
>

And what does it mean? What do I need to write in bbappend instead of PRINC?

Best regards,
Yevhen

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] psplash and systemd

2013-04-15 Thread Yevhen Kyriukha
Is there a way to display image with progress bar during boot (using
psplash) with systemd?

Best regards,
Yevhen

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] Embed initramfs into kernel

2013-04-22 Thread Yevhen Kyriukha
Hi!

I have a custom kernel recipe and initramfs image recipe.
How can I embed initramfs into kernel?
Is there any example available?

Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] Embed initramfs into kernel

2013-04-22 Thread Yevhen Kyriukha
Thanks!

I was trying to build the kernel and I got the following error:
Aborted dependency loops search after 10 matches.

I copied core-image-minimal-initramfs and changed IMAGE_INSTALL:
IMAGE_INSTALL = "initramfs-live-boot busybox udev base-passwd".
Also I added
INITRAMFS_IMAGE = "custom-initramfs"
to my kernel recipe.

As far as I understand initramfs image depends on the kernel that depends
on initramfs image.


Best regards,
Yevhen


2013/4/22 Bruce Ashfield 

> On Mon, Apr 22, 2013 at 9:14 AM, Yevhen Kyriukha 
> wrote:
> > Hi!
> >
> > I have a custom kernel recipe and initramfs image recipe.
> > How can I embed initramfs into kernel?
> > Is there any example available?
>
> The support is in oe-core, so checking the yocto docs is a good starting
> point:
>
> http://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html
>
> And in particular:
>
> "core-image-minimal-initramfs: A core-image-minimal image that has the
> Minimal RAM-based Initial Root Filesystem (initramfs) as part of the
> kernel, which allows the system to find the first “init” program more
> efficiently."
>
> There is also meta-initramfs:
>
> https://github.com/openembedded/meta-oe/tree/master/meta-initramfs
>
> Cheers,
>
> Bruce
>
> >
> > Best regards,
> > Yevhen
> >
> > ___
> > Openembedded-core mailing list
> > Openembedded-core@lists.openembedded.org
> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
> >
>
>
>
> --
> "Thou shalt not follow the NULL pointer, for chaos and madness await
> thee at its end"
>
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] Embed initramfs into kernel

2013-04-22 Thread Yevhen Kyriukha
2013/4/22 Bruce Ashfield 
>
> On Mon, Apr 22, 2013 at 10:11 AM, Yevhen Kyriukha  wrote:
> > Thanks!
> >
> > I was trying to build the kernel and I got the following error:
> > Aborted dependency loops search after 10 matches.
> >
> > I copied core-image-minimal-initramfs and changed IMAGE_INSTALL:
> > IMAGE_INSTALL = "initramfs-live-boot busybox udev base-passwd".
> > Also I added
> > INITRAMFS_IMAGE = "custom-initramfs"
> > to my kernel recipe.
> >
> > As far as I understand initramfs image depends on the kernel that depends on
> > initramfs image.
>
> Correct. That's something that commonly happens in my experience. You can't 
> have
> anything in your dependency chain that causes that circular depend .. which is
> what the boot tasks will pull in.
>
> We are working to enhance / fix this in yocto 1.5, but for now, that
> is the restriction.
>
> Have you looked at: classes/image-live.bbclass ? Which is a current user of
> core-image-minimal-initramfs and gets around the circular dependency problem.
>
> Cheers,
>
> Bruce
>
> >
> >
> > Best regards,
> > Yevhen
> >
> >
> > 2013/4/22 Bruce Ashfield 
> >>
> >> On Mon, Apr 22, 2013 at 9:14 AM, Yevhen Kyriukha 
> >> wrote:
> >> > Hi!
> >> >
> >> > I have a custom kernel recipe and initramfs image recipe.
> >> > How can I embed initramfs into kernel?
> >> > Is there any example available?
> >>
> >> The support is in oe-core, so checking the yocto docs is a good starting
> >> point:
> >>
> >> http://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html
> >>
> >> And in particular:
> >>
> >> "core-image-minimal-initramfs: A core-image-minimal image that has the
> >> Minimal RAM-based Initial Root Filesystem (initramfs) as part of the
> >> kernel, which allows the system to find the first “init” program more
> >> efficiently."
> >>
> >> There is also meta-initramfs:
> >>
> >> https://github.com/openembedded/meta-oe/tree/master/meta-initramfs
> >>
> >> Cheers,
> >>
> >> Bruce
> >>
> >> >
> >> > Best regards,
> >> > Yevhen
> >> >
> >> > ___
> >> > Openembedded-core mailing list
> >> > Openembedded-core@lists.openembedded.org
> >> > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
> >> >
> >>
> >>
> >>
> >> --
> >> "Thou shalt not follow the NULL pointer, for chaos and madness await
> >> thee at its end"
> >
> >
>
>
>
> --
> "Thou shalt not follow the NULL pointer, for chaos and madness await
> thee at its end"

I looked at image-live class but it's only image class without any dependencies.
As far as I understand if for example we building busybox than we have
to build kernel first.
Is there any chance to accomplish this task if we'll have 2 kernel
recipes - one for bootstrap (for compilation of initramfs) and the
second with embedded initramfs?

Best regards,
Yevhen

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH v3] systemd: added python-systemd package generation.

2013-04-22 Thread Yevhen Kyriukha
---
 meta/recipes-core/systemd/systemd_199.bb |   19 +++
 1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/meta/recipes-core/systemd/systemd_199.bb 
b/meta/recipes-core/systemd/systemd_199.bb
index 5240443..9a68960 100644
--- a/meta/recipes-core/systemd/systemd_199.bb
+++ b/meta/recipes-core/systemd/systemd_199.bb
@@ -11,12 +11,18 @@ PROVIDES = "udev"
 PE = "1"
 PR = "r2"
 
-DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native acl 
readline dbus libcap libcgroup tcp-wrappers glib-2.0"
+DEPENDS = "kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native acl 
readline dbus libcap libcgroup tcp-wrappers glib-2.0 python"
 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 \
@@ -63,9 +69,9 @@ EXTRA_OECONF = " --with-rootprefix=${base_prefix} \
  --disable-coredump \
  --disable-introspection \
  --disable-tcpwrap \
+ --with-python \
  --enable-split-usr \
  --disable-microhttpd \
- --without-python \
  --with-sysvrcnd-path=${sysconfdir} \
  --with-firmware-path=/lib/firmware \
  ac_cv_path_KILL=${base_bindir}/kill \
@@ -119,7 +125,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} python-${PN}-dbg python-${PN}-dev"
 
 USERADD_PACKAGES = "${PN}"
 GROUPADD_PARAM_${PN} = "-r lock; -r systemd-journal"
@@ -129,6 +135,11 @@ 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_python-${PN}-dev = "${PYTHON_SITEPACKAGES_DIR}/systemd/*.la"
+FILES_python-${PN}-dbg = "${PYTHON_SITEPACKAGES_DIR}/systemd/.debug"
+
 FILES_${PN}-gui = "${bindir}/systemadm"
 
 FILES_${PN}-vconsole-setup = "${systemd_unitdir}/systemd-vconsole-setup \
-- 
1.7.9.5


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH v4] systemd: added python-systemd package generation.

2013-04-23 Thread 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..bbae6f8 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 \
@@ -46,11 +52,13 @@ LDFLAGS_libc-uclibc_append = " -lrt"
 
 GTKDOC_DOCDIR = "${S}/docs/"
 
-PACKAGECONFIG ??= "xz"
+PACKAGECONFIG ??= "xz python"
 # Sign the journal for anti-tampering
 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 \
@@ -119,7 +126,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} python-${PN}-dbg python-${PN}-dev"
 
 USERADD_PACKAGES = "${PN}"
 GROUPADD_PARAM_${PN} = "-r lock; -r systemd-journal"
@@ -129,6 +136,11 @@ 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_python-${PN}-dev = "${PYTHON_SITEPACKAGES_DIR}/systemd/*.la"
+FILES_python-${PN}-dbg = "${PYTHON_SITEPACKAGES_DIR}/systemd/.debug"
+
 FILES_${PN}-gui = "${bindir}/systemadm"
 
 FILES_${PN}-vconsole-setup = "${systemd_unitdir}/systemd-vconsole-setup \
-- 
1.7.9.5


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v4] systemd: added python-systemd package generation.

2013-04-23 Thread Yevhen Kyriukha
2013/4/23 Richard Purdie :
> On Tue, 2013-04-23 at 14:41 +0100, Burton, Ross wrote:
>> On 23 April 2013 10:13, Yevhen Kyriukha  wrote:
>> > +inherit gtk-doc useradd pkgconfig autotools perlnative update-rc.d 
>> > update-alternatives pythonnative python-dir
>>
>> Does this really need pythonnative?  That's adding a python-native
>> dependency to build systemd.
>
> To handle python modules correctly, I suspect the answer is yes. It
> would be better if we could make this inherit conditional somehow. I'm
> also sceptical about the separate -dev/=dbg packages for the python
> pieces, this isn't the standard practise.
>
> Cheers,
>
> Richard
>

It isn't a pure python package but a combination of C library and
python therefore -dev and -dbg are needed.

Best regards,
Yevhen

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v4] systemd: added python-systemd package generation.

2013-04-23 Thread Yevhen Kyriukha
OK, and what about -dbg?
Best regards,
Yevhen


2013/4/23 Burton, Ross :
> On 23 April 2013 15:26, Yevhen Kyriukha  wrote:
>> It isn't a pure python package but a combination of C library and
>> python therefore -dev and -dbg are needed.
>
> FILES_python-${PN}-dev = "${PYTHON_SITEPACKAGES_DIR}/systemd/*.la"
>
> Nobody will be linking to that library as it's a shared module and
> Python won't read .la files when looking for modules, so you don't
> need this.  Just delete it instead of packaging a useless file in a
> useless package.
>
> Ross

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH v5] systemd: added python-systemd package generation.

2013-04-23 Thread Yevhen Kyriukha
---
 meta/recipes-core/systemd/systemd_199.bb |   22 +-
 1 file changed, 17 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-core/systemd/systemd_199.bb 
b/meta/recipes-core/systemd/systemd_199.bb
index 5240443..993c0a5 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 \
@@ -46,11 +52,13 @@ LDFLAGS_libc-uclibc_append = " -lrt"
 
 GTKDOC_DOCDIR = "${S}/docs/"
 
-PACKAGECONFIG ??= "xz"
+PACKAGECONFIG ??= "xz python"
 # Sign the journal for anti-tampering
 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


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


Re: [OE-core] [PATCH v4] systemd: added python-systemd package generation.

2013-04-23 Thread Yevhen Kyriukha
I'll send new patch without python in PACKAGECONFIG.
Best regards,
Yevhen


2013/4/23 Saul Wold :
> On 04/23/2013 02:13 AM, Yevhen Kyriukha wrote:
>>
>> ---
>>   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..bbae6f8 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 \
>> @@ -46,11 +52,13 @@ LDFLAGS_libc-uclibc_append = " -lrt"
>>
>>   GTKDOC_DOCDIR = "${S}/docs/"
>>
>> -PACKAGECONFIG ??= "xz"
>> +PACKAGECONFIG ??= "xz python"
>
>
> I believe that the default should be python is not enabled.
>
> Sau!
>
>
>>   # Sign the journal for anti-tampering
>>   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 \
>> @@ -119,7 +126,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} python-${PN}-dbg python-${PN}-dev"
>>
>>   USERADD_PACKAGES = "${PN}"
>>   GROUPADD_PARAM_${PN} = "-r lock; -r systemd-journal"
>> @@ -129,6 +136,11 @@ 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_python-${PN}-dev = "${PYTHON_SITEPACKAGES_DIR}/systemd/*.la"
>> +FILES_python-${PN}-dbg = "${PYTHON_SITEPACKAGES_DIR}/systemd/.debug"
>> +
>>   FILES_${PN}-gui = "${bindir}/systemadm"
>>
>>   FILES_${PN}-vconsole-setup = "${systemd_unitdir}/systemd-vconsole-setup
>> \
>>
>

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] [PATCH v6] systemd: added python-systemd package generation.

2013-04-23 Thread 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


___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] Redefine variable in bbappend

2013-05-16 Thread Yevhen Kyriukha
Hi!

I'm using "base-files" recipe but I don't want that /var/log be a
symlink to temp directory.
Therefore in my custom layer I created base-files bbappend file with
following content:

PRINC := "${@int(PRINC) + 1}"

dirs755_append += "${localstatedir}/log"
volatiles = "run lock tmp"

In this recipe I removed "log" from volatiles but it doesn't work.
I'm getting error:
ERROR: Fixup Perms: Unable to correct directory link, target already
exists: /var/log -> /var/volatile/log

How to properly redefine the variable in bbappend file?

Best regards,
Yevhen

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] systemd

2012-12-14 Thread Yevhen Kyriukha
Hi!

Is there any way to use systemd for starting system services in yocto v1.3?

-- 
Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] List of installed ipk packages on image is empty

2012-12-25 Thread Yevhen Kyriukha
Hi!

I built an image based on *.ipk packages.
But when I booted with new image first time and executed command "opkg
list-installed" I got nothing on output.
Seems that opkg cache is empty.

Recently I used *.deb packages and there were no such problems.

-- 
Best regards,
Yevhen
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] Can't build Intel Cedartrail Linux kernel

2013-01-22 Thread Yevhen Kyriukha
Hi!

When building kernel for cedartrail, I'm getting numerous warnings:
SSE instruction set disabled, using 387 arithmetics [enabled by default]

How can I fix it?

P.S.
I'm using following revisions of meta packages:
meta  = "master:751c11e998431613389f094264f096fac5a1c1ae"
meta-cedartrail   = "master:d92dd091397b4c77000c2db152bb621a62b76cf9"

Best regards,
Yevhen

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] Failure building Yocto 3.0 kernel

2013-01-23 Thread Yevhen Kyriukha
Hi!

When building linux-yocto_3.0 kernel for cedartrail, I'm getting
numerous errors:
SSE instruction set disabled, using 387 arithmetics [enabled by default]

How can I fix it?

P.S.
I'm using following revisions of meta packages:
meta  = "master:751c11e998431613389f094264f096fac5a1c1ae"
meta-cedartrail   = "master:d92dd091397b4c77000c2db152bb621a62b76cf9"

Best regards,
Yevhen

___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core


[OE-core] Different kernel configuration for different distros

2015-07-15 Thread Yevhen Kyriukha
Hi
I have custom (non-yocto) kernel and several distros that use it.
Each distro needs to define specific CONFIG_* for this kernel.
I'd like to know the right way to customize kernel recipe from each
distro's config.

-- 
Regards,
Yevhen
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] Specifying MACHINE inside distro config only

2014-07-28 Thread Yevhen Kyriukha
I have several distro config files. I bind each of them to single machine
like this:

# cat conf/distro/mydistro.conf

DISTRO = "mydistro"
DISTRO_NAME = "My Distro"
DISTRO_VERSION = "1.01"
MACHINE = "cedartrail"
...

I also created "conf/auto.conf" file with following content:
DISTRO = "mydistro"
to specify distro to build.

The problem is that without specifying MACHINE in "conf/auto.conf" I get
following error:

ERROR:  OE-core's config sanity checker detected a potential
misconfiguration.
Either fix the cause of this error or at your own risk disable the
checker (see sanity.conf).
Following is the list of potential problems / advisories:

TUNE_ARCH is unset. Please ensure your MACHINE configuration includes a
valid tune configuration file which will set this correctly.
Error, the PACKAGE_ARCHS variable does not contain TUNE_PKGARCH
().Toolchain tunings invalid:
No tuning found for default multilib.


I use a script to change distro (in "auto.conf") and each distro knows its
machine to build for. So specifying MACHINE in "auto.conf" isn't desirable.

Can someone tell what did I miss?

-- 
Best regards,
Yevhen
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] Specifying MACHINE inside distro config only

2014-07-29 Thread Yevhen Kyriukha
Hi Paul,

2014-07-29 11:25 GMT+03:00 Paul Eggleton :
> Hi Yevhen,
>
> On Tuesday 29 July 2014 09:55:20 Yevhen Kyriukha wrote:
>> I have several distro config files. I bind each of them to single machine
>> like this:
>>
>> # cat conf/distro/mydistro.conf
>>
>> DISTRO = "mydistro"
>> DISTRO_NAME = "My Distro"
>> DISTRO_VERSION = "1.01"
>> MACHINE = "cedartrail"
>> ...
>>
>> I also created "conf/auto.conf" file with following content:
>> DISTRO = "mydistro"
>> to specify distro to build.
>>
>> The problem is that without specifying MACHINE in "conf/auto.conf" I get
>> following error:
>>
>> ERROR:  OE-core's config sanity checker detected a potential
>> misconfiguration.
>> Either fix the cause of this error or at your own risk disable the
>> checker (see sanity.conf).
>> Following is the list of potential problems / advisories:
>>
>> TUNE_ARCH is unset. Please ensure your MACHINE configuration includes a
>> valid tune configuration file which will set this correctly.
>> Error, the PACKAGE_ARCHS variable does not contain TUNE_PKGARCH
>> ().Toolchain tunings invalid:
>> No tuning found for default multilib.
>>
>>
>> I use a script to change distro (in "auto.conf") and each distro knows its
>> machine to build for. So specifying MACHINE in "auto.conf" isn't desirable.
>>
>> Can someone tell what did I miss?
>
> This is caused by a subtlety in the way that we have structured the
> configuration files. Here's a snippet from meta/conf/bitbake.conf (which aside
> from bblayers.conf is the only file that BitBake knows to look at by itself):
>
>  snip 
> ##
> # Include the rest of the config files.
> ##
>
> require conf/abi_version.conf
> include conf/site.conf
> include conf/auto.conf
> include conf/local.conf
> include conf/build/${BUILD_SYS}.conf
> include conf/target/${TARGET_SYS}.conf
> include conf/machine/${MACHINE}.conf
> include conf/machine-sdk/${SDKMACHINE}.conf
> include conf/distro/${DISTRO}.conf
> include conf/distro/defaultsetup.conf
> include conf/documentation.conf
> include conf/licenses.conf
> require conf/sanity.conf
>  snip 
>
> These statements are parsed in order; thus, by the time the distro config has
> been parsed, it's too late to include the right machine config file, that's
> already happened. (These lines are in this order deliberately; the reason
> being we want to allow the distro config to easily override things that are
> specified in the machine configuration if desired.)
>
> So the answer is you simply can't do what you're trying to do with the way
> that OE is set up. You need to set the MACHINE value from local.conf /
> auto.conf, or the external environment.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre


Thanks for your clarification.

-- 
Best regards,
Yevhen
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] Two distros with same MACHINE

2014-08-13 Thread Yevhen Kyriukha
I have 2 distro configs that use different PACKAGECONFIG settings for the
same package. I'm building all distros for single MACHINE. Do I need to set
different TMPDIR to build these two distros or I can use same dir?
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


Re: [OE-core] Two distros with same MACHINE

2014-08-13 Thread Yevhen Kyriukha
13 Авг 2014 г. 13:51 пользователь "Nicolas Dechesne" <
nicolas.deche...@linaro.org> написал:
>
> On Wed, Aug 13, 2014 at 12:46 PM, Yevhen Kyriukha 
wrote:
> > I have 2 distro configs that use different PACKAGECONFIG settings for
the
> > same package. I'm building all distros for single MACHINE. Do I need to
set
> > different TMPDIR to build these two distros or I can use same dir?
> >
>
> yes, you should. i generally recommend to use 1 build dir for each
> combination of ,  and . keep in mind that
> TMPDIR are 'cheap', assuming you are sharing ssate-cache, downloads
> and using rm_work..

Thanks!
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] Problem with opkg-config-base regeneration

2015-01-02 Thread Yevhen Kyriukha
Hello,

I noticed that bitbake ignores changes in some global variables that
used in packages and thus not regenerating this packages.

I changed "${PACKAGE_EXTRA_ARCHS}" variable in my machine config to
extend architectures list used by opkg.
Package "opkg-config-base" use variable
"${ALL_MULTILIB_PACKAGE_ARCHS}" to create "arch.conf" file.
Here is relation between ${PACKAGE_EXTRA_ARCHS} that I change and
${ALL_MULTILIB_PACKAGE_ARCHS}:

meta/classes/package.bbclass:53:ALL_MULTILIB_PACKAGE_ARCHS =
"${@all_multilib_tune_values(d, 'PACKAGE_ARCHS')}"

meta/conf/bitbake.conf:139:PACKAGE_ARCHS = "all any noarch
${PACKAGE_EXTRA_ARCHS}

The problem is that changing "${PACKAGE_EXTRA_ARCHS}" variable not
leads to regeneration of package "opkg-config-base".

--
Regards,
Yevhen
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] DNF package manager instead of SMART for rpm

2015-01-09 Thread Yevhen Kyriukha
Hello,

I'd like to know if there is a chance to replace python-smart with DNF
(github.com/rpm-software-management/dnf)?
DNF already has more features than smart and is well supported (smart
is kind of dead project).
I'd like to prepare a set of patches for dnf integration.

-- 
Regards,
Yevhen
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] RPM package generation architecture

2015-01-18 Thread Yevhen Kyriukha
Hi

I'm building RPM packages for ARM board.
I'm getting packages generated for 3 architectures: all, raspberrypi,
armv6hf_vfp.
I can't install any of these packages with rpm as it uses "uname" to
get current machine arch and "uname" outputs "armv6l" arch. Also "all"
should be "noarch" for rpm.
I want that packages have "proper" arch: "noarch" and "armv6l".
Could someone give suggestions on this, please?

-- 
Regards,
Yevhen
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] Update meta-qt5 to v5.8

2017-01-29 Thread Yevhen Kyriukha
Qt 5.8 has been released. Please update meta-qt5 accordingly.
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[OE-core] Update meta-qt5 to v5.9.1

2017-07-22 Thread Yevhen Kyriukha
Qt 5.
​9.1​
has been released. Please update meta-qt5 accordingly.
-- 
___
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core