perl: Fix nativesdk install path
PATCH 1/1 perl: Fix nativesdk install path
Commit 38234f2e276356b1d77a87ceabc486107e336d19 tried to fix the sed expressions by anchoring the left side of the search regexp to prevent $prefix$prefix type expression in the perl config. For nativesdk this is not enough. Adding anchors on both side fixes this.
---
This is currently only build tested, but buildhistory for perl did not change.
meta/recipes-devtools/perl/perl_5.14.2.bb | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
meta/recipes-devtools/perl/perl_5.14.2.bb +4 -4
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \ # We need gnugrep (for -I) DEPENDS = "virtual/db grep-native" DEPENDS += "gdbm zlib" -PR = "r9" +PR = "r10" # 5.10.1 has Module::Build built-in PROVIDES += "libmodule-build-perl"
@@ -150,9 +150,9 @@ do_configure() { -e 's,@ARCH@-thread-multi,,g' \ -e 's,@ARCH@,${TARGET_ARCH}-${TARGET_OS},g' \ -e 's,@STAGINGDIR@,${STAGING_DIR_HOST},g' \ - -e "s%\([ \"^\',=]\+\)/usr/include%\1${STAGING_INCDIR}%g" \ - -e "s%\([ \"^\',=]\+\)/usr/lib/%\1${libdir}/%g" \ - -e "s%\([ \"^\',=]\+\)/usr/%\1${exec_prefix}/%g" \ + -e "s%\([ \"^\',=]\+\)/usr/include\([ \"^\',=]\+\)%\1${STAGING_INCDIR}\2%g" \ + -e "s%\([ \"^\',=]\+\)/usr/lib/\([ \"^\',=]\+\)%\1${libdir}/\2%g" \ + -e "s%\([ \"^\',=]\+\)/usr/\([ \"^\',=]\+\)%\1${exec_prefix}/\2%g" \ -e "s%/perl5%/perl%g" \ config.sh-${TARGET_ARCH}-${TARGET_OS}
Signature · 1 line
1.7.2.5
Saul Wold
AppliedQuoted 30 lines · Christian Glindkamp
Commit
38234f2e276356b1d77a87ceabc486107e336d19tried to fix the sed expressions by anchoring the left side of the search regexp to prevent $prefix$prefix type expression in the perl config. For nativesdk this is not enough. Adding anchors on both side fixes this.Signed-off-by Christian Glindkamp <[email protected]>---
This is currently only build tested, but buildhistory for perl did not change.
meta/recipes-devtools/perl/perl_5.14.2.bb | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)meta/recipes-devtools/perl/perl_5.14.2.bb +1
-1@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \ # We need gnugrep (for -I) DEPENDS = "virtual/db grep-native" DEPENDS += "gdbm zlib" -PR = "r9" +PR = "r10" # 5.10.1 has Module::Build built-in PROVIDES += "libmodule-build-perl"@@ -150,9 +150,9 @@ do_configure() { -e 's,@ARCH@-thread-multi,,g' \ -e 's,@ARCH@,${TARGET_ARCH}-${TARGET_OS},g' \
meta/recipes-devtools/perl/perl_5.14.2.bb do_configure() { · line 158
Quoted 10 lines
meta/recipes-devtools/perl/perl_5.14.2.bb +3
-3-e 's,@STAGINGDIR@,${STAGING_DIR_HOST},g' \ - -e "s%\([ \"^\',=]\+\)/usr/include%\1${STAGING_INCDIR}%g" \ - -e "s%\([ \"^\',=]\+\)/usr/lib/%\1${libdir}/%g" \ - -e "s%\([ \"^\',=]\+\)/usr/%\1${exec_prefix}/%g" \ + -e "s%\([ \"^\',=]\+\)/usr/include\([ \"^\',=]\+\)%\1${STAGING_INCDIR}\2%g" \ + -e "s%\([ \"^\',=]\+\)/usr/lib/\([ \"^\',=]\+\)%\1${libdir}/\2%g" \ + -e "s%\([ \"^\',=]\+\)/usr/\([ \"^\',=]\+\)%\1${exec_prefix}/\2%g" \ -e "s%/perl5%/perl%g" \ config.sh-${TARGET_ARCH}-${TARGET_OS}
Merged into OE-Core
Thanks
Sau!
I had to revert this patch. With it enabled, if I enable multilibs and build for x86_64 (so my libdir == /usr/lib64), perl no longer finishes do_install().
When I revert it fixes that issue, but of course then the nativesdk is broken again.
--Mark
Quoted 53 lines · Saul Wold
Quoted 30 lines · Christian Glindkamp
Commit
38234f2e276356b1d77a87ceabc486107e336d19tried to fix the sed expressions by anchoring the left side of the search regexp to prevent $prefix$prefix type expression in the perl config. For nativesdk this is not enough. Adding anchors on both side fixes this.Signed-off-by Christian Glindkamp <[email protected]>---
This is currently only build tested, but buildhistory for perl did not change.
meta/recipes-devtools/perl/perl_5.14.2.bb | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)meta/recipes-devtools/perl/perl_5.14.2.bb +1
-1@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \ # We need gnugrep (for -I) DEPENDS = "virtual/db grep-native" DEPENDS += "gdbm zlib" -PR = "r9" +PR = "r10" # 5.10.1 has Module::Build built-in PROVIDES += "libmodule-build-perl"@@ -150,9 +150,9 @@ do_configure() { -e 's,@ARCH@-thread-multi,,g' \ -e 's,@ARCH@,${TARGET_ARCH}-${TARGET_OS},g' \meta/recipes-devtools/perl/perl_5.14.2.bb do_configure() { · line 158
Quoted 10 lines
meta/recipes-devtools/perl/perl_5.14.2.bb +3
-3-e 's,@STAGINGDIR@,${STAGING_DIR_HOST},g' \ - -e "s%\([ \"^\',=]\+\)/usr/include%\1${STAGING_INCDIR}%g" \ - -e "s%\([ \"^\',=]\+\)/usr/lib/%\1${libdir}/%g" \ - -e "s%\([ \"^\',=]\+\)/usr/%\1${exec_prefix}/%g" \ + -e "s%\([ \"^\',=]\+\)/usr/include\([ \"^\',=]\+\)%\1${STAGING_INCDIR}\2%g" \ + -e "s%\([ \"^\',=]\+\)/usr/lib/\([ \"^\',=]\+\)%\1${libdir}/\2%g" \ + -e "s%\([ \"^\',=]\+\)/usr/\([ \"^\',=]\+\)%\1${exec_prefix}/\2%g" \ -e "s%/perl5%/perl%g" \ config.sh-${TARGET_ARCH}-${TARGET_OS}Merged into OE-Core
Thanks
Sau!_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 4 lines · Mark Hatle
I had to revert this patch. With it enabled, if I enable multilibs and build for
x86_64(so my libdir ==/usr/lib64), perl no longer finishesdo_install().When I revert it fixes that issue, but of course then the nativesdk is broken again.
Please try with the patch I've just sent which should fix it.
Cheers,
Richard