From cf36873df36aaef19f37b16a1786d8c060b26932 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Tue, 29 May 2007 09:06:02 +0000 Subject: classes/qpf.bbclass: removed set -e from postinst/prerm scripts so that it doesn't fail on sourcing in /etc/profile. Closes #2388 --- classes/qpf.bbclass | 4 ---- 1 file changed, 4 deletions(-) (limited to 'classes') diff --git a/classes/qpf.bbclass b/classes/qpf.bbclass index d6e58871d5..67761bd4be 100644 --- a/classes/qpf.bbclass +++ b/classes/qpf.bbclass @@ -9,15 +9,11 @@ do_compile() { } pkg_postinst_fonts() { -#!/bin/sh -set -e . /etc/profile ${sbindir}/update-qtfontdir } pkg_postrm_fonts() { -#!/bin/sh -set -e . /etc/profile ${sbindir}/update-qtfontdir -f } -- cgit v1.2.3 From 4718993d8fb5bd0ee58d7de3c47cefd6b055cdf1 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Tue, 29 May 2007 19:19:06 +0000 Subject: classes/insane.bbclass: quote filenames to avoid problems with funny characters. Closes bug #2227 --- classes/insane.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes') diff --git a/classes/insane.bbclass b/classes/insane.bbclass index 9f243c8c9a..bea11305a7 100644 --- a/classes/insane.bbclass +++ b/classes/insane.bbclass @@ -219,7 +219,7 @@ def package_qa_check_rpath(file,name,d): bb.fatal("This class assumed that WORKDIR is ${TMPDIR}/work... Not doing any check") #bb.note("%s -B -F%%r#F %s" % (scanelf,file)) - output = os.popen("%s -B -F%%r#F %s" % (scanelf,file)) + output = os.popen("%s -B -F%%r#F '%s'" % (scanelf,file)) txt = output.readline().split() #bb.note("???%s???" % bad_dir_test) for line in txt: -- cgit v1.2.3 From 39611c22b7715ebba0f61c7a32a237373243d699 Mon Sep 17 00:00:00 2001 From: Jamie Lenehan Date: Wed, 30 May 2007 06:55:33 +0000 Subject: perl 5.8.8: Patch MakeMaker in perl-native to check for PERL_INC in the environment and use that instead of the configured location of PERL_INC. Without this PERL_INC for non-native recipes ends up pointing at where the headers will be located on the target. In theory we could override this in cpan class when calling build.PL but for some packages, such as libxml-parser-perl, that only fixes the top-level makefile and is not propagated to the sub-makefiles. This change results in MakeMaker always picking up the correct staged location of the include files without effecting where they expect to be found on the target. --- classes/cpan.bbclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'classes') diff --git a/classes/cpan.bbclass b/classes/cpan.bbclass index 3b1a2b72ca..4fff5974c1 100644 --- a/classes/cpan.bbclass +++ b/classes/cpan.bbclass @@ -8,6 +8,9 @@ EXTRA_CPANFLAGS ?= "" # Env var which tells perl if it should use host (no) or target (yes) settings export PERLCONFIGTARGET = "${@is_target(d)}" +# Env var which tells perl where the perl include files are +export PERL_INC = "${STAGING_DIR}/${BUILD_SYS}/lib/perl/${@get_perl_version(d)}/CORE" + cpan_do_configure () { yes '' | perl Makefile.PL ${EXTRA_CPANFLAGS} if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then -- cgit v1.2.3 From 4845fa55fc30c9660261fe49f645829824a40753 Mon Sep 17 00:00:00 2001 From: Jamie Lenehan Date: Wed, 30 May 2007 12:48:58 +0000 Subject: perl 5.8.8: Fixes for uclibc and libxml-parser-perl. * Stage the headers from perl * Modify cpan.bbclass to use the appropriate headers. * Remove prototypes as well as disabling functions that uclibc doesn't support. * Bump PR on libxml-parser-perl to force it to be rebuilt. Previously it was always using the headers from native-perl, since the headers were the same for native and target... but that's only true in the case of glibc, for uclibc the headers are different. --- classes/cpan.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes') diff --git a/classes/cpan.bbclass b/classes/cpan.bbclass index 4fff5974c1..3250528c7a 100644 --- a/classes/cpan.bbclass +++ b/classes/cpan.bbclass @@ -9,7 +9,7 @@ EXTRA_CPANFLAGS ?= "" export PERLCONFIGTARGET = "${@is_target(d)}" # Env var which tells perl where the perl include files are -export PERL_INC = "${STAGING_DIR}/${BUILD_SYS}/lib/perl/${@get_perl_version(d)}/CORE" +export PERL_INC = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}/CORE" cpan_do_configure () { yes '' | perl Makefile.PL ${EXTRA_CPANFLAGS} -- cgit v1.2.3 From 80ca3b81c1abf44a356604814ba859c7f833248f Mon Sep 17 00:00:00 2001 From: Jamie Lenehan Date: Wed, 30 May 2007 22:10:32 +0000 Subject: cpan-base.bbclass: Update the perl depenedencies: * For native modules DEPEND on perl-native and for others DEPEND on perl (which in turn depends on perl-native) rather then always depending on both perl and perl-native. * Only RDEPEND for non-native modules rather then both native and non-native. These changes are to allow you to build native modules without have to build perl. Previously the dependencies would result in perl being built even though it didn't actually need to. Thanks to hrw for pointing out what was happening here. --- classes/cpan-base.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'classes') diff --git a/classes/cpan-base.bbclass b/classes/cpan-base.bbclass index a5fdb33895..cc0d11e515 100644 --- a/classes/cpan-base.bbclass +++ b/classes/cpan-base.bbclass @@ -4,8 +4,8 @@ # FILES_${PN} += "${libdir}/perl5 ${datadir}/perl5" -DEPENDS += "perl perl-native" -RDEPENDS += "perl" +DEPENDS += "${@["perl", "perl-native"][(bb.data.inherits_class('native', d))]}" +RDEPENDS += "${@["perl", ""][(bb.data.inherits_class('native', d))]}" # Determine the staged version of perl from the perl configuration file def get_perl_version(d): -- cgit v1.2.3 From bcc112c6a2a46860a90c96234d0756977cfeebc6 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Thu, 31 May 2007 19:29:54 +0000 Subject: siteinfo.bbclass: add rudimentary avr32 support --- classes/siteinfo.bbclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'classes') diff --git a/classes/siteinfo.bbclass b/classes/siteinfo.bbclass index 6868750d2d..43a9b55b28 100644 --- a/classes/siteinfo.bbclass +++ b/classes/siteinfo.bbclass @@ -29,6 +29,8 @@ def get_siteinfo_list(d): "arm-linux-gnueabi": "endian-little bit-32 common-glibc arm-common arm-linux",\ "arm-linux-uclibc": "endian-little bit-32 common-uclibc arm-common",\ "arm-linux-uclibcgnueabi": "endian-little bit-32 common-uclibc arm-common arm-linux-uclibc",\ + "avr32-linux": "endian-big bit-32 common-glibc",\ + "avr32-linux-uclibc": "endian-big bit-32 common-uclibc",\ "i386-linux": "endian-little bit-32 common-glibc ix86-common",\ "i486-linux": "endian-little bit-32 common-glibc ix86-common",\ "i586-linux": "endian-little bit-32 common-glibc ix86-common",\ -- cgit v1.2.3 From 23b1fb4403958090bd98650eb5d779215ae7c46f Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Fri, 1 Jun 2007 15:29:05 +0000 Subject: insane.bbclass: add avr32 support --- classes/insane.bbclass | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'classes') diff --git a/classes/insane.bbclass b/classes/insane.bbclass index bea11305a7..963ace4221 100644 --- a/classes/insane.bbclass +++ b/classes/insane.bbclass @@ -54,10 +54,11 @@ def package_qa_get_machine_dict(): "sparc": ( 2, 0, 0, False, True), }, "linux-uclibc" : { - "arm" : (40, 97, 0, True, True), - "armeb": (40, 97, 0, False, True), - "powerpc": (20, 0, 0, False, True), - "mipsel": ( 8, 0, 0, True, True), + "arm" : ( 40, 97, 0, True, True), + "armeb": ( 40, 97, 0, False, True), + "powerpc": ( 20, 0, 0, False, True), + "mipsel": ( 8, 0, 0, True, True), + "avr32": (6317, 0, 0, False, True), }, "linux-gnueabi" : { "arm" : (40, 0, 0, True, True), -- cgit v1.2.3