diff mbox series

[1/2] binutils-cross-canadian: Add missing perl mpodules to RDEPENDS

Message ID 20250930123901.949798-1-Harish.Sadineni@windriver.com
State New
Headers show
Series [1/2] binutils-cross-canadian: Add missing perl mpodules to RDEPENDS | expand

Commit Message

Harish Sadineni Sept. 30, 2025, 12:39 p.m. UTC
From: Harish Sadineni <Harish.Sadineni@windriver.com>

In sdk while running "x86_64-poky-linux-gp-display-html --help" gives
following error:
$sdk/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux->
./x86_64-poky-linux-gp-display-html --help
Can't locate bigint.pm in @INC (you may need to install the bigint module

By adding the following perl modules to RDEPENDS fixes the above errors:
  nativesdk-perl-module-bignum
  nativesdk-perl-module-bigint
  nativesdk-perl-module-math-bigint

Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
---
 meta/recipes-devtools/binutils/binutils-cross-canadian.inc | 1 +
 1 file changed, 1 insertion(+)

Comments

Richard Purdie Sept. 30, 2025, 1:47 p.m. UTC | #1
On Tue, 2025-09-30 at 05:39 -0700, Sadineni, Harish via lists.openembedded.org wrote:
> From: Harish Sadineni <Harish.Sadineni@windriver.com>
> 
> In sdk while running "x86_64-poky-linux-gp-display-html --help" gives
> following error:
> $sdk/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux->
> ./x86_64-poky-linux-gp-display-html --help
> Can't locate bigint.pm in @INC (you may need to install the bigint module
> 
> By adding the following perl modules to RDEPENDS fixes the above errors:
>   nativesdk-perl-module-bignum
>   nativesdk-perl-module-bigint
>   nativesdk-perl-module-math-bigint
> 
> Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
> ---
>  meta/recipes-devtools/binutils/binutils-cross-canadian.inc | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
> index 7d7ffe92ce..9dc73fbdf1 100644
> --- a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
> +++ b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
> @@ -5,6 +5,7 @@ PN = "binutils-cross-canadian-${TRANSLATED_TARGET_ARCH}"
>  BPN = "binutils"
>  
>  DEPENDS = "flex-native bison-native virtual/nativesdk-cross-cc virtual/nativesdk-libc nativesdk-zlib nativesdk-gettext nativesdk-flex"
> +RDEPENDS:${PN} += "nativesdk-perl-module-bignum  nativesdk-perl-module-bigint nativesdk-perl-module-math-bigint"
>  EXTRA_OECONF += "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \
>                  --enable-poison-system-directories \
>                  "

This is probably the right direction but shouldn't this be for the
gprofng package rather than ${PN}?

Cheers,

Richard
Harish Sadineni Oct. 1, 2025, 8:47 a.m. UTC | #2
On 9/30/2025 7:17 PM, Richard Purdie wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> On Tue, 2025-09-30 at 05:39 -0700, Sadineni, Harish via lists.openembedded.org wrote:
>> From: Harish Sadineni<Harish.Sadineni@windriver.com>
>>
>> In sdk while running "x86_64-poky-linux-gp-display-html --help" gives
>> following error:
>> $sdk/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux->
>> ./x86_64-poky-linux-gp-display-html --help
>> Can't locate bigint.pm in @INC (you may need to install the bigint module
>>
>> By adding the following perl modules to RDEPENDS fixes the above errors:
>>    nativesdk-perl-module-bignum
>>    nativesdk-perl-module-bigint
>>    nativesdk-perl-module-math-bigint
>>
>> Signed-off-by: Harish Sadineni<Harish.Sadineni@windriver.com>
>> ---
>>   meta/recipes-devtools/binutils/binutils-cross-canadian.inc | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
>> index 7d7ffe92ce..9dc73fbdf1 100644
>> --- a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
>> +++ b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
>> @@ -5,6 +5,7 @@ PN = "binutils-cross-canadian-${TRANSLATED_TARGET_ARCH}"
>>   BPN = "binutils"
>>
>>   DEPENDS = "flex-native bison-native virtual/nativesdk-cross-cc virtual/nativesdk-libc nativesdk-zlib nativesdk-gettext nativesdk-flex"
>> +RDEPENDS:${PN} += "nativesdk-perl-module-bignum  nativesdk-perl-module-bigint nativesdk-perl-module-math-bigint"
>>   EXTRA_OECONF += "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \
>>                   --enable-poison-system-directories \
>>                   "
> This is probably the right direction but shouldn't this be for the
> gprofng package rather than ${PN}?

Hi Richard,

In the SDK at 
|$sdk/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux|, the 
script |"x86_64-poky-linux-gp-display-html"| is not pulled or packaged 
by the gprofng package.
Instead, it is installed as part of the binutils-cross-canadian package.

Adding the perl module dependencies to gprofng**package**will not 
resolve this issue , it would be effective only if "nativesdk-gprofng" 
is explicitly installed by the user.

Thanks,
Harish

>
> Cheers,
>
> Richard
Richard Purdie Oct. 1, 2025, 9:57 a.m. UTC | #3
On Wed, 2025-10-01 at 14:17 +0530, Harish Sadineni wrote:
>  On 9/30/2025 7:17 PM, Richard Purdie wrote:
>  On Tue, 2025-09-30 at 05:39 -0700, Sadineni, Harish via lists.openembedded.org wrote:
> > > From: Harish Sadineni <Harish.Sadineni@windriver.com>
> > > 
> > > In sdk while running "x86_64-poky-linux-gp-display-html --help" gives
> > > following error:
> > > $sdk/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux->
> > > ./x86_64-poky-linux-gp-display-html --help
> > > Can't locate bigint.pm in @INC (you may need to install the bigint module
> > > 
> > > By adding the following perl modules to RDEPENDS fixes the above errors:
> > >   nativesdk-perl-module-bignum
> > >   nativesdk-perl-module-bigint
> > >   nativesdk-perl-module-math-bigint
> > > 
> > > Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
> > > ---
> > >  meta/recipes-devtools/binutils/binutils-cross-canadian.inc | 1 +
> > >  1 file changed, 1 insertion(+)
> > > 
> > > diff --git a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
> > > index 7d7ffe92ce..9dc73fbdf1 100644
> > > --- a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
> > > +++ b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
> > > @@ -5,6 +5,7 @@ PN = "binutils-cross-canadian-${TRANSLATED_TARGET_ARCH}"
> > >  BPN = "binutils"
> > > 
> > >  DEPENDS = "flex-native bison-native virtual/nativesdk-cross-cc virtual/nativesdk-libc nativesdk-zlib nativesdk-gettext nativesdk-flex"
> > > +RDEPENDS:${PN} += "nativesdk-perl-module-bignum  nativesdk-perl-module-bigint nativesdk-perl-module-math-bigint"
> > >  EXTRA_OECONF += "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \
> > >                  --enable-poison-system-directories \
> > >                  "
> > >  
> > This is probably the right direction but shouldn't this be for the
> > gprofng package rather than ${PN}?
> >    
> Hi Richard,
>   
>  In the SDK at $sdk/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-
> poky-linux, the script "x86_64-poky-linux-gp-display-html" is not
> pulled or packaged by the gprofng package. 
>  Instead, it is installed as part of the binutils-cross-canadian
> package.
>  
> Adding the perl module dependencies to gprofng package will not
> resolve this issue , it would be effective only if "nativesdk-
> gprofng" is explicitly installed by the user.
>  

Fair enough. Should x86_64-poky-linux-gp-display-html not be part of
the gprofng package though? Perhaps we should change it to be packaged
there, then add the dependency to that?

Cheers,

Richard
Khem Raj Oct. 1, 2025, 4:56 p.m. UTC | #4
On Wed, Oct 1, 2025 at 2:57 AM Richard Purdie via
lists.openembedded.org
<richard.purdie=linuxfoundation.org@lists.openembedded.org> wrote:
>
> On Wed, 2025-10-01 at 14:17 +0530, Harish Sadineni wrote:
> >  On 9/30/2025 7:17 PM, Richard Purdie wrote:
> >  On Tue, 2025-09-30 at 05:39 -0700, Sadineni, Harish via lists.openembedded.org wrote:
> > > > From: Harish Sadineni <Harish.Sadineni@windriver.com>
> > > >
> > > > In sdk while running "x86_64-poky-linux-gp-display-html --help" gives
> > > > following error:
> > > > $sdk/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux->
> > > > ./x86_64-poky-linux-gp-display-html --help
> > > > Can't locate bigint.pm in @INC (you may need to install the bigint module
> > > >
> > > > By adding the following perl modules to RDEPENDS fixes the above errors:
> > > >   nativesdk-perl-module-bignum
> > > >   nativesdk-perl-module-bigint
> > > >   nativesdk-perl-module-math-bigint
> > > >
> > > > Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
> > > > ---
> > > >  meta/recipes-devtools/binutils/binutils-cross-canadian.inc | 1 +
> > > >  1 file changed, 1 insertion(+)
> > > >
> > > > diff --git a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
> > > > index 7d7ffe92ce..9dc73fbdf1 100644
> > > > --- a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
> > > > +++ b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
> > > > @@ -5,6 +5,7 @@ PN = "binutils-cross-canadian-${TRANSLATED_TARGET_ARCH}"
> > > >  BPN = "binutils"
> > > >
> > > >  DEPENDS = "flex-native bison-native virtual/nativesdk-cross-cc virtual/nativesdk-libc nativesdk-zlib nativesdk-gettext nativesdk-flex"
> > > > +RDEPENDS:${PN} += "nativesdk-perl-module-bignum  nativesdk-perl-module-bigint nativesdk-perl-module-math-bigint"
> > > >  EXTRA_OECONF += "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \
> > > >                  --enable-poison-system-directories \
> > > >                  "
> > > >
> > > This is probably the right direction but shouldn't this be for the
> > > gprofng package rather than ${PN}?
> > >
> > Hi Richard,
> >
> >  In the SDK at $sdk/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-
> > poky-linux, the script "x86_64-poky-linux-gp-display-html" is not
> > pulled or packaged by the gprofng package.
> >  Instead, it is installed as part of the binutils-cross-canadian
> > package.
> >
> > Adding the perl module dependencies to gprofng package will not
> > resolve this issue , it would be effective only if "nativesdk-
> > gprofng" is explicitly installed by the user.
> >
>
> Fair enough. Should x86_64-poky-linux-gp-display-html not be part of
> the gprofng package though? Perhaps we should change it to be packaged
> there, then add the dependency to that?

right, that would make it live with the right set of sub-package as well.

>
> Cheers,
>
> Richard
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#224204): https://lists.openembedded.org/g/openembedded-core/message/224204
> Mute This Topic: https://lists.openembedded.org/mt/115512852/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Mathieu Dubois-Briand Oct. 2, 2025, 2:04 p.m. UTC | #5
On Tue Sep 30, 2025 at 2:39 PM CEST, Harish via lists.openembedded.org Sadineni wrote:
> From: Harish Sadineni <Harish.Sadineni@windriver.com>
>
> In sdk while running "x86_64-poky-linux-gp-display-html --help" gives
> following error:
> $sdk/sysroots/x86_64-pokysdk-linux/usr/bin/x86_64-poky-linux->
> ./x86_64-poky-linux-gp-display-html --help
> Can't locate bigint.pm in @INC (you may need to install the bigint module
>
> By adding the following perl modules to RDEPENDS fixes the above errors:
>   nativesdk-perl-module-bignum
>   nativesdk-perl-module-bigint
>   nativesdk-perl-module-math-bigint
>
> Signed-off-by: Harish Sadineni <Harish.Sadineni@windriver.com>
> ---

Hi Harish,

Thanks for your patches.

I'm seeing some strange things on the autobuilder with this series. I
had a first build without errors, on another build I got:

ERROR: nativesdk-binutils-2.45-r0 do_package_qa: QA Issue: nativesdk-gprofng rdepends on nativesdk-perl-module-bigint, but it isn't a build dependency, missing one of nativesdk-perl in DEPENDS or PACKAGECONFIG? [build-deps]
ERROR: nativesdk-binutils-2.45-r0 do_package_qa: QA Issue: nativesdk-gprofng rdepends on nativesdk-perl-module-bignum, but it isn't a build dependency, missing one of nativesdk-perl in DEPENDS or PACKAGECONFIG? [build-deps]
ERROR: nativesdk-binutils-2.45-r0 do_package_qa: QA Issue: nativesdk-gprofng rdepends on nativesdk-perl-module-math-bigint, but it isn't a build dependency, missing one of nativesdk-perl in DEPENDS or PACKAGECONFIG? [build-deps]

https://autobuilder.yoctoproject.org/valkyrie/#/builders/19/builds/2495

Thanks,
Mathieu
diff mbox series

Patch

diff --git a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
index 7d7ffe92ce..9dc73fbdf1 100644
--- a/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
+++ b/meta/recipes-devtools/binutils/binutils-cross-canadian.inc
@@ -5,6 +5,7 @@  PN = "binutils-cross-canadian-${TRANSLATED_TARGET_ARCH}"
 BPN = "binutils"
 
 DEPENDS = "flex-native bison-native virtual/nativesdk-cross-cc virtual/nativesdk-libc nativesdk-zlib nativesdk-gettext nativesdk-flex"
+RDEPENDS:${PN} += "nativesdk-perl-module-bignum  nativesdk-perl-module-bigint nativesdk-perl-module-math-bigint"
 EXTRA_OECONF += "--with-sysroot=${SDKPATH}/sysroots/${TUNE_PKGARCH}${TARGET_VENDOR}-${TARGET_OS} \
                 --enable-poison-system-directories \
                 "