Re: [OE-core] opkg: Update svn 625 - 633 and fix preinst issues

2011-12-17 Thread Martin Jansa
On Sat, Dec 17, 2011 at 01:32:28AM +, Richard Purdie wrote:
 On Sat, 2011-12-17 at 02:16 +0100, Martin Jansa wrote:
  On Thu, Dec 15, 2011 at 09:08:49PM +, Richard Purdie wrote:
   There is a major issue with opkg images at the moment as preinst
   functions are not being executed before their dependencies are installed
   and this is leading to corruption of images containing avahi/dbus in
   particular.
   
   There are various changes in upstream opkg in the last 8 revisions which
   make changes in this area but sadly these aren't enough to get things
   working for us. I've updated to the latest svn revision with this patch
   since it makes sense to pull in those changes first and then supplement
   them with the attached patches.
   
   There is a full description of the patches in the patch headers but in
   summary they:
   
   a) Ensure preinst functions execute with their dependencies installed.
  This is a pretty invasive change as it changes the package install
  ordering in general.
   b) Ensure opkg sets $D, not $PKG_ROOT which we don't use
   c) Change opkg to allow execution of postinstall functions which fail
  resulting in execution on the target device as rootfs_ipk.bbclass
  currently does manually.
   
   The remaining changes interface this with the rest of the OE build
   infrastructure, adding in the option to tell opkg to run the preinst and
   postinst functions, ensure the correct environment is present for the
   postinst scripts and removing the now unneeded rootfs_ipk class code
   which opkg now does itself.
   
   [YOCTO #1711]
  
  Hi,
  
  today I got image build failing with this and it seems like some kind of
  circular dependency or something.
  
  In fsogsmd_git.bb we have:
  PACKAGES =+ ${PN}-connman ${PN}-connman-dev ${PN}-connman-dbg
  RDEPENDS_${PN} += ${PN}-connman
  
  and there is also fsogsmd-connman dependency on fsogsmd (because of shlibs),
  so it's really circular dependency between runtime packages and new opkg 
  cannot
  deal with it.
  
  Then in log.do_rootfs
  Installing fsogsmd 
  (1:0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7) to root...
  Downloading 
  file:/OE/shr-core/tmp-eglibc/deploy/ipk/qemuarm/fsogsmd_0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7_qemuarm.ipk.
  Installing fsogsmd-connman 
  (1:0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7) to root...
  Downloading 
  file:/OE/shr-core/tmp-eglibc/deploy/ipk/qemuarm/fsogsmd-connman_0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7_qemuarm.ipk.
  Installing fsogsmd 
  (1:0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7) to root...
  Installing fsogsmd-connman 
  (1:0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7) to root...
  and then this last 2 lines 1794/2 times
  Installing fsogsmd 
  (1:0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7) to root...
  Installing fsogsmd-connman 
  (1:0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7) to root...
  Installing task-core-ssh-openssh (1.0-r0) to root...
  Downloading 
  file:/OE/shr-core/tmp-eglibc/deploy/ipk/armv5te/task-core-ssh-openssh_1.0-r0_armv5te.ipk.
  ...
  and in the end:
  ERROR: Function 'do_rootfs' failed (see 
  /OE/shr-core/tmp-eglibc/work/qemuarm-oe-linux-gnueabi/shr-lite-image/2.0-r20/temp/log.do_rootfs.20387
   for further information)
  Collected errors:
   * gz_close: Unzip process killed by signal 11.
  
   * pkg_get_installed_files: Error extracting file list from 
  /tmp/opkg-T7G08e/fsogsmd-connman_0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7_qemuarm.ipk.
   * opkg_install_cmd: Cannot install package task-shr-minimal-apps.
  
  Reverting this patch and rebuilding opkg before running image build helps.
  
  I'll try to upgrade only opkg without your patches first, but I guess it's
  because of fix_installorder.patch, can we teach it to break circular 
  dependencies
  or should I fix it in metadata? It seem that longer cycles like
  
  fsogsmd-config - fsogsmd-module-modem-ti-calypso - fsogsmd - 
  fsogsmd-config
  
  does work.
 
 This is likely as a result of the installorder patch :/. Sadly if we
 want the postinstalls to be installed in order we do need that patch.

I've tried to build image with SRCREV=633 and it built image fine
then I tried to apply your patch but without installorder.patch to
confirm that the issue with circular depending packages is really cause
by that only and then try to fix installorder.patch to work even with
such packages, but I got many postinst errors :(. 

From your description I understood that postinst execution should be
almost the same only more logic is moved from rootfs_ipk.bbclass to opkg
itself.

| Collected errors:
|  * pkg_run_script: package pam-plugin-unix postinst script returned status 
1.
|  * opkg_configure: pam-plugin-unix.postinst returned 1.
|  * pkg_run_script: package pango-module-basic-x postinst script returned 
status 1.
|  * 

[OE-core] [PATCH] native.bbclass: Fix variable remapping coverage

2011-12-17 Thread Richard Purdie
When looking for RDEPENDS to process, bitbake iterates through PACKAGES
*and* PN. Since native.bbclass sets PACKAGES to be empty, its pointless
remapping the list of PACKAGES since this does nothing. There is a problem
since *_${PN} are used by bitbake but not remapped by the native.bbclass
class extension code.

This changes the code to remap _${PN} in both expanded and unexpanded
forms. We use the unexpanded form since d.expandkeys() has not been called 
at the point this code executes. Remapping the expanded form is belt and braces
to cover any case where the unexpanded key form may not be present.

As a result of this, various surprising dependencies are uncovered
and the patch rectifies those. These are real bugs since they're injecting
unneeded (unremapped) dependencies into the dependency chain. Workarounds
for this kind of problem in autoconf are removed.

Signed-off-by: Richard Purdie richard.pur...@linuxfoundation.org
---
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
index 49823d6..00196ba 100644
--- a/meta/classes/native.bbclass
+++ b/meta/classes/native.bbclass
@@ -127,7 +127,7 @@ python native_virtclass_handler () {
 d.setVar(varname,  .join(newdeps))
 
 map_dependencies(DEPENDS, e.data)
-for pkg in (e.data.getVar(PACKAGES, True).split() + []):
+for pkg in [e.data.getVar(PN, True), , ${PN}]:
 map_dependencies(RDEPENDS, e.data, pkg)
 map_dependencies(RRECOMMENDS, e.data, pkg)
 map_dependencies(RSUGGESTS, e.data, pkg)
diff --git a/meta/recipes-devtools/autoconf/autoconf.inc 
b/meta/recipes-devtools/autoconf/autoconf.inc
index 08a1b02..1d0cf90 100644
--- a/meta/recipes-devtools/autoconf/autoconf.inc
+++ b/meta/recipes-devtools/autoconf/autoconf.inc
@@ -6,6 +6,8 @@ LICENSE = GPLv3
 HOMEPAGE = http://www.gnu.org/software/autoconf/;
 SECTION = devel
 DEPENDS += m4-native
+DEPENDS_virtclass-native = m4-native gnu-config-native
+DEPENDS_virtclass-nativesdk = m4-nativesdk gnu-config-nativesdk
 RDEPENDS_${PN} = m4 gnu-config
 
 SRC_URI = ${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.bz2 \
diff --git a/meta/recipes-devtools/autoconf/autoconf_2.68.bb 
b/meta/recipes-devtools/autoconf/autoconf_2.68.bb
index 9028e83..84eb182 100644
--- a/meta/recipes-devtools/autoconf/autoconf_2.68.bb
+++ b/meta/recipes-devtools/autoconf/autoconf_2.68.bb
@@ -4,8 +4,6 @@ PR = r4
 
 PARALLEL_MAKE = 
 
-DEPENDS += m4-native
-RDEPENDS_${PN} = m4 gnu-config
 LICENSE = GPLv2  GPLv3
 LIC_FILES_CHKSUM = file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
file://COPYINGv3;md5=d32239bcb673463ab874e80d47fae504
@@ -22,12 +20,6 @@ SRC_URI += file://autoreconf-include.patch \
 SRC_URI[md5sum] = 864d785215aa60d627c91fcb21b05b07
 SRC_URI[sha256sum] = 
c491fb273fd6d4ca925e26ceed3d177920233c76d542b150ff35e571454332c8
 
-DEPENDS_virtclass-native = m4-native gnu-config-native
-RDEPENDS_${PN}_virtclass-native = m4-native gnu-config-native
-
-DEPENDS_virtclass-nativesdk = m4-nativesdk gnu-config-nativesdk
-RDEPENDS_${PN}_virtclass-nativesdk = m4-nativesdk gnu-config-nativesdk
-
 SRC_URI_append_virtclass-native =  file://fix_path_xtra.patch
 
 EXTRA_OECONF += ac_cv_path_M4=m4
diff --git a/meta/recipes-devtools/automake/automake_1.11.1.bb 
b/meta/recipes-devtools/automake/automake_1.11.1.bb
index ff8353f..6bffecf 100644
--- a/meta/recipes-devtools/automake/automake_1.11.1.bb
+++ b/meta/recipes-devtools/automake/automake_1.11.1.bb
@@ -3,7 +3,7 @@ LICENSE=GPLv2
 LIC_FILES_CHKSUM = file://COPYING;md5=751419260aa954499f7abaabaa882bbe 
 DEPENDS_virtclass-native = autoconf-native
 
-RDEPENDS_automake += \
+RDEPENDS_${PN} += \
 autoconf \
 perl \
 perl-module-bytes \
@@ -27,7 +27,7 @@ RDEPENDS_automake += \
 perl-module-text-parsewords \
 perl-module-vars 
 
-RDEPENDS_automake-native = autoconf-native perl-native-runtime
+RDEPENDS_${PN}_virtclass-native = autoconf-native perl-native-runtime
 
 PATHFIXPATCH = file://path_prog_fixes.patch
 PATHFIXPATCH_virtclass-native = 
diff --git a/meta/recipes-devtools/python/python-native_2.7.2.bb 
b/meta/recipes-devtools/python/python-native_2.7.2.bb
index d036eca..10bfa6c 100644
--- a/meta/recipes-devtools/python/python-native_2.7.2.bb
+++ b/meta/recipes-devtools/python/python-native_2.7.2.bb
@@ -16,6 +16,8 @@ S = ${WORKDIR}/Python-${PV}
 
 inherit native
 
+RPROVIDES += python-distutils-native python-compression-native 
python-textutils-native
+
 EXTRA_OEMAKE = '\
   BUILD_SYS= \
   HOST_SYS= \
diff --git a/meta/recipes-gnome/gnome/gconf_3.2.3.bb 
b/meta/recipes-gnome/gnome/gconf_3.2.3.bb
index 9d327fc..f7d3594 100644
--- a/meta/recipes-gnome/gnome/gconf_3.2.3.bb
+++ b/meta/recipes-gnome/gnome/gconf_3.2.3.bb
@@ -39,6 +39,7 @@ do_install_append() {
 
 # disable dbus-x11 when x11 isn't in DISTRO_FEATURES
 RDEPENDS_${PN} += ${@base_contains('DISTRO_FEATURES', 'x11', 'dbus-x11', '', 
d)}
+RDEPENDS_${PN}_virtclass-native = 
 
 FILES_${PN} += ${libdir}/GConf/* \
${libdir}/gio/*/*.so \
diff --git 

Re: [OE-core] opkg: Update svn 625 - 633 and fix preinst issues

2011-12-17 Thread Richard Purdie
On Sat, 2011-12-17 at 10:20 +0100, Martin Jansa wrote:
 On Sat, Dec 17, 2011 at 01:32:28AM +, Richard Purdie wrote:
  On Sat, 2011-12-17 at 02:16 +0100, Martin Jansa wrote:
   On Thu, Dec 15, 2011 at 09:08:49PM +, Richard Purdie wrote:
There is a major issue with opkg images at the moment as preinst
functions are not being executed before their dependencies are installed
and this is leading to corruption of images containing avahi/dbus in
particular.

There are various changes in upstream opkg in the last 8 revisions which
make changes in this area but sadly these aren't enough to get things
working for us. I've updated to the latest svn revision with this patch
since it makes sense to pull in those changes first and then supplement
them with the attached patches.

There is a full description of the patches in the patch headers but in
summary they:

a) Ensure preinst functions execute with their dependencies installed.
   This is a pretty invasive change as it changes the package install
   ordering in general.
b) Ensure opkg sets $D, not $PKG_ROOT which we don't use
c) Change opkg to allow execution of postinstall functions which fail
   resulting in execution on the target device as rootfs_ipk.bbclass
   currently does manually.

The remaining changes interface this with the rest of the OE build
infrastructure, adding in the option to tell opkg to run the preinst and
postinst functions, ensure the correct environment is present for the
postinst scripts and removing the now unneeded rootfs_ipk class code
which opkg now does itself.

[YOCTO #1711]
   
   Hi,
   
   today I got image build failing with this and it seems like some kind of
   circular dependency or something.
   
   In fsogsmd_git.bb we have:
   PACKAGES =+ ${PN}-connman ${PN}-connman-dev ${PN}-connman-dbg
   RDEPENDS_${PN} += ${PN}-connman
   
   and there is also fsogsmd-connman dependency on fsogsmd (because of 
   shlibs),
   so it's really circular dependency between runtime packages and new opkg 
   cannot
   deal with it.
   
   Then in log.do_rootfs
   Installing fsogsmd 
   (1:0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7) to root...
   Downloading 
   file:/OE/shr-core/tmp-eglibc/deploy/ipk/qemuarm/fsogsmd_0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7_qemuarm.ipk.
   Installing fsogsmd-connman 
   (1:0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7) to root...
   Downloading 
   file:/OE/shr-core/tmp-eglibc/deploy/ipk/qemuarm/fsogsmd-connman_0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7_qemuarm.ipk.
   Installing fsogsmd 
   (1:0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7) to root...
   Installing fsogsmd-connman 
   (1:0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7) to root...
   and then this last 2 lines 1794/2 times
   Installing fsogsmd 
   (1:0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7) to root...
   Installing fsogsmd-connman 
   (1:0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7) to root...
   Installing task-core-ssh-openssh (1.0-r0) to root...
   Downloading 
   file:/OE/shr-core/tmp-eglibc/deploy/ipk/armv5te/task-core-ssh-openssh_1.0-r0_armv5te.ipk.
   ...
   and in the end:
   ERROR: Function 'do_rootfs' failed (see 
   /OE/shr-core/tmp-eglibc/work/qemuarm-oe-linux-gnueabi/shr-lite-image/2.0-r20/temp/log.do_rootfs.20387
for further information)
   Collected errors:
* gz_close: Unzip process killed by signal 11.
   
* pkg_get_installed_files: Error extracting file list from 
   /tmp/opkg-T7G08e/fsogsmd-connman_0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7_qemuarm.ipk.
* opkg_install_cmd: Cannot install package task-shr-minimal-apps.
   
   Reverting this patch and rebuilding opkg before running image build helps.
   
   I'll try to upgrade only opkg without your patches first, but I guess it's
   because of fix_installorder.patch, can we teach it to break circular 
   dependencies
   or should I fix it in metadata? It seem that longer cycles like
   
   fsogsmd-config - fsogsmd-module-modem-ti-calypso - fsogsmd - 
   fsogsmd-config
   
   does work.
  
  This is likely as a result of the installorder patch :/. Sadly if we
  want the postinstalls to be installed in order we do need that patch.
 
 I've tried to build image with SRCREV=633 and it built image fine
 then I tried to apply your patch but without installorder.patch to
 confirm that the issue with circular depending packages is really cause
 by that only and then try to fix installorder.patch to work even with
 such packages, but I got many postinst errors :(. 
 
 From your description I understood that postinst execution should be
 almost the same only more logic is moved from rootfs_ipk.bbclass to opkg
 itself.
 
 | Collected errors:
 |  * pkg_run_script: package pam-plugin-unix postinst script returned 
 status 

Re: [OE-core] opkg: Update svn 625 - 633 and fix preinst issues

2011-12-17 Thread Martin Jansa
On Sat, Dec 17, 2011 at 10:22:01AM +, Richard Purdie wrote:
 On Sat, 2011-12-17 at 10:20 +0100, Martin Jansa wrote:
  On Sat, Dec 17, 2011 at 01:32:28AM +, Richard Purdie wrote:
   On Sat, 2011-12-17 at 02:16 +0100, Martin Jansa wrote:
On Thu, Dec 15, 2011 at 09:08:49PM +, Richard Purdie wrote:
 There is a major issue with opkg images at the moment as preinst
 functions are not being executed before their dependencies are 
 installed
 and this is leading to corruption of images containing avahi/dbus in
 particular.
 
 There are various changes in upstream opkg in the last 8 revisions 
 which
 make changes in this area but sadly these aren't enough to get things
 working for us. I've updated to the latest svn revision with this 
 patch
 since it makes sense to pull in those changes first and then 
 supplement
 them with the attached patches.
 
 There is a full description of the patches in the patch headers but in
 summary they:
 
 a) Ensure preinst functions execute with their dependencies installed.
This is a pretty invasive change as it changes the package install
ordering in general.
 b) Ensure opkg sets $D, not $PKG_ROOT which we don't use
 c) Change opkg to allow execution of postinstall functions which fail
resulting in execution on the target device as rootfs_ipk.bbclass
currently does manually.
 
 The remaining changes interface this with the rest of the OE build
 infrastructure, adding in the option to tell opkg to run the preinst 
 and
 postinst functions, ensure the correct environment is present for the
 postinst scripts and removing the now unneeded rootfs_ipk class code
 which opkg now does itself.
 
 [YOCTO #1711]

Hi,

today I got image build failing with this and it seems like some kind of
circular dependency or something.

In fsogsmd_git.bb we have:
PACKAGES =+ ${PN}-connman ${PN}-connman-dev ${PN}-connman-dbg
RDEPENDS_${PN} += ${PN}-connman

and there is also fsogsmd-connman dependency on fsogsmd (because of 
shlibs),
so it's really circular dependency between runtime packages and new 
opkg cannot
deal with it.

Then in log.do_rootfs
Installing fsogsmd 
(1:0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7) to 
root...
Downloading 
file:/OE/shr-core/tmp-eglibc/deploy/ipk/qemuarm/fsogsmd_0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7_qemuarm.ipk.
Installing fsogsmd-connman 
(1:0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7) to 
root...
Downloading 
file:/OE/shr-core/tmp-eglibc/deploy/ipk/qemuarm/fsogsmd-connman_0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7_qemuarm.ipk.
Installing fsogsmd 
(1:0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7) to 
root...
Installing fsogsmd-connman 
(1:0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7) to 
root...
and then this last 2 lines 1794/2 times
Installing fsogsmd 
(1:0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7) to 
root...
Installing fsogsmd-connman 
(1:0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7) to 
root...
Installing task-core-ssh-openssh (1.0-r0) to root...
Downloading 
file:/OE/shr-core/tmp-eglibc/deploy/ipk/armv5te/task-core-ssh-openssh_1.0-r0_armv5te.ipk.
...
and in the end:
ERROR: Function 'do_rootfs' failed (see 
/OE/shr-core/tmp-eglibc/work/qemuarm-oe-linux-gnueabi/shr-lite-image/2.0-r20/temp/log.do_rootfs.20387
 for further information)
Collected errors:
 * gz_close: Unzip process killed by signal 11.

 * pkg_get_installed_files: Error extracting file list from 
/tmp/opkg-T7G08e/fsogsmd-connman_0.5.0+gitr20+96698077b6ccd5fc1222e0b2b9fc56d087c6c528-r6.7_qemuarm.ipk.
 * opkg_install_cmd: Cannot install package task-shr-minimal-apps.

Reverting this patch and rebuilding opkg before running image build 
helps.

I'll try to upgrade only opkg without your patches first, but I guess 
it's
because of fix_installorder.patch, can we teach it to break circular 
dependencies
or should I fix it in metadata? It seem that longer cycles like

fsogsmd-config - fsogsmd-module-modem-ti-calypso - fsogsmd - 
fsogsmd-config

does work.
   
   This is likely as a result of the installorder patch :/. Sadly if we
   want the postinstalls to be installed in order we do need that patch.
  
  I've tried to build image with SRCREV=633 and it built image fine
  then I tried to apply your patch but without installorder.patch to
  confirm that the issue with circular depending packages is really cause
  by that only and then try to fix installorder.patch to work even with
  such packages, but I got many postinst errors :(. 
  
  From your 

[OE-core] [PATCH 1/1] connman: disable 'alg-test' building

2011-12-17 Thread Otavio Salvador
'alg-test' requires 'linux/if_alg.h' header enforcing a dependency on
linux-libc-headers 2.6.39 or newer.

Signed-off-by: Otavio Salvador ota...@ossystems.com.br
---
 meta/recipes-connectivity/connman/connman.inc  |8 ---
 .../connman/connman/disable_alg-test.patch |   46 
 meta/recipes-connectivity/connman/connman_0.78.bb  |3 +-
 3 files changed, 48 insertions(+), 9 deletions(-)
 create mode 100644 
meta/recipes-connectivity/connman/connman/disable_alg-test.patch

diff --git a/meta/recipes-connectivity/connman/connman.inc 
b/meta/recipes-connectivity/connman/connman.inc
index bb1b279..d1bf7cd 100644
--- a/meta/recipes-connectivity/connman/connman.inc
+++ b/meta/recipes-connectivity/connman/connman.inc
@@ -49,14 +49,6 @@ USERADD_PARAM_${PN} = --system --no-create-home \
 
 inherit autotools pkgconfig update-rc.d useradd
 
-# alg-test doesn't build, so disable that and test
-# for if_alg.h as this header is only in 2.6.39
-do_configure_prepend() {
-   sed -i 's:tools/alg-test ::g' Makefile.am
-   sed -i 's:AC_CHECK_HEADERS(linux/if_alg.h, dummy=yes,::g;
-   s:AC_MSG_ERROR(User-space algorithm header files are 
required))::g' configure.ac
-}
-
 do_compile_append() {
sed -i -e s:deny:allow:g src/connman-dbus.conf
 }
diff --git a/meta/recipes-connectivity/connman/connman/disable_alg-test.patch 
b/meta/recipes-connectivity/connman/connman/disable_alg-test.patch
new file mode 100644
index 000..c231d75
--- /dev/null
+++ b/meta/recipes-connectivity/connman/connman/disable_alg-test.patch
@@ -0,0 +1,46 @@
+From b9a20c8eb61b600ced284646a1bea588fdd8a5ea Mon Sep 17 00:00:00 2001
+From: Otavio Salvador ota...@ossystems.com.br
+Date: Fri, 16 Dec 2011 19:31:59 -0200
+Subject: [PATCH] Disable building of alg-test
+
+alg-test utility depends on linux/if_alg.h header that is only
+available on kernels = 2.6.39.
+
+Upstream Status: Inappropriate [configuration]
+
+Signed-off-by: Otavio Salvador ota...@ossystems.com.br
+---
+ Makefile.am  |2 +-
+ configure.ac |3 ---
+ 2 files changed, 1 insertions(+), 4 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index d5a76f9..d42a766 100644
+--- a/Makefile.am
 b/Makefile.am
+@@ -144,7 +144,7 @@ noinst_PROGRAMS += tools/wispr tools/supplicant-test \
+   tools/dbus-test tools/polkit-test \
+   tools/iptables-test tools/tap-test tools/wpad-test \
+   tools/stats-tool tools/private-network-test \
+-  tools/alg-test unit/test-session
++  unit/test-session
+ 
+ tools_wispr_SOURCES = $(gweb_sources) tools/wispr.c
+ tools_wispr_LDADD = @GLIB_LIBS@ @GNUTLS_LIBS@ -lresolv
+diff --git a/configure.ac b/configure.ac
+index f63fea8..67bfe85 100644
+--- a/configure.ac
 b/configure.ac
+@@ -437,9 +437,6 @@ if (test ${enable_tools} = yes); then
+   AC_MSG_ERROR(GnuTLS library is required))
+   AC_SUBST(GNUTLS_CFLAGS)
+   AC_SUBST(GNUTLS_LIBS)
+-
+-  AC_CHECK_HEADERS(linux/if_alg.h, dummy=yes,
+-  AC_MSG_ERROR(User-space algorithm header files are required))
+ fi
+ AM_CONDITIONAL(TOOLS, test ${enable_tools} = yes)
+ 
+-- 
+1.7.7.3
+
diff --git a/meta/recipes-connectivity/connman/connman_0.78.bb 
b/meta/recipes-connectivity/connman/connman_0.78.bb
index 74c102b..c73cad9 100644
--- a/meta/recipes-connectivity/connman/connman_0.78.bb
+++ b/meta/recipes-connectivity/connman/connman_0.78.bb
@@ -1,11 +1,12 @@
 require connman.inc
 
-PR = r5
+PR = r6
 
 # 0.78 tag
 SRCREV = 02f5d5fe2d7c71514a6387ba2b772b42d8e8d297
 SRC_URI  = git://git.kernel.org/pub/scm/network/connman/connman.git \
 file://add_xuser_dbus_permission.patch \
 file://ethernet_default.patch \
+file://disable_alg-test.patch \
 file://connman
 S = ${WORKDIR}/git
-- 
1.7.2.5


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


Re: [OE-core] opkg: Update svn 625 - 633 and fix preinst issues

2011-12-17 Thread Richard Purdie
On Sat, 2011-12-17 at 11:34 +0100, Martin Jansa wrote:
 On Sat, Dec 17, 2011 at 10:22:01AM +, Richard Purdie wrote:
  On Sat, 2011-12-17 at 10:20 +0100, Martin Jansa wrote:
   On Sat, Dec 17, 2011 at 01:32:28AM +, Richard Purdie wrote:
   I've tried to build image with SRCREV=633 and it built image fine
   then I tried to apply your patch but without installorder.patch to
   confirm that the issue with circular depending packages is really cause
   by that only and then try to fix installorder.patch to work even with
   such packages, but I got many postinst errors :(. 
   
   From your description I understood that postinst execution should be
   almost the same only more logic is moved from rootfs_ipk.bbclass to opkg
   itself.
   
   | Collected errors:
   |  * pkg_run_script: package pam-plugin-unix postinst script returned 
   status 1.
   |  * opkg_configure: pam-plugin-unix.postinst returned 1.
   |  * pkg_run_script: package pango-module-basic-x postinst script 
   returned status 1.
   |  * opkg_configure: pango-module-basic-x.postinst returned 1.
   |  * pkg_run_script: package pango-module-basic-fc postinst script 
   returned status 1.
   |  * opkg_configure: pango-module-basic-fc.postinst returned 1.
   |  * pkg_run_script: package update-modules postinst script returned 
   status 1.
   |  * opkg_configure: update-modules.postinst returned 1.
   |  * pkg_run_script: package gdk-pixbuf-loader-png postinst script 
   returned status 1.
   |  * opkg_configure: gdk-pixbuf-loader-png.postinst returned 1.
   |  * pkg_run_script: package gdk-pixbuf-loader-jpeg postinst script 
   returned status 1.
   |  * opkg_configure: gdk-pixbuf-loader-jpeg.postinst returned 1.
   |  * pkg_run_script: package liberation-fonts postinst script returned 
   status 1.
   |  * opkg_configure: liberation-fonts.postinst returned 1.
   |  * pkg_run_script: package gdk-pixbuf-loader-xpm postinst script 
   returned status 1.
   |  * opkg_configure: gdk-pixbuf-loader-xpm.postinst returned 1.
   |  * pkg_run_script: package gdk-pixbuf-loader-gif postinst script 
   returned status 1.
   |  * opkg_configure: gdk-pixbuf-loader-gif.postinst returned 1.
   |  * pkg_run_script: package ppp postinst script returned status 1.
   |  * opkg_configure: ppp.postinst returned 1.
   |  * pkg_run_script: package ttf-dejavu-common postinst script returned 
   status 127.
   |  * opkg_configure: ttf-dejavu-common.postinst returned 127.
   |  * pkg_run_script: package ttf-dejavu-sans postinst script returned 
   status 127.
   |  * opkg_configure: ttf-dejavu-sans.postinst returned 127.
   |  * pkg_run_script: package ffalarms postinst script returned status 
   127.
   |  * opkg_configure: ffalarms.postinst returned 127.
   |  * pkg_run_script: package rsyslog postinst script returned status 1.
   |  * opkg_configure: rsyslog.postinst returned 1.
   |  * pkg_run_script: package ttf-dejavu-sans-mono postinst script 
   returned status 127.
   |  * opkg_configure: ttf-dejavu-sans-mono.postinst returned 127.
   |  * pkg_run_script: package matchbox-keyboard-im postinst script 
   returned status 1.
   |  * opkg_configure: matchbox-keyboard-im.postinst returned 1.
   |  * pkg_run_script: package hicolor-icon-theme postinst script 
   returned status 1.
   |  * opkg_configure: hicolor-icon-theme.postinst returned 1.
   |  * pkg_run_script: packaERROR: Function 'do_rootfs' failed (see 
   /OE/shr-core/tmp-eglibc/work/qemuarm-oe-linux-gnueabi/shr-l
   ite-image/2.0-r20/temp/log.do_rootfs.10063 for further information)
   | ge ttf-liberation-mono postinst script returned status 127.
   |  * opkg_configure: ttf-liberation-mono.postinst returned 127.
   |  * pkg_run_script: package gtk-immodule-xim postinst script returned 
   status 1.
   |  * opkg_configure: gtk-immodule-xim.postinst returned 1.
   |  * pkg_run_script: package ca-certificates postinst script returned 
   status 1.
   |  * opkg_configure: ca-certificates.postinst returned 1.
   NOTE: package shr-lite-image-2.0-r20: task do_rootfs: Failed
   ERROR: Task 9 
   (/OE/shr-core/meta-smartphone/meta-shr/recipes-shr/images/shr-lite-image.bb,
do_rootfs) failed with exit code '
   1'
  
  This looks like you don't have the offline_postinstall patch applied?
 
 I have

Please double check. That patch does things like:

Index: trunk/libopkg/pkg.c
===
--- trunk.orig/libopkg/pkg.c2011-12-15 15:58:39.0 +
+++ trunk/libopkg/pkg.c 2011-12-15 20:04:50.109992736 +
@@ -1297,8 +1297,9 @@
  free(cmd);
 
  if (err) {
- opkg_msg(ERROR, package \%s\ %s script returned status %d.\n, 
-   pkg-name, script, err);
+  if (!conf-offline_root)
+  opkg_msg(ERROR, package \%s\ %s script returned status 
%d.\n, 
+pkg-name, script, err);
  return err;
  }
 
and these are clearly showing up as ERRORs above. This means that:

a) offline_root 

[OE-core] [PATCH 0/1] Create a script for SUMMARY audit in recipes

2011-12-17 Thread Shane Wang
Here is the script to check which recipe provides SUMMARY and which doesnot.
For those which do not, maintainer should add or update to a meaningful summary 
for HOB to display in description.

The following changes since commit b281fd127bac9ba77ab63a5c2b812ddd5d56df37:

  documentation/poky-ref-manual/technical-details.xml: edits per Richard Purdie 
(2011-12-16 16:58:41 +)

are available in the git repository at:
  git://git.pokylinux.org/poky-contrib shane/summary-audit
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=shane/summary-audit

Shane Wang (1):
  Create a script for SUMMARY audit in recipes

 scripts/contrib/summary-audit.sh |   53 ++
 1 files changed, 53 insertions(+), 0 deletions(-)
 create mode 100755 scripts/contrib/summary-audit.sh

-- 
1.7.6


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


[OE-core] [PATCH 1/1] Create a script for SUMMARY audit in recipes

2011-12-17 Thread Shane Wang
Some recipes don't contain SUMMARY, which HOB will use for descriptions.
If the summary is missing, bitbake will create a default value for summary.
That is PN plus string  version  plus its version. Every maintainer should 
add and update the summary fields according to audit results.

[YOCTO #1804] got fixed, and maintainers should follow up.

Signed-off-by: Shane Wang shane.w...@intel.com
---
 scripts/contrib/summary-audit.sh |   53 ++
 1 files changed, 53 insertions(+), 0 deletions(-)
 create mode 100755 scripts/contrib/summary-audit.sh

diff --git a/scripts/contrib/summary-audit.sh b/scripts/contrib/summary-audit.sh
new file mode 100755
index 000..068e283
--- /dev/null
+++ b/scripts/contrib/summary-audit.sh
@@ -0,0 +1,53 @@
+#!/bin/bash
+#
+# Perform an audit of which recipes provide summary and which
+# are missing for HOB2.
+#
+# Setup requirements: Run this script after source'ing the build
+# environment script, so you're running it from build/ directory.
+#
+# Maintainer: Shane Wang shane.w...@intel.com
+
+DISTRO_TRACKING_FILE=../meta/conf/distro/include/distro_tracking_fields.inc
+REPORT_MISSING_SUMMARY=summary.txt
+REPORT_LOG=summary.log
+
+rm -rf $REPORT_MISSING_SUMMARY $REPORT_LOG
+
+BITBAKE=`which bitbake`
+if [ -z $BITBAKE ]; then
+   echo Error: bitbake command not found.
+   echo Did you forget to source the build environment script?
+   exit 1
+fi
+
+packages=(`bitbake -s | awk '{ print \$1 }'`)
+versions=(`bitbake -s | awk '{ print \$2 }'`)
+
+echo Package Num: ${#packages[*]} Version Num: ${#versions[*]}  
$REPORT_LOG
+len=${#packages[*]}
+
+for (( i=0; i  $len; i++ )); do
+   pkg=${packages[$i]}
+
+   if [[ $pkg == Loading || $pkg == Loaded ||
+  $pkg == Parsing || $pkg == Package ||
+  $pkg == NOTE:   || $pkg == WARNING: ||
+  $pkg == done.   || $pkg ==  ]]
+   then
+   # Skip initial bitbake output
+   continue
+   fi
+
+   SUMMARY=`bitbake -e $pkg | grep -e ^SUMMARY *= | awk -F '=' '{ print 
\$2 }' | awk -F '' '{ print \$2 }'`
+   ver=${versions[$i]#*:} # remove ':' in the version
+   echo Handling package $pkg ($i out of $len) ...
+   echo HANDLING SUMMARY of package $pkg ... $SUMMARY ---NOT--- $pkg 
version $ver  $REPORT_LOG
+
+   if [[ $SUMMARY =~ $pkg version $ver ]]; then
+   # find which summary is missing and report
+   maintainer=`cat 
../meta/conf/distro/include/distro_tracking_fields.inc | grep -e 
^RECIPE_MAINTAINER_pn-$pkg *= | cut -d= -f2`
+   echo $pkg = $maintainer  $REPORT_MISSING_SUMMARY
+   fi
+done
+echo DONE!  $REPORT_LOG
-- 
1.7.6


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


Re: [OE-core] [PATCH 0/1] Create a script for SUMMARY audit in recipes

2011-12-17 Thread Wang, Shane
Attached is the audit result for the recipes whose SUMMARYs are missing.

--
Shane

 -Original Message-
 From: Wang, Shane
 Sent: Saturday, December 17, 2011 11:00 PM
 To: openembedded-core@lists.openembedded.org
 Cc: Wang, Shane
 Subject: [PATCH 0/1] Create a script for SUMMARY audit in recipes
 
 Here is the script to check which recipe provides SUMMARY and which
 doesnot.
 For those which do not, maintainer should add or update to a meaningful
 summary for HOB to display in description.
 
 The following changes since commit
 b281fd127bac9ba77ab63a5c2b812ddd5d56df37:
 
   documentation/poky-ref-manual/technical-details.xml: edits per Richard
 Purdie (2011-12-16 16:58:41 +)
 
 are available in the git repository at:
   git://git.pokylinux.org/poky-contrib shane/summary-audit
 
 http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=shane/summary-audit
 
 Shane Wang (1):
   Create a script for SUMMARY audit in recipes
 
  scripts/contrib/summary-audit.sh |   53
 ++
  1 files changed, 53 insertions(+), 0 deletions(-)
  create mode 100755 scripts/contrib/summary-audit.sh
 
 --
 1.7.6

acl =  Saul Wold s...@linux.intel.com
acl-native = 
acpid =  Zhai Edwin edwin.z...@intel.com
adt-installer =  Jessica Zhang jessica.zh...@intel.com
alsa-lib =  Dongxiao Xu dongxiao...@intel.com
alsa-lib-native = 
alsa-tools =  Kai Kang kai.k...@windriver.com
alsa-utils =  Dongxiao Xu dongxiao...@intel.com
apr =  Zhai Edwin edwin.z...@intel.com
apr-native = 
apr-util =  Zhai Edwin edwin.z...@intel.com
apr-util-native = 
apt =  Mei Lei lei@intel.com
apt-native = 
aspell =  Mei Lei lei@intel.com
atk =  Zhai Edwin edwin.z...@intel.com
attr =  Saul Wold s...@linux.intel.com
attr-native = 
augeas =  Saul Wold s...@linux.intel.com
bash =  Saul Wold s...@linux.intel.com
bc =  Zhai Edwin edwin.z...@intel.com
beecrypt =  Zhai Edwin edwin.z...@intel.com
beecrypt-native = 
bind =  Xiaofeng Yan xiaofeng@windriver.com
blktrace =  Tom Zanussi tom.zanu...@intel.com
boost =  Saul Wold s...@linux.intel.com
boost-jam-native =  Saul Wold s...@linux.intel.com
clutter =  Zhai Edwin edwin.z...@intel.com
clutter-1.6 =  Zhai Edwin edwin.z...@intel.com
clutter-box2d =  Zhai Edwin edwin.z...@intel.com
clutter-box2d-1.6 =  Zhai Edwin edwin.z...@intel.com
clutter-gst-1.6 =  Dongxiao Xu dongxiao...@intel.com
cmake = 
cmake-native =  Dongxiao Xu dongxiao...@intel.com
cmake-nativesdk = 
cogl = 
connman-gnome =  Dongxiao Xu dongxiao...@intel.com
consolekit =  Zhai Edwin edwin.z...@intel.com
contacts =  Zhai Edwin edwin.z...@intel.com
core-image-base =  Dongxiao Xu dongxiao...@intel.com
core-image-basic =  Dongxiao Xu dongxiao...@intel.com
core-image-clutter = 
core-image-core =  Dongxiao Xu dongxiao...@intel.com
core-image-lsb =  Dongxiao Xu dongxiao...@intel.com
core-image-lsb-dev = 
core-image-lsb-sdk = 
core-image-minimal =  Dongxiao Xu dongxiao...@intel.com
core-image-minimal-dev = 
core-image-minimal-initramfs =  Dongxiao Xu dongxiao...@intel.com
core-image-minimal-mtdutils =  Dongxiao Xu dongxiao...@intel.com
core-image-rt = 
core-image-rt-sdk = 
core-image-sato =  Dongxiao Xu dongxiao...@intel.com
core-image-sato-dev = 
core-image-sato-sdk =  Dongxiao Xu dongxiao...@intel.com
cracklib = Yu Ke ke...@intel.com
createrepo =  Saul Wold s...@linux.intel.com
createrepo-native = 
curl =  Mei Lei lei@intel.com
curl-native = 
curl-nativesdk = 
cwautomacros =  Dongxiao Xu dongxiao...@intel.com
cwautomacros-native = 
dates =  Zhai Edwin edwin.z...@intel.com
db =  Dongxiao Xu dongxiao...@intel.com
db-native = 
db-nativesdk = 
dbus-wait =  Zhai Edwin edwin.z...@intel.com
desktop-file-utils-native = 
diffutils =  Mei Lei lei@intel.com
dosfstools =  Scott Garman scott.a.gar...@intel.com
dosfstools-native = 
dpkg =  Dongxiao Xu dongxiao...@intel.com
dpkg-native = 
dropbear =  Mei Lei lei@intel.com
ed =  Zhai Edwin edwin.z...@intel.com
eds-dbus =  Zhai Edwin edwin.z...@intel.com
eds-tools = 
eee-acpi-scripts =  Zhai Edwin edwin.z...@intel.com
eglibc-locale-nativesdk = 
elfutils =  Mei Lei lei@intel.com
elfutils-native = 
elfutils-nativesdk = 
enchant =  Dongxiao Xu dongxiao...@intel.com
external-csl-toolchain = 
external-poky-toolchain = 
external-python-tarball = 
font-alias =  Dexuan Cui dexuan@intel.com
font-util =  Dexuan Cui dexuan@intel.com
font-util-native = 
formfactor =  Dongxiao Xu dongxiao...@intel.com
fotowall = Yu Ke ke...@intel.com
fstests =  Nitin A Kamble nitin.a.kam...@intel.com
gail = 
gaku =  Dongxiao Xu dongxiao...@intel.com
gawk =  Mei Lei lei@intel.com
gcc =  Nitin A Kamble nitin.a.kam...@intel.com
gcc-cross = 
gcc-cross-canadian-i586 = 
gcc-cross-initial = 
gcc-cross-intermediate = 
gcc-crosssdk = 
gcc-crosssdk-initial = 
gcc-crosssdk-intermediate = 
gcc-runtime = 
gcc-runtime-nativesdk = 
gconf-dbus =  Yu Ke ke...@intel.com
gconf-dbus-native = 
gdb =  Nitin A Kamble nitin.a.kam...@intel.com
gdb-cross = 
gdb-cross-canadian-i586 = 
gdbm =  Yu Ke ke...@intel.com

Re: [OE-core] [PATCH 1/1] Create a script for SUMMARY audit in recipes

2011-12-17 Thread Henning Heinold
On Sat, Dec 17, 2011 at 11:07:12PM +0800, Shane Wang wrote:
 Some recipes don't contain SUMMARY, which HOB will use for descriptions.
 If the summary is missing, bitbake will create a default value for summary.
 That is PN plus string  version  plus its version. Every maintainer should 
 add and update the summary fields according to audit results.
 
 [YOCTO #1804] got fixed, and maintainers should follow up.
 
 Signed-off-by: Shane Wang shane.w...@intel.com
 ---
  scripts/contrib/summary-audit.sh |   53 
 ++
  1 files changed, 53 insertions(+), 0 deletions(-)
  create mode 100755 scripts/contrib/summary-audit.sh
 
 diff --git a/scripts/contrib/summary-audit.sh 
 b/scripts/contrib/summary-audit.sh
 new file mode 100755
 index 000..068e283
 --- /dev/null
 +++ b/scripts/contrib/summary-audit.sh
 @@ -0,0 +1,53 @@
 +#!/bin/bash
 +#

Hm,

where do you need special bash features? 

Bye Henning

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


Re: [OE-core] opkg: Update svn 625 - 633 and fix preinst issues

2011-12-17 Thread Martin Jansa
On Sat, Dec 17, 2011 at 11:52:25AM +, Richard Purdie wrote:
 On Sat, 2011-12-17 at 11:34 +0100, Martin Jansa wrote:
  On Sat, Dec 17, 2011 at 10:22:01AM +, Richard Purdie wrote:
   On Sat, 2011-12-17 at 10:20 +0100, Martin Jansa wrote:
On Sat, Dec 17, 2011 at 01:32:28AM +, Richard Purdie wrote:
I've tried to build image with SRCREV=633 and it built image fine
then I tried to apply your patch but without installorder.patch to
confirm that the issue with circular depending packages is really cause
by that only and then try to fix installorder.patch to work even with
such packages, but I got many postinst errors :(. 

From your description I understood that postinst execution should be
almost the same only more logic is moved from rootfs_ipk.bbclass to opkg
itself.

| Collected errors:
|  * pkg_run_script: package pam-plugin-unix postinst script returned 
status 1.
|  * opkg_configure: pam-plugin-unix.postinst returned 1.
|  * pkg_run_script: package pango-module-basic-x postinst script 
returned status 1.
|  * opkg_configure: pango-module-basic-x.postinst returned 1.
|  * pkg_run_script: package pango-module-basic-fc postinst script 
returned status 1.
|  * opkg_configure: pango-module-basic-fc.postinst returned 1.
|  * pkg_run_script: package update-modules postinst script returned 
status 1.
|  * opkg_configure: update-modules.postinst returned 1.
|  * pkg_run_script: package gdk-pixbuf-loader-png postinst script 
returned status 1.
|  * opkg_configure: gdk-pixbuf-loader-png.postinst returned 1.
|  * pkg_run_script: package gdk-pixbuf-loader-jpeg postinst script 
returned status 1.
|  * opkg_configure: gdk-pixbuf-loader-jpeg.postinst returned 1.
|  * pkg_run_script: package liberation-fonts postinst script 
returned status 1.
|  * opkg_configure: liberation-fonts.postinst returned 1.
|  * pkg_run_script: package gdk-pixbuf-loader-xpm postinst script 
returned status 1.
|  * opkg_configure: gdk-pixbuf-loader-xpm.postinst returned 1.
|  * pkg_run_script: package gdk-pixbuf-loader-gif postinst script 
returned status 1.
|  * opkg_configure: gdk-pixbuf-loader-gif.postinst returned 1.
|  * pkg_run_script: package ppp postinst script returned status 1.
|  * opkg_configure: ppp.postinst returned 1.
|  * pkg_run_script: package ttf-dejavu-common postinst script 
returned status 127.
|  * opkg_configure: ttf-dejavu-common.postinst returned 127.
|  * pkg_run_script: package ttf-dejavu-sans postinst script returned 
status 127.
|  * opkg_configure: ttf-dejavu-sans.postinst returned 127.
|  * pkg_run_script: package ffalarms postinst script returned status 
127.
|  * opkg_configure: ffalarms.postinst returned 127.
|  * pkg_run_script: package rsyslog postinst script returned status 
1.
|  * opkg_configure: rsyslog.postinst returned 1.
|  * pkg_run_script: package ttf-dejavu-sans-mono postinst script 
returned status 127.
|  * opkg_configure: ttf-dejavu-sans-mono.postinst returned 127.
|  * pkg_run_script: package matchbox-keyboard-im postinst script 
returned status 1.
|  * opkg_configure: matchbox-keyboard-im.postinst returned 1.
|  * pkg_run_script: package hicolor-icon-theme postinst script 
returned status 1.
|  * opkg_configure: hicolor-icon-theme.postinst returned 1.
|  * pkg_run_script: packaERROR: Function 'do_rootfs' failed (see 
/OE/shr-core/tmp-eglibc/work/qemuarm-oe-linux-gnueabi/shr-l
ite-image/2.0-r20/temp/log.do_rootfs.10063 for further information)
| ge ttf-liberation-mono postinst script returned status 127.
|  * opkg_configure: ttf-liberation-mono.postinst returned 127.
|  * pkg_run_script: package gtk-immodule-xim postinst script 
returned status 1.
|  * opkg_configure: gtk-immodule-xim.postinst returned 1.
|  * pkg_run_script: package ca-certificates postinst script returned 
status 1.
|  * opkg_configure: ca-certificates.postinst returned 1.
NOTE: package shr-lite-image-2.0-r20: task do_rootfs: Failed
ERROR: Task 9 
(/OE/shr-core/meta-smartphone/meta-shr/recipes-shr/images/shr-lite-image.bb,
 do_rootfs) failed with exit code '
1'
   
   This looks like you don't have the offline_postinstall patch applied?
  
  I have
 
 Please double check. That patch does things like:
 
 Index: trunk/libopkg/pkg.c
 ===
 --- trunk.orig/libopkg/pkg.c  2011-12-15 15:58:39.0 +
 +++ trunk/libopkg/pkg.c   2011-12-15 20:04:50.109992736 +
 @@ -1297,8 +1297,9 @@
   free(cmd);
  
   if (err) {
 -   opkg_msg(ERROR, package \%s\ %s script returned status %d.\n, 
 -   pkg-name, script, err);
 +  if (!conf-offline_root)
 +opkg_msg(ERROR, package \%s\ %s script returned status 
 

Re: [OE-core] [PATCH 1/1] Create a script for SUMMARY audit in recipes

2011-12-17 Thread Wang, Shane
Henning Heinold wrote on 2011-12-17:

 On Sat, Dec 17, 2011 at 11:07:12PM +0800, Shane Wang wrote:
 Some recipes don't contain SUMMARY, which HOB will use for
 descriptions. If the summary is missing, bitbake will create a default
 value for summary. That is PN plus string  version  plus its version.
 Every maintainer should add and update the summary fields according to
 audit results.
 
 [YOCTO #1804] got fixed, and maintainers should follow up.
 
 Signed-off-by: Shane Wang shane.w...@intel.com
 ---
  scripts/contrib/summary-audit.sh |   53
  ++ 1 files changed, 53
  insertions(+), 0 deletions(-) create mode 100755
  scripts/contrib/summary-audit.sh
 diff --git a/scripts/contrib/summary-audit.sh
 b/scripts/contrib/summary-audit.sh new file mode 100755 index
 000..068e283 --- /dev/null +++ b/scripts/contrib/summary-audit.sh
 @@ -0,0 +1,53 @@ +#!/bin/bash +#
 
 Hm,
 
 where do you need special bash features?
 
 Bye Henning

OK, nowhere. I tested with sh just now, it also worked. Will change that.

--
Shane

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


Re: [OE-core] [PATCH 1/1] Create a script for SUMMARY audit in recipes

2011-12-17 Thread Henning Heinold
On Sun, Dec 18, 2011 at 01:18:15AM +0800, Wang, Shane wrote:
 Henning Heinold wrote on 2011-12-17:
 
  On Sat, Dec 17, 2011 at 11:07:12PM +0800, Shane Wang wrote:
  Some recipes don't contain SUMMARY, which HOB will use for
  descriptions. If the summary is missing, bitbake will create a default
  value for summary. That is PN plus string  version  plus its version.
  Every maintainer should add and update the summary fields according to
  audit results.
  
  [YOCTO #1804] got fixed, and maintainers should follow up.
  
  Signed-off-by: Shane Wang shane.w...@intel.com
  ---
   scripts/contrib/summary-audit.sh |   53
   ++ 1 files changed, 53
   insertions(+), 0 deletions(-) create mode 100755
   scripts/contrib/summary-audit.sh
  diff --git a/scripts/contrib/summary-audit.sh
  b/scripts/contrib/summary-audit.sh new file mode 100755 index
  000..068e283 --- /dev/null +++ b/scripts/contrib/summary-audit.sh
  @@ -0,0 +1,53 @@ +#!/bin/bash +#
  
  Hm,
  
  where do you need special bash features?
  
  Bye Henning
 
 OK, nowhere. I tested with sh just now, it also worked. Will change that.

I think you used some == you have to change them.

Bye Henning

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


Re: [OE-core] [PATCH] native.bbclass: Fix variable remapping coverage

2011-12-17 Thread Darren Hart
On 12/17/2011 02:18 AM, Richard Purdie wrote:
 When looking for RDEPENDS to process, bitbake iterates through PACKAGES
 *and* PN. Since native.bbclass sets PACKAGES to be empty, its pointless
 remapping the list of PACKAGES since this does nothing. There is a problem
 since *_${PN} are used by bitbake but not remapped by the native.bbclass
 class extension code.
 
 This changes the code to remap _${PN} in both expanded and unexpanded
 forms. We use the unexpanded form since d.expandkeys() has not been called 
 at the point this code executes. Remapping the expanded form is belt and 
 braces
 to cover any case where the unexpanded key form may not be present.
 
 As a result of this, various surprising dependencies are uncovered
 and the patch rectifies those. These are real bugs since they're injecting
 unneeded (unremapped) dependencies into the dependency chain. Workarounds
 for this kind of problem in autoconf are removed.
 
 Signed-off-by: Richard Purdie richard.pur...@linuxfoundation.org

Tested. This resolves the issues I was experiencing with python-setuptools.

Acked-by: Darren Hart dvh...@linux.intel.com

I'm still wondering about the following commit:

$ git show 0c6595a71965e4c1a56902cb7e7ca74f3b469e19
commit 0c6595a71965e4c1a56902cb7e7ca74f3b469e19
Author: Martin Jansa martin.ja...@gmail.com
Date:   Sat Mar 5 06:15:52 2011 +

distutils-base: Only RDEPEND python-core on target packages

* fixes ie setuptools, without this patch it RDEPENDs on
python-core-native, wh
* imported from OE 8377b8ec57f35b9e5b81a74c77f68fd6e02949c8

(From OE-Core rev: 65317f21736293cc4eeb9a404e9f01043df7565d)

Signed-off-by: Martin Jansa martin.ja...@gmail.com
Acked-by: Koen Kooi k...@dominion.thruhere.net
Signed-off-by: Khem Raj raj.k...@gmail.com
Signed-off-by: Richard Purdie richard.pur...@linuxfoundation.org

diff --git a/meta/classes/distutils-base.bbclass
b/meta/classes/distutils-base.bbcl
index 2e151de..e84b0fc 100644
--- a/meta/classes/distutils-base.bbclass
+++ b/meta/classes/distutils-base.bbclass
@@ -1,5 +1,5 @@
 DEPENDS  += ${@[python-native python,
][(bb.data.getVar('PACKAGES', d, 1) ==
-RDEPENDS += python-core
+RDEPENDS_${PN} += ${@['', 'python-core']['${PN}' == '${BPN}']}

 inherit distutils-common-base


This seems to be addressing similar sorts of issues. In the patch below
you added an RPROVIDES to python-native_2.7.2.bb. I reverted the above
commit and then appended python-core-native the the new RPROVIDES for
python-native and the build now succeeds. Is the above commit a bandaid
that is better resolved with the RDEPENDS?

--
Darren

 ---
 diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass
 index 49823d6..00196ba 100644
 --- a/meta/classes/native.bbclass
 +++ b/meta/classes/native.bbclass
 @@ -127,7 +127,7 @@ python native_virtclass_handler () {
  d.setVar(varname,  .join(newdeps))
  
  map_dependencies(DEPENDS, e.data)
 -for pkg in (e.data.getVar(PACKAGES, True).split() + []):
 +for pkg in [e.data.getVar(PN, True), , ${PN}]:
  map_dependencies(RDEPENDS, e.data, pkg)
  map_dependencies(RRECOMMENDS, e.data, pkg)
  map_dependencies(RSUGGESTS, e.data, pkg)
 diff --git a/meta/recipes-devtools/autoconf/autoconf.inc 
 b/meta/recipes-devtools/autoconf/autoconf.inc
 index 08a1b02..1d0cf90 100644
 --- a/meta/recipes-devtools/autoconf/autoconf.inc
 +++ b/meta/recipes-devtools/autoconf/autoconf.inc
 @@ -6,6 +6,8 @@ LICENSE = GPLv3
  HOMEPAGE = http://www.gnu.org/software/autoconf/;
  SECTION = devel
  DEPENDS += m4-native
 +DEPENDS_virtclass-native = m4-native gnu-config-native
 +DEPENDS_virtclass-nativesdk = m4-nativesdk gnu-config-nativesdk
  RDEPENDS_${PN} = m4 gnu-config
  
  SRC_URI = ${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.bz2 \
 diff --git a/meta/recipes-devtools/autoconf/autoconf_2.68.bb 
 b/meta/recipes-devtools/autoconf/autoconf_2.68.bb
 index 9028e83..84eb182 100644
 --- a/meta/recipes-devtools/autoconf/autoconf_2.68.bb
 +++ b/meta/recipes-devtools/autoconf/autoconf_2.68.bb
 @@ -4,8 +4,6 @@ PR = r4
  
  PARALLEL_MAKE = 
  
 -DEPENDS += m4-native
 -RDEPENDS_${PN} = m4 gnu-config
  LICENSE = GPLv2  GPLv3
  LIC_FILES_CHKSUM = file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
   file://COPYINGv3;md5=d32239bcb673463ab874e80d47fae504
 @@ -22,12 +20,6 @@ SRC_URI += file://autoreconf-include.patch \
  SRC_URI[md5sum] = 864d785215aa60d627c91fcb21b05b07
  SRC_URI[sha256sum] = 
 c491fb273fd6d4ca925e26ceed3d177920233c76d542b150ff35e571454332c8
  
 -DEPENDS_virtclass-native = m4-native gnu-config-native
 -RDEPENDS_${PN}_virtclass-native = m4-native gnu-config-native
 -
 -DEPENDS_virtclass-nativesdk = m4-nativesdk gnu-config-nativesdk
 -RDEPENDS_${PN}_virtclass-nativesdk = m4-nativesdk gnu-config-nativesdk
 -
  SRC_URI_append_virtclass-native =  file://fix_path_xtra.patch
  
  EXTRA_OECONF += ac_cv_path_M4=m4
 diff --git a/meta/recipes-devtools/automake/automake_1.11.1.bb 
 

[OE-core] [PATCH] xorg-font-common.inc: break runtime dependency loop

2011-12-17 Thread Andreas Müller
required since opkg update [1]

[1] 
http://cgit.openembedded.org/openembedded-core/commit/?id=2feba313c991170747381c7cf821a45c2cd04632

Signed-off-by: Andreas Müller schnitzelt...@gmx.de
---
 .../xorg-font/xorg-font-common.inc |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-graphics/xorg-font/xorg-font-common.inc 
b/meta/recipes-graphics/xorg-font/xorg-font-common.inc
index d93b4ee..5a8ae56 100644
--- a/meta/recipes-graphics/xorg-font/xorg-font-common.inc
+++ b/meta/recipes-graphics/xorg-font/xorg-font-common.inc
@@ -5,10 +5,10 @@ SECTION = x11/fonts
 LICENSE = MIT-X
 
 DEPENDS =  encodings font-alias font-util-native mkfontdir-native 
mkfontscale-native
-RDEPENDS_${PN} = encodings font-util font-alias
+RRECOMMENDS_${PN} = encodings font-util font-alias
 
 XORG_PN = ${BPN}
-INC_PR = r2
+INC_PR = r3
 
 SRC_URI = ${XORG_MIRROR}/individual/font/${XORG_PN}-${PV}.tar.bz2
 S = ${WORKDIR}/${XORG_PN}-${PV}
-- 
1.7.4.4


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