[meta-perl,2/2] io-compress-lzma-perl,io-compress-perl: Do not mark allarch

Message ID 20220320084455.878607-2-raj.khem@gmail.com
State New
Headers show
Series [meta-multimedia,1/2] libsquish: Define LIBDIR knob | expand

Commit Message

Khem Raj March 20, 2022, 8:44 a.m. UTC
These recipes are using target perl install during build so they can not be
allarch, the issue becomes evident when libdir for target the native
build hosts do not match e.g. ppc64 where target libdir is usr/lib64
then the do_configure starts to fail because it can not find
Config_heavy-target.pl script which is part of tatget perl install and
allarch recipes seems to assume libdir defaults to /usr/lib when
accessing it.

I think it can be fixed by perhaps building the missing perl files into
perl native perhaps.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Hongxu Jia <hongxu.jia@windriver.com>
Cc: Tim "moto-timo" Orling <ticotimo@gmail.com>
---
 meta-perl/recipes-perl/libio/io-compress-lzma-perl_2.096.bb | 2 +-
 meta-perl/recipes-perl/libio/io-compress-perl_2.096.bb      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Comments

Tim Orling March 20, 2022, 5:33 p.m. UTC | #1
These should also be using Debian naming: libio-compress-lzma-perl.

On Sun, Mar 20, 2022 at 1:45 AM Khem Raj <raj.khem@gmail.com> wrote:

> These recipes are using target perl install during build so they can not be
> allarch, the issue becomes evident when libdir for target the native
> build hosts do not match e.g. ppc64 where target libdir is usr/lib64
> then the do_configure starts to fail because it can not find
> Config_heavy-target.pl script which is part of tatget perl install and
> allarch recipes seems to assume libdir defaults to /usr/lib when
> accessing it.
>
> I think it can be fixed by perhaps building the missing perl files into
> perl native perhaps.
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> Cc: Hongxu Jia <hongxu.jia@windriver.com>
> Cc: Tim "moto-timo" Orling <ticotimo@gmail.com>
> ---
>  meta-perl/recipes-perl/libio/io-compress-lzma-perl_2.096.bb | 2 +-
>  meta-perl/recipes-perl/libio/io-compress-perl_2.096.bb      | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta-perl/recipes-perl/libio/io-compress-lzma-perl_2.096.bb
> b/meta-perl/recipes-perl/libio/io-compress-lzma-perl_2.096.bb
> index 9655176a86..3b8ce8d02d 100644
> --- a/meta-perl/recipes-perl/libio/io-compress-lzma-perl_2.096.bb
> +++ b/meta-perl/recipes-perl/libio/io-compress-lzma-perl_2.096.bb
> @@ -19,6 +19,6 @@ RDEPENDS:${PN} += "io-compress-perl"
>
>  S = "${WORKDIR}/IO-Compress-Lzma-${PV}"
>
> -inherit cpan allarch
> +inherit cpan
>
>  BBCLASSEXTEND = "native"
> diff --git a/meta-perl/recipes-perl/libio/io-compress-perl_2.096.bb
> b/meta-perl/recipes-perl/libio/io-compress-perl_2.096.bb
> index ccc78d0078..c00d8945b7 100644
> --- a/meta-perl/recipes-perl/libio/io-compress-perl_2.096.bb
> +++ b/meta-perl/recipes-perl/libio/io-compress-perl_2.096.bb
> @@ -19,6 +19,6 @@ RDEPENDS:${PN} += "compress-raw-zlib-perl"
>
>  S = "${WORKDIR}/IO-Compress-${PV}"
>
> -inherit cpan allarch
> +inherit cpan
>
>  BBCLASSEXTEND = "native"
> --
> 2.35.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#96083):
> https://lists.openembedded.org/g/openembedded-devel/message/96083
> Mute This Topic: https://lists.openembedded.org/mt/89903797/924729
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> ticotimo@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

Patch

diff --git a/meta-perl/recipes-perl/libio/io-compress-lzma-perl_2.096.bb b/meta-perl/recipes-perl/libio/io-compress-lzma-perl_2.096.bb
index 9655176a86..3b8ce8d02d 100644
--- a/meta-perl/recipes-perl/libio/io-compress-lzma-perl_2.096.bb
+++ b/meta-perl/recipes-perl/libio/io-compress-lzma-perl_2.096.bb
@@ -19,6 +19,6 @@  RDEPENDS:${PN} += "io-compress-perl"
 
 S = "${WORKDIR}/IO-Compress-Lzma-${PV}"
 
-inherit cpan allarch
+inherit cpan
 
 BBCLASSEXTEND = "native"
diff --git a/meta-perl/recipes-perl/libio/io-compress-perl_2.096.bb b/meta-perl/recipes-perl/libio/io-compress-perl_2.096.bb
index ccc78d0078..c00d8945b7 100644
--- a/meta-perl/recipes-perl/libio/io-compress-perl_2.096.bb
+++ b/meta-perl/recipes-perl/libio/io-compress-perl_2.096.bb
@@ -19,6 +19,6 @@  RDEPENDS:${PN} += "compress-raw-zlib-perl"
 
 S = "${WORKDIR}/IO-Compress-${PV}"
 
-inherit cpan allarch
+inherit cpan
 
 BBCLASSEXTEND = "native"