[OE-core] [PATCH 36/44] package_rpm.bbclass: do not set the OS dynamically when building rpms
Alexander Kanavin
alexander.kanavin at linux.intel.com
Mon Mar 13 14:24:33 UTC 2017
On 03/10/2017 06:57 PM, Mark Hatle wrote:
> On 3/10/17 5:24 AM, Alexander Kanavin wrote:
>> Packages need to contain just one value for the os field, otherwise
>> rpm will refuse to install them if they don't match what is in
>> /etc/rpm/platform.
>
> How will this work with nativesdk for things like targeting mingw (windows),
> darwin, or even alternative OS like Zephyr?
>
> I'm thinking if 'linux-gnu' is invalid, then a simple conversion to 'linux'
> would be better then hard coding everything to 'linux'.
I don't believe that the OS name embedded into packages is actually used
anywhere to make decisions about which package to install. It's just
that some packages have one value for it, others have another, and rpm 4
does not allow that (rpm 5 does, and so several OS values gets written
into /etc). So I bring them all to a common value.
Alex
More information about the Openembedded-core
mailing list