Fixes for native and nativesdk
cover Fixes for native and nativesdk
The following changes since commit 466fd78ac6a561ce7b47f2190f0aa3ea6aa3593e:
protobuf: upgrade 3.9.1 -> 3.9.2 (2019-09-24 10:35:46 -0700)
are available in the git repository at:
git://git.openembedded.org/meta-openembedded-contrib rbt/native
http://cgit.openembedded.org/meta-openembedded-contrib/log/?h=rbt/native
Robert Yang (8):
python-asn1crypto: extend to nativesdk
python-incremental: Drop broken nativesdk
fuse: Fix installed-vs-shipped for nativesdk
keyutils: Fix installed-vs-shipped for nativesdk
libnet-ssleay-perl: Drop broken native
libnet-dns-sec-perl: Drop broken native
iperf3: Drop broken native
spice: Drop broken native
meta-filesystems/recipes-support/fuse/fuse_2.9.9.bb | 8 +++++++- meta-networking/recipes-support/spice/spice_git.bb | 3 +-- meta-oe/recipes-benchmark/iperf3/iperf3_3.7.bb | 2 -- meta-oe/recipes-security/keyutils/keyutils_1.6.bb | 12 ++++++++++++ meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb | 2 -- meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.85.bb | 2 -- meta-python/recipes-devtools/python/python-asn1crypto.inc | 2 +- meta-python/recipes-devtools/python/python-incremental.inc | 2 +- 8 files changed, 22 insertions(+), 11 deletions(-)
Signature · 1 line
2.7.4
PATCH 1/8 python-asn1crypto: extend to nativesdk
Fixed:
$ bitbake nativesdk-python3-cryptography ERROR: Nothing PROVIDES 'nativesdk-python3-asn1crypto'
--- meta-python/recipes-devtools/python/python-asn1crypto.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python-asn1crypto.inc +1 -1
@@ -20,4 +20,4 @@ RDEPENDS_${PN}_class-target += " \ ${PYTHON_PN}-netclient \ " -BBCLASSEXTEND = "native" +BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.7.4
PATCH 2/8 python-incremental: Drop broken nativesdk
In reply to Robert YangThe nativesdk-python3-incremental doesn't work since lacks of dependencies, and hard to satisfy that, I tried to extend the following ones' nativesdk, but it still didn't work:
python-automat
python-constantly
python-hyperlink
python-twisted
python-zopeinterface
So just drop the broken nativesdk.
--- meta-python/recipes-devtools/python/python-incremental.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-python/recipes-devtools/python/python-incremental.inc +1 -1
@@ -17,4 +17,4 @@ RDEPENDS_${PN} += " \ # prevent a circular dependency. The build apparently does not use the part of # python-incremental which uses python-twisted, so this hack is OK. RDEPENDS_${PYTHON_PN}-incremental-native_remove = "${PYTHON_PN}-twisted-native" -BBCLASSEXTEND = "native nativesdk" +BBCLASSEXTEND = "native"
Signature · 1 line
2.7.4
PATCH 3/8 fuse: Fix installed-vs-shipped for nativesdk
In reply to Robert YangThere are two problems:
* The /dev is installed to '${D}/dev', not '${D}${base_prefix}'
* The /etc is installed ${D}, but should be ${D}${sysconfdir}
It works for target is because target's base_prefix is NULL, but it isn't work for native or nativesdk.
Fixed:
$ bitbake nativesdk-fuse ERROR: nativesdk-fuse-2.9.9-r0 do_package: QA Issue: nativesdk-fuse: Files/directories were installed but not shipped in any package: /dev /etc /etc/init.d /etc/udev /etc/init.d/fuse /etc/udev/rules.d /etc/udev/rules.d/99-fuse.rules
--- meta-filesystems/recipes-support/fuse/fuse_2.9.9.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
meta-filesystems/recipes-support/fuse/fuse_2.9.9.bb +7 -1
@@ -54,7 +54,7 @@ do_configure_prepend() { } do_install_append() { - rm -rf ${D}${base_prefix}/dev + rm -rf ${D}/dev # systemd class remove the sysv_initddir only if systemd_system_unitdir # contains anything, but it's not needed if sysvinit is not in DISTRO_FEATURES
@@ -69,4 +69,10 @@ do_install_append() { fi } +do_install_append_class-nativesdk() { + install -d ${D}${sysconfdir} + mv ${D}/etc/* ${D}${sysconfdir}/ + rmdir ${D}/etc +} + BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.7.4
PATCH 4/8 keyutils: Fix installed-vs-shipped for nativesdk
In reply to Robert YangFixed:
$ bitbake nativesdk-keyutils ERROR: nativesdk-keyutils-1.6-r0 do_package: QA Issue: nativesdk-keyutils: Files/directories were installed but not shipped in any package: /usr /etc /usr/share /usr/share/man /usr/share/keyutils [snip] /etc/request-key.conf /etc/request-key.d
--- meta-oe/recipes-security/keyutils/keyutils_1.6.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+)
meta-oe/recipes-security/keyutils/keyutils_1.6.bb +12 -0
@@ -40,6 +40,18 @@ do_install () { oe_runmake DESTDIR=${D} install } +do_install_append_class-nativesdk() { + install -d ${D}${datadir} + src_dir="${D}${target_datadir}" + mv $src_dir/* ${D}${datadir} + par_dir=`dirname $src_dir` + rmdir $src_dir $par_dir + + install -d ${D}${sysconfdir} + mv ${D}/etc/* ${D}${sysconfdir}/ + rmdir ${D}/etc +} + do_install_ptest () { cp -r ${S}/tests ${D}${PTEST_PATH}/ sed -i -e 's/OSDIST=Unknown/OSDIST=${DISTRO}/' ${D}${PTEST_PATH}/tests/prepare.inc.sh
Signature · 1 line
2.7.4
PATCH 5/8 libnet-ssleay-perl: Drop broken native
In reply to Robert Yang$ bitbake libnet-ssleay-perl-native ERROR: Nothing RPROVIDES 'libssl-native' (but virtual:native:/path/to/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.85.bb RDEPENDS on or otherwise requires it)
It's a broken native recipe which means no ones need it any more, so remove it.
--- meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.85.bb | 2 -- 1 file changed, 2 deletions(-)
meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.85.bb +0 -2
@@ -42,8 +42,6 @@ do_install_ptest() { cp -r ${B}/t ${D}${PTEST_PATH} } -BBCLASSEXTEND = "native" - FILES_${PN}-dbg =+ "${libdir}/perl/vendor_perl/*/auto/Net/SSLeay/.debug/" RDEPENDS_${PN}-ptest = " perl"
Signature · 1 line
2.7.4
PATCH 6/8 libnet-dns-sec-perl: Drop broken native
In reply to Robert Yang$ bitbake libnet-dns-sec-perl-native ERROR: Nothing RPROVIDES 'libcrypto-native' (but virtual:native:/path/to/meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb RDEPENDS on or otherwise requires it)
It's a broken native recipe which means no ones need it any more, so remove it.
--- meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb | 2 -- 1 file changed, 2 deletions(-)
meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb +0 -2
@@ -29,5 +29,3 @@ RDEPENDS_${PN} = " \ perl-module-mime-base64 \ perl-module-test-more \ " - -BBCLASSEXTEND = "native"
Signature · 1 line
2.7.4
PATCH 7/8 iperf3: Drop broken native
In reply to Robert Yang$ bitbake iperf3-native configure: error: --with-openssl was given, but test for OpenSSL failed
It's a broken native recipe which means no ones need it any more, so remove it.
--- meta-oe/recipes-benchmark/iperf3/iperf3_3.7.bb | 2 -- 1 file changed, 2 deletions(-)
meta-oe/recipes-benchmark/iperf3/iperf3_3.7.bb +0 -2
@@ -28,5 +28,3 @@ PACKAGECONFIG[lksctp] = "ac_cv_header_netinet_sctp_h=yes,ac_cv_header_netinet_sc CFLAGS += "-D_GNU_SOURCE" EXTRA_OECONF = "--with-openssl=${RECIPE_SYSROOT}${prefix}" - -BBCLASSEXTEND = "native"
Signature · 1 line
2.7.4
PATCH 8/8 spice: Drop broken native
In reply to Robert Yang$ bitbake spice-native checking whether the C compiler works... no configure: error: in `/path/to/spice-native/0.14.2+gitAUTOINC+7cbd70b931_4fc4c2db36-r0/build': configure: error: C compiler cannot create executables
It's a broken native recipe which means no ones need it any more, so remove it.
--- meta-networking/recipes-support/spice/spice_git.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
meta-networking/recipes-support/spice/spice_git.bb +1 -2
@@ -39,7 +39,6 @@ export PYTHONPATH="${PKG_CONFIG_SYSROOT_DIR}${libdir}/python2.7/site-packages" CFLAGS_append = " -Wno-error=address-of-packed-member" -PACKAGECONFIG_class-native = "" PACKAGECONFIG_class-nativesdk = "" PACKAGECONFIG ?= "sasl"
@@ -54,6 +53,6 @@ PACKAGECONFIG[xinerama] = "--enable-xinerama,--disable-xinerama,libxinerama," COMPATIBLE_HOST = '(x86_64|i.86).*-linux' -BBCLASSEXTEND = "native nativesdk" +BBCLASSEXTEND = "nativesdk" EXTRA_OECONF_append_toolchain-clang = " --disable-werror"
Signature · 1 line
2.7.4
Re: [PATCH 8/8] spice: Drop broken native
Can you check config.log to see what is broken on your native compiler?
It was building fine for me and it's dependency of qemu-native when spice PACKAGECONFIG is enabled, so I would say it's still useful.
Maybe your host has really old gcc or something?
Quoted 46 lines · Robert Yang
$ bitbake spice-native checking whether the C compiler works... no configure: error: in `/path/to/spice-native/0.14.2+gitAUTOINC+7cbd70b931_4fc4c2db36-r0/build': configure: error: C compiler cannot create executablesIt's a broken native recipe which means no ones need it any more, so remove it.
Signed-off-by Robert Yang <[email protected]>--- meta-networking/recipes-support/spice/spice_git.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)meta-networking/recipes-support/spice/spice_git.bb +0
-0@@ -39,7 +39,6 @@ exportPYTHONPATH="${PKG_CONFIG_SYSROOT_DIR}${libdir}/python2.7/site-packages"
CFLAGS_append= " -Wno-error=address-of-packed-member"meta-networking/recipes-support/spice/spice_git.bb +0
-1-PACKAGECONFIG_class-native = "" PACKAGECONFIG_class-nativesdk = "" PACKAGECONFIG ?= "sasl"@@ -54,6 +53,6 @@ PACKAGECONFIG[xinerama] ="--enable-xinerama,--disable-xinerama,libxinerama,"
COMPATIBLE_HOST= '(x86_64|i.86).*-linux'meta-networking/recipes-support/spice/spice_git.bb +1
-2-BBCLASSEXTEND = "native nativesdk" +BBCLASSEXTEND = "nativesdk" EXTRA_OECONF_append_toolchain-clang = " --disable-werror" --2.7.4
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Re: [PATCH 8/8] spice: Drop broken native
I assume it was failing for you with:
cc1: error: -Werror=address-of-packed-member: no option -Waddress-of-packed-member
I'll send revert of this change and new change to
append -Wno-error=address-of-packed-member only for target:
CFLAGS_append_class-target = " -Wno-error=address-of-packed-member"
Please test it and report back if it works for you.
Quoted 57 lines · Martin Jansa
Can you check config.log to see what is broken on your native compiler?
It was building fine for me and it's dependency of qemu-native when spice PACKAGECONFIG is enabled, so I would say it's still useful.
Maybe your host has really old gcc or something?
Quoted 46 lines · Robert Yang
$ bitbake spice-native checking whether the C compiler works... no configure: error: in `/path/to/spice-native/0.14.2+gitAUTOINC+7cbd70b931_4fc4c2db36-r0/build': configure: error: C compiler cannot create executablesIt's a broken native recipe which means no ones need it any more, so remove it.
Signed-off-by Robert Yang <[email protected]>--- meta-networking/recipes-support/spice/spice_git.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)meta-networking/recipes-support/spice/spice_git.bb +0
-0@@ -39,7 +39,6 @@ exportPYTHONPATH="${PKG_CONFIG_SYSROOT_DIR}${libdir}/python2.7/site-packages"
CFLAGS_append= " -Wno-error=address-of-packed-member"meta-networking/recipes-support/spice/spice_git.bb +0
-1-PACKAGECONFIG_class-native = "" PACKAGECONFIG_class-nativesdk = "" PACKAGECONFIG ?= "sasl"@@ -54,6 +53,6 @@ PACKAGECONFIG[xinerama] ="--enable-xinerama,--disable-xinerama,libxinerama,"
COMPATIBLE_HOST= '(x86_64|i.86).*-linux'meta-networking/recipes-support/spice/spice_git.bb +1
-2-BBCLASSEXTEND = "native nativesdk" +BBCLASSEXTEND = "nativesdk" EXTRA_OECONF_append_toolchain-clang = " --disable-werror" --2.7.4
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel