[OE-core] [PATCH] toolchain-scripts: make rpm work in toolchain

Alexander Kanavin alex.kanavin at gmail.com
Tue Jun 18 11:20:57 UTC 2019


RPM is taking these things from its config file, not from an environment
variable, so you must be doing some additional custom magic to configure
rpm from environment when SDK is already in use.

Instead, you probably need to write appropriate settings into the file when
the nativesdk-rpm package gets created (or when populate_sdk is executed).

Alex

On Tue, 18 Jun 2019 at 10:03, Lei, Maohui <leimaohui at cn.fujitsu.com> wrote:

> ping
>
> > -----Original Message-----
> > From: openembedded-core-bounces at lists.openembedded.org [mailto:
> openembedded-
> > core-bounces at lists.openembedded.org] On Behalf Of Lei, Maohui
> > Sent: Thursday, June 06, 2019 10:39 AM
> > To: richard.purdie at linuxfoundation.org
> > Cc: openembedded-core at lists.openembedded.org
> > Subject: Re: [OE-core] [PATCH] toolchain-scripts: make rpm work in
> toolchain
> >
> > Hi, Richard
> >
> > > Whilst I can guess why, its not obvious at all the dnf needs
> > > MACHINE_ARCH. I'd probably be happier with a better variable name.
> > > Which code exactly is using it?
> >
> > Arch information is necessary for rpm. As what do for dnf-native in
> > _configure_rpm function, nativesdk-dnf has to do the same work.
> > But the environment for nativesdk doesn't supply arch information. I
> think
> > MACHINE_ARCH is suitable to supply arch information for nativesdk.
> > How about your Opinion?
> >
> > Best regards
> > Lei
> >
> >
> >
> > > -----Original Message-----
> > > From: richard.purdie at linuxfoundation.org
> > > [mailto:richard.purdie at linuxfoundation.org]
> > > Sent: Tuesday, June 04, 2019 6:26 PM
> > > To: Lei, Maohui
> > > Cc: openembedded-core at lists.openembedded.org
> > > Subject: Re: [OE-core] [PATCH] toolchain-scripts: make rpm work in
> toolchain
> > >
> > > On Tue, 2019-06-04 at 08:29 +0000, Lei, Maohui wrote:
> > > > Hi Richard
> > > >
> > > > This patch is necessary for dnf-nativesdk which has been merged. But
> > > > this patch is still ignored.
> > > > Do you have any comment about this patch?
> > >
> > > Basically I really don't like exporting "random" variables in the SDK,
> > > particularly when the meaning/use of them isn't clear.
> > >
> > > Whilst I can guess why, its not obvious at all the dnf needs
> > > MACHINE_ARCH. I'd probably be happier with a better variable name.
> > > Which code exactly is using it?
> > >
> > > Cheers,
> > >
> > > Richard
> > >
> > >
> >
> >
> >
> > --
> > _______________________________________________
> > Openembedded-core mailing list
> > Openembedded-core at lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20190618/9c337ff2/attachment.html>


More information about the Openembedded-core mailing list