[OE-core] [PATCH] nativesdk-rpm: Add wrappers for nativesdk support
Mark Hatle
mark.hatle at windriver.com
Tue Feb 27 14:46:23 UTC 2018
On 2/27/18 8:09 AM, Alexander Kanavin wrote:
> On 02/27/2018 03:45 PM, Ovidiu Panait wrote:
>> +do_install_append_class-nativesdk() {
>> + tools="\
>> + ${bindir}/rpm \
>> + ${bindir}/rpm2archive \
>> + ${bindir}/rpm2cpio \
>> + ${bindir}/rpmbuild \
>> + ${bindir}/rpmdb \
>> + ${bindir}/rpmgraph \
>> + ${bindir}/rpmkeys \
>> + ${bindir}/rpmsign \
>> + ${bindir}/rpmspec \
>> + ${libdir}/rpm/rpmdeps \
>> + "
>> +
>> + for tool in $tools; do
>> + create_wrapper ${D}$tool \
>> + RPM_CONFIGDIR='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \
>> + RPM_ETCCONFIGDIR='$'{RPM_ETCCONFIGDIR-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/..} \
>> + MAGIC='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/misc/magic.mgc \
>> + RPM_NO_CHROOT_FOR_SCRIPTS=1
>> + done
>> +
>> + rm -rf ${D}/var
>> +}
>
> Can this be done without copy-pasting an existing function please?
The code can't run in class-target, this would screw up the target.
The code in class-native has a different set of arguments to the create_wrapper.
The rm -rf ${D}/var is not done on class-native, but is done on class-target.
So no. We need two copies, as they are different.
--Mark
> Alex
>
More information about the Openembedded-core
mailing list