<div dir="ltr"><div>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. <br></div><div><br></div><div>Instead, you probably need to write appropriate settings into the file when the nativesdk-rpm package gets created (or when populate_sdk is executed).</div><div><br></div><div>Alex<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 18 Jun 2019 at 10:03, Lei, Maohui &lt;<a href="mailto:leimaohui@cn.fujitsu.com">leimaohui@cn.fujitsu.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">ping<br>
<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:openembedded-core-bounces@lists.openembedded.org" target="_blank">openembedded-core-bounces@lists.openembedded.org</a> [mailto:<a href="mailto:openembedded-" target="_blank">openembedded-</a><br>
&gt; <a href="mailto:core-bounces@lists.openembedded.org" target="_blank">core-bounces@lists.openembedded.org</a>] On Behalf Of Lei, Maohui<br>
&gt; Sent: Thursday, June 06, 2019 10:39 AM<br>
&gt; To: <a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a><br>
&gt; Cc: <a href="mailto:openembedded-core@lists.openembedded.org" target="_blank">openembedded-core@lists.openembedded.org</a><br>
&gt; Subject: Re: [OE-core] [PATCH] toolchain-scripts: make rpm work in toolchain<br>
&gt; <br>
&gt; Hi, Richard<br>
&gt; <br>
&gt; &gt; Whilst I can guess why, its not obvious at all the dnf needs<br>
&gt; &gt; MACHINE_ARCH. I&#39;d probably be happier with a better variable name.<br>
&gt; &gt; Which code exactly is using it?<br>
&gt; <br>
&gt; Arch information is necessary for rpm. As what do for dnf-native in<br>
&gt; _configure_rpm function, nativesdk-dnf has to do the same work.<br>
&gt; But the environment for nativesdk doesn&#39;t supply arch information. I think<br>
&gt; MACHINE_ARCH is suitable to supply arch information for nativesdk.<br>
&gt; How about your Opinion?<br>
&gt; <br>
&gt; Best regards<br>
&gt; Lei<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; &gt; -----Original Message-----<br>
&gt; &gt; From: <a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a><br>
&gt; &gt; [mailto:<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>]<br>
&gt; &gt; Sent: Tuesday, June 04, 2019 6:26 PM<br>
&gt; &gt; To: Lei, Maohui<br>
&gt; &gt; Cc: <a href="mailto:openembedded-core@lists.openembedded.org" target="_blank">openembedded-core@lists.openembedded.org</a><br>
&gt; &gt; Subject: Re: [OE-core] [PATCH] toolchain-scripts: make rpm work in toolchain<br>
&gt; &gt;<br>
&gt; &gt; On Tue, 2019-06-04 at 08:29 +0000, Lei, Maohui wrote:<br>
&gt; &gt; &gt; Hi Richard<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; This patch is necessary for dnf-nativesdk which has been merged. But<br>
&gt; &gt; &gt; this patch is still ignored.<br>
&gt; &gt; &gt; Do you have any comment about this patch?<br>
&gt; &gt;<br>
&gt; &gt; Basically I really don&#39;t like exporting &quot;random&quot; variables in the SDK,<br>
&gt; &gt; particularly when the meaning/use of them isn&#39;t clear.<br>
&gt; &gt;<br>
&gt; &gt; Whilst I can guess why, its not obvious at all the dnf needs<br>
&gt; &gt; MACHINE_ARCH. I&#39;d probably be happier with a better variable name.<br>
&gt; &gt; Which code exactly is using it?<br>
&gt; &gt;<br>
&gt; &gt; Cheers,<br>
&gt; &gt;<br>
&gt; &gt; Richard<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; --<br>
&gt; _______________________________________________<br>
&gt; Openembedded-core mailing list<br>
&gt; <a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
&gt; <a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
<br>
<br>
-- <br>
_______________________________________________<br>
Openembedded-core mailing list<br>
<a href="mailto:Openembedded-core@lists.openembedded.org" target="_blank">Openembedded-core@lists.openembedded.org</a><br>
<a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" rel="noreferrer" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a><br>
</blockquote></div>