Skip to contentSkip to conversation

rpm: properly relocate additional native tools

PATCH New Alexander Kanavin 1 participant 1 message Apr 21, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rpm: properly relocate additional native tools

These tools are not currently used for anything, but we should still provide working versions of them.

[YOCTO #11400]

---
 meta/recipes-devtools/rpm/rpm_git.bb | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
meta/recipes-devtools/rpm/rpm_git.bb +30 -0
index 96f71d5bb57..f31932ef55a 100644
@@ -90,6 +90,36 @@ do_install_append_class-native() {
                 RPM_ETCCONFIGDIR=${STAGING_DIR_NATIVE} \
                 MAGIC=${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc \
                 RPM_NO_CHROOT_FOR_SCRIPTS=1
+
+        create_wrapper ${D}/${bindir}/rpm2archive \
+                RPM_CONFIGDIR=${STAGING_LIBDIR_NATIVE}/rpm \
+                RPM_ETCCONFIGDIR=${STAGING_DIR_NATIVE} \
+                MAGIC=${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc \
+                RPM_NO_CHROOT_FOR_SCRIPTS=1
+
+        create_wrapper ${D}/${bindir}/rpm2cpio \
+                RPM_CONFIGDIR=${STAGING_LIBDIR_NATIVE}/rpm \
+                RPM_ETCCONFIGDIR=${STAGING_DIR_NATIVE} \
+                MAGIC=${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc \
+                RPM_NO_CHROOT_FOR_SCRIPTS=1
+
+        create_wrapper ${D}/${bindir}/rpmdb \
+                RPM_CONFIGDIR=${STAGING_LIBDIR_NATIVE}/rpm \
+                RPM_ETCCONFIGDIR=${STAGING_DIR_NATIVE} \
+                MAGIC=${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc \
+                RPM_NO_CHROOT_FOR_SCRIPTS=1
+
+        create_wrapper ${D}/${bindir}/rpmgraph \
+                RPM_CONFIGDIR=${STAGING_LIBDIR_NATIVE}/rpm \
+                RPM_ETCCONFIGDIR=${STAGING_DIR_NATIVE} \
+                MAGIC=${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc \
+                RPM_NO_CHROOT_FOR_SCRIPTS=1
+
+        create_wrapper ${D}/${bindir}/rpmspec \
+                RPM_CONFIGDIR=${STAGING_LIBDIR_NATIVE}/rpm \
+                RPM_ETCCONFIGDIR=${STAGING_DIR_NATIVE} \
+                MAGIC=${STAGING_DIR_NATIVE}${datadir_native}/misc/magic.mgc \
+                RPM_NO_CHROOT_FOR_SCRIPTS=1
 }
 
 
Signature · 1 line
2.11.0