Skip to contentSkip to conversation

Fail in perl-native_5.14.2.bb

PATCH Steven Munk Østergaard 2 participants 2 messages Sep 27, 2012 – Sep 28, 2012

lore
Share & tools
lore
#0 lore raw

Hello, peace be with thee... :)

I found a mistake in the "do_configure()" function of: "perl-native_5.14.2.bb"

I am not experienced enough with mailing list to produce patches, but i will try...

Explanation:
sed is in " -e "s%/perl5%/perl%g" \ " replacing parts of @DESTDIR@ which makes its patch way to long and doubles up parts of it's folders... This patch works for me...

perl_5.14.2.bb +0 -0
Index: perl/perl_5.14.2.bb
===================================================================
@@ -146,14 +146,14 @@ 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' \

+        sed -i -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" \
+           -e 's,@DESTDIR@,${prefix},g' \
             config.sh-${TARGET_ARCH}-${TARGET_OS}

     case "${TARGET_ARCH}" in
#1 lore raw
Quoted 35 lines · Steven Munk Østergaard

Hello, peace be with thee... :)

I found a mistake in the "do_configure()" function of:
"perl-native_5.14.2.bb"

I am not experienced enough with mailing list to produce patches, but i will try...

Explanation:
sed is in " -e "s%/perl5%/perl%g" \ " replacing parts of @DESTDIR@ which makes its patch way to long and doubles up parts of it's folders... This patch works for me...

Index: perl/perl_5.14.2.bb
===================================================================

perl_5.14.2.bb +2 -2
@@ -146,14 +146,14 @@ 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' \
+        sed -i -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" \
+           -e 's,@DESTDIR@,${prefix},g' \
              config.sh-${TARGET_ARCH}-${TARGET_OS}
 
Quoted 1 line
      case "${TARGET_ARCH}" in

Thanks, there are a number of problems in this area. Please see the patch I just posted which hopefully addresses all this once and for all.

Cheers,

Richard