diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2015-09-15 22:41:29 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2015-09-15 22:41:29 +0300 |
commit | 21f9b84b4b729fbd7acbd465e7a3f726e4d20f91 (patch) | |
tree | eb2d091d427ca0813b445509d59cc8e27e8ad25f /yocto-poky/meta/recipes-support/createrepo/createrepo_0.4.11.bb | |
parent | 101cef31e2bf54c678501155cd2106251acbd076 (diff) | |
parent | c124f4f2e04dca16a428a76c89677328bc7bf908 (diff) | |
download | openbmc-21f9b84b4b729fbd7acbd465e7a3f726e4d20f91.tar.xz |
Merge commit 'c124f4f2e04dca16a428a76c89677328bc7bf908' as 'yocto-poky'
Diffstat (limited to 'yocto-poky/meta/recipes-support/createrepo/createrepo_0.4.11.bb')
-rw-r--r-- | yocto-poky/meta/recipes-support/createrepo/createrepo_0.4.11.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/yocto-poky/meta/recipes-support/createrepo/createrepo_0.4.11.bb b/yocto-poky/meta/recipes-support/createrepo/createrepo_0.4.11.bb new file mode 100644 index 000000000..5f9ecf65f --- /dev/null +++ b/yocto-poky/meta/recipes-support/createrepo/createrepo_0.4.11.bb @@ -0,0 +1,50 @@ +SUMMARY = "Creates metadata indexes for RPM package repositories" +HOMEPAGE = "http://createrepo.baseurl.org/" + +RECIPE_NO_UPDATE_REASON = "Versions after 0.9.* use YUM, so we hold at 0.4.11" + +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760" + +DEPENDS_class-native += "libxml2-native rpm-native" +RDEPENDS_${PN}_class-target = "libxml2-python" + +PR = "r9" + +SRC_URI = "http://createrepo.baseurl.org/download/${BP}.tar.gz \ + file://fix-native-install.patch \ + file://python-scripts-should-use-interpreter-from-env.patch \ + file://createrepo-rpm549.patch \ + file://recommends.patch \ + file://createrepo-dbpath.patch \ + file://dumpMetadata-disable-signature-validation.patch \ + file://rpm-createsolvedb.py \ + " + +SRC_URI[md5sum] = "3e9ccf4abcffe3f49af078c83611eda2" +SRC_URI[sha256sum] = "a73ae11a0dcde8bde36d900bc3f7f8f1083ba752c70a5c61b72d1e1e7608f21b" + +BBCLASSEXTEND = "native" + +do_install () { + oe_runmake -e 'DESTDIR=${D}' install + install -m 0755 ${WORKDIR}/rpm-createsolvedb.py ${D}${bindir}/ +} + +# Wrap the python script since the native python is +# ${bindir}/python-native/python, and the "#! /usr/bin/env python" can't +# find it since it is not in PATH. +do_install_append_class-native () { + # Not all the python scripts should be wrapped since some of + # them are modules (be imported). + for i in ${D}${datadir}/createrepo/genpkgmetadata.py \ + ${D}${datadir}/createrepo/modifyrepo.py \ + ${D}${bindir}/rpm-createsolvedb.py ; do + sed -i -e 's|^#!.*/usr/bin/env python|#! /usr/bin/env nativepython|' $i + done + + create_wrapper ${D}/${bindir}/createrepo \ + RPM_USRLIBRPM=${STAGING_LIBDIR_NATIVE}/rpm \ + RPM_ETCRPM=${STAGING_ETCDIR_NATIVE}/rpm \ + RPM_LOCALEDIRRPM=${STAGING_DATADIR_NATIVE}/locale +} |