[OE-core] [PATCH] External modules fail to load due to unknown symbols
>From da12fa5e6daca0c0b7bb15df030b1c79fbefa089 Mon Sep 17 00:00:00 2001 From: Amy Fong Date: Mon, 1 Jun 2015 13:16:20 -0400 Subject: [PATCH] External modules fail to load due to unknown symbols When building external kernel modules, a failure can happen when the module has dependencies on other kernel modules. In such cases, the build looks at Module.symvers to do symbol lookups of the other kernel modules that it depends on. Module.symvers gets copied by do_shared_workdir after do_compile and Module.symvers gets updated during do_compile_kernelmodules. do_compile_kernelmodules is modified to explicitly copy Module.symvers to the shared workdir. Signed-off-by: Amy Fong Signed-off-by: Bruce Ashfield --- meta/classes/kernel.bbclass | 8 1 file changed, 8 insertions(+) diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 4f22cde..4a177b1 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -215,6 +215,14 @@ do_compile_kernelmodules() { unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then oe_runmake ${PARALLEL_MAKE} modules CC="${KERNEL_CC}" LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS} + + # Module.symvers gets updated during the + # building of the kernel modules. We need to + # update this in the shared workdir since some + # external kernel modules has a dependency on + # other kernel modules and will look at this + # file to do symbol lookups + cp Module.symvers ${STAGING_KERNEL_BUILDDIR} else bbnote "no modules to compile" fi -- 2.0.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] External modules fail to load due to unknown symbols
>From da12fa5e6daca0c0b7bb15df030b1c79fbefa089 Mon Sep 17 00:00:00 2001 From: Amy Fong Date: Mon, 1 Jun 2015 13:16:20 -0400 Subject: [PATCH] External modules fail to load due to unknown symbols When building external kernel modules, a failure can happen when the module has dependencies on other kernel modules. In such cases, the build looks at Module.symvers to do symbol lookups of the other kernel modules that it depends on. Module.symvers gets copied by do_shared_workdir after do_compile and Module.symvers gets updated during do_compile_kernelmodules. do_compile_kernelmodules is modified to explicitly copy Module.symvers to the shared workdir. Signed-off-by: Amy Fong Signed-off-by: Bruce Ashfield --- meta/classes/kernel.bbclass | 8 1 file changed, 8 insertions(+) diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 4f22cde..4a177b1 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -215,6 +215,14 @@ do_compile_kernelmodules() { unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then oe_runmake ${PARALLEL_MAKE} modules CC="${KERNEL_CC}" LD="${KERNEL_LD}" ${KERNEL_EXTRA_ARGS} + + # Module.symvers gets updated during the + # building of the kernel modules. We need to + # update this in the shared workdir since some + # external kernel modules has a dependency on + # other kernel modules and will look at this + # file to do symbol lookups + cp Module.symvers ${STAGING_KERNEL_BUILDDIR} else bbnote "no modules to compile" fi -- 2.0.1 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [meta-java] [PATCH] icedtea7-native fails on hosts without /usr/include/X11/extensions
>From 4789a5dc622cc8537df28596a4beb66db4ba4774 Mon Sep 17 00:00:00 2001 From: Amy Fong Date: Tue, 14 Apr 2015 13:10:22 -0400 Subject: [PATCH] icedtea7-native compile failure undefined reference to `main' On hosts without /usr/include/X11/extensions, icedtea7-native compile results in a build failure while trying to create an object file: +/data/home/.../git/csu/../sysdeps/x86_64/start.S:118: undefined reference to `main' [2015-03-31 15:22:53.115930161+00:00] | collect2: error: ld returned 1 exit status The compile line shows: (-c gets eaten) ... -I -c -o The makefile tries to do the following which results in a faulty build line if /usr/include/X11/extensions doesn't exist: CPPFLAGS += -I$(firstword $(wildcard $(OPENWIN_HOME)/include/X11/extensions) \ $(wildcard /usr/include/X11/extensions)) This looks like a missed line from the following patch which removes the need for X11/extensions: icedtea-ecj-disable-compilation.patch Signed-off-by: Amy Fong --- recipes-core/icedtea/icedtea7-native.inc | 2 ++ .../openjdk-7-03b147/headless_x11_cleanup.patch| 35 ++ 2 files changed, 37 insertions(+) create mode 100644 recipes-core/icedtea/openjdk-7-03b147/headless_x11_cleanup.patch diff --git a/recipes-core/icedtea/icedtea7-native.inc b/recipes-core/icedtea/icedtea7-native.inc index 81e9b66..f555d70 100644 --- a/recipes-core/icedtea/icedtea7-native.inc +++ b/recipes-core/icedtea/icedtea7-native.inc @@ -30,6 +30,7 @@ SRC_URI = " \ SRC_URI += "file://icedtea-unzip.patch" SRC_URI += "file://icedtea-unzip-phase2.patch;apply=no" +SRC_URI += "file://headless_x11_cleanup.patch;apply=no" S = "${WORKDIR}/${ICEDTEA}" B = "${S}/build" @@ -149,6 +150,7 @@ do_configure_append() { oe_runmake patch-boot cd ${S} && cat ${WORKDIR}/icedtea-unzip-phase2.patch | patch -p1 + cd ${S} && cat ${WORKDIR}/headless_x11_cleanup.patch | patch -p1 } EXTRA_OEMAKE = ' \ diff --git a/recipes-core/icedtea/openjdk-7-03b147/headless_x11_cleanup.patch b/recipes-core/icedtea/openjdk-7-03b147/headless_x11_cleanup.patch new file mode 100644 index 000..5b3e650 --- /dev/null +++ b/recipes-core/icedtea/openjdk-7-03b147/headless_x11_cleanup.patch @@ -0,0 +1,35 @@ +--- + build/openjdk-boot/jdk/make/sun/awt/mawt.gmk |6 -- + build/openjdk/jdk/make/sun/awt/mawt.gmk |6 -- + 2 files changed, 12 deletions(-) + +--- a/build/openjdk-boot/jdk/make/sun/awt/mawt.gmk b/build/openjdk-boot/jdk/make/sun/awt/mawt.gmk +@@ -258,12 +258,6 @@ + -I$(PLATFORM_SRC)/native/$(PKGDIR) \ + $(EVENT_MODEL) + +-ifeq ($(PLATFORM), linux) +- # Checking for the X11/extensions headers at the additional location +- CPPFLAGS += -I$(firstword $(wildcard $(OPENWIN_HOME)/include/X11/extensions) \ +-$(wildcard /usr/include/X11/extensions)) +-endif +- + ifeq ($(PLATFORM), solaris) + CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions + endif +--- a/build/openjdk/jdk/make/sun/awt/mawt.gmk b/build/openjdk/jdk/make/sun/awt/mawt.gmk +@@ -258,12 +258,6 @@ + -I$(PLATFORM_SRC)/native/$(PKGDIR) \ + $(EVENT_MODEL) + +-ifeq ($(PLATFORM), linux) +- # Checking for the X11/extensions headers at the additional location +- CPPFLAGS += -I$(firstword $(wildcard $(OPENWIN_HOME)/include/X11/extensions) \ +-$(wildcard /usr/include/X11/extensions)) +-endif +- + ifeq ($(PLATFORM), solaris) + CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions + endif -- 2.1.4 -- ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [PATCH] distutils: Replacing path to native path only to be done to non-native python packages
distutils: Replacing path to native path only to be done to non-native python packages distutils: Replacing path to native python by path to python in the image to support python packages with console-script setup resulted in a "bad interpreter" error message because coreutils-native is not a specified dependency of a number of native python packages. We modify the change to apply specifically to non-native packages. Signed-off-by: Amy Fong --- meta/classes/distutils.bbclass | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/meta/classes/distutils.bbclass b/meta/classes/distutils.bbclass index 60cf9ee..fbe0ec8 100644 --- a/meta/classes/distutils.bbclass +++ b/meta/classes/distutils.bbclass @@ -47,14 +47,18 @@ distutils_do_install() { if test -e ${D}${bindir} ; then for i in ${D}${bindir}/* ; do \ -sed -i -e s:${STAGING_BINDIR_NATIVE}/python-native/python:${bindir}/env\ python:g $i +if [ ${PN} != "${BPN}-native" ]; then + sed -i -e s:${STAGING_BINDIR_NATIVE}/python-native/python:${bindir}/env\ python:g $i + fi sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i done fi if test -e ${D}${sbindir}; then for i in ${D}${sbindir}/* ; do \ -sed -i -e s:${STAGING_BINDIR_NATIVE}/python-native/python:${bindir}/env\ python:g $i +if [ ${PN} != "${BPN}-native" ]; then + sed -i -e s:${STAGING_BINDIR_NATIVE}/python-native/python:${bindir}/env\ python:g $i + fi sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i done fi -- 1.7.12.4 ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
[OE-core] [oe] distutils: Replacing path to native path only to be done to non-native python packages
distutils: Replacing path to native path only to be done to non-native python packages distutils: Replacing path to native python by path to python in the image to support python packages with console-script setup resulted in a "bad interpreter" error message because coreutils-native is not a specified dependency of a number of native python packages. We modify the change to apply specifically to non-native packages. Signed-off-by: Amy Fong --- meta/classes/distutils.bbclass | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/meta/classes/distutils.bbclass b/meta/classes/distutils.bbclass index 60cf9ee..fbe0ec8 100644 --- a/meta/classes/distutils.bbclass +++ b/meta/classes/distutils.bbclass @@ -47,14 +47,18 @@ distutils_do_install() { if test -e ${D}${bindir} ; then for i in ${D}${bindir}/* ; do \ -sed -i -e s:${STAGING_BINDIR_NATIVE}/python-native/python:${bindir}/env\ python:g $i +if [ ${PN} != "${BPN}-native" ]; then + sed -i -e s:${STAGING_BINDIR_NATIVE}/python-native/python:${bindir}/env\ python:g $i + fi sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i done fi if test -e ${D}${sbindir}; then for i in ${D}${sbindir}/* ; do \ -sed -i -e s:${STAGING_BINDIR_NATIVE}/python-native/python:${bindir}/env\ python:g $i +if [ ${PN} != "${BPN}-native" ]; then + sed -i -e s:${STAGING_BINDIR_NATIVE}/python-native/python:${bindir}/env\ python:g $i + fi sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i done fi -- 1.7.12.4 ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH] autofs has openldap dependency issues
On Fri, Jan 18, 2013 at 05:37:34PM +0100, Martin Jansa wrote: > On Fri, Jan 18, 2013 at 11:14:08AM -0500, Amy Fong wrote: > > commit 09947d772a36e4d2c2dc48356281bd3ce0a04b0c > > Author: Amy Fong > > Date: Fri Jan 18 11:10:35 2013 -0500 > > > > autofs: fails to compile with openldap disabled > > > > As of 5.0.6, it appears that changes were introduced so that > > if you compile with openldap disabled and openldap headers are not > > available, then autofs fails to build. > > > > Since autofs no longer depends on openldap, remove the dependency > > > > Signed-off-by: Amy Fong > > I think this belongs to oe-devel ML and should be for > meta-openembedded/meta-networking not standalone meta-networking. > > Cheers, D'oh! Sorry. :) ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
[OE-core] [PATCH] autofs has openldap dependency issues
commit 09947d772a36e4d2c2dc48356281bd3ce0a04b0c Author: Amy Fong Date: Fri Jan 18 11:10:35 2013 -0500 autofs: fails to compile with openldap disabled As of 5.0.6, it appears that changes were introduced so that if you compile with openldap disabled and openldap headers are not available, then autofs fails to build. Since autofs no longer depends on openldap, remove the dependency Signed-off-by: Amy Fong diff --git a/recipes-daemons/autofs/autofs-5.0.7/fix_disable_ldap.patch b/recipes-daemons/autofs/autofs-5.0.7/fix_disable_ldap.patch new file mode 100644 index 000..b62f955 --- /dev/null +++ b/recipes-daemons/autofs/autofs-5.0.7/fix_disable_ldap.patch @@ -0,0 +1,40 @@ +autofs: fails to compile with openldap disabled + +As of 5.0.6, it appears that changes were introduced so that +if you compile with openldap disabled and openldap headers are not +available, then autofs fails to build. + +Signed-off-by: Amy Fong +-- + lookup_ldap.h |4 + 1 file changed, 4 insertions(+) + +--- + include/lookup_ldap.h |4 + 1 file changed, 4 insertions(+) + +--- a/include/lookup_ldap.h b/include/lookup_ldap.h +@@ -1,7 +1,9 @@ + #ifndef LOOKUP_LDAP_H + #define LOOKUP_LDAP_H + ++#ifdef WITH_LDAP + #include ++#endif + + #ifdef WITH_SASL + #include +@@ -109,10 +111,12 @@ + + #define LDAP_AUTH_USESIMPLE 0x0008 + ++#ifdef WITH_LDAP + /* lookup_ldap.c */ + LDAP *init_ldap_connection(unsigned logopt, const char *uri, struct lookup_context *ctxt); + int unbind_ldap_connection(unsigned logopt, LDAP *ldap, struct lookup_context *ctxt); + int authtype_requires_creds(const char *authtype); ++#endif + + #ifdef WITH_SASL + /* cyrus-sasl.c */ diff --git a/recipes-daemons/autofs/autofs_5.0.7.bb b/recipes-daemons/autofs/autofs_5.0.7.bb index c1b0b46..a6683ff 100644 --- a/recipes-daemons/autofs/autofs_5.0.7.bb +++ b/recipes-daemons/autofs/autofs_5.0.7.bb @@ -3,7 +3,9 @@ SECTION = "base" LICENSE = "GPL-2.0" LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" -DEPENDS += "openldap libtirpc flex-native bison-native" +PR = "r1" + +DEPENDS += "libtirpc flex-native bison-native" inherit autotools systemd @@ -30,6 +32,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/daemons/autofs/v5/autofs-${PV}.tar.bz2 \ file://cross.patch \ file://libtirpc.patch \ file://libtirpc-name-clash-backout.patch \ + file://fix_disable_ldap.patch \ " SRC_URI[md5sum] = "bc46838dece83c02d800ff144ed9f431" ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
[OE-core] [PATCH] rsync doesn't create hardlinks for certain files
commit 4205a4c5d959643cf6c186e0939e202fb6006b82 Author: Amy Fong Date: Thu Nov 29 09:21:49 2012 -0500 rsync cannot create hardlink for node file when use option --link-dest=DIR. By default, rsync's configure file disables certain capabilities when crosscompiling. Signed-off-by: Amy Fong --- rsync_3.0.9.bb |6 ++ 1 file changed, 6 insertions(+) diff --git a/meta/recipes-devtools/rsync/rsync_3.0.9.bb b/meta/recipes-devtools/rsync/rsync_3.0.9.bb index 8fb0140..74eacc9 100644 --- a/meta/recipes-devtools/rsync/rsync_3.0.9.bb +++ b/meta/recipes-devtools/rsync/rsync_3.0.9.bb @@ -14,6 +14,12 @@ EXTRA_OECONF += "--disable-xattr-support --disable-acl-support" do_configure_prepend () { rm -f configure configure.sh cp -f ${WORKDIR}/acinclude.m4 ${S}/ + + # by default, if crosscompiling, rsync + # disables a number of capabilities, hardlinking + # symlinks and special files (ie devices) + export rsync_cv_can_hardlink_special=yes + export rsync_cv_can_hardlink_symlink=yes } do_configure_append () { ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
[OE-core] [PATCH] socat: missing several dependencies
socat: missing several dependencies socat depends on ncurses, readline, and tcp-wrappers Signed-off-by: Amy Fong --- socat_1.7.2.0.bb |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-connectivity/socat/socat_1.7.2.0.bb b/meta/recipes-connectivity/socat/socat_1.7.2.0.bb index 1273dcf..0faf016 100644 --- a/meta/recipes-connectivity/socat/socat_1.7.2.0.bb +++ b/meta/recipes-connectivity/socat/socat_1.7.2.0.bb @@ -4,7 +4,7 @@ HOMEPAGE = "http://www.dest-unreach.org/socat/"; SECTION = "console/network" -DEPENDS = "openssl" +DEPENDS = "openssl readline ncurses tcp-wrappers" LICENSE = "GPL-2.0+-with-OpenSSL-exception" ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
[OE-core] [PATCH] openssh: package testing
openssh: package testing Package openssh's regression tests Signed-off-by: Amy Fong --- openssh-5.9p1/runtests.sh | 29 + openssh_5.9p1.bb |9 + 2 files changed, 38 insertions(+) diff --git a/meta/recipes-connectivity/openssh/openssh-5.9p1/runtests.sh b/meta/recipes-connectivity/openssh/openssh-5.9p1/runtests.sh new file mode 100755 index 000..bb99a05 --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh-5.9p1/runtests.sh @@ -0,0 +1,29 @@ +#!/bin/sh + +cd regress + +make \ + .OBJDIR=`pwd` \ + .CURDIR=`pwd` \ + BUILDDIR=`pwd` \ + OBJ=`pwd` \ + PATH=$PATH:. \ + TEST_SHELL=sh \ + TEST_SSH_SSH=`which ssh` \ + TEST_SSH_SSHD=`which sshd` \ + TEST_SSH_SSHAGENT=`which ssh-agent` \ + TEST_SSH_SSHADD=`which ssh-add` \ + TEST_SSH_SSHKEYGEN=`which ssh-keygen` \ + TEST_SSH_SSHPKCS11HELPER="/usr/libexec/ssh-pkcs11-helper" \ + TEST_SSH_SSHKEYSCAN=`which ssh-keyscan` \ + TEST_SSH_SFTP=`which sftp` \ + TEST_SSH_SFTPSERVER="/usr/libexec/sftp-server" \ + TEST_SSH_PLINK="plink" \ + TEST_SSH_PUTTYGEN="puttygen" \ + TEST_SSH_CONCH="conch" \ + TEST_SSH_IPV6="yes" \ + TEST_SSH_ECC="yes" \ + TEST_SSH_SHA256="yes" \ + EXEEXT="" \ + tests + diff --git a/meta/recipes-connectivity/openssh/openssh_5.9p1.bb b/meta/recipes-connectivity/openssh/openssh_5.9p1.bb index 749f89e..f0880c0 100644 --- a/meta/recipes-connectivity/openssh/openssh_5.9p1.bb +++ b/meta/recipes-connectivity/openssh/openssh_5.9p1.bb @@ -23,6 +23,7 @@ SRC_URI = "ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-${PV}.tar. file://sshd_config \ file://ssh_config \ file://init \ + file://runtests.sh \ ${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)}" PAM_SRC_URI = "file://sshd" @@ -81,6 +82,9 @@ do_install_append () { mv ${D}${bindir}/ssh ${D}${bindir}/ssh.${PN} rm -f ${D}${bindir}/slogin ${D}${datadir}/Ssh.bin rmdir ${D}/var/run/sshd ${D}/var/run ${D}/var + if [ ! -d ${D}/opt/${PN}-tests/ ]; then mkdir -p ${D}/opt/${PN}-tests/; fi + install -m 755 ${WORKDIR}/runtests.sh ${D}/opt/${PN}-tests/ + cp -ra ${S}/regress ${D}/opt/${PN}-tests/ } ALLOW_EMPTY_${PN} = "1" @@ -95,6 +99,11 @@ FILES_${PN}-sftp-server = "${libexecdir}/sftp-server" FILES_${PN}-misc = "${bindir}/ssh* ${libexecdir}/ssh*" FILES_${PN}-keygen = "${bindir}/ssh-keygen" +PACKAGES += "${PN}-testing" +DEPENDS_${PN}-testing += "${PN}-keygen ${PN}-scp ${PN}-ssh ${PN}-sshd ${PN}-sftp ${PN}-misc ${PN}-sftp-server" +FILES_${PN}-testing += "/opt/${PN}-tests/*" +FILES_${PN}-dbg += "/opt/${PN}-tests/.debug/*" + RDEPENDS_${PN} += "${PN}-scp ${PN}-ssh ${PN}-sshd ${PN}-keygen" DEPENDS_${PN}-sshd += "update-rc.d" RDEPENDS_${PN}-sshd += "update-rc.d ${PN}-keygen" ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
[OE-core] [PATCH] openssh: openssh's init fails to restart if sshd is not running
openssh: openssh's init fails to restart if sshd is not running Because of "set -e", it's necessary to specify the -o (or --oknodo) so that start-stop-daemon returns an exit status of 0 if no actions are taken. Signed-off-by: Amy Fong --- init |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/recipes-connectivity/openssh/openssh-5.9p1/init b/meta/recipes-connectivity/openssh/openssh-5.9p1/init index 055dd22..6beec84 100644 --- a/meta/recipes-connectivity/openssh/openssh-5.9p1/init +++ b/meta/recipes-connectivity/openssh/openssh-5.9p1/init @@ -76,7 +76,7 @@ case "$1" in check_keys check_config echo -n "Restarting OpenBSD Secure Shell server: sshd" - start-stop-daemon -K -x /usr/sbin/sshd + start-stop-daemon -K --oknodo -x /usr/sbin/sshd check_for_no_start check_privsep_dir sleep 2 ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
[OE-core] [PATCH] nasm: nasm has a build dependency on groff-native
nasm has a build dependency on groff-native In one incident, there was a case where nasm-native compile phase failed with the following: +troff: can't find `DESC' file +troff: fatal error: sorry, I can't continue During this, groff-native was in the sysroot install phase. To remedy this, adding groff-native in nasm's dependency list. Signed-off-by: Amy Fong --- nasm_2.07.bb |2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-devtools/nasm/nasm_2.07.bb b/meta/recipes-devtools/nasm/nasm_2.07.bb index fc2d531..d3e3f5b 100644 --- a/meta/recipes-devtools/nasm/nasm_2.07.bb +++ b/meta/recipes-devtools/nasm/nasm_2.07.bb @@ -27,3 +27,5 @@ do_install() { } BBCLASSEXTEND = "native" + +DEPENDS = "groff-native" ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH] busybox: busybox wget -P option ignored
busybox wget testing fails In cases where busybox wget is invoked with -P <...> and the url ends in "/", the download directory is ignored (ie the file index.html is implied), this change enables the -P option for those urls. Signed-off-by: Amy Fong --- busybox-1.19.4/wget_dl_dir_fix.patch | 30 ++ busybox_1.19.4.bb|3 ++- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/busybox/busybox-1.19.4/wget_dl_dir_fix.patch b/meta/recipes-core/busybox/busybox-1.19.4/wget_dl_dir_fix.patch new file mode 100644 index 000..3003965 --- /dev/null +++ b/meta/recipes-core/busybox/busybox-1.19.4/wget_dl_dir_fix.patch @@ -0,0 +1,30 @@ +In cases where busybox wget is invoked with -P <...> and the url ends +in "/", the download directory is ignored (ie the file index.html is +implied), this change enables the -P option for those urls. + +Signed-off-by: Amy Fong +Upstream-Status: Submitted +--- + networking/wget.c | 10 +++--- + 1 file changed, 7 insertions(+), 3 deletions(-) + +--- a/networking/wget.c b/networking/wget.c +@@ -589,10 +589,14 @@ + if (!(option_mask32 & WGET_OPT_OUTNAME)) { + G.fname_out = bb_get_last_path_component_nostrip(target.path); + /* handle "wget http://kernel.org//"; */ +- if (G.fname_out[0] == '/' || !G.fname_out[0]) +- G.fname_out = (char*)"index.html"; ++ if (G.fname_out[0] == '/' || !G.fname_out[0]) { ++ /* bug: if we provide a default name, we should still look at -P option */ ++ if (G.dir_prefix) ++ G.fname_out = fname_out_alloc = concat_path_file(G.dir_prefix, "index.html"); ++ else ++ G.fname_out = (char*)"index.html"; + /* -P DIR is considered only if there was no -O FILE */ +- else { ++ } else { + if (G.dir_prefix) + G.fname_out = fname_out_alloc = concat_path_file(G.dir_prefix, G.fname_out); + else { diff --git a/meta/recipes-core/busybox/busybox_1.19.4.bb b/meta/recipes-core/busybox/busybox_1.19.4.bb index 5b3f356..8a06497 100644 --- a/meta/recipes-core/busybox/busybox_1.19.4.bb +++ b/meta/recipes-core/busybox/busybox_1.19.4.bb @@ -1,5 +1,5 @@ require busybox.inc -PR = "r7" +PR = "r8" SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://B921600.patch \ @@ -8,6 +8,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://run-parts.in.usr-bin.patch \ file://watch.in.usr-bin.patch \ file://busybox-udhcpc-no_deconfig.patch \ + file://wget_dl_dir_fix.patch \ file://find-touchscreen.sh \ file://busybox-cron \ file://busybox-httpd \ ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
[OE-core] [PATCH] busybox: busybox wget -P option ignored
busybox wget -P option ignored In cases where busybox wget is invoked with -P <...> and the url ends in "/", the download directory is ignored (ie the file index.html is implied), this change enables the -P option for those urls. Signed-off-by: Amy Fong --- busybox-1.19.4/wget_dl_dir_fix.patch | 24 busybox_1.19.4.bb|3 ++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/meta/recipes-core/busybox/busybox-1.19.4/wget_dl_dir_fix.patch b/meta/recipes-core/busybox/busybox-1.19.4/wget_dl_dir_fix.patch new file mode 100644 index 000..5f46fed --- /dev/null +++ b/meta/recipes-core/busybox/busybox-1.19.4/wget_dl_dir_fix.patch @@ -0,0 +1,24 @@ +--- + networking/wget.c | 10 +++--- + 1 file changed, 7 insertions(+), 3 deletions(-) + +--- a/networking/wget.c b/networking/wget.c +@@ -589,10 +589,14 @@ + if (!(option_mask32 & WGET_OPT_OUTNAME)) { + G.fname_out = bb_get_last_path_component_nostrip(target.path); + /* handle "wget http://kernel.org//"; */ +- if (G.fname_out[0] == '/' || !G.fname_out[0]) +- G.fname_out = (char*)"index.html"; ++ if (G.fname_out[0] == '/' || !G.fname_out[0]) { ++ /* bug: if we provide a default name, we should still look at -P option */ ++ if (G.dir_prefix) ++ G.fname_out = fname_out_alloc = concat_path_file(G.dir_prefix, "index.html"); ++ else ++ G.fname_out = (char*)"index.html"; + /* -P DIR is considered only if there was no -O FILE */ +- else { ++ } else { + if (G.dir_prefix) + G.fname_out = fname_out_alloc = concat_path_file(G.dir_prefix, G.fname_out); + else { diff --git a/meta/recipes-core/busybox/busybox_1.19.4.bb b/meta/recipes-core/busybox/busybox_1.19.4.bb index 5b3f356..8a06497 100644 --- a/meta/recipes-core/busybox/busybox_1.19.4.bb +++ b/meta/recipes-core/busybox/busybox_1.19.4.bb @@ -1,5 +1,5 @@ require busybox.inc -PR = "r7" +PR = "r8" SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://B921600.patch \ @@ -8,6 +8,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \ file://run-parts.in.usr-bin.patch \ file://watch.in.usr-bin.patch \ file://busybox-udhcpc-no_deconfig.patch \ + file://wget_dl_dir_fix.patch \ file://find-touchscreen.sh \ file://busybox-cron \ file://busybox-httpd \ ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Re: [OE-core] [PATCH] package install failure on systems without /sbin/ldconfig
On Mon, Jul 09, 2012 at 09:23:46PM -0700, Saul Wold wrote: > On 07/09/2012 11:50 AM, Amy Fong wrote: > >Package install failures due to issues in post install rules. > > > >package_do_shlibs only looks for libraries in a directory "lib", this should > >be > >modified to the variable baselib. > > > >ldconfig_postinst_fragment failure observed on systems without /sbin/ldconfig > > [ -x /sbin/ldconfig ] && /sbin/ldconfig > >results in the post install rule returning a failure. Modify to > > if [ -x /sbin/ldconfig ]; then /sbin/ldconfig; fi > > > If this is addressing bug #2723, then please mark it as follows: > > [YOCTO #2723] in the commit message. > > Also the commit subject should include the file name for example: > package.bbclass: fix for package install failure on systems without > /sbin/ldconfig > > Thanks > Sau! > Thanks Saul, updated as follows [YOCTO #2723] package.bbclass: fix for package install failure on systems without /sbin/ldconfig package_do_shlibs only looks for libraries in a directory "lib", this should be modified to the variable baselib. ldconfig_postinst_fragment failure observed on systems without /sbin/ldconfig [ -x /sbin/ldconfig ] && /sbin/ldconfig results in the post install rule returning a failure. Modify to if [ -x /sbin/ldconfig ]; then /sbin/ldconfig; fi Signed-off-by: Amy Fong --- package.bbclass |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 56ab25c..28a263c 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -1151,7 +1151,7 @@ emit_pkgdata[dirs] = "${PKGDESTWORK}/runtime" ldconfig_postinst_fragment() { if [ x"$D" = "x" ]; then - [ -x /sbin/ldconfig ] && /sbin/ldconfig + if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi fi } @@ -1261,7 +1261,7 @@ python package_do_shlibs() { return lib_re = re.compile("^.*\.so") - libdir_re = re.compile(".*/lib$") + libdir_re = re.compile(".*/%s$" % d.getVar('baselib', True)) packages = d.getVar('PACKAGES', True) targetos = d.getVar('TARGET_OS', True) ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
[OE-core] [PATCH] package install failure on systems without /sbin/ldconfig
Package install failures due to issues in post install rules. package_do_shlibs only looks for libraries in a directory "lib", this should be modified to the variable baselib. ldconfig_postinst_fragment failure observed on systems without /sbin/ldconfig [ -x /sbin/ldconfig ] && /sbin/ldconfig results in the post install rule returning a failure. Modify to if [ -x /sbin/ldconfig ]; then /sbin/ldconfig; fi Signed-off-by: Amy Fong --- package.bbclass |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 56ab25c..28a263c 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -1151,7 +1151,7 @@ emit_pkgdata[dirs] = "${PKGDESTWORK}/runtime" ldconfig_postinst_fragment() { if [ x"$D" = "x" ]; then - [ -x /sbin/ldconfig ] && /sbin/ldconfig + if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi fi } @@ -1261,7 +1261,7 @@ python package_do_shlibs() { return lib_re = re.compile("^.*\.so") - libdir_re = re.compile(".*/lib$") + libdir_re = re.compile(".*/%s$" % d.getVar('baselib', True)) packages = d.getVar('PACKAGES', True) targetos = d.getVar('TARGET_OS', True) ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
[OE-core] [PATCH] package install failure on systems without /sbin/ldconfig
Package install failures due to issues in post install rules. package_do_shlibs only looks for libraries in a directory "lib", this should be modified to the variable baselib. ldconfig_postinst_fragment failure observed on systems without /sbin/ldconfig [ -x /sbin/ldconfig ] && /sbin/ldconfig results in the post install rule returning a failure. Modify to if [ -x /sbin/ldconfig ]; then /sbin/ldconfig; fi Signed-off-by: Amy Fong --- package.bbclass |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 56ab25c..28a263c 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -1151,7 +1151,7 @@ emit_pkgdata[dirs] = "${PKGDESTWORK}/runtime" ldconfig_postinst_fragment() { if [ x"$D" = "x" ]; then - [ -x /sbin/ldconfig ] && /sbin/ldconfig + if [ -x /sbin/ldconfig ]; then /sbin/ldconfig ; fi fi } @@ -1261,7 +1261,7 @@ python package_do_shlibs() { return lib_re = re.compile("^.*\.so") - libdir_re = re.compile(".*/lib$") + libdir_re = re.compile(".*/%s$" % d.getVar('baselib', True)) packages = d.getVar('PACKAGES', True) targetos = d.getVar('TARGET_OS', True) ___ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core