Openembedded Core Discussions
 help / color / mirror / Atom feed
* Fail in perl-native_5.14.2.bb
@ 2012-09-27 14:36 Steven Munk Østergaard
  2012-09-28 13:18 ` Richard Purdie
  0 siblings, 1 reply; 2+ messages in thread
From: Steven Munk Østergaard @ 2012-09-27 14:36 UTC (permalink / raw)
  To: openembedded-core

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.orig/perl_5.14.2.bb
+++ 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-09-28 13:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-27 14:36 Fail in perl-native_5.14.2.bb Steven Munk Østergaard
2012-09-28 13:18 ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox