From ff5e6f4b4d1f0431d6225155430b057028ec3bb2 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Tue, 23 Mar 2010 14:17:58 +0000 Subject: yum: Update yum and createrepo to latest version Also switch Yum to using BBCLASSEXTEND rather than having separate native and host recipes. Signed-off-by: Joshua Lock --- meta/packages/yum/createrepo-native/fix.patch | 17 --------- meta/packages/yum/createrepo-native_0.9.8.bb | 16 ++++++++ meta/packages/yum/createrepo-native_0.9.bb | 17 --------- meta/packages/yum/files/paths.patch | 54 ++++++++++++++++----------- meta/packages/yum/yum-native_3.2.18.bb | 23 ------------ meta/packages/yum/yum_3.2.18.bb | 41 -------------------- meta/packages/yum/yum_3.2.27.bb | 43 +++++++++++++++++++++ 7 files changed, 91 insertions(+), 120 deletions(-) delete mode 100644 meta/packages/yum/createrepo-native/fix.patch create mode 100644 meta/packages/yum/createrepo-native_0.9.8.bb delete mode 100644 meta/packages/yum/createrepo-native_0.9.bb delete mode 100644 meta/packages/yum/yum-native_3.2.18.bb delete mode 100644 meta/packages/yum/yum_3.2.18.bb create mode 100644 meta/packages/yum/yum_3.2.27.bb (limited to 'meta/packages') diff --git a/meta/packages/yum/createrepo-native/fix.patch b/meta/packages/yum/createrepo-native/fix.patch deleted file mode 100644 index 4fe58e379..000000000 --- a/meta/packages/yum/createrepo-native/fix.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- - createrepo/yumbased.py | 2 ++ - 1 file changed, 2 insertions(+) - -Index: createrepo-0.9/createrepo/yumbased.py -=================================================================== ---- createrepo-0.9.orig/createrepo/yumbased.py 2008-08-26 11:41:13.000000000 +0100 -+++ createrepo-0.9/createrepo/yumbased.py 2008-08-26 11:37:01.000000000 +0100 -@@ -37,6 +37,8 @@ class CreateRepoPackage(YumLocalPackage) - self._hdrend = None - - def _xml(self, item): -+ if item == []: -+ return [] - return xml.sax.saxutils.escape(item) - - def _do_checksum(self): diff --git a/meta/packages/yum/createrepo-native_0.9.8.bb b/meta/packages/yum/createrepo-native_0.9.8.bb new file mode 100644 index 000000000..422b118ac --- /dev/null +++ b/meta/packages/yum/createrepo-native_0.9.8.bb @@ -0,0 +1,16 @@ +DEPENDS = "python-native" + +SRC_URI = "http://createrepo.baseurl.org/download/createrepo-${PV}.tar.gz \ + file://pathfix.patch;patch=1 " +PR = "r1" + +inherit autotools native + +S = "${WORKDIR}/createrepo-${PV}" + +do_compile_append () { + sed -e 's#exec /usr/share#exec ${datadir}#' -i ${S}/bin/createrepo + sed -e 's#exec /usr/share#exec ${datadir}#' -i ${S}/bin/modifyrepo + sed -e 's#!/usr/bin/python#!${bindir}/python#' -i ${S}/genpkgmetadata.py + sed -e 's#!/usr/bin/python#!${bindir}/python#' -i ${S}/modifyrepo.py +} diff --git a/meta/packages/yum/createrepo-native_0.9.bb b/meta/packages/yum/createrepo-native_0.9.bb deleted file mode 100644 index c634ecb74..000000000 --- a/meta/packages/yum/createrepo-native_0.9.bb +++ /dev/null @@ -1,17 +0,0 @@ -DEPENDS = "python-native" - -SRC_URI = "http://createrepo.baseurl.org/download/createrepo-${PV}.tar.gz \ - file://fix.patch;patch=1 \ - file://pathfix.patch;patch=1 " -PR = "r1" - -inherit autotools native - -S = "${WORKDIR}/createrepo-${PV}" - -do_compile_append () { - sed -e 's#exec /usr/share#exec ${datadir}#' -i ${S}/bin/createrepo - sed -e 's#exec /usr/share#exec ${datadir}#' -i ${S}/bin/modifyrepo - sed -e 's#!/usr/bin/python#!${bindir}/python#' -i ${S}/genpkgmetadata.py - sed -e 's#!/usr/bin/python#!${bindir}/python#' -i ${S}/modifyrepo.py -} diff --git a/meta/packages/yum/files/paths.patch b/meta/packages/yum/files/paths.patch index 55e6a0a2e..0175d05b3 100644 --- a/meta/packages/yum/files/paths.patch +++ b/meta/packages/yum/files/paths.patch @@ -4,11 +4,11 @@ etc/Makefile | 20 ++++++++++---------- 3 files changed, 25 insertions(+), 25 deletions(-) ---- yum-3.2.18.orig/Makefile -+++ yum-3.2.18/Makefile -@@ -16,23 +16,23 @@ clean: - - subdirs: +Index: yum-3.2.27/Makefile +=================================================================== +--- yum-3.2.27.orig/Makefile 2010-03-04 01:10:20.000000000 +0000 ++++ yum-3.2.27/Makefile 2010-03-23 13:49:50.663912930 +0000 +@@ -22,19 +22,19 @@ for d in $(SUBDIRS); do make PYTHON=$(PYTHON) -C $$d; [ $$? = 0 ] || exit 1 ; done install: @@ -37,33 +37,39 @@ for d in $(SUBDIRS); do make PYTHON=$(PYTHON) DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done - .PHONY: docs test - ---- yum-3.2.18.orig/docs/Makefile -+++ yum-3.2.18/docs/Makefile -@@ -4,11 +4,11 @@ all: - clean: - rm -f *.pyc *.pyo *~ +Index: yum-3.2.27/docs/Makefile +=================================================================== +--- yum-3.2.27.orig/docs/Makefile 2009-04-07 14:57:06.000000000 +0100 ++++ yum-3.2.27/docs/Makefile 2010-03-23 13:52:30.086667913 +0000 +@@ -6,10 +6,10 @@ rm -fr epydoc install: -- mkdir -p $(DESTDIR)/usr/share/man/man{5,8} +- mkdir -p $(DESTDIR)/usr/share/man/man5 +- mkdir -p $(DESTDIR)/usr/share/man/man8 - install -m 644 yum.8 $(DESTDIR)/usr/share/man/man8/yum.8 - install -m 644 yum-shell.8 $(DESTDIR)/usr/share/man/man8/yum-shell.8 - install -m 644 yum.conf.5 $(DESTDIR)/usr/share/man/man5/yum.conf.5 - install -m 644 yum-updatesd.8 $(DESTDIR)/usr/share/man/man8/yum-updatesd.8 - install -m 644 yum-updatesd.conf.5 $(DESTDIR)/usr/share/man/man5/yum-updatesd.conf.5 -+ mkdir -p $(DESTDIR)$(mandir)/man{5,8} ++ mkdir -p $(DESTDIR)$(mandir)/man5 ++ mkdir -p $(DESTDIR)$(mandir)/man8 + install -m 644 yum.8 $(DESTDIR)$(mandir)/man8/yum.8 + install -m 644 yum-shell.8 $(DESTDIR)$(mandir)/man8/yum-shell.8 + install -m 644 yum.conf.5 $(DESTDIR)$(mandir)/man5/yum.conf.5 + install -m 644 yum-updatesd.8 $(DESTDIR)$(mandir)/man8/yum-updatesd.8 + install -m 644 yum-updatesd.conf.5 $(DESTDIR)$(mandir)/man5/yum-updatesd.conf.5 ---- yum-3.2.18.orig/etc/Makefile -+++ yum-3.2.18/etc/Makefile -@@ -3,22 +3,22 @@ all: - - clean: +Index: yum-3.2.27/etc/Makefile +=================================================================== +--- yum-3.2.27.orig/etc/Makefile 2009-10-26 18:56:06.000000000 +0000 ++++ yum-3.2.27/etc/Makefile 2010-03-23 13:54:40.421912460 +0000 +@@ -1,4 +1,4 @@ +-YUMETC=$(DESTDIR)/etc/yum ++YUMETC=$(DESTDIR)$(sysconfdir)/yum + + all: + echo "Nothing to do" +@@ -7,23 +7,23 @@ rm -f *.pyc *.pyo *~ install: @@ -72,8 +78,9 @@ + mkdir -p $(DESTDIR)$(sysconfdir)/yum/ + mkdir -p $(DESTDIR)$(sysconfdir)/yum/repos.d -- install -m 644 yum.conf $(DESTDIR)/etc/yum/yum.conf -+ install -m 644 yum.conf $(DESTDIR)$(sysconfdir)/yum/yum.conf + install -m 644 yum.conf $(YUMETC)/yum.conf + + install -m 644 version-groups.conf $(YUMETC)/version-groups.conf - mkdir -p $(DESTDIR)/etc/logrotate.d - install -m 644 yum.logrotate $(DESTDIR)/etc/logrotate.d/yum @@ -93,4 +100,7 @@ - install -m 755 yum-updatesd.conf $(DESTDIR)/etc/yum/yum-updatesd.conf + install -m 755 yum-updatesd.conf $(DESTDIR)$(sysconfdir)/yum/yum-updatesd.conf - +- mkdir -p $(DESTDIR)/etc/bash_completion.d +- install -m 644 yum.bash $(DESTDIR)/etc/bash_completion.d ++ mkdir -p $(DESTDIR)$(sysconfdir)/bash_completion.d ++ install -m 644 yum.bash $(DESTDIR)$(sysconfdir)/bash_completion.d diff --git a/meta/packages/yum/yum-native_3.2.18.bb b/meta/packages/yum/yum-native_3.2.18.bb deleted file mode 100644 index 7c3578fc9..000000000 --- a/meta/packages/yum/yum-native_3.2.18.bb +++ /dev/null @@ -1,23 +0,0 @@ -HOMEPAGE = "http://linux.duke.edu/projects/yum/" - -SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ - file://hacks.patch;patch=1 \ - file://paths.patch;patch=1 \ - file://yum-install-recommends.py \ - file://extract-postinst.awk" -PR = "r7" - -DEPENDS = "rpm-native python-native python-iniparse-native python-urlgrabber-native yum-metadata-parser-native libxml2-native" - -inherit autotools native - -do_compile_append () { - sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum.py - sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum-updatesd.py -} - -do_install_append () { - install -d ${STAGING_BINDIR}/ - install ${WORKDIR}/extract-postinst.awk ${STAGING_BINDIR}/ - install ${WORKDIR}/yum-install-recommends.py ${STAGING_BINDIR}/ -} diff --git a/meta/packages/yum/yum_3.2.18.bb b/meta/packages/yum/yum_3.2.18.bb deleted file mode 100644 index 50211e714..000000000 --- a/meta/packages/yum/yum_3.2.18.bb +++ /dev/null @@ -1,41 +0,0 @@ -HOMEPAGE = "http://linux.duke.edu/projects/yum/" -PR = "r7" - -SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ - file://paths.patch;patch=1 \ - file://paths2.patch;patch=1 \ - file://yum-install-recommends.py \ - file://extract-postinst.awk \ - file://98_yum" - -RDEPENDS = "python-rpm python-core python-iniparse python-urlgrabber \ - python-shell python-re python-logging python-pickle \ - python-netserver python-compression \ - python-unixadmin python-xml python-sqlite3 \ - python-textutils python-fcntl python-email \ - yum-metadata-parser" - -S = "${WORKDIR}/yum-${PV}" - -inherit autotools - -do_compile_append () { - sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum.py - sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum-updatesd.py -} - -do_install_append () { - install -d ${D}${bindir}/ - install ${WORKDIR}/extract-postinst.awk ${D}${bindir}/ - install ${WORKDIR}/yum-install-recommends.py ${D}${bindir}/ - rmdir ${D}${localstatedir}/cache/yum - rmdir ${D}${localstatedir}/cache - install -d ${D}/etc/default/volatiles - install -m 0644 ${WORKDIR}/98_yum ${D}/etc/default/volatiles -} - -pkg_postinst_yum () { - /etc/init.d/populate-volatile.sh update -} - -FILES_${PN} += "${libdir}/python* ${datadir}/yum-cli" diff --git a/meta/packages/yum/yum_3.2.27.bb b/meta/packages/yum/yum_3.2.27.bb new file mode 100644 index 000000000..e51aacd56 --- /dev/null +++ b/meta/packages/yum/yum_3.2.27.bb @@ -0,0 +1,43 @@ +HOMEPAGE = "http://linux.duke.edu/projects/yum/" +PR = "r7" + +SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \ + file://paths.patch;patch=1 \ + file://paths2.patch;patch=1 \ + file://yum-install-recommends.py \ + file://extract-postinst.awk \ + file://98_yum" + +RDEPENDS = "python-rpm python-core python-iniparse python-urlgrabber \ + python-shell python-re python-logging python-pickle \ + python-netserver python-compression \ + python-unixadmin python-xml python-sqlite3 \ + python-textutils python-fcntl python-email \ + yum-metadata-parser" + +S = "${WORKDIR}/yum-${PV}" + +inherit autotools + +do_compile_append () { + sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum.py + sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum-updatesd.py +} + +do_install_append () { + install -d ${D}${bindir}/ + install ${WORKDIR}/extract-postinst.awk ${D}${bindir}/ + install ${WORKDIR}/yum-install-recommends.py ${D}${bindir}/ + rmdir ${D}${localstatedir}/cache/yum + rmdir ${D}${localstatedir}/cache + install -d ${D}/etc/default/volatiles + install -m 0644 ${WORKDIR}/98_yum ${D}/etc/default/volatiles +} + +pkg_postinst_yum () { + /etc/init.d/populate-volatile.sh update +} + +FILES_${PN} += "${libdir}/python* ${datadir}/yum-cli" + +BBCLASSEXTEND = "native" \ No newline at end of file -- cgit v1.2.3