On 3/13/17 9:24 AM, Alexander Kanavin wrote: > 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.
In the past there was both a (Smart/YUM/DNF) and RPM check for OS to prevent packages for one OS to be installed onto another OS. While out mingw SDK does not contain RPM (not IMHO should it ever), I'd hate to accidentally try to install one of the mingw packages onto a Linux system. Darwin (OS X) as well. This is likely something we need to look into and understand. --Mark > Alex > -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
