* Re: [poky] [PATCH 0/2] ghostscript & libxml-simple-perl: fix compile failures
[not found] <cover.1307529994.git.kai.kang@windriver.com>
@ 2011-06-08 11:21 ` Koen Kooi
[not found] ` <3753d5b6e3a1c6cec6bdb75b90c73f96058b292c.1307529994.git.kai.kang@windriver.com>
1 sibling, 0 replies; 3+ messages in thread
From: Koen Kooi @ 2011-06-08 11:21 UTC (permalink / raw)
To: Kang Kai
Cc: Patches and discussions about the oe-core layer,
poky@yoctoproject.org Project
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:
> From: Kang Kai <kai.kang@windriver.com>
>
> 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(-)
>
> --
> 1.7.5.1.300.gc565c
>
> _______________________________________________
> poky mailing list
> poky@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/poky
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] libxml-simple-perl: update EXTRA_PERLFLAGS
[not found] ` <3753d5b6e3a1c6cec6bdb75b90c73f96058b292c.1307529994.git.kai.kang@windriver.com>
@ 2011-06-10 2:39 ` Saul Wold
2011-06-10 5:40 ` Kang Kai
0 siblings, 1 reply; 3+ messages in thread
From: Saul Wold @ 2011-06-10 2:39 UTC (permalink / raw)
To: Kang Kai; +Cc: 'Patches and discussions about the oe-core layer'
On 06/08/2011 03:49 AM, Kang Kai wrote:
> From: Kang Kai<kai.kang@windriver.com>
>
> [Yocto 1132]
>
> libxml-simple-perl should not refer to native perl libs modules, update
> EXTRA_PERLFLAGS to fix the failure.
>
> Signed-off-by: Kang Kai<kai.kang@windriver.com>
> ---
> .../perl/libxml-simple-perl_2.18.bb | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb b/meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb
> index ca57776..75a018a 100644
> --- a/meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb
> +++ b/meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb
> @@ -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)}"
>
Can you explain in more detail why this change is needed? should the
ordering DEPENDS ordering change?
Sau!
> inherit cpan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] libxml-simple-perl: update EXTRA_PERLFLAGS
2011-06-10 2:39 ` [PATCH 2/2] libxml-simple-perl: update EXTRA_PERLFLAGS Saul Wold
@ 2011-06-10 5:40 ` Kang Kai
0 siblings, 0 replies; 3+ messages in thread
From: Kang Kai @ 2011-06-10 5:40 UTC (permalink / raw)
To: Saul Wold; +Cc: 'Patches and discussions about the oe-core layer'
Hi Saul,
> On 06/08/2011 03:49 AM, Kang Kai wrote:
>> From: Kang Kai<kai.kang@windriver.com>
>>
>> [Yocto 1132]
>>
>> libxml-simple-perl should not refer to native perl libs modules, update
>> EXTRA_PERLFLAGS to fix the failure.
>>
>> Signed-off-by: Kang Kai<kai.kang@windriver.com>
>> ---
>> .../perl/libxml-simple-perl_2.18.bb | 4 ++--
>> 1 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb
>> b/meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb
>> index ca57776..75a018a 100644
>> --- a/meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb
>> +++ b/meta/recipes-devtools/perl/libxml-simple-perl_2.18.bb
>> @@ -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)}"
>>
> 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.
>
> Sau!
>
Regards,
Kai
>
>> inherit cpan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-10 5:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <cover.1307529994.git.kai.kang@windriver.com>
2011-06-08 11:21 ` [poky] [PATCH 0/2] ghostscript & libxml-simple-perl: fix compile failures Koen Kooi
[not found] ` <3753d5b6e3a1c6cec6bdb75b90c73f96058b292c.1307529994.git.kai.kang@windriver.com>
2011-06-10 2:39 ` [PATCH 2/2] libxml-simple-perl: update EXTRA_PERLFLAGS Saul Wold
2011-06-10 5:40 ` Kang Kai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox