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 <[email protected]> wrote:

> ping
>
> > -----Original Message-----
> > From: [email protected] [mailto:
> openembedded-
> > [email protected]] On Behalf Of Lei, Maohui
> > Sent: Thursday, June 06, 2019 10:39 AM
> > To: [email protected]
> > Cc: [email protected]
> > 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: [email protected]
> > > [mailto:[email protected]]
> > > Sent: Tuesday, June 04, 2019 6:26 PM
> > > To: Lei, Maohui
> > > Cc: [email protected]
> > > 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
> > [email protected]
> > http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
>
> --
> _______________________________________________
> Openembedded-core mailing list
> [email protected]
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to