Skip to contentSkip to conversation

Numerous bug fixes

PATCH In review Saul Wold 6 participants 17 messages Mar 8, 2011 – Mar 9, 2011

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

cover Numerous bug fixes

From: Saul Wold <[email protected]>

This set address a number of bugs found during testing of the Bernard release, they may not all be accepeted, I send them here for reference also.

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: distro/oe-dist
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=distro/oe-dist

Thanks,
Saul Wold <[email protected]>
---

Dexuan Cui (1):
util-macros: fix DEPENDS in the case of native/nativesdk

Dongxiao Xu (1):
connman: add xuser to the dbus permission list

Koen Kooi (1):
libgpg-error: extend to nativesdk to catch up with metadata changes

Liping Ke (1):
adt: Update to svn r596 to fix symbolic link issues

Nitin A Kamble (1):
gcc-runtime: fix LSB library checks for libstdc++.so.6

Saul Wold (3):
gst-plugins: Added hal to DEPENDS
attr: Added ncurses to depends
lsb-live image: add lsb-live and lsb-sdk-live image types

 meta/conf/bitbake.conf                             |    2 +-
 .../conf/distro/include/poky-default-revisions.inc |    1 +
 meta/conf/distro/include/poky-eglibc.inc           |    2 +-
 meta/conf/distro/include/poky-glibc.inc            |    2 +-
 meta/conf/distro/include/poky-uclibc.inc           |    2 +-
 .../connman-0.65/add_xuser_dbus_permission.patch   |   21 ++++++++++++++++++++
 meta/recipes-connectivity/connman/connman_0.65.bb  |    3 +-
 .../recipes-devtools/gcc/gcc-configure-runtime.inc |    1 +
 meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb     |    2 +-
 .../installer/adt-installer/adt_installer          |    2 +-
 .../installer/adt-installer_1.0.bb                 |    8 +++---
 .../recipes-extended/images/poky-image-lsb-live.bb |   11 ++++++++++
 .../images/poky-image-lsb-sdk-live.bb              |   11 ++++++++++
 .../xorg-util/util-macros_1.11.0.bb                |    5 ++-
 meta/recipes-multimedia/gstreamer/gst-plugins.inc  |    2 +-
 meta/recipes-support/attr/attr.inc                 |    2 +
 .../libgpg-error/libgpg-error_1.9.bb               |    5 ++-
 17 files changed, 66 insertions(+), 16 deletions(-)
 create mode 100644 meta/recipes-connectivity/connman/connman-0.65/add_xuser_dbus_permission.patch
 create mode 100644 meta/recipes-extended/images/poky-image-lsb-live.bb
 create mode 100644 meta/recipes-extended/images/poky-image-lsb-sdk-live.bb
author
#1 lore raw

PATCH 1/8 gst-plugins: Added hal to DEPENDS

From: Saul Wold <[email protected]>

Fixes [YOCTO #810]

---
 meta/recipes-multimedia/gstreamer/gst-plugins.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta/recipes-multimedia/gstreamer/gst-plugins.inc +1 -1
index 4edca95..d1abd36 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "http://gstreamer.freedesktop.org/"
 BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer"
 SECTION = "multimedia"
 PRIORITY = "optional"
-DEPENDS = "gstreamer"
+DEPENDS = "gstreamer hal"
 
 inherit autotools pkgconfig
 
Signature · 1 line
1.7.1.1
author
#2 lore raw

PATCH 2/8 attr: Added ncurses to depends

In reply to Saul Wold

From: Saul Wold <[email protected]>

---
 meta/recipes-support/attr/attr.inc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
meta/recipes-support/attr/attr.inc +2 -0
index e9467d7..c110340 100644
@@ -2,6 +2,8 @@ DESCRIPTION = "utilities for manipulating filesystem extended attributes"
 HOMEPAGE = "http://savannah.nongnu.org/projects/attr/"
 SECTION = "libs"
 
+DEPENDS = "ncurses"
+
 LICENSE = "LGPLv2.1+ & GPLv2+"
 LICENSE_${PN} = "GPLv2+"
 LICENSE_lib${PN} = "LGPLv2.1+"
Signature · 1 line
1.7.1.1
#3 lore raw

Re: [PATCH 2/8] attr: Added ncurses to depends

Quoted 15 lines · Saul Wold

From: Saul Wold <[email protected]>

---
 meta/recipes-support/attr/attr.inc |    2 ++

 1 files changed, 2 insertions(+), 0 deletions(-)
meta/recipes-support/attr/attr.inc +0 -0
index e9467d7..c110340 100644
@@ -2,6 +2,8 @@ DESCRIPTION = "utilities for manipulating filesystem extended attributes"

 HOMEPAGE = "http://savannah.nongnu.org/projects/attr/" SECTION = "libs"

meta/recipes-support/attr/attr.inc DESCRIPTION = "utilities for manipulating filesystem extended attributes" · line 6

Quoted 2 lines
meta/recipes-support/attr/attr.inc +2 -0
+DEPENDS = "ncurses"
+

why does it need ncurses dependency ?

Quoted 12 lines

 LICENSE = "LGPLv2.1+ & GPLv2+"
 LICENSE_${PN} = "GPLv2+"
 LICENSE_lib${PN} = "LGPLv2.1+"
--
1.7.1.1

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

author
#4 lore raw

PATCH 3/8 lsb-live image: add lsb-live and lsb-sdk-live image types

In reply to Saul Wold

From: Saul Wold <[email protected]>

---
 .../recipes-extended/images/poky-image-lsb-live.bb |   11 +++++++++++
 .../images/poky-image-lsb-sdk-live.bb              |   11 +++++++++++
 2 files changed, 22 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-extended/images/poky-image-lsb-live.bb
 create mode 100644 meta/recipes-extended/images/poky-image-lsb-sdk-live.bb
meta/recipes-extended/images/poky-image-lsb-live.bb new file +11 -0
new file mode 100644
index 0000000..baa9ea0
@@ -0,0 +1,11 @@
+DESCRIPTION = "LSB Bootable Live Image"
+
+require recipes-core/images/poky-image-live.inc
+
+LABELS += "boot install"
+
+ROOTFS = "${DEPLOY_DIR_IMAGE}/poky-image-lsb-${MACHINE}.ext3"
+
+LICENSE = "MIT"
+
+do_bootimg[depends] += "poky-image-lsb:do_rootfs"
meta/recipes-extended/images/poky-image-lsb-sdk-live.bb new file +11 -0
new file mode 100644
index 0000000..370780a
@@ -0,0 +1,11 @@
+DESCRIPTION = "LSB SDK Bootable Live Image"
+
+require recipes-core/images/poky-image-live.inc
+
+LABELS += "boot install"
+
+ROOTFS = "${DEPLOY_DIR_IMAGE}/poky-image-lsb-sdk-${MACHINE}.ext3"
+
+LICENSE = "MIT"
+
+do_bootimg[depends] += "poky-image-lsb-sdk:do_rootfs"
Signature · 1 line
1.7.1.1
author
#5 lore raw

PATCH 4/8 adt: Update to svn r596 to fix symbolic link issues

In reply to Saul Wold

From: Liping Ke <[email protected]>

See the longlinksfix patch for details but symlinks over 100 chars long were broken in sdk tarballs and its due to problems in the inbuilt tar in libbb in opkg. svn r596 has already fixed the problem.

---
 .../conf/distro/include/poky-default-revisions.inc |    1 +
 .../installer/adt-installer/adt_installer          |    2 +-
 .../installer/adt-installer_1.0.bb                 |    8 ++++----
 3 files changed, 6 insertions(+), 5 deletions(-)
meta/conf/distro/include/poky-default-revisions.inc +1 -0
index 5045c9e..36202a1 100644
@@ -140,6 +140,7 @@ OPKGSRCREV = "596"
 SRCREV_pn-opkg ??= "${OPKGSRCREV}"
 SRCREV_pn-opkg-native ??= "${OPKGSRCREV}"
 SRCREV_pn-opkg-nativesdk ??= "${OPKGSRCREV}"
+SRCREV_pn-adt-installer ??= "${OPKGSRCREV}"
 SRCREV_pn-opkg-nogpg ??= "${OPKGSRCREV}"
 SRCREV_pn-opkg-nogpg-native ??= "${OPKGSRCREV}"
 SRCREV_pn-opkg-nogpg-nativesdk ??= "${OPKGSRCREV}"
meta/recipes-devtools/installer/adt-installer/adt_installer +1 -1
index 2448d2b..b1b4970 100755
@@ -170,7 +170,7 @@ if [ ! -x "$LOCAL_OPKG_LOC/bin/opkg-cl" ]; then
   check_result
 
   echo_info "Configure opkg ...\n"
-  ./configure --prefix=$parent_folder/$LOCAL_OPKG_LOC --with-opkglibdir=$OPKG_LIBDIR --disable-curl --disable-ssl-curl --disable-gpg --disable-shave >> $parent_folder/$YOCTOADT_INSTALL_LOG_FILE
+  ./autogen.sh --prefix=$parent_folder/$LOCAL_OPKG_LOC --with-opkglibdir=$OPKG_LIBDIR --disable-curl --disable-ssl-curl --disable-gpg --disable-shave >> $parent_folder/$YOCTOADT_INSTALL_LOG_FILE
   check_result
 
   echo_info "Make opkg ...\n"
meta/recipes-devtools/installer/adt-installer_1.0.bb +4 -4
index e865971..50290f9 100644
@@ -39,7 +39,8 @@ YOCTOADT_VERSION = "${SDK_VERSION}"
 
 inherit deploy
 
-SRC_URI = "http://opkg.googlecode.com/files/opkg-0.1.8.tar.gz \
+PV = "0.1.8+svnr${SRCPV}"
+SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;proto=http \
            file://adt_installer \
            file://scripts/adt_installer_internal \
            file://scripts/util \
@@ -49,8 +50,6 @@ SRC_URI = "http://opkg.googlecode.com/files/opkg-0.1.8.tar.gz \
            file://opkg/conf/opkg-sdk-x86_64.conf \
            file://opkg/conf/opkg-sdk-i686.conf \
 	  "
-SRC_URI[md5sum] = "c714ce0e4863bf1315e3b6913ffe3299"
-SRC_URI[sha256sum] = "ff94bf30bd662d49c4b5057e3a0818d062731adaa555d59abd677ec32a3c1c60"
 
 fakeroot do_deploy () {
 	cd ${WORKDIR}
@@ -59,7 +58,8 @@ fakeroot do_deploy () {
 	rm -rf ${ADT_DIR}
 	mkdir -p ${ADT_DIR}/opkg/build
 	cp -r opkg ${ADT_DIR}/
-	cp -r opkg-0.1.8 ${ADT_DIR}/opkg/build/
+	cp -r trunk ${ADT_DIR}/opkg/build/
+	mv ${ADT_DIR}/opkg/build/trunk ${ADT_DIR}/opkg/build/opkg-svn
 	cp -r scripts ${ADT_DIR}/
 	cp adt_installer ${ADT_DIR}
 	cp adt_installer.conf ${ADT_DIR}
Signature · 1 line
1.7.1.1
author
#6 lore raw

PATCH 5/8 connman: add xuser to the dbus permission list

In reply to Saul Wold

From: Dongxiao Xu <[email protected]>

Some platform (like atom-pc) enables rootless X,
thus the connman frontend run on it need the
permission to connect with connman by dbus.
This commit grants permission to xuser.

This fixes [YOCTO #779]

---
 .../connman-0.65/add_xuser_dbus_permission.patch   |   21 ++++++++++++++++++++
 meta/recipes-connectivity/connman/connman_0.65.bb  |    3 +-
 2 files changed, 23 insertions(+), 1 deletions(-)
 create mode 100644 meta/recipes-connectivity/connman/connman-0.65/add_xuser_dbus_permission.patch
meta/recipes-connectivity/connman/connman-0.65/add_xuser_dbus_permission.patch new file +21 -0
new file mode 100644
index 0000000..787d49b
@@ -0,0 +1,21 @@
+Some platform (like atom-pc) enables rootless X,
+thus we need to add the xuser in the list.
+
+Signed-off-by: Dongxiao Xu <[email protected]>
+
+diff -ruN connman-0.65-orig/src/connman-dbus.conf connman-0.65/src/connman-dbus.conf
+--- connman-0.65-orig/src/connman-dbus.conf	2011-03-04 09:34:49.000000000 +0800
++++ connman-0.65/src/connman-dbus.conf	2011-03-04 09:35:21.000000000 +0800
+@@ -7,6 +7,12 @@
+         <allow send_interface="net.connman.Agent"/>
+         <allow send_interface="net.connman.Counter"/>
+     </policy>
++    <policy user="xuser">
++        <allow own="net.connman"/>
++        <allow send_destination="net.connman"/>
++        <allow send_interface="net.connman.Agent"/>
++        <allow send_interface="net.connman.Counter"/>
++    </policy>
+     <policy at_console="true">
+         <allow send_destination="net.connman"/>
+     </policy>
meta/recipes-connectivity/connman/connman_0.65.bb +2 -1
index 0b077e1..8bb84a1 100644
@@ -1,5 +1,5 @@
 require connman.inc
-PR = "r0"
+PR = "r1"
 
 EXTRA_OECONF += "\
   ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \
@@ -21,6 +21,7 @@ EXTRA_OECONF += "\
 SRC_URI  = "\
   http://www.kernel.org/pub/linux/network/connman/connman-${PV}.tar.gz \
   file://fix-shutdown-ap-disconnect.patch \
+  file://add_xuser_dbus_permission.patch \
   file://connman \
 "
 
Signature · 1 line
1.7.1.1
#7 lore raw

Re: [poky] [PATCH 5/8] connman: add xuser to the dbus permission list

Quoted 7 lines · Saul Wold

From: Dongxiao Xu <[email protected]>

Some platform (like atom-pc) enables rootless X,
thus the connman frontend run on it need the
permission to connect with connman by dbus.
This commit grants permission to xuser.

I wonder if it should be made some sort of conditional thing like passwordless logins are done in dropbear.

Quoted 63 lines

This fixes [YOCTO #779]

---
 .../connman-0.65/add_xuser_dbus_permission.patch   |   21 ++++++++++++++++++++ meta/recipes-connectivity/connman/connman_0.65.bb  |    3 +-

 2 files changed, 23 insertions(+), 1 deletions(-)

 create mode 100644 meta/recipes-connectivity/connman/connman-0.65/add_xuser_dbus_permission.patch

meta/recipes-connectivity/connman/connman-0.65/add_xuser_dbus_permission.patch new file +21 -0
new file mode 100644
index 0000000..787d49b
@@ -0,0 +1,21 @@
+Some platform (like atom-pc) enables rootless X,
+thus we need to add the xuser in the list.
+
+Signed-off-by: Dongxiao Xu <[email protected]>
+
+diff -ruN connman-0.65-orig/src/connman-dbus.conf connman-0.65/src/connman-dbus.conf
+--- connman-0.65-orig/src/connman-dbus.conf    2011-03-04 09:34:49.000000000 +0800
++++ connman-0.65/src/connman-dbus.conf 2011-03-04 09:35:21.000000000 +0800
+@@ -7,6 +7,12 @@
+         <allow send_interface="net.connman.Agent"/>
+         <allow send_interface="net.connman.Counter"/>
+     </policy>
++    <policy user="xuser">
++        <allow own="net.connman"/>
++        <allow send_destination="net.connman"/>
++        <allow send_interface="net.connman.Agent"/>
++        <allow send_interface="net.connman.Counter"/>
++    </policy>
+     <policy at_console="true">
+         <allow send_destination="net.connman"/>
+     </policy>
meta/recipes-connectivity/connman/connman_0.65.bb +0 -0
index 0b077e1..8bb84a1 100644
@@ -1,5 +1,5 @@

 require connman.inc

meta/recipes-connectivity/connman/connman_0.65.bb +1 -1
-PR = "r0"
+PR = "r1"

 EXTRA_OECONF += "\
  ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \

meta/recipes-connectivity/connman/connman_0.65.bb +1 -0
@@ -21,6 +21,7 @@ EXTRA_OECONF += "\
  SRC_URI  = "\
   http://www.kernel.org/pub/linux/network/connman/connman-${PV}.tar.gz \
   file://fix-shutdown-ap-disconnect.patch \
+  file://add_xuser_dbus_permission.patch \
   file://connman \

 "

--
1.7.1.1

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

author
#8 lore raw

PATCH 6/8 util-macros: fix DEPENDS in the case of native/nativesdk

In reply to Saul Wold

From: Dexuan Cui <[email protected]>

This fixes [YOCTO #814]

Without the line fixing nativesdk, bitbake meta-toolchain-gmae would get the following:

Missing or unbuildable dependency chain was: ['meta-toolchain-gmae', 'task-sdk-host', 'qemu-nativesdk', 'libsdl-nativesdk', 'libx11-nativesdk', 'util-macros-nativesdk', 'libgpg-error-nativesdk']
ERROR: Nothing PROVIDES 'libgpg-error-nativesdk'

[sgw: inherit gettext]
---
 .../xorg-util/util-macros_1.11.0.bb                |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
meta/recipes-graphics/xorg-util/util-macros_1.11.0.bb +3 -2
index 2bfe514..10de96c 100644
@@ -11,12 +11,13 @@ PE = "1"
 PR = "r0"
 
 # ${PN} is empty so we need to tweak -dev and -dbg package dependencies
-DEPENDS = "gettext libgpg-error"
-DEPENDS_virtclass-native = "gettext"
+DEPENDS = "libgpg-error"
 
 RDEPENDS_${PN}-dev = ""
 RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPV})"
 
+inherit gettext
+
 BBCLASSEXTEND = "native nativesdk"
 
 SRC_URI[md5sum] = "8580021f3a9e242ab09d23d62e475d53"
Signature · 1 line
1.7.1.1
#9 lore raw

Re: [PATCH 6/8] util-macros: fix DEPENDS in the case of native/nativesdk

On Mon, 2011-03-07 at 16:29 -0800, Saul Wold wrote:
From: Dexuan Cui <[email protected]>

Quoted 7 lines

This fixes [YOCTO #814]

Without the line fixing nativesdk, bitbake meta-toolchain-gmae would get the following:

Missing or unbuildable dependency chain was: ['meta-toolchain-gmae',

'task-sdk-host', 'qemu-nativesdk', 'libsdl-nativesdk', 'libx11-nativesdk', 'util-macros-nativesdk', 'libgpg-error-nativesdk']

Review

Quoted 11 lines

ERROR: Nothing PROVIDES 'libgpg-error-nativesdk'

[sgw: inherit gettext]
---
 .../xorg-util/util-macros_1.11.0.bb                |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/meta/recipes-graphics/xorg-util/util-macros_1.11.0.bb

meta/recipes-graphics/xorg-util/util-macros_1.11.0.bb PE = "1" · line 13

Quoted 7 lines

index 2bfe514..10de96c 100644

meta/recipes-graphics/xorg-util/util-macros_1.11.0.bb +0 -0
@@ -11,12 +11,13 @@ PE = "1"
 PR = "r0"
 
 # ${PN} is empty so we need to tweak -dev and -dbg package

dependencies

meta/recipes-graphics/xorg-util/util-macros_1.11.0.bb PE = "1" · line 23

Quoted 13 lines
meta/recipes-graphics/xorg-util/util-macros_1.11.0.bb +3 -2
-DEPENDS = "gettext libgpg-error"
-DEPENDS_virtclass-native = "gettext"
+DEPENDS = "libgpg-error"
 
 RDEPENDS_${PN}-dev = ""
 RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPV})"
 
+inherit gettext
+
 BBCLASSEXTEND = "native nativesdk"
 
 SRC_URI[md5sum] = "8580021f3a9e242ab09d23d62e475d53"

By making this change you've introduced the requirement for native and nativesdk variants of libgpg-error, we don't want nor need this for the -native* builds which is why we had a line explicitly setting the DEPENDS for native.

The right way to do this is to have a similar line for the nativesdk DEPENDS as per the attached patch (and my josh/bernard branch on poky-contrib).

Cheers,
Joshua

Signature · 3 lines
Joshua Lock
        Yocto Build System Monkey
        Intel Open Source Technology Centre

From 48f856c6bdb8c7ddaf23963238ab52fb8856cdd5 Mon Sep 17 00:00:00 2001
From: Joshua Lock <[email protected]>
Date: Tue, 8 Mar 2011 10:20:27 -0800
Subject: [PATCH] util-macros: fix DEPENDS for nativesdk

---
 .../xorg-util/util-macros_1.11.0.bb                |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
meta/recipes-graphics/xorg-util/util-macros_1.11.0.bb +1 -0
index 2bfe514..e2c558c 100644
@@ -13,6 +13,7 @@ PR = "r0"
 # ${PN} is empty so we need to tweak -dev and -dbg package dependencies
 DEPENDS = "gettext libgpg-error"
 DEPENDS_virtclass-native = "gettext"
+DEPENDS_virtclass-nativesdk = "gettext"
 
 RDEPENDS_${PN}-dev = ""
 RRECOMMENDS_${PN}-dbg = "${PN}-dev (= ${EXTENDPV})"
Signature · 1 line
1.7.4
author
#10 lore raw

PATCH 7/8 libgpg-error: extend to nativesdk to catch up with metadata changes

In reply to Saul Wold

From: Koen Kooi <[email protected]>

libgpg-error was introduced into the dependency tree for meta-toolchain-qte without the needed nativesdk extend

---
 .../libgpg-error/libgpg-error_1.9.bb               |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
meta/recipes-support/libgpg-error/libgpg-error_1.9.bb +3 -2
index 479a11f..5e474cd 100644
@@ -10,7 +10,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
 
 
 SECTION = "libs"
-DEPENDS = "gettext"
 PR = "r0"
 
 SRC_URI = "ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-${PV}.tar.bz2 \
@@ -23,4 +22,6 @@ SRC_URI[sha256sum] = "54d9326bfbd46c705963c507953f65a40576d04b374e131008dc5b732f
 FILES_${PN} = "${libdir}/lib*.so.*"
 FILES_${PN}-dev += "${bindir}/*"
 
-inherit autotools binconfig pkgconfig
+inherit gettext autotools binconfig pkgconfig
+
+BBCLASSEXTEND = "nativesdk"
Signature · 1 line
1.7.1.1
author
#11 lore raw

PATCH 8/8 gcc-runtime: fix LSB library checks for libstdc++.so.6

In reply to Saul Wold

From: Nitin A Kamble <[email protected]>

[YOCTO #795]

When we run library check of LSB on qemux86 and qemuppc, we got some failures about 'libstdc++.so.6'.

Test environment:
Platform: Qemu-x86, Qemu-ppc
lsb image: poky-image-lsb-qemux86-test.ext3(Feb 26th, auto-build server) Library check of LSB: 4.1.0-1

The error log:
Did not find _ZNKSt5ctypeIcE8do_widenEPKcS2_Pc (GLIBCXX_3.4) in libstdc++.so.6 Unmangled symbol name: std::ctype<char>::do_widen(char const*, char const*, char*) const
...

found that some weak symbols ('W') change into local ('t') during link time
and be stripped. According to compiling log, the option "-fvisibility-inlines-hidden" is used for gcc. And this option caused some weak symbols change into local.

see http://bugzilla.pokylinux.org/show_bug.cgi?id=795 for more information on the bug.

---
 meta/conf/bitbake.conf                             |    2 +-
 meta/conf/distro/include/poky-eglibc.inc           |    2 +-
 meta/conf/distro/include/poky-glibc.inc            |    2 +-
 meta/conf/distro/include/poky-uclibc.inc           |    2 +-
 .../recipes-devtools/gcc/gcc-configure-runtime.inc |    1 +
 meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb     |    2 +-
 6 files changed, 6 insertions(+), 5 deletions(-)
meta/conf/bitbake.conf +1 -1
index cf99a81..473306a 100644
@@ -463,7 +463,7 @@ export CFLAGS = "${TARGET_CFLAGS}"
 export TARGET_CFLAGS = "${TARGET_CPPFLAGS} ${SELECTED_OPTIMIZATION}"
 
 export BUILD_CXXFLAGS = "${BUILD_CFLAGS} -fpermissive"
-export CXXFLAGS = "${TARGET_CXXFLAGS}"
+export CXXFLAGS = "${TARGET_CXXFLAGS} ${CXXFLAGS_EXTRA}"
 export TARGET_CXXFLAGS = "${TARGET_CFLAGS} -fpermissive"
 
 export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \
meta/conf/distro/include/poky-eglibc.inc +1 -1
index 3d2c362..44a0146 100644
@@ -19,7 +19,7 @@ PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-initial-nativesdk ?= "eglibc-initia
 
 TARGET_OS = "${GLIBCTARGETOS}"
 
-CXXFLAGS += "-fvisibility-inlines-hidden"
+CXXFLAGS_EXTRA += "-fvisibility-inlines-hidden"
 
 LIBC_DEPENDENCIES = "libsegfault \
 		     eglibc \
meta/conf/distro/include/poky-glibc.inc +1 -1
index 4be7122..d3f28c0 100644
@@ -18,7 +18,7 @@ PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-initial-nativesdk ?= "glibc-initial
 
 TARGET_OS = "${GLIBCTARGETOS}"
 
-CXXFLAGS += "-fvisibility-inlines-hidden"
+CXXFLAGS_EXTRA += "-fvisibility-inlines-hidden"
 
 LIBC_DEPENDENCIES = "\
     libsegfault \
meta/conf/distro/include/poky-uclibc.inc +1 -1
index def9dfe..13c17f9 100644
@@ -15,7 +15,7 @@ USE_NLS_glib-2.0 = "yes"
 
 TARGET_OS = "${UCLIBCTARGETOS}"
 
-CXXFLAGS += "-fvisibility-inlines-hidden"
+CXXFLAGS_EXTRA += "-fvisibility-inlines-hidden"
 
 IMAGE_LINGUAS = ""
 
meta/recipes-devtools/gcc/gcc-configure-runtime.inc +1 -0
index 6cc11e2..d4dfbc2 100644
@@ -1,5 +1,6 @@
 require gcc-configure-common.inc
 
+CXXFLAGS_EXTA = ""
 EXTRA_OECONF_PATHS = " \
     --with-local-prefix=${STAGING_DIR_TARGET}${prefix} \
     --with-gxx-include-dir=${includedir}/c++/ \
meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb +1 -1
index 093f9bf..c1e680d 100644
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 
 require gcc-${PV}.inc
 require gcc-configure-runtime.inc
Signature · 1 line
1.7.1.1
#12 lore raw

Re: [poky] [PATCH 8/8] gcc-runtime: fix LSB library checks for libstdc++.so.6

Quoted 6 lines · Saul Wold

From: Nitin A Kamble <[email protected]>

[YOCTO #795]

When we run library check of LSB on qemux86 and qemuppc, we got some failures about 'libstdc++.so.6'.

Saul

I have provided comments to redo this patch.

Quoted 111 lines

Test environment:
Platform: Qemu-x86, Qemu-ppc
lsb image: poky-image-lsb-qemux86-test.ext3(Feb 26th, auto-build server) Library check of LSB: 4.1.0-1

The error log:
Did not find _ZNKSt5ctypeIcE8do_widenEPKcS2_Pc (GLIBCXX_3.4) in libstdc++.so.6 Unmangled symbol name: std::ctype<char>::do_widen(char const*, char const*, char*) const
...

 found that some weak symbols ('W') change into local ('t') during link time and be stripped. According to compiling log, the option "-fvisibility-inlines-hidden" is used for gcc. And this option caused some weak symbols change into local.

see http://bugzilla.pokylinux.org/show_bug.cgi?id=795 for more information on the bug.

---
 meta/conf/bitbake.conf                             |    2 +- meta/conf/distro/include/poky-eglibc.inc           |    2 +- meta/conf/distro/include/poky-glibc.inc            |    2 +- meta/conf/distro/include/poky-uclibc.inc           |    2 +- .../recipes-devtools/gcc/gcc-configure-runtime.inc |    1 + meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb     |    2 +-

 6 files changed, 6 insertions(+), 5 deletions(-)
meta/conf/bitbake.conf +0 -0
index cf99a81..473306a 100644
@@ -463,7 +463,7 @@ export CFLAGS = "${TARGET_CFLAGS}"

 export TARGET_CFLAGS = "${TARGET_CPPFLAGS} ${SELECTED_OPTIMIZATION}"

 export BUILD_CXXFLAGS = "${BUILD_CFLAGS} -fpermissive"

meta/conf/bitbake.conf +1 -1
-export CXXFLAGS = "${TARGET_CXXFLAGS}"
+export CXXFLAGS = "${TARGET_CXXFLAGS} ${CXXFLAGS_EXTRA}"

 export TARGET_CXXFLAGS = "${TARGET_CFLAGS} -fpermissive"

 export BUILD_LDFLAGS = "-L${STAGING_LIBDIR_NATIVE} \

meta/conf/distro/include/poky-eglibc.inc +0 -0
index 3d2c362..44a0146 100644
@@ -19,7 +19,7 @@ PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-initial-nativesdk ?= "eglibc-initia
 

 TARGET_OS = "${GLIBCTARGETOS}"

meta/conf/distro/include/poky-eglibc.inc +1 -1
-CXXFLAGS += "-fvisibility-inlines-hidden"
+CXXFLAGS_EXTRA += "-fvisibility-inlines-hidden"

 LIBC_DEPENDENCIES = "libsegfault \
                    eglibc \

meta/conf/distro/include/poky-glibc.inc +0 -0
index 4be7122..d3f28c0 100644
@@ -18,7 +18,7 @@ PREFERRED_PROVIDER_virtual/${SDK_PREFIX}libc-initial-nativesdk ?= "glibc-initial
 

 TARGET_OS = "${GLIBCTARGETOS}"

meta/conf/distro/include/poky-glibc.inc +1 -1
-CXXFLAGS += "-fvisibility-inlines-hidden"
+CXXFLAGS_EXTRA += "-fvisibility-inlines-hidden"

 LIBC_DEPENDENCIES = "\
    libsegfault \

meta/conf/distro/include/poky-uclibc.inc +0 -0
index def9dfe..13c17f9 100644
@@ -15,7 +15,7 @@ USE_NLS_glib-2.0 = "yes"
 

 TARGET_OS = "${UCLIBCTARGETOS}"

meta/conf/distro/include/poky-uclibc.inc +1 -1
-CXXFLAGS += "-fvisibility-inlines-hidden"
+CXXFLAGS_EXTRA += "-fvisibility-inlines-hidden"

 IMAGE_LINGUAS = ""

meta/recipes-devtools/gcc/gcc-configure-runtime.inc +0 -0
index 6cc11e2..d4dfbc2 100644
@@ -1,5 +1,6 @@

 require gcc-configure-common.inc

+CXXFLAGS_EXTA = ""
 EXTRA_OECONF_PATHS = " \
    --with-local-prefix=${STAGING_DIR_TARGET}${prefix} \
    --with-gxx-include-dir=${includedir}/c++/ \

meta/recipes-devtools/gcc/gcc-runtime_4.5.1.bb +1 -1
index 093f9bf..c1e680d 100644
@@ -1,4 +1,4 @@
-PR = "r2"
+PR = "r3"
 

 require gcc-${PV}.inc
 require gcc-configure-runtime.inc
--
1.7.1.1

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

#13 lore raw
In reply to Saul Wold
Quoted 11 lines · Saul Wold

From: Saul Wold <[email protected]>

This set address a number of bugs found during testing of the Bernard release, they may not all be accepeted, I send them here for reference also.

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: distro/oe-dist
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=distro/oe-dist

Quoted 7 lines

Thanks,
Saul Wold <[email protected]>
---

Dexuan Cui (1):
util-macros: fix DEPENDS in the case of native/nativesdk

I think Joshua Lock is going to come up with a better patch for this as this patch inadvertently adds in libgpg-error dependencies for native and nativesdk which we don't want.

Quoted 2 lines

Dongxiao Xu (1):
connman: add xuser to the dbus permission list

Merged.

Quoted 2 lines

Koen Kooi (1):
libgpg-error: extend to nativesdk to catch up with metadata changes

Not needed with Joshua's patch.

Quoted 2 lines

Liping Ke (1):
adt: Update to svn r596 to fix symbolic link issues

Merged.

Quoted 2 lines

Nitin A Kamble (1):
gcc-runtime: fix LSB library checks for libstdc++.so.6

Waiting for an updated version based on Khem's comments.

Quoted 4 lines

Saul Wold (3):
gst-plugins: Added hal to DEPENDS
attr: Added ncurses to depends
lsb-live image: add lsb-live and lsb-sdk-live image types

Merged. I'd like to drop the hal dependency if someone can send me a patch which disables it and everything works.

Cheers,

Richard

#14 lore raw
Quoted 7 lines · On Tuesday 08 March 2011 18:55:44 Richard Purdie wrote:
Quoted 4 lines

Saul Wold (3):
gst-plugins: Added hal to DEPENDS
attr: Added ncurses to depends
lsb-live image: add lsb-live and lsb-sdk-live image types

Merged. I'd like to drop the hal dependency if someone can send me a patch which disables it and everything works.

Patch attached to do this (against oe-core) .

Cheers,
Paul

From d6f52ebf89e8413f8e24bbc9ab58a0d0e5c45c09 Mon Sep 17 00:00:00 2001
From: Paul Eggleton <[email protected]>
Date: Wed, 9 Mar 2011 01:21:25 +0000
Subject: [PATCH] gst-plugins-good: remove dependency on hal

Disable hal usage at configure time to avoid dependency on hal (which is deprecated). Only affects "halelements" which is of no use without hal.

Fixes [YOCTO #810] and reverts changes from c6b0c5720fa.

---
 .../gstreamer/gst-plugins-good_0.10.26.bb          |    4 ++--
 meta/recipes-multimedia/gstreamer/gst-plugins.inc  |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
meta/recipes-multimedia/gstreamer/gst-plugins-good_0.10.26.bb +2 -2
index 78b24fe..ac47ecf 100644
@@ -7,11 +7,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
 
 DEPENDS += "gst-plugins-base gconf cairo jpeg libpng gtk+ zlib libid3tag flac \
 	    speex"
-PR = "r0"
+PR = "r1"
 
 inherit gettext
 
-EXTRA_OECONF += "--disable-aalib --disable-esd --disable-shout2 --disable-libcaca --without-check"
+EXTRA_OECONF += "--disable-aalib --disable-esd --disable-shout2 --disable-libcaca --disable-hal --without-check"
 
 do_configure_prepend() {
 	# This m4 file contains nastiness which conflicts with libtool 2.2.2
meta/recipes-multimedia/gstreamer/gst-plugins.inc +1 -1
index d1abd36..4edca95 100644
@@ -3,7 +3,7 @@ HOMEPAGE = "http://gstreamer.freedesktop.org/"
 BUGTRACKER = "https://bugzilla.gnome.org/enter_bug.cgi?product=Gstreamer"
 SECTION = "multimedia"
 PRIORITY = "optional"
-DEPENDS = "gstreamer hal"
+DEPENDS = "gstreamer"
 
 inherit autotools pkgconfig
 
Signature · 1 line
1.7.1
#15 lore raw
Quoted 11 lines · Paul Eggleton
Quoted 7 lines · On Tuesday 08 March 2011 18:55:44 Richard Purdie wrote:
Quoted 4 lines

Saul Wold (3):
gst-plugins: Added hal to DEPENDS
attr: Added ncurses to depends
lsb-live image: add lsb-live and lsb-sdk-live image types

Merged. I'd like to drop the hal dependency if someone can send me a patch which disables it and everything works.

Patch attached to do this (against oe-core) .

patch looks sane to me. We will need Koen to Ack it.

Quoted 9 lines

Cheers,
Paul

_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky

Acked-by
#16 lore raw
In reply to Paul Eggleton

Op 9 mrt 2011, om 02:29 heeft Paul Eggleton het volgende geschreven:

Quoted 10 lines · On Tuesday 08 March 2011 18:55:44 Richard Purdie wrote:
Quoted 7 lines
Quoted 4 lines

Saul Wold (3):
gst-plugins: Added hal to DEPENDS
attr: Added ncurses to depends
lsb-live image: add lsb-live and lsb-sdk-live image types

Merged. I'd like to drop the hal dependency if someone can send me a patch which disables it and everything works.

Patch attached to do this (against oe-core) .

Looks good to me:

Quoted 7 lines

Cheers,
Paul <0001-gst-plugins-good-remove-dependency-on-hal.patch>_______________________________________________ poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky