perl: Remove the changes of bin, lib etc. as the defaults will give sane values.
PATCH 1/1 perl: Remove the changes of bin, lib etc. as the defaults will give sane values.
The old config put stuff in ${perldir}/image/usr/local/oecore-x86_64/sysroot/x86_64-unknownsdk-linux/usr/local/oecore-x86_64/sysroots/x86_64-unknownsdk-linux/usr instead of in ${perldir}/image/usr/local/oecore-x86_64/sysroot/x86_64-nimbussdk-linux/usr as it should.
--- meta/recipes-devtools/perl/perl_5.14.2.bb | 19 ++++++++----------- 1 files changed, 8 insertions(+), 11 deletions(-)
meta/recipes-devtools/perl/perl_5.14.2.bb +8 -11
@@ -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"
@@ -145,16 +145,13 @@ do_configure() { ${@base_contains('DISTRO_FEATURES', 'largefile', '', 'do_nolargefile', d)} - # Update some paths in the configuration - sed -i -e 's,@DESTDIR@,${prefix},g' \ - -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%/perl5%/perl%g" \ - config.sh-${TARGET_ARCH}-${TARGET_OS} + # Update some paths in the configuration + sed -i -e 's,@DESTDIR@,${prefix},g' \ + -e 's,@ARCH@-thread-multi,,g' \ + -e 's,@ARCH@,${TARGET_ARCH}-${TARGET_OS},g' \ + -e 's,@STAGINGDIR@,${STAGING_DIR_HOST},g' \ + -e "s%/perl5%/perl%g" \ + config.sh-${TARGET_ARCH}-${TARGET_OS} case "${TARGET_ARCH}" in x86_64 | powerpc | s390)
Signature · 1 line
1.7.8.6
Quoted 2 lines · Martin Ertsaas
The old config put stuff in ${perldir}/image/usr/local/oecore-x86_64/sysroot/x86_64-unknownsdk-linux/usr/local/oecore-x86_64/sysroots/x86_64-unknownsdk-linux/usr instead of in ${perldir}/image/usr/local/oecore-x86_64/sysroot/x86_64-nimbussdk-linux/usr as it should.
I am not sure we want to remove that sed code, since allows for different ${libdir} than /usr/lib, such as a flattened /lib, same with the ${exec_prefix}.
Sau!
Quoted 42 lines
--- meta/recipes-devtools/perl/perl_5.14.2.bb | 19 ++++++++----------- 1 files changed, 8 insertions(+), 11 deletions(-)meta/recipes-devtools/perl/perl_5.14.2.bb +8
-11@@ -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"@@ -145,16 +145,13 @@ do_configure() { ${@base_contains('DISTRO_FEATURES', 'largefile', '', 'do_nolargefile', d)} - # Update some paths in the configuration - sed -i -e 's,@DESTDIR@,${prefix},g' \ - -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%/perl5%/perl%g" \ - config.sh-${TARGET_ARCH}-${TARGET_OS} + # Update some paths in the configuration + sed -i -e 's,@DESTDIR@,${prefix},g' \ + -e 's,@ARCH@-thread-multi,,g' \ + -e 's,@ARCH@,${TARGET_ARCH}-${TARGET_OS},g' \ + -e 's,@STAGINGDIR@,${STAGING_DIR_HOST},g' \ + -e "s%/perl5%/perl%g" \ + config.sh-${TARGET_ARCH}-${TARGET_OS} case "${TARGET_ARCH}" in x86_64 | powerpc | s390)
Quoted 7 lines · Saul Wold
Quoted 2 lines · Martin Ertsaas
The old config put stuff in ${perldir}/image/usr/local/oecore-x86_64/sysroot/x86_64-unknownsdk-linux/usr/local/oecore-x86_64/sysroots/x86_64-unknownsdk-linux/usr instead of in ${perldir}/image/usr/local/oecore-x86_64/sysroot/x86_64-nimbussdk-linux/usr as it should.
I am not sure we want to remove that sed code, since allows for different ${libdir} than
/usr/lib, such as a flattened /lib, same with the ${exec_prefix}.
Ya, the sed lines are specifically there to enable the end user to modify the exec_prefix and libdir to their local distribution policies. If this is no longer necessary, we can remove it.. but someone needs to verify they are being used properly. (Flattened filesystem and multilibs are the two places I know it's used today.)
--Mark
Quoted 51 lines
Sau!
Quoted 32 lines
--- meta/recipes-devtools/perl/perl_5.14.2.bb | 19 ++++++++----------- 1 files changed, 8 insertions(+), 11 deletions(-)meta/recipes-devtools/perl/perl_5.14.2.bb +1
-11@@ -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"@@ -145,16 +145,13 @@ do_configure() { ${@base_contains('DISTRO_FEATURES', 'largefile', '', 'do_nolargefile', d)} - # Update some paths in the configuration - sed -i -e 's,@DESTDIR@,${prefix},g' \ - -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%/perl5%/perl%g" \ - config.sh-${TARGET_ARCH}-${TARGET_OS}meta/recipes-devtools/perl/perl_5.14.2.bb do_configure() { · line 157
Quoted 10 lines
meta/recipes-devtools/perl/perl_5.14.2.bb +7
-0+ # Update some paths in the configuration + sed -i -e 's,@DESTDIR@,${prefix},g' \ + -e 's,@ARCH@-thread-multi,,g' \ + -e 's,@ARCH@,${TARGET_ARCH}-${TARGET_OS},g' \ + -e 's,@STAGINGDIR@,${STAGING_DIR_HOST},g' \ + -e "s%/perl5%/perl%g" \ + config.sh-${TARGET_ARCH}-${TARGET_OS} case "${TARGET_ARCH}" in x86_64 | powerpc | s390)_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 12 lines · Mark Hatle
Quoted 10 lines · Saul Wold
Quoted 5 lines · Martin Ertsaas
The old config put stuff in ${perldir}/image/usr/local/oecore-x86_64/sysroot/x86_64-unknownsdk-linux/usr/local/oecore-x86_64/sysroots/x86_64-unknownsdk-linux/usr instead of in
${perldir}/image/usr/local/oecore-x86_64/sysroot/x86_64-nimbussdk-linux/usr
as it should.I am not sure we want to remove that sed code, since allows for different ${libdir} than
/usr/lib, such as a flattened /lib, same with the ${exec_prefix}.
Quoted 7 lines
Ya, the sed lines are specifically there to enable the end user to modify the
exec_prefixand libdir to their local distribution policies. If this is no longer necessary, we can remove it.. but someone needs to verify they are being used properly. (Flattened filesystem and multilibs are the two places I know it's used today.)--Mark
Ok. That is ok. However, I think we would need to fix it to give a sane default value, like ${perldir}/image/usr/local/oecore-x86_64/sysroot/x86_64-unknownsdk-linux/usr. Not the part after image is duplicated in the install directory, which makes do_install fail if you try to use the standard directory.
- Martin
Quoted 62 lines
Quoted 47 lines
Sau!
Quoted 43 lines
--- meta/recipes-devtools/perl/perl_5.14.2.bb | 19 ++++++++----------- 1 files changed, 8 insertions(+), 11 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-inPROVIDES += "libmodule-build-perl"meta/recipes-devtools/perl/perl_5.14.2.bb +7
-10@@ -145,16 +145,13 @@ do_configure() { ${@base_contains('DISTRO_FEATURES', 'largefile', '', 'do_nolargefile', d)} - # Update some paths in the configuration - sed -i -e 's,@DESTDIR@,${prefix},g' \ - -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%/perl5%/perl%g" \ - config.sh-${TARGET_ARCH}-${TARGET_OS} + # Update some paths in the configuration + sed -i -e 's,@DESTDIR@,${prefix},g' \ + -e 's,@ARCH@-thread-multi,,g' \ + -e 's,@ARCH@,${TARGET_ARCH}-${TARGET_OS},g' \ + -e 's,@STAGINGDIR@,${STAGING_DIR_HOST},g' \ + -e "s%/perl5%/perl%g" \ + config.sh-${TARGET_ARCH}-${TARGET_OS}Quoted 9 lines
Quoted 3 lines
case "${TARGET_ARCH}" in x86_64 | powerpc | s390)_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core