ghostscript & libxml-simple-perl: fix compile failures
cover ghostscript & libxml-simple-perl: fix compile failures
From: Kang Kai <[email protected]>
Hi Saul,
These 2 patches are fix for ghostscript and libxml-simple-perl. Update SRC_URI for ghostscript to avoid native package affected by build os. Fix libxml-simple-perl [Yocto 1132].
Regards,
The following changes since commit 7f34cd1eb2a459709006ae985a14decd4d2152e6:
tzcode: Update to 2011g (2011-06-06 15:58:42 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib.git kangkai/bugfix
http://git.pokylinux.org/cgit.cgi//log/?h=kangkai/bugfix
Kang Kai (2):
ghostscript: update SRC_URI
libxml-simple-perl: update EXTRA_PERLFLAGS
.../perl/libxml-simple-perl_2.18.bb | 4 ++-- .../ghostscript/ghostscript_9.02.bb | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-)
Signature · 1 line
1.7.5.1.300.gc565c
PATCH 1/2 ghostscript: update SRC_URI
From: Kang Kai <[email protected]>
Build ghostscript-native fails on a i686 machine because it can't get the source objarch.h and soobjarch.h, and .h files are not needed for native package, so update the SRC_URI to fix it.
--- .../ghostscript/ghostscript_9.02.bb | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
meta/recipes-extended/ghostscript/ghostscript_9.02.bb +5 -2
@@ -15,17 +15,20 @@ SECTION = "console/utils" LICENSE = "GPLv3" LIC_FILES_CHKSUM = "file://LICENSE;md5=d151214b3131251dfc9d858593acbd24" -PR = "r1" +PR = "r2" DEPENDS = "${PN}-native tiff jpeg fontconfig cups" DEPENDS_virtclass-native = "" -SRC_URI = "http://downloads.ghostscript.com/public/ghostscript-${PV}.tar.bz2 \ +SRC_URI_BASE = "http://downloads.ghostscript.com/public/ghostscript-${PV}.tar.bz2" + +SRC_URI = "${SRC_URI_BASE} \ file://ghostscript-9.02-prevent_recompiling.patch \ file://ghostscript-9.02-genarch.patch \ file://objarch.h \ file://soobjarch.h \ " +SRC_URI_virtclass-native = "${SRC_URI_BASE}" SRC_URI[md5sum] = "f67151444bd56a7904579fc75a083dd6" SRC_URI[sha256sum] = "03ea2cad13a36f8f9160912012b79619a826e7148fada6d3531feb25409ee05a"
Signature · 1 line
1.7.5.1.300.gc565c
PATCH 2/2 libxml-simple-perl: update EXTRA_PERLFLAGS
In reply to Kang KaiFrom: Kang Kai <[email protected]>
[Yocto 1132]
libxml-simple-perl should not refer to native perl libs modules, update EXTRA_PERLFLAGS to fix the failure.
--- .../perl/libxml-simple-perl_2.18.bb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb +2 -2
@@ -2,7 +2,7 @@ SECTION = "libs" LICENSE = "Artistic" LIC_FILES_CHKSUM = "file://README;beginline=70;md5=94aa5d46682b411a53a5494cfb22640e" DEPENDS += "libxml-parser-perl" -PR = "r1" +PR = "r2" SRC_URI = "http://www.cpan.org/modules/by-module/XML/XML-Simple-${PV}.tar.gz"
@@ -11,6 +11,6 @@ SRC_URI[sha256sum] = "a54967c188cda3e20f496c83be4de3f1740eeaa83c0380712ecd969ad8 S = "${WORKDIR}/XML-Simple-${PV}" -EXTRA_PERLFLAGS = "-I ${STAGING_LIBDIR_NATIVE}/perl/${@get_perl_version(d)}" +EXTRA_PERLFLAGS = "-I ${STAGING_LIBDIR}/perl/${@get_perl_version(d)}" inherit cpan
Signature · 1 line
1.7.5.1.300.gc565c
Re: [PATCH 2/2] libxml-simple-perl: update EXTRA_PERLFLAGS
Quoted 26 lines · Kang Kai
From: Kang Kai<[email protected]>
[Yocto 1132]
libxml-simple-perl should not refer to native perl libs modules, update
EXTRA_PERLFLAGSto fix the failure.Signed-off-by Kang Kai<[email protected]>--- .../perl/libxml-simple-perl_2.18.bb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb +1
-1@@ -2,7 +2,7 @@ SECTION = "libs" LICENSE = "Artistic" LIC_FILES_CHKSUM = "file://README;beginline=70;md5=94aa5d46682b411a53a5494cfb22640e" DEPENDS += "libxml-parser-perl" -PR = "r1" +PR = "r2" SRC_URI = "http://www.cpan.org/modules/by-module/XML/XML-Simple-${PV}.tar.gz"
meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb SRC_URI[sha256sum] = "a54967c188cda3e20f496c83be4de3f1740eeaa83c0380712ecd969ad8 · line 15
Quoted 6 lines
meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb +1
-1@@ -11,6 +11,6 @@ SRC_URI[sha256sum] = "a54967c188cda3e20f496c83be4de3f1740eeaa83c0380712ecd969ad8 S = "${WORKDIR}/XML-Simple-${PV}" -EXTRA_PERLFLAGS = "-I ${STAGING_LIBDIR_NATIVE}/perl/${@get_perl_version(d)}" +EXTRA_PERLFLAGS = "-I ${STAGING_LIBDIR}/perl/${@get_perl_version(d)}"
Can you explain in more detail why this change is needed? should the ordering DEPENDS ordering change?
Sau!
Quoted 1 line
meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb +0
-0inherit cpan
Re: [PATCH 2/2] libxml-simple-perl: update EXTRA_PERLFLAGS
Hi Saul,
Quoted 31 lines · Kang Kai
Quoted 30 lines
From: Kang Kai<[email protected]>
[Yocto 1132]
libxml-simple-perl should not refer to native perl libs modules, update
EXTRA_PERLFLAGSto fix the failure.Signed-off-by Kang Kai<[email protected]>--- .../perl/libxml-simple-perl_2.18.bb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb +0
-0@@ -2,7 +2,7 @@ SECTION = "libs" LICENSE = "Artistic" LIC_FILES_CHKSUM ="file://README;beginline=70;md5=94aa5d46682b411a53a5494cfb22640e"
DEPENDS += "libxml-parser-perl"meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb +1
-1-PR = "r1" +PR = "r2" SRC_URI ="http://www.cpan.org/modules/by-module/XML/XML-Simple-${PV}.tar.gz"
meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb +0
-0@@ -11,6 +11,6 @@ SRC_URI[sha256sum] ="
a54967c188cda3e20f496c83be4de3f1740eeaa83c0380712ecd969ad8
Quoted 7 lines
Quoted 6 lines
S = "${WORKDIR}/XML-Simple-${PV}"-EXTRA_PERLFLAGS = "-I ${STAGING_LIBDIR_NATIVE}/perl/${@get_perl_version(d)}" +EXTRA_PERLFLAGS = "-I ${STAGING_LIBDIR}/perl/${@get_perl_version(d)}"
Can you explain in more detail why this change is needed? should the ordering DEPENDS ordering change?
The build failure infos are :
| could not find ParserDetails.ini in /mnt/sda10/poky-all-platform/build/tmp/sysroots/x86_64-linux/usr/lib/perl/5.12.3/XML/SAX | Errno architecture (x86_64-linux-thread-multi-2.6.35-22-generic) does not match executable architecture (i586-linux-2.6.37-rc5-yocto-standard+) at /mnt/sda10/poky-all-platform/build/tmp/sysroots/x86_64-linux/usr/lib/perl/5.12.3/Errno.pm line 11. | Compilation failed in require at /mnt/sda10/poky-all-platform/build/tmp/sysroots/x86_64-linux/usr/lib/perl/5.12.3/File/Temp.pm line 148. | BEGIN failed--compilation aborted at /mnt/sda10/poky-all-platform/build/tmp/sysroots/x86_64-linux/usr/lib/perl/5.12.3/File/Temp.pm line 148. | Compilation failed in require at /mnt/sda10/poky-all-platform/build/tmp/sysroots/x86_64-linux/usr/lib/perl/5.12.3/XML/SAX/PurePerl/Reader/URI.pm line 8. | BEGIN failed--compilation aborted at /mnt/sda10/poky-all-platform/build/tmp/sysroots/x86_64-linux/usr/lib/perl/5.12.3/XML/SAX/PurePerl/Reader/URI.pm line 8. | Compilation failed in require at /mnt/sda10/poky-all-platform/build/tmp/sysroots/x86_64-linux/usr/lib/perl/5.12.3/XML/SAX/PurePerl/Reader.pm line 6. | BEGIN failed--compilation aborted at /mnt/sda10/poky-all-platform/build/tmp/sysroots/x86_64-linux/usr/lib/perl/5.12.3/XML/SAX/PurePerl/Reader.pm line 6. | Compilation failed in require at /mnt/sda10/poky-all-platform/build/tmp/sysroots/x86_64-linux/usr/lib/perl/5.12.3/XML/SAX/PurePerl.pm line 11. | BEGIN failed--compilation aborted at /mnt/sda10/poky-all-platform/build/tmp/sysroots/x86_64-linux/usr/lib/perl/5.12.3/XML/SAX/PurePerl.pm line 11. | Compilation failed in require at (eval 16) line 1. | Checking installed modules ... | ERROR: Function 'do_configure' failed (see /mnt/sda10/poky-all-platform/build/tmp/work/i586-poky-linux/libxml-simple-perl-2.18-r1/temp/log.do_configure.21878 for further information) | ERROR: Function 'do_configure' failed (see /mnt/sda10/poky-all-platform/build/tmp/work/i586-poky-linux/libxml-simple-perl-2.18-r1/temp/log.do_configure.21878 for further information)
The first error info is caused by no ParserDetails.ini file which should be created by libxml-sax-perl-native. When i add the command after do_populate_sysroot to create ParserDetails.ini:
perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"
First error could be fixed.
Ref:
http://perl-xml.sourceforge.net/faq/#parserdetails.ini
The other error is caused by require XML::SAX in ${S}/Makefile.PL line 30, because use "-I ${STAGING_LIBDIR_NATIVE}/perl/${@get_perl_version(d)}" as command perl options, it uses modules under
/mnt/sda10/poky-all-platform/build/tmp/sysroots/x86_64-linux/usr/lib/perl/5.12.3/
Then meet the /mnt/sda10/poky-all-platform/build/tmp/sysroots/x86_64-linux/usr/lib/perl/5.12.3/Errno.pm line 11 checks the build arch whether equals the arch using the module. Not equal then throw a fatal error.
That's why I use "-I ${STAGING_LIBDIR}/perl/${@get_perl_version(d)}" instead.
Quoted 3 lines
Sau!
Regards,
Kai
Quoted 2 lines
Quoted 2 lines
inherit cpan
Sounding like a broken record here, but these kind of patches need to get sent to the oe-core list, not the poky list.
Op 8 jun 2011, om 12:49 heeft Kang Kai het volgende geschreven:
Quoted 33 lines
From: Kang Kai <[email protected]>
Hi Saul,
These 2 patches are fix for ghostscript and libxml-simple-perl. Update
SRC_URIfor ghostscript to avoid native package affected by build os. Fix libxml-simple-perl [Yocto 1132].Regards,
The following changes since commit
7f34cd1eb2a459709006ae985a14decd4d2152e6:tzcode: Update to 2011g (2011-06-06 15:58:42 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib.gitkangkai/bugfix
http://git.pokylinux.org/cgit.cgi//log/?h=kangkai/bugfixKang Kai (2):
ghostscript: updateSRC_URI
libxml-simple-perl: updateEXTRA_PERLFLAGS.../perl/libxml-simple-perl_2.18.bb | 4 ++-- .../ghostscript/ghostscript_9.02.bb | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-)Signature · 6 lines
1.7.5.1.300.gc565c _______________________________________________ poky mailing list [email protected] https://lists.yoctoproject.org/listinfo/poky