diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2014-07-02 19:57:47 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-08 11:20:12 +0100 |
commit | 5f27f553ebfe4b4c4e47b44d42466a7992bd66b9 (patch) | |
tree | 230aa7d5222d8a193516d073028972245c8cc880 /meta/recipes-devtools | |
parent | 7bf5341007c188463baa7c331fcd945aedf67b1d (diff) | |
download | poky-5f27f553ebfe4b4c4e47b44d42466a7992bd66b9.tar.gz |
rpm_5.4+cvs: Add RPM community tree for future development
Enable the rpm-5_4 branch via a specific recipe to help track the latest
community development. This should allow us to more quickly move to the next
release when it is available.
(From OE-Core rev: c461454d7f3a20ccf9ca20c5c41c80c9becd985c)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/rpm/rpm/rpm-rpmpgp-fix.patch | 67 | ||||
-rw-r--r-- | meta/recipes-devtools/rpm/rpm_5.4+cvs.bb | 529 |
2 files changed, 596 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rpm/rpm/rpm-rpmpgp-fix.patch b/meta/recipes-devtools/rpm/rpm/rpm-rpmpgp-fix.patch new file mode 100644 index 0000000000..fcbc25df0e --- /dev/null +++ b/meta/recipes-devtools/rpm/rpm/rpm-rpmpgp-fix.patch | |||
@@ -0,0 +1,67 @@ | |||
1 | rpmpgp.c: Add missing if defs around crypto implementations | ||
2 | |||
3 | Without these, the system will error trying to find the correct crypto | ||
4 | library to use. | ||
5 | |||
6 | Upstream-status: Pending | ||
7 | |||
8 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
9 | |||
10 | Index: rpm/rpmio/rpmpgp.c | ||
11 | =================================================================== | ||
12 | --- rpm.orig/rpmio/rpmpgp.c | ||
13 | +++ rpm/rpmio/rpmpgp.c | ||
14 | @@ -1339,16 +1339,26 @@ int pgpExportPubkey(pgpDig dig) | ||
15 | { | ||
16 | int rc = 0; /* assume failure */ | ||
17 | |||
18 | +#if defined(WITH_BEECRYPT) | ||
19 | if (pgpImplVecs == &rpmbcImplVecs) | ||
20 | rc = rpmbcExportPubkey(dig); | ||
21 | +#endif | ||
22 | +#if defined(WITH_SSL) | ||
23 | if (pgpImplVecs == &rpmsslImplVecs) | ||
24 | rc = rpmsslExportPubkey(dig); | ||
25 | +#endif | ||
26 | +#if defined(WITH_NSS) | ||
27 | if (pgpImplVecs == &rpmnssImplVecs) | ||
28 | rc = rpmnssExportPubkey(dig); | ||
29 | +#endif | ||
30 | +#if defined(WITH_GCRYPT) | ||
31 | if (pgpImplVecs == &rpmgcImplVecs) | ||
32 | rc = rpmgcExportPubkey(dig); | ||
33 | +#endif | ||
34 | +#if defined(WITH_TOMCRYPT) | ||
35 | if (pgpImplVecs == &rpmltcImplVecs) | ||
36 | rc = rpmltcExportPubkey(dig); | ||
37 | +#endif | ||
38 | return rc; | ||
39 | } | ||
40 | |||
41 | @@ -1356,16 +1366,26 @@ int pgpExportSignature(pgpDig dig, DIGES | ||
42 | { | ||
43 | int rc = 0; /* assume failure */ | ||
44 | |||
45 | +#if defined(WITH_BEECRYPT) | ||
46 | if (pgpImplVecs == &rpmbcImplVecs) | ||
47 | rc = rpmbcExportSignature(dig, ctx); | ||
48 | +#endif | ||
49 | +#if defined(WITH_SSL) | ||
50 | if (pgpImplVecs == &rpmsslImplVecs) | ||
51 | rc = rpmsslExportSignature(dig, ctx); | ||
52 | +#endif | ||
53 | +#if defined(WITH_NSS) | ||
54 | if (pgpImplVecs == &rpmnssImplVecs) | ||
55 | rc = rpmnssExportSignature(dig, ctx); | ||
56 | +#endif | ||
57 | +#if defined(WITH_GCRYPT) | ||
58 | if (pgpImplVecs == &rpmgcImplVecs) | ||
59 | rc = rpmgcExportSignature(dig, ctx); | ||
60 | +#endif | ||
61 | +#if defined(WITH_TOMCRYPT) | ||
62 | if (pgpImplVecs == &rpmltcImplVecs) | ||
63 | rc = rpmltcExportSignature(dig, ctx); | ||
64 | +#endif | ||
65 | return rc; | ||
66 | } | ||
67 | |||
diff --git a/meta/recipes-devtools/rpm/rpm_5.4+cvs.bb b/meta/recipes-devtools/rpm/rpm_5.4+cvs.bb new file mode 100644 index 0000000000..4ab22e7602 --- /dev/null +++ b/meta/recipes-devtools/rpm/rpm_5.4+cvs.bb | |||
@@ -0,0 +1,529 @@ | |||
1 | SUMMARY = "The RPM package management system" | ||
2 | DESCRIPTION = "The RPM Package Manager (RPM) is a powerful command line driven \ | ||
3 | package management system capable of installing, uninstalling, \ | ||
4 | verifying, querying, and updating software packages. Each software \ | ||
5 | package consists of an archive of files along with information about \ | ||
6 | the package like its version, a description, etc." | ||
7 | |||
8 | SUMMARY_${PN}-libs = "Libraries for manipulating RPM packages" | ||
9 | DESCRIPTION_${PN}-libs = "This package contains the RPM shared libraries." | ||
10 | |||
11 | SUMMARY_${PN}-dev = "Development files for manipulating RPM packages" | ||
12 | DESCRIPTION_${PN}-dev = "This package contains the RPM C library and header files. These \ | ||
13 | development files will simplify the process of writing programs that \ | ||
14 | manipulate RPM packages and databases. These files are intended to \ | ||
15 | simplify the process of creating graphical package managers or any \ | ||
16 | other tools that need an intimate knowledge of RPM packages in order \ | ||
17 | to function." | ||
18 | |||
19 | SUMMARY_${PN}-common = "Common RPM paths, scripts, documentation and configuration" | ||
20 | DESCRIPTION_${PN}-common = "The rpm-common package contains paths, scripts, documentation \ | ||
21 | and configuration common between RPM Package Manager." | ||
22 | |||
23 | SUMMARY_${PN}-build = "Scripts and executable programs used to build packages" | ||
24 | DESCRIPTION_${PN}-build = "The rpm-build packagec ontains the scripts and executable programs \ | ||
25 | that are used to build packages using the RPM Package Manager." | ||
26 | |||
27 | SUMMARY_python-rpm = "Python bindings for apps which will manupulate RPM packages" | ||
28 | DESCRIPTION_python-rpm = "The rpm-python package contains a module that permits applications \ | ||
29 | written in the Python programming language to use the interface \ | ||
30 | supplied by the RPM Package Manager libraries." | ||
31 | |||
32 | SUMMARY_perl-module-rpm = "Perl bindings for apps which will manipulate RPM packages" | ||
33 | DESCRIPTION_perl-modules-rpm = "The perl-modules-rpm package contains a module that permits applications \ | ||
34 | written in the Perl programming language to use the interface \ | ||
35 | supplied by the RPM Package Manager libraries." | ||
36 | |||
37 | SUMMARY_perl-module-rpm-dev = "Development components for perl bindings" | ||
38 | DESCRIPTION_perl-modules-rpm-dev = "Development items such as man pages for use with the Perl \ | ||
39 | language bindings." | ||
40 | |||
41 | HOMEPAGE = "http://rpm5.org/" | ||
42 | LICENSE = "LGPLv2.1" | ||
43 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1" | ||
44 | |||
45 | DEPENDS = "libpcre attr acl popt ossp-uuid file byacc-native" | ||
46 | |||
47 | S = "${WORKDIR}/rpm" | ||
48 | |||
49 | # Apply various fixups that are unique to the CVS environment | ||
50 | do_fixup_unpack () { | ||
51 | ln -sf ../syck ${S}/syck || : | ||
52 | ln -sf ../lua ${S}/lua || : | ||
53 | ln ${S}/rpmqv.c ${S}/rpmqv.cc || : | ||
54 | } | ||
55 | |||
56 | addtask fixup_unpack after do_unpack before do_patch | ||
57 | |||
58 | # This recipe is really designed for development... to Try out the latest | ||
59 | # community work in progress. | ||
60 | DEFAULT_PREFERENCE = "-1" | ||
61 | |||
62 | # rpm2cpio is a shell script, which is part of the rpm src.rpm. It is needed | ||
63 | # in order to extract the distribution SRPM into a format we can extract... | ||
64 | SRC_URI = "cvs://anonymous@rpm5.org/cvs;tag=rpm-5_4;module=rpm \ | ||
65 | cvs://anonymous@rpm5.org/cvs;tag=rpm-5_4;module=syck \ | ||
66 | cvs://anonymous@rpm5.org/cvs;tag=rpm-5_4;module=lua \ | ||
67 | file://rpm-log-auto-rm.patch \ | ||
68 | file://rpm-db-reduce.patch \ | ||
69 | file://perfile_rpmdeps.sh \ | ||
70 | file://rpm-autogen.patch \ | ||
71 | file://rpm-libsql-fix.patch \ | ||
72 | file://header-include-fix.patch \ | ||
73 | file://rpm-platform.patch \ | ||
74 | file://rpm-showrc.patch \ | ||
75 | file://rpm-tools-mtree-LDFLAGS.patch \ | ||
76 | file://rpm-fileclass.patch \ | ||
77 | file://rpm-canonarch.patch \ | ||
78 | file://rpm-no-loopmsg.patch \ | ||
79 | file://rpm-scriptletexechelper.patch \ | ||
80 | file://pythondeps.sh \ | ||
81 | file://rpmdeps-oecore.patch \ | ||
82 | file://rpm-resolvedep.patch \ | ||
83 | file://rpm-no-perl-urpm.patch \ | ||
84 | file://rpm-macros.patch \ | ||
85 | file://rpm-lua.patch \ | ||
86 | file://rpm-ossp-uuid.patch \ | ||
87 | file://rpm-packageorigin.patch \ | ||
88 | file://rpm-pkgconfigdeps.patch \ | ||
89 | file://uclibc-support.patch \ | ||
90 | file://rpmatch.patch \ | ||
91 | file://fstack-protector-configure-check.patch \ | ||
92 | file://dbconvert.patch \ | ||
93 | file://rpm-uuid-include.patch \ | ||
94 | file://makefile-am-exec-hook.patch \ | ||
95 | file://rpm-db_buffer_small.patch \ | ||
96 | file://rpm-py-init.patch \ | ||
97 | file://python-rpm-rpmsense.patch \ | ||
98 | file://rpm-reloc-macros.patch \ | ||
99 | file://rpm-platform2.patch \ | ||
100 | file://rpm-remove-sykcparse-decl.patch \ | ||
101 | file://debugedit-segv.patch \ | ||
102 | file://debugedit-valid-file-to-fix-segment-fault.patch \ | ||
103 | file://rpm-platform-file-fix.patch \ | ||
104 | file://rpm-lsb-compatibility.patch \ | ||
105 | file://rpm-tag-generate-endian-conversion-fix.patch \ | ||
106 | file://rpm-hardlink-segfault-fix.patch \ | ||
107 | file://rpm-payload-use-hashed-inode.patch \ | ||
108 | file://rpm-fix-logio-cp.patch \ | ||
109 | file://rpm-db5-or-db6.patch \ | ||
110 | file://rpm-rpmpgp-fix.patch \ | ||
111 | " | ||
112 | |||
113 | # Uncomment the following line to enable platform score debugging | ||
114 | # This is useful when identifying issues with Smart being unable | ||
115 | # to process certain package feeds. | ||
116 | #SRC_URI += "file://rpm-debug-platform.patch" | ||
117 | |||
118 | inherit autotools gettext | ||
119 | |||
120 | acpaths = "-I ${S}/db/dist/aclocal -I ${S}/db/dist/aclocal_java" | ||
121 | |||
122 | # Specify the default rpm macros in terms of adjustable variables | ||
123 | rpm_macros = "%{_usrlibrpm}/macros:%{_usrlibrpm}/poky/macros:%{_usrlibrpm}/poky/%{_target}/macros:%{_etcrpm}/macros.*:%{_etcrpm}/macros:%{_etcrpm}/%{_target}/macros:~/.oerpmmacros" | ||
124 | rpm_macros_class-native = "%{_usrlibrpm}/macros:%{_usrlibrpm}/poky/macros:%{_usrlibrpm}/poky/%{_target}/macros:~/.oerpmmacros" | ||
125 | rpm_macros_class-nativesdk = "%{_usrlibrpm}/macros:%{_usrlibrpm}/poky/macros:%{_usrlibrpm}/poky/%{_target}/macros:~/.oerpmmacros" | ||
126 | |||
127 | # sqlite lua tcl augeas nss gcrypt neon xz xar keyutils perl selinux | ||
128 | |||
129 | # Note: perl and sqlite w/o db specified does not currently work. | ||
130 | # tcl, augeas, nss, gcrypt, xar and keyutils support is untested. | ||
131 | PACKAGECONFIG ??= "db bzip2 zlib beecrypt openssl libelf python" | ||
132 | |||
133 | PACKAGECONFIG[bzip2] = "--with-bzip2,--without-bzip2,bzip2," | ||
134 | PACKAGECONFIG[xz] = "--with-xz,--without-xz,xz," | ||
135 | PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib," | ||
136 | PACKAGECONFIG[xar] = "--with-xar,--without-xar,xar," | ||
137 | |||
138 | WITH_PYTHON = " --with-python=${PYTHON_BASEVERSION} \ | ||
139 | --with-python-inc-dir=${STAGING_INCDIR}/python${PYTHON_BASEVERSION} \ | ||
140 | --with-python-lib-dir=${libdir}/python${PYTHON_BASEVERSION}/site-packages \ | ||
141 | --without-pythonembed" | ||
142 | PACKAGECONFIG[python] = "${WITH_PYTHON},--without-python,python," | ||
143 | |||
144 | # Perl modules are not built, but they could be enabled fairly easily | ||
145 | # the perl module creation and installation would need to be patched. | ||
146 | # (currently has host perl contamination issues) | ||
147 | WITH_PERL = "--with-perl --without-perlembed --without-perl-urpm" | ||
148 | WITHOUT_PERL = "--without-perl --without-perl-urpm" | ||
149 | PACKAGECONFIG[perl] = "${WITH_PERL},${WITHOUT_PERL},perl," | ||
150 | |||
151 | # The --with-dbsql will only tell RPM to check for support, db | ||
152 | # may or may not be built w/ the dbsql support. | ||
153 | WITH_DB = "--with-db --with-dbsql --without-db-tools-integrated" | ||
154 | PACKAGECONFIG[db] = "${WITH_DB},--without-db,db," | ||
155 | |||
156 | PACKAGECONFIG[sqlite] = "--with-sqlite,--without-sqlite,sqlite3," | ||
157 | |||
158 | PACKAGECONFIG[beecrypt] = "--with-beecrypt=external,--without-beecrypt,beecrypt," | ||
159 | PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl," | ||
160 | PACKAGECONFIG[nss] = "--with-nss,--without-nss,nss," | ||
161 | PACKAGECONFIG[gcrypt] = "--with-gcrypt,--without-gcrypt,gcrypt," | ||
162 | PACKAGECONFIG[keyutils] = "--with-keyutils,--without-keyutils,keyutils," | ||
163 | PACKAGECONFIG[libelf] = "--with-libelf,--without-libelf,elfutils," | ||
164 | |||
165 | WITH_SELINUX = "--with-selinux --with-sepol --with-semanage" | ||
166 | WITHOUT_SELINUX = "--without-selinux --without-sepol --without-semanage" | ||
167 | PACKAGECONFIG[selinux] = "${WITH_SELINUX},${WITHOUT_SELINUX},libselinux," | ||
168 | |||
169 | WITH_NEON = "--with-neon --with-libproxy --with-expat --without-gssapi" | ||
170 | WITHOUT_NEON = "--without-neon --without-libproxy --without-expat --without-gssapi" | ||
171 | PACKAGECONFIG[neon] = "${WITH_NEON},${WITHOUT_NEON},neon expat," | ||
172 | |||
173 | PACKAGECONFIG[lua] = "--with-lua,--without-lua,expat," | ||
174 | PACKAGECONFIG[tcl] = "--with-tcl,--without-tcl,tcl," | ||
175 | |||
176 | PACKAGECONFIG[augeas] = "--with-augeas,--without-augeas,augeas," | ||
177 | |||
178 | EXTRA_OECONF += "--verbose \ | ||
179 | --sysconfdir=${sysconfdir} \ | ||
180 | --with-file \ | ||
181 | --with-path-magic=%{_usrlibrpm}/../../share/misc/magic.mgc \ | ||
182 | --with-syck=internal \ | ||
183 | --without-readline \ | ||
184 | --without-libtasn1 \ | ||
185 | --without-pakchois \ | ||
186 | --without-gnutls \ | ||
187 | --with-pcre \ | ||
188 | --enable-utf8 \ | ||
189 | --with-uuid \ | ||
190 | --with-attr \ | ||
191 | --with-acl \ | ||
192 | --with-popt=external \ | ||
193 | --with-pthreads \ | ||
194 | --without-cudf \ | ||
195 | --without-ficl \ | ||
196 | --without-aterm \ | ||
197 | --without-nix \ | ||
198 | --without-bash \ | ||
199 | --without-rc \ | ||
200 | --without-js \ | ||
201 | --without-gpsee \ | ||
202 | --without-ruby \ | ||
203 | --without-squirrel \ | ||
204 | --with-build-extlibdep \ | ||
205 | --with-build-maxextlibdep \ | ||
206 | --without-valgrind \ | ||
207 | --disable-openmp \ | ||
208 | --enable-build-pic \ | ||
209 | --enable-build-versionscript \ | ||
210 | --enable-build-warnings \ | ||
211 | --enable-build-debug \ | ||
212 | --enable-maintainer-mode \ | ||
213 | --with-path-macros=${rpm_macros} \ | ||
214 | --with-path-lib=${libdir}/rpm \ | ||
215 | --with-bugreport=http://bugzilla.yoctoproject.org \ | ||
216 | --program-prefix= \ | ||
217 | YACC=byacc" | ||
218 | |||
219 | CFLAGS_append = " -DRPM_VENDOR_WINDRIVER -DRPM_VENDOR_POKY -DRPM_VENDOR_OE" | ||
220 | |||
221 | LDFLAGS_append_libc-uclibc = "-lrt -lpthread" | ||
222 | |||
223 | PACKAGES = "${PN}-dbg ${PN} ${PN}-doc ${PN}-libs ${PN}-dev ${PN}-staticdev ${PN}-common ${PN}-build python-rpm-dbg python-rpm-staticdev python-rpm-dev python-rpm perl-module-rpm perl-module-rpm-dev ${PN}-locale" | ||
224 | |||
225 | SOLIBS = "5.4.so" | ||
226 | |||
227 | # Based on %files section in the rpm.spec | ||
228 | |||
229 | FILES_${PN} = "${bindir}/rpm \ | ||
230 | ${bindir}/rpmconstant \ | ||
231 | ${libdir}/rpm/rpm.* \ | ||
232 | ${libdir}/rpm/tgpg \ | ||
233 | ${libdir}/rpm/macros \ | ||
234 | ${libdir}/rpm/rpmpopt \ | ||
235 | ${libdir}/rpm/rpm2cpio \ | ||
236 | ${libdir}/rpm/vcheck \ | ||
237 | ${libdir}/rpm/helpers \ | ||
238 | ${libdir}/rpm/qf \ | ||
239 | ${libdir}/rpm/cpuinfo.yaml \ | ||
240 | ${libdir}/rpm/bin/mtree \ | ||
241 | ${libdir}/rpm/bin/rpmkey \ | ||
242 | ${libdir}/rpm/bin/rpmrepo \ | ||
243 | ${libdir}/rpm/bin/rpmrepo.real \ | ||
244 | ${libdir}/rpm/bin/rpmspecdump \ | ||
245 | ${libdir}/rpm/bin/rpmspecdump.real \ | ||
246 | ${libdir}/rpm/bin/wget \ | ||
247 | ${localstatedir}/cache \ | ||
248 | ${localstatedir}/cache/rpm \ | ||
249 | ${localstatedir}/cache/wdj \ | ||
250 | ${localstatedir}/lib \ | ||
251 | ${localstatedir}/lib/rpm \ | ||
252 | ${localstatedir}/lib/wdj \ | ||
253 | ${bindir}/rpm.real \ | ||
254 | ${bindir}/rpmconstant.real \ | ||
255 | ${bindir}/rpm2cpio.real \ | ||
256 | " | ||
257 | |||
258 | FILES_${PN}-dbg += "${libdir}/rpm/.debug \ | ||
259 | ${libdir}/rpm/bin/.debug \ | ||
260 | " | ||
261 | |||
262 | FILES_${PN}-common = "${bindir}/rpm2cpio \ | ||
263 | ${bindir}/gendiff \ | ||
264 | ${sysconfdir}/rpm \ | ||
265 | ${localstatedir}/spool/repackage \ | ||
266 | " | ||
267 | |||
268 | FILES_${PN}-libs = "${libdir}/librpm-*.so \ | ||
269 | ${libdir}/librpmconstant-*.so \ | ||
270 | ${libdir}/librpmdb-*.so \ | ||
271 | ${libdir}/librpmio-*.so \ | ||
272 | ${libdir}/librpmmisc-*.so \ | ||
273 | ${libdir}/librpmbuild-*.so \ | ||
274 | " | ||
275 | |||
276 | RDEPENDS_${PN}-build += "bash" | ||
277 | |||
278 | FILES_${PN}-build = "${prefix}/src/rpm \ | ||
279 | ${bindir}/rpmbuild \ | ||
280 | ${bindir}/rpmbuild.real \ | ||
281 | ${libdir}/rpm/brp-* \ | ||
282 | ${libdir}/rpm/check-files \ | ||
283 | ${libdir}/rpm/cross-build \ | ||
284 | ${libdir}/rpm/find-debuginfo.sh \ | ||
285 | ${libdir}/rpm/find-lang.sh \ | ||
286 | ${libdir}/rpm/find-prov.pl \ | ||
287 | ${libdir}/rpm/find-provides.perl \ | ||
288 | ${libdir}/rpm/find-req.pl \ | ||
289 | ${libdir}/rpm/find-requires.perl \ | ||
290 | ${libdir}/rpm/getpo.sh \ | ||
291 | ${libdir}/rpm/http.req \ | ||
292 | ${libdir}/rpm/javadeps.sh \ | ||
293 | ${libdir}/rpm/mono-find-provides \ | ||
294 | ${libdir}/rpm/mono-find-requires \ | ||
295 | ${libdir}/rpm/executabledeps.sh \ | ||
296 | ${libdir}/rpm/libtooldeps.sh \ | ||
297 | ${libdir}/rpm/osgideps.pl \ | ||
298 | ${libdir}/rpm/perldeps.pl \ | ||
299 | ${libdir}/rpm/perl.prov \ | ||
300 | ${libdir}/rpm/perl.req \ | ||
301 | ${libdir}/rpm/php.prov \ | ||
302 | ${libdir}/rpm/php.req \ | ||
303 | ${libdir}/rpm/pkgconfigdeps.sh \ | ||
304 | ${libdir}/rpm/pythondeps.sh \ | ||
305 | ${libdir}/rpm/bin/debugedit \ | ||
306 | ${libdir}/rpm/bin/debugedit.real \ | ||
307 | ${libdir}/rpm/bin/rpmcache \ | ||
308 | ${libdir}/rpm/bin/rpmcache.real \ | ||
309 | ${libdir}/rpm/bin/rpmcmp \ | ||
310 | ${libdir}/rpm/bin/rpmcmp.real \ | ||
311 | ${libdir}/rpm/bin/rpmdeps \ | ||
312 | ${libdir}/rpm/bin/rpmdeps.real \ | ||
313 | ${libdir}/rpm/bin/rpmdeps-oecore \ | ||
314 | ${libdir}/rpm/bin/rpmdeps-oecore.real \ | ||
315 | ${libdir}/rpm/bin/rpmdigest \ | ||
316 | ${libdir}/rpm/bin/rpmdigest.real \ | ||
317 | ${libdir}/rpm/bin/abi-compliance-checker.pl \ | ||
318 | ${libdir}/rpm/bin/api-sanity-autotest.pl \ | ||
319 | ${libdir}/rpm/bin/chroot \ | ||
320 | ${libdir}/rpm/bin/cp \ | ||
321 | ${libdir}/rpm/bin/dbsql \ | ||
322 | ${libdir}/rpm/bin/find \ | ||
323 | ${libdir}/rpm/bin/install-sh \ | ||
324 | ${libdir}/rpm/bin/lua \ | ||
325 | ${libdir}/rpm/bin/luac \ | ||
326 | ${libdir}/rpm/bin/mkinstalldirs \ | ||
327 | ${libdir}/rpm/bin/rpmlua \ | ||
328 | ${libdir}/rpm/bin/rpmluac \ | ||
329 | ${libdir}/rpm/bin/sqlite3 \ | ||
330 | ${libdir}/rpm/macros.d/cmake \ | ||
331 | ${libdir}/rpm/macros.d/java \ | ||
332 | ${libdir}/rpm/macros.d/libtool \ | ||
333 | ${libdir}/rpm/macros.d/mandriva \ | ||
334 | ${libdir}/rpm/macros.d/mono \ | ||
335 | ${libdir}/rpm/macros.d/perl \ | ||
336 | ${libdir}/rpm/macros.d/php \ | ||
337 | ${libdir}/rpm/macros.d/pkgconfig \ | ||
338 | ${libdir}/rpm/macros.d/python \ | ||
339 | ${libdir}/rpm/macros.d/ruby \ | ||
340 | ${libdir}/rpm/macros.d/selinux \ | ||
341 | ${libdir}/rpm/macros.d/tcl \ | ||
342 | ${libdir}/rpm/macros.rpmbuild \ | ||
343 | ${libdir}/rpm/u_pkg.sh \ | ||
344 | ${libdir}/rpm/vpkg-provides.sh \ | ||
345 | ${libdir}/rpm/vpkg-provides2.sh \ | ||
346 | ${libdir}/rpm/perfile_rpmdeps.sh \ | ||
347 | " | ||
348 | RDEPENDS_${PN} = "base-files run-postinsts" | ||
349 | RDEPENDS_${PN}_class-native = "" | ||
350 | RDEPENDS_${PN}_class-nativesdk = "" | ||
351 | RDEPENDS_${PN}-build = "file" | ||
352 | |||
353 | RDEPENDS_python-rpm = "${PN}" | ||
354 | |||
355 | FILES_python-rpm-dbg = "${libdir}/python*/site-packages/rpm/.debug/_*" | ||
356 | FILES_python-rpm-dev = "${libdir}/python*/site-packages/rpm/*.la" | ||
357 | FILES_python-rpm-staticdev = "${libdir}/python*/site-packages/rpm/*.a" | ||
358 | FILES_python-rpm = "${libdir}/python*/site-packages/rpm" | ||
359 | |||
360 | FILES_perl-module-rpm = "${libdir}/perl/*/* \ | ||
361 | " | ||
362 | |||
363 | FILES_perl-module-rpm-dev = "${prefix}/share/man/man3/RPM* \ | ||
364 | " | ||
365 | |||
366 | RDEPENDS_${PN}-dev += "bash" | ||
367 | |||
368 | FILES_${PN}-dev = "${includedir}/rpm \ | ||
369 | ${libdir}/librpm.la \ | ||
370 | ${libdir}/librpm.so \ | ||
371 | ${libdir}/librpmconstant.la \ | ||
372 | ${libdir}/librpmconstant.so \ | ||
373 | ${libdir}/librpmdb.la \ | ||
374 | ${libdir}/librpmdb.so \ | ||
375 | ${libdir}/librpmio.la \ | ||
376 | ${libdir}/librpmio.so \ | ||
377 | ${libdir}/librpmmisc.la \ | ||
378 | ${libdir}/librpmmisc.so \ | ||
379 | ${libdir}/librpmbuild.la \ | ||
380 | ${libdir}/librpmbuild.so \ | ||
381 | ${libdir}/rpm/lib/liblua.la \ | ||
382 | ${libdir}/pkgconfig/rpm.pc \ | ||
383 | ${libdir}/rpm/rpmdb_loadcvt \ | ||
384 | " | ||
385 | |||
386 | FILES_${PN}-staticdev = " \ | ||
387 | ${libdir}/librpm.a \ | ||
388 | ${libdir}/librpmconstant.a \ | ||
389 | ${libdir}/librpmdb.a \ | ||
390 | ${libdir}/librpmio.a \ | ||
391 | ${libdir}/librpmmisc.a \ | ||
392 | ${libdir}/librpmbuild.a \ | ||
393 | ${libdir}/rpm/lib/liblua.a \ | ||
394 | " | ||
395 | |||
396 | do_configure() { | ||
397 | # Disable tests! | ||
398 | echo "all:" > ${S}/tests/Makefile.am | ||
399 | sed -e 's/@__MKDIR_P@/%{__mkdir} -p/' -i ${S}/macros/macros.in | ||
400 | |||
401 | ( cd ${S}; ${S}/autogen.sh ) | ||
402 | |||
403 | # NASTY hack to make sure configure files the right pkg-config file... | ||
404 | sed -e 's/pkg-config --exists uuid/pkg-config --exists ossp-uuid/g' \ | ||
405 | -e 's/pkg-config uuid/pkg-config ossp-uuid/g' -i ${S}/configure | ||
406 | |||
407 | ( cd ${S}/syck ; set +e ; rm -- -l* ; make distclean ) || : | ||
408 | |||
409 | export varprefix=${localstatedir} | ||
410 | oe_runconf | ||
411 | } | ||
412 | |||
413 | do_install_append() { | ||
414 | sed -i -e 's,%__check_files,#%%__check_files,' ${D}/${libdir}/rpm/macros | ||
415 | sed -i -e 's,%__scriptlet_requires,#%%__scriptlet_requires,' ${D}/${libdir}/rpm/macros | ||
416 | sed -i -e 's,%__perl_provides,#%%__perl_provides,' ${D}/${libdir}/rpm/macros ${D}/${libdir}/rpm/macros.d/* | ||
417 | sed -i -e 's,%__perl_requires,#%%__perl_requires,' ${D}/${libdir}/rpm/macros ${D}/${libdir}/rpm/macros.d/* | ||
418 | sed -i -e 's,%_repackage_all_erasures[^_].*,%_repackage_all_erasures 0,' ${D}/${libdir}/rpm/macros | ||
419 | sed -i -e 's,^#%_openall_before_chroot.*,%_openall_before_chroot\t1,' ${D}/${libdir}/rpm/macros | ||
420 | |||
421 | # Enable Debian style arbitrary tags... | ||
422 | sed -i -e 's,%_arbitrary_tags[^_].*,%_arbitrary_tags %{_arbitrary_tags_debian},' ${D}/${libdir}/rpm/macros | ||
423 | |||
424 | install -m 0755 ${WORKDIR}/pythondeps.sh ${D}/${libdir}/rpm/pythondeps.sh | ||
425 | install -m 0755 ${WORKDIR}/perfile_rpmdeps.sh ${D}/${libdir}/rpm/perfile_rpmdeps.sh | ||
426 | |||
427 | # Remove unpackaged files (based on list in rpm.spec) | ||
428 | rm -f ${D}/${libdir}/rpm/{Specfile.pm,cpanflute,cpanflute2,rpmdiff,rpmdiff.cgi,sql.prov,sql.req,tcl.req,trpm} | ||
429 | |||
430 | rm -f ${D}/${mandir}/man8/rpmcache.8* | ||
431 | rm -f ${D}/${mandir}/man8/rpmgraph.8* | ||
432 | rm -f ${D}/${mandir}/*/man8/rpmcache.8* | ||
433 | rm -f ${D}/${mandir}/*/man8/rpmgraph.8* | ||
434 | rm -rf ${D}/${mandir}/{fr,ko} | ||
435 | |||
436 | rm -f ${D}/${includedir}/popt.h | ||
437 | rm -f ${D}/${libdir}/libpopt.* | ||
438 | rm -f ${D}/${libdir}/pkgconfig/popt.pc | ||
439 | rm -f ${D}/${datadir}/locale/*/LC_MESSAGES/popt.mo | ||
440 | rm -f ${D}/${mandir}/man3/popt.3 | ||
441 | |||
442 | rm -f ${D}/${mandir}/man1/xar.1* | ||
443 | rm -f ${D}/${bindir}/xar | ||
444 | rm -rf ${D}/${includedir}/xar | ||
445 | rm -f ${D}/${libdir}/libxar* | ||
446 | |||
447 | rm -f ${D}/${bindir}/lz* | ||
448 | rm -f ${D}/${bindir}/unlzma | ||
449 | rm -f ${D}/${bindir}/unxz | ||
450 | rm -f ${D}/${bindir}/xz* | ||
451 | rm -rf ${D}/${includedir}/lzma* | ||
452 | rm -f ${D}/${mandir}/man1/lz*.1 | ||
453 | rm -f ${D}/${libdir}/pkgconfig/liblzma* | ||
454 | |||
455 | rm -f ${D}/${libdir}/python%{with_python_version}/site-packages/*.{a,la} | ||
456 | rm -f ${D}/${libdir}/python%{with_python_version}/site-packages/rpm/*.{a,la} | ||
457 | |||
458 | #find ${D}/${libdir}/perl5 -type f -a \( -name perllocal.pod -o -name .packlist \ | ||
459 | # -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';' | ||
460 | #find ${D}/${libdir}/perl5 -type d -depth -exec rmdir {} 2>/dev/null ';' | ||
461 | |||
462 | # We don't want the default macro set | ||
463 | rm -rf ${D}/${libdir}/rpm/{i[3456]86*,athlon*,pentium*,x86_64*,alpha*,sparc*,ia64*,ppc*,s390*,armv[34][lb]*,armv[345]*,mips*,noarch*} | ||
464 | |||
465 | rm -f ${D}/${libdir}/rpm/dbconvert.sh | ||
466 | |||
467 | rm -f ${D}/${libdir}/rpm/libsqldb.* | ||
468 | |||
469 | # We don't want, nor need the Mandriva multiarch items | ||
470 | rm -f ${D}/${bindir}/multiarch-dispatch | ||
471 | rm -f ${D}/${bindir}/multiarch-platform | ||
472 | rm -f ${D}/${libdir}/rpm/check-multiarch-files | ||
473 | rm -f ${D}/${libdir}/rpm/mkmultiarch | ||
474 | rm -f ${D}/${includedir}/multiarch-dispatch.h | ||
475 | |||
476 | rm -f ${D}/${libdir}/rpm/gstreamer.sh | ||
477 | rm -f ${D}/${libdir}/rpm/gem_helper.rb | ||
478 | rm -f ${D}/${libdir}/rpm/rubygems.rb | ||
479 | rm -f ${D}/${libdir}/rpm/kmod-deps.sh | ||
480 | rm -f ${D}/${libdir}/rpm/pythoneggs.py | ||
481 | rm -f ${D}/${libdir}/rpm/macros.d/kernel | ||
482 | rm -f ${D}/${libdir}/rpm/macros.d/gstreamer | ||
483 | rm -f ${D}/${libdir}/rpm/bin/mgo | ||
484 | rm -f ${D}/${libdir}/rpm/bin/dbconvert | ||
485 | rm -f ${D}/${libdir}/rpm/bin/pom2spec | ||
486 | |||
487 | rm -rf ${D}/var/lib/wdj ${D}/var/cache/wdj | ||
488 | rm -f ${D}/${libdir}/rpm/bin/api-sanity-checker.pl | ||
489 | |||
490 | } | ||
491 | |||
492 | add_native_wrapper() { | ||
493 | create_wrapper ${D}/${bindir}/rpm \ | ||
494 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \ | ||
495 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \ | ||
496 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale | ||
497 | |||
498 | create_wrapper ${D}/${bindir}/rpm2cpio \ | ||
499 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \ | ||
500 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \ | ||
501 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale | ||
502 | |||
503 | create_wrapper ${D}/${bindir}/rpmbuild \ | ||
504 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \ | ||
505 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \ | ||
506 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale | ||
507 | |||
508 | create_wrapper ${D}/${bindir}/rpmconstant \ | ||
509 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \ | ||
510 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \ | ||
511 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale | ||
512 | |||
513 | for rpm_binary in ${D}/${libdir}/rpm/bin/rpm* ${D}/${libdir}/rpm/bin/debugedit; do | ||
514 | create_wrapper $rpm_binary \ | ||
515 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \ | ||
516 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \ | ||
517 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale | ||
518 | done | ||
519 | } | ||
520 | |||
521 | do_install_append_class-native() { | ||
522 | add_native_wrapper | ||
523 | } | ||
524 | |||
525 | do_install_append_class-nativesdk() { | ||
526 | add_native_wrapper | ||
527 | } | ||
528 | |||
529 | BBCLASSEXTEND = "native nativesdk" | ||