diff options
author | Saul Wold <sgw@linux.intel.com> | 2011-04-06 15:15:56 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-04-08 06:14:55 -0700 |
commit | 7576eba58cdfebf0606623c25ae969ef52774099 (patch) | |
tree | d70de07bdb25656c7286dadc08fe21638e87fe8d /meta | |
parent | 7ddc746e5af70b4a96e7f49e82cb7520cf89d331 (diff) | |
download | poky-7576eba58cdfebf0606623c25ae969ef52774099.tar.gz |
createrepo: Update to 0.9.9
(From OE-Core rev: ec0a97d918ffac153a5734c54bf9d77eb0ea61b1)
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-support/createrepo/createrepo/fix-native-install.patch | 88 | ||||
-rw-r--r-- | meta/recipes-support/createrepo/createrepo_0.9.9.bb (renamed from meta/recipes-support/createrepo/createrepo_0.4.11.bb) | 7 |
2 files changed, 49 insertions, 46 deletions
diff --git a/meta/recipes-support/createrepo/createrepo/fix-native-install.patch b/meta/recipes-support/createrepo/createrepo/fix-native-install.patch index 2ed2202e77..53266b5444 100644 --- a/meta/recipes-support/createrepo/createrepo/fix-native-install.patch +++ b/meta/recipes-support/createrepo/createrepo/fix-native-install.patch | |||
@@ -4,19 +4,24 @@ There are two fixes: | |||
4 | 1. -native needs to customize prefix | 4 | 1. -native needs to customize prefix |
5 | 2. needs to change python reference in binaries | 5 | 2. needs to change python reference in binaries |
6 | 6 | ||
7 | Upstream-Status: Inappropriate [native] | ||
8 | |||
7 | Signed-off-by: Qing He <qing.he@intel.com> | 9 | Signed-off-by: Qing He <qing.he@intel.com> |
10 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
8 | 11 | ||
9 | diff --git a/Makefile b/Makefile | 12 | Index: createrepo-0.9.9/Makefile |
10 | index b2d1a32..3c3639f 100644 | 13 | =================================================================== |
11 | --- a/Makefile | 14 | --- createrepo-0.9.9.orig/Makefile 2011-01-26 09:14:30.000000000 -0800 |
12 | +++ b/Makefile | 15 | +++ createrepo-0.9.9/Makefile 2011-04-06 14:12:06.608923997 -0700 |
13 | @@ -3,22 +3,22 @@ VERSION = 0.4.11 | 16 | @@ -10,22 +10,22 @@ |
14 | SHELL = /bin/sh | 17 | SHELL = /bin/sh |
15 | top_srcdir = . | 18 | top_srcdir = . |
16 | srcdir = . | 19 | srcdir = . |
17 | -prefix = /usr | 20 | -prefix = /usr |
18 | -exec_prefix = ${prefix} | 21 | -exec_prefix = ${prefix} |
19 | - | 22 | +prefix ?= /usr |
23 | +exec_prefix ?= ${prefix} | ||
24 | |||
20 | -bindir = ${exec_prefix}/bin | 25 | -bindir = ${exec_prefix}/bin |
21 | -sbindir = ${exec_prefix}/sbin | 26 | -sbindir = ${exec_prefix}/sbin |
22 | -libexecdir = ${exec_prefix}/libexec | 27 | -libexecdir = ${exec_prefix}/libexec |
@@ -26,9 +31,6 @@ index b2d1a32..3c3639f 100644 | |||
26 | -localstatedir = ${prefix}/var | 31 | -localstatedir = ${prefix}/var |
27 | -libdir = ${exec_prefix}/lib | 32 | -libdir = ${exec_prefix}/lib |
28 | -infodir = ${prefix}/info | 33 | -infodir = ${prefix}/info |
29 | +prefix ?= /usr | ||
30 | +exec_prefix ?= ${prefix} | ||
31 | + | ||
32 | +bindir ?= ${exec_prefix}/bin | 34 | +bindir ?= ${exec_prefix}/bin |
33 | +sbindir ?= ${exec_prefix}/sbin | 35 | +sbindir ?= ${exec_prefix}/sbin |
34 | +libexecdir ?= ${exec_prefix}/libexec | 36 | +libexecdir ?= ${exec_prefix}/libexec |
@@ -45,19 +47,21 @@ index b2d1a32..3c3639f 100644 | |||
45 | -mandir = ${prefix}/share/man | 47 | -mandir = ${prefix}/share/man |
46 | +mandir ?= ${prefix}/share/man | 48 | +mandir ?= ${prefix}/share/man |
47 | 49 | ||
48 | pkgdatadir = $(datadir)/$(PACKAGE) | 50 | pkgdatadir = $(datadir)/$(PKGNAME) |
49 | pkglibdir = $(libdir)/$(PACKAGE) | 51 | pkglibdir = $(libdir)/$(PKGNAME) |
50 | diff --git a/bin/Makefile b/bin/Makefile | 52 | Index: createrepo-0.9.9/bin/Makefile |
51 | index 52c1f50..e30610e 100644 | 53 | =================================================================== |
52 | --- a/bin/Makefile | 54 | --- createrepo-0.9.9.orig/bin/Makefile 2011-01-26 09:14:30.000000000 -0800 |
53 | +++ b/bin/Makefile | 55 | +++ createrepo-0.9.9/bin/Makefile 2011-04-06 14:15:07.212923998 -0700 |
54 | @@ -1,22 +1,22 @@ | 56 | @@ -1,22 +1,22 @@ |
55 | SHELL = /bin/sh | 57 | SHELL = /bin/sh |
56 | top_srcdir = .. | 58 | top_srcdir = .. |
57 | srcdir = ../bin | 59 | srcdir = ../bin |
58 | -prefix = /usr | 60 | -prefix = /usr |
59 | -exec_prefix = ${prefix} | 61 | -exec_prefix = ${prefix} |
60 | - | 62 | +prefix ?= /usr |
63 | +exec_prefix ?= ${prefix} | ||
64 | |||
61 | -bindir = ${exec_prefix}/bin | 65 | -bindir = ${exec_prefix}/bin |
62 | -sbindir = ${exec_prefix}/sbin | 66 | -sbindir = ${exec_prefix}/sbin |
63 | -libexecdir = ${exec_prefix}/libexec | 67 | -libexecdir = ${exec_prefix}/libexec |
@@ -67,9 +71,6 @@ index 52c1f50..e30610e 100644 | |||
67 | -localstatedir = ${prefix}/var | 71 | -localstatedir = ${prefix}/var |
68 | -libdir = ${exec_prefix}/lib | 72 | -libdir = ${exec_prefix}/lib |
69 | -infodir = ${prefix}/info | 73 | -infodir = ${prefix}/info |
70 | +prefix ?= /usr | ||
71 | +exec_prefix ?= ${prefix} | ||
72 | + | ||
73 | +bindir ?= ${exec_prefix}/bin | 74 | +bindir ?= ${exec_prefix}/bin |
74 | +sbindir ?= ${exec_prefix}/sbin | 75 | +sbindir ?= ${exec_prefix}/sbin |
75 | +libexecdir ?= ${exec_prefix}/libexec | 76 | +libexecdir ?= ${exec_prefix}/libexec |
@@ -86,49 +87,55 @@ index 52c1f50..e30610e 100644 | |||
86 | -mandir = ${prefix}/man | 87 | -mandir = ${prefix}/man |
87 | +mandir ?= ${prefix}/man | 88 | +mandir ?= ${prefix}/man |
88 | 89 | ||
89 | pkgdatadir = $(datadir)/$(PACKAGE) | 90 | pkgdatadir = $(datadir)/$(PKGNAME) |
90 | pkglibdir = $(libdir)/$(PACKAGE) | 91 | pkglibdir = $(libdir)/$(PKGNAME) |
91 | @@ -40,8 +40,11 @@ all: $(srcdir)/$(PACKAGE) | 92 | @@ -41,9 +41,14 @@ |
92 | 93 | ||
93 | 94 | ||
94 | install: all installdirs | 95 | install: all installdirs |
95 | - $(INSTALL_BIN) $(srcdir)/$(PACKAGE) $(DESTDIR)$(bindir)/$(PACKAGE) | 96 | - $(INSTALL_BIN) $(srcdir)/$(PKGNAME) $(DESTDIR)$(bindir)/$(PKGNAME) |
96 | - $(INSTALL_BIN) $(srcdir)/modifyrepo $(DESTDIR)$(bindir)/modifyrepo | 97 | - $(INSTALL_BIN) $(srcdir)/modifyrepo $(DESTDIR)$(bindir)/modifyrepo |
98 | - $(INSTALL_BIN) $(srcdir)/mergerepo $(DESTDIR)$(bindir)/mergerepo | ||
97 | + sed -e "s|@DATADIR@|$(datadir)|" $(srcdir)/$(PACKAGE) > $(srcdir)/$(PACKAGE).tmp | 99 | + sed -e "s|@DATADIR@|$(datadir)|" $(srcdir)/$(PACKAGE) > $(srcdir)/$(PACKAGE).tmp |
98 | + sed -e "s|@DATADIR@|$(datadir)|" $(srcdir)/modifyrepo > $(srcdir)/modifyrepo.tmp | 100 | + sed -e "s|@DATADIR@|$(datadir)|" $(srcdir)/modifyrepo > $(srcdir)/modifyrepo.tmp |
101 | + sed -e "s|@DATADIR@|$(datadir)|" $(srcdir)/mergerepo > $(srcdir)/mergerepo.tmp | ||
99 | + $(INSTALL_BIN) $(srcdir)/$(PACKAGE).tmp $(DESTDIR)$(bindir)/$(PACKAGE) | 102 | + $(INSTALL_BIN) $(srcdir)/$(PACKAGE).tmp $(DESTDIR)$(bindir)/$(PACKAGE) |
100 | + $(INSTALL_BIN) $(srcdir)/modifyrepo.tmp $(DESTDIR)$(bindir)/modifyrepo | 103 | + $(INSTALL_BIN) $(srcdir)/modifyrepo.tmp $(DESTDIR)$(bindir)/modifyrepo |
101 | + rm -f $(srcdir)/$(PACKAGE).tmp $(srcdir)/modifyrepo.tmp | 104 | + $(INSTALL_BIN) $(srcdir)/mergerepo.tmp $(DESTDIR)$(bindir)/mergerepo |
105 | + rm -f $(srcdir)/$(PACKAGE).tmp $(srcdir)/modifyrepo.tmp $(srcdir)/mergerepo.tmp | ||
106 | + | ||
102 | 107 | ||
103 | 108 | ||
104 | uninstall: | 109 | uninstall: |
105 | diff --git a/bin/createrepo b/bin/createrepo | 110 | Index: createrepo-0.9.9/bin/createrepo |
106 | index b0de515..eaacb39 100755 | 111 | =================================================================== |
107 | --- a/bin/createrepo | 112 | --- createrepo-0.9.9.orig/bin/createrepo 2011-01-26 09:14:30.000000000 -0800 |
108 | +++ b/bin/createrepo | 113 | +++ createrepo-0.9.9/bin/createrepo 2011-04-06 14:12:06.608923997 -0700 |
109 | @@ -1,2 +1,2 @@ | 114 | @@ -1,2 +1,2 @@ |
110 | #!/bin/sh | 115 | #!/bin/sh |
111 | -exec /usr/share/createrepo/genpkgmetadata.py "$@" | 116 | -exec /usr/share/createrepo/genpkgmetadata.py "$@" |
112 | +exec @DATADIR@/createrepo/genpkgmetadata.py "$@" | 117 | +exec @DATADIR@/createrepo/genpkgmetadata.py "$@" |
113 | diff --git a/bin/modifyrepo b/bin/modifyrepo | 118 | Index: createrepo-0.9.9/bin/modifyrepo |
114 | index c9732d8..6f7c1d4 100755 | 119 | =================================================================== |
115 | --- a/bin/modifyrepo | 120 | --- createrepo-0.9.9.orig/bin/modifyrepo 2011-01-26 09:14:30.000000000 -0800 |
116 | +++ b/bin/modifyrepo | 121 | +++ createrepo-0.9.9/bin/modifyrepo 2011-04-06 14:12:06.608923997 -0700 |
117 | @@ -1,2 +1,2 @@ | 122 | @@ -1,2 +1,2 @@ |
118 | #!/bin/sh | 123 | #!/bin/sh |
119 | -exec /usr/share/createrepo/modifyrepo.py "$@" | 124 | -exec /usr/share/createrepo/modifyrepo.py "$@" |
120 | +exec @DATADIR@/createrepo/modifyrepo.py "$@" | 125 | +exec @DATADIR@/createrepo/modifyrepo.py "$@" |
121 | diff --git a/docs/Makefile b/docs/Makefile | 126 | Index: createrepo-0.9.9/docs/Makefile |
122 | index 0a41179..e128c85 100644 | 127 | =================================================================== |
123 | --- a/docs/Makefile | 128 | --- createrepo-0.9.9.orig/docs/Makefile 2011-01-26 09:14:30.000000000 -0800 |
124 | +++ b/docs/Makefile | 129 | +++ createrepo-0.9.9/docs/Makefile 2011-04-06 14:12:06.608923997 -0700 |
125 | @@ -1,22 +1,22 @@ | 130 | @@ -1,22 +1,22 @@ |
126 | SHELL = /bin/sh | 131 | SHELL = /bin/sh |
127 | top_srcdir = .. | 132 | top_srcdir = .. |
128 | srcdir = ../docs | 133 | srcdir = ../docs |
129 | -prefix = /usr | 134 | -prefix = /usr |
130 | -exec_prefix = ${prefix} | 135 | -exec_prefix = ${prefix} |
131 | - | 136 | +prefix ?= /usr |
137 | +exec_prefix ?= ${prefix} | ||
138 | |||
132 | -bindir = ${exec_prefix}/bin | 139 | -bindir = ${exec_prefix}/bin |
133 | -sbindir = ${exec_prefix}/sbin | 140 | -sbindir = ${exec_prefix}/sbin |
134 | -libexecdir = ${exec_prefix}/libexec | 141 | -libexecdir = ${exec_prefix}/libexec |
@@ -138,9 +145,6 @@ index 0a41179..e128c85 100644 | |||
138 | -localstatedir = ${prefix}/var | 145 | -localstatedir = ${prefix}/var |
139 | -libdir = ${exec_prefix}/lib | 146 | -libdir = ${exec_prefix}/lib |
140 | -infodir = ${prefix}/info | 147 | -infodir = ${prefix}/info |
141 | +prefix ?= /usr | ||
142 | +exec_prefix ?= ${prefix} | ||
143 | + | ||
144 | +bindir ?= ${exec_prefix}/bin | 148 | +bindir ?= ${exec_prefix}/bin |
145 | +sbindir ?= ${exec_prefix}/sbin | 149 | +sbindir ?= ${exec_prefix}/sbin |
146 | +libexecdir ?= ${exec_prefix}/libexec | 150 | +libexecdir ?= ${exec_prefix}/libexec |
@@ -157,5 +161,5 @@ index 0a41179..e128c85 100644 | |||
157 | -mandir = ${datadir}/man | 161 | -mandir = ${datadir}/man |
158 | +mandir ?= ${datadir}/man | 162 | +mandir ?= ${datadir}/man |
159 | 163 | ||
160 | pkgdatadir = $(datadir)/$(PACKAGE) | 164 | pkgdatadir = $(datadir)/$(PKGNAME) |
161 | pkglibdir = $(libdir)/$(PACKAGE) | 165 | pkglibdir = $(libdir)/$(PKGNAME) |
diff --git a/meta/recipes-support/createrepo/createrepo_0.4.11.bb b/meta/recipes-support/createrepo/createrepo_0.9.9.bb index ba1d04b2bd..89f18f4e1c 100644 --- a/meta/recipes-support/createrepo/createrepo_0.4.11.bb +++ b/meta/recipes-support/createrepo/createrepo_0.9.9.bb | |||
@@ -4,14 +4,13 @@ HOMEPAGE = "http://createrepo.baseurl.org/" | |||
4 | LICENSE = "GPLv2+" | 4 | LICENSE = "GPLv2+" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760" |
6 | 6 | ||
7 | PR = "r1" | 7 | PR = "r0" |
8 | 8 | ||
9 | SRC_URI= "http://createrepo.baseurl.org/download/${BP}.tar.gz \ | 9 | SRC_URI= "http://createrepo.baseurl.org/download/${BP}.tar.gz \ |
10 | file://fix-native-install.patch \ | 10 | file://fix-native-install.patch \ |
11 | " | 11 | " |
12 | 12 | SRC_URI[md5sum] = "10641f19a40e9f633b300e23dde00349" | |
13 | SRC_URI[md5sum] = "3e9ccf4abcffe3f49af078c83611eda2" | 13 | SRC_URI[sha256sum] = "ee897463837b299fb20bf6e970f8c5324cd8b7f26ad3675a9938a2d7ae42ff03" |
14 | SRC_URI[sha256sum] = "a73ae11a0dcde8bde36d900bc3f7f8f1083ba752c70a5c61b72d1e1e7608f21b" | ||
15 | 14 | ||
16 | BBCLASSEXTEND = "native" | 15 | BBCLASSEXTEND = "native" |
17 | 16 | ||