mirror of
https://git.yoctoproject.org/poky
synced 2026-09-29 07:36:20 +02:00
yum: fixed packaging
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5426 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
18
meta/packages/yum/files/fix
Normal file
18
meta/packages/yum/files/fix
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
---
|
||||||
|
rpmUtils/Makefile | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
--- yum-3.2.18.orig/rpmUtils/Makefile
|
||||||
|
+++ yum-3.2.18/rpmUtils/Makefile
|
||||||
|
@@ -1,10 +1,10 @@
|
||||||
|
PYTHON=python
|
||||||
|
PACKAGE = $(shell basename `pwd`)
|
||||||
|
PYFILES = $(wildcard *.py)
|
||||||
|
PYVER := $(shell $(PYTHON) -c 'import sys; print "%.3s" %(sys.version)')
|
||||||
|
-PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print sys.prefix')
|
||||||
|
+PYSYSDIR := /usr
|
||||||
|
PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
|
||||||
|
PKGDIR = $(PYLIBDIR)/site-packages/$(PACKAGE)
|
||||||
|
|
||||||
|
all:
|
||||||
|
echo "Nothing to do"
|
||||||
@@ -1,8 +1,14 @@
|
|||||||
Index: yum-3.2.18/Makefile
|
---
|
||||||
===================================================================
|
Makefile | 18 +++++++++---------
|
||||||
--- yum-3.2.18.orig/Makefile 2008-08-23 09:13:56.000000000 +0100
|
docs/Makefile | 12 ++++++------
|
||||||
+++ yum-3.2.18/Makefile 2008-08-23 09:18:09.000000000 +0100
|
etc/Makefile | 20 ++++++++++----------
|
||||||
@@ -18,19 +18,19 @@
|
3 files changed, 25 insertions(+), 25 deletions(-)
|
||||||
|
|
||||||
|
--- yum-3.2.18.orig/Makefile
|
||||||
|
+++ yum-3.2.18/Makefile
|
||||||
|
@@ -16,23 +16,23 @@ clean:
|
||||||
|
|
||||||
|
subdirs:
|
||||||
for d in $(SUBDIRS); do make PYTHON=$(PYTHON) -C $$d; [ $$? = 0 ] || exit 1 ; done
|
for d in $(SUBDIRS); do make PYTHON=$(PYTHON) -C $$d; [ $$? = 0 ] || exit 1 ; done
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@@ -31,11 +37,13 @@ Index: yum-3.2.18/Makefile
|
|||||||
|
|
||||||
for d in $(SUBDIRS); do make PYTHON=$(PYTHON) DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done
|
for d in $(SUBDIRS); do make PYTHON=$(PYTHON) DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done
|
||||||
|
|
||||||
Index: yum-3.2.18/docs/Makefile
|
.PHONY: docs test
|
||||||
===================================================================
|
|
||||||
--- yum-3.2.18.orig/docs/Makefile 2008-08-23 09:19:07.000000000 +0100
|
--- yum-3.2.18.orig/docs/Makefile
|
||||||
+++ yum-3.2.18/docs/Makefile 2008-08-23 09:19:37.000000000 +0100
|
+++ yum-3.2.18/docs/Makefile
|
||||||
@@ -6,9 +6,9 @@
|
@@ -4,11 +4,11 @@ all:
|
||||||
|
clean:
|
||||||
|
rm -f *.pyc *.pyo *~
|
||||||
rm -fr epydoc
|
rm -fr epydoc
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@@ -51,11 +59,11 @@ Index: yum-3.2.18/docs/Makefile
|
|||||||
+ install -m 644 yum.conf.5 $(DESTDIR)$(mandir)/man5/yum.conf.5
|
+ 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.8 $(DESTDIR)$(mandir)/man8/yum-updatesd.8
|
||||||
+ install -m 644 yum-updatesd.conf.5 $(DESTDIR)$(mandir)/man5/yum-updatesd.conf.5
|
+ install -m 644 yum-updatesd.conf.5 $(DESTDIR)$(mandir)/man5/yum-updatesd.conf.5
|
||||||
Index: yum-3.2.18/etc/Makefile
|
--- yum-3.2.18.orig/etc/Makefile
|
||||||
===================================================================
|
+++ yum-3.2.18/etc/Makefile
|
||||||
--- yum-3.2.18.orig/etc/Makefile 2008-08-23 09:19:51.000000000 +0100
|
@@ -3,22 +3,22 @@ all:
|
||||||
+++ yum-3.2.18/etc/Makefile 2008-08-23 09:20:28.000000000 +0100
|
|
||||||
@@ -5,20 +5,20 @@
|
clean:
|
||||||
rm -f *.pyc *.pyo *~
|
rm -f *.pyc *.pyo *~
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
|||||||
33
meta/packages/yum/files/paths2.patch
Normal file
33
meta/packages/yum/files/paths2.patch
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
---
|
||||||
|
rpmUtils/Makefile | 2 +-
|
||||||
|
yum/Makefile | 2 +-
|
||||||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
--- yum-3.2.18.orig/rpmUtils/Makefile
|
||||||
|
+++ yum-3.2.18/rpmUtils/Makefile
|
||||||
|
@@ -1,10 +1,10 @@
|
||||||
|
PYTHON=python
|
||||||
|
PACKAGE = $(shell basename `pwd`)
|
||||||
|
PYFILES = $(wildcard *.py)
|
||||||
|
PYVER := $(shell $(PYTHON) -c 'import sys; print "%.3s" %(sys.version)')
|
||||||
|
-PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print sys.prefix')
|
||||||
|
+PYSYSDIR = /usr
|
||||||
|
PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
|
||||||
|
PKGDIR = $(PYLIBDIR)/site-packages/$(PACKAGE)
|
||||||
|
|
||||||
|
all:
|
||||||
|
echo "Nothing to do"
|
||||||
|
--- yum-3.2.18.orig/yum/Makefile
|
||||||
|
+++ yum-3.2.18/yum/Makefile
|
||||||
|
@@ -1,10 +1,10 @@
|
||||||
|
PYTHON=python
|
||||||
|
PACKAGE = $(shell basename `pwd`)
|
||||||
|
PYFILES = $(wildcard *.py)
|
||||||
|
PYVER := $(shell $(PYTHON) -c 'import sys; print "%.3s" %(sys.version)')
|
||||||
|
-PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print sys.prefix')
|
||||||
|
+PYSYSDIR = /usr
|
||||||
|
PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
|
||||||
|
PKGDIR = $(PYLIBDIR)/site-packages/$(PACKAGE)
|
||||||
|
|
||||||
|
all:
|
||||||
|
echo "Nothing to do"
|
||||||
@@ -1,12 +1,14 @@
|
|||||||
HOMEPAGE = "http://linux.duke.edu/projects/yum/"
|
HOMEPAGE = "http://linux.duke.edu/projects/yum/"
|
||||||
PR = "r2"
|
PR = "r3"
|
||||||
|
|
||||||
SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \
|
SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz \
|
||||||
file://paths.patch;patch=1 \
|
file://paths.patch;patch=1 \
|
||||||
|
file://paths2.patch;patch=1 \
|
||||||
file://yum-install-recommends.py \
|
file://yum-install-recommends.py \
|
||||||
file://extract-postinst.awk"
|
file://extract-postinst.awk"
|
||||||
|
|
||||||
DEPENDS = "rpm python python-iniparse python-urlgrabber yum-metadata-parser libxml2"
|
DEPENDS = "python"
|
||||||
|
RDEPENDS = "rpm python-core python-iniparse python-urlgrabber yum-metadata-parser"
|
||||||
|
|
||||||
S = "${WORKDIR}/yum-${PV}"
|
S = "${WORKDIR}/yum-${PV}"
|
||||||
|
|
||||||
@@ -22,3 +24,5 @@ do_install_append () {
|
|||||||
install ${WORKDIR}/extract-postinst.awk ${D}${bindir}/
|
install ${WORKDIR}/extract-postinst.awk ${D}${bindir}/
|
||||||
install ${WORKDIR}/yum-install-recommends.py ${D}${bindir}/
|
install ${WORKDIR}/yum-install-recommends.py ${D}${bindir}/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FILES_${PN} += "${libdir}/python* ${datadir}/yum-cli"
|
||||||
|
|||||||
Reference in New Issue
Block a user