Patchwork [6/8] perl: fix for non /usr/lib libdir case

login
register
mail settings
Submitter Yu Ke
Date July 7, 2011, 2:10 p.m.
Message ID <997e3b4b171cae48b81a47536a27cc81f4d620a6.1310047266.git.ke.yu@intel.com>
Download mbox | patch
Permalink /patch/7143/
State New, archived
Headers show

Comments

Yu Ke - July 7, 2011, 2:10 p.m.
the config.sh is hardcoded to be /usr/lib, which does not work in non
/usr/lib libdir case.

This patch replace the hard code /usr/lib with ${libdir} to fix this issue

Signed-off-by: Yu Ke <ke.yu@intel.com>
---
 meta/recipes-devtools/perl/perl_5.12.3.bb |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Nitin A Kamble - July 7, 2011, 4:14 p.m.
Hi Ke, 
   Is this for multilib ?

Nitin


> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org
> [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of
> Yu Ke
> Sent: Thursday, July 07, 2011 7:10 AM
> To: openembedded-core@lists.openembedded.org;
> richard.purdie@linuxfoundation.org
> Subject: [OE-core] [PATCH 6/8] perl: fix for non /usr/lib libdir case
> 
> the config.sh is hardcoded to be /usr/lib, which does not work in non
> /usr/lib libdir case.
> 
> This patch replace the hard code /usr/lib with ${libdir} to fix this
> issue
> 
> Signed-off-by: Yu Ke <ke.yu@intel.com>
> ---
>  meta/recipes-devtools/perl/perl_5.12.3.bb |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/meta/recipes-devtools/perl/perl_5.12.3.bb b/meta/recipes-
> devtools/perl/perl_5.12.3.bb
> index b053482..88dcfdd 100644
> --- a/meta/recipes-devtools/perl/perl_5.12.3.bb
> +++ b/meta/recipes-devtools/perl/perl_5.12.3.bb
> @@ -8,7 +8,7 @@ PRIORITY = "optional"
>  # We need gnugrep (for -I)
>  DEPENDS = "virtual/db grep-native"
>  DEPENDS += "gdbm zlib"
> -PR = "r1"
> +PR = "r2"
> 
>  # 5.10.1 has Module::Build built-in
>  PROVIDES += "libmodule-build-perl"
> @@ -150,6 +150,7 @@ do_configure() {
>                 -e 's,@ARCH@-thread-multi,,g' \
>                 -e 's,@ARCH@,${TARGET_ARCH}-${TARGET_OS},g' \
>                 -e "s%/usr/include%${STAGING_INCDIR}%g" \
> +	       -e 's,/usr/lib/,${libdir}/,g' \
>  	       -e 's,/usr/,${exec_prefix}/,g' \
>  	       -e 's,/perl5,/perl,g' \
>              config.sh-${TARGET_ARCH}-${TARGET_OS}
> --
> 1.7.0.4
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Richard Purdie - July 7, 2011, 7:21 p.m.
On Thu, 2011-07-07 at 09:14 -0700, Kamble, Nitin A wrote:
> Hi Ke, 
>    Is this for multilib ?

Yes, it is.

Cheers,

Richard

Patch

diff --git a/meta/recipes-devtools/perl/perl_5.12.3.bb b/meta/recipes-devtools/perl/perl_5.12.3.bb
index b053482..88dcfdd 100644
--- a/meta/recipes-devtools/perl/perl_5.12.3.bb
+++ b/meta/recipes-devtools/perl/perl_5.12.3.bb
@@ -8,7 +8,7 @@  PRIORITY = "optional"
 # We need gnugrep (for -I)
 DEPENDS = "virtual/db grep-native"
 DEPENDS += "gdbm zlib"
-PR = "r1"
+PR = "r2"
 
 # 5.10.1 has Module::Build built-in
 PROVIDES += "libmodule-build-perl"
@@ -150,6 +150,7 @@  do_configure() {
                -e 's,@ARCH@-thread-multi,,g' \
                -e 's,@ARCH@,${TARGET_ARCH}-${TARGET_OS},g' \
                -e "s%/usr/include%${STAGING_INCDIR}%g" \
+	       -e 's,/usr/lib/,${libdir}/,g' \
 	       -e 's,/usr/,${exec_prefix}/,g' \
 	       -e 's,/perl5,/perl,g' \
             config.sh-${TARGET_ARCH}-${TARGET_OS}