diff options
Diffstat (limited to 'meta/recipes-devtools/rpm/rpm_5.4.9.bb')
-rw-r--r-- | meta/recipes-devtools/rpm/rpm_5.4.9.bb | 514 |
1 files changed, 0 insertions, 514 deletions
diff --git a/meta/recipes-devtools/rpm/rpm_5.4.9.bb b/meta/recipes-devtools/rpm/rpm_5.4.9.bb deleted file mode 100644 index 690d8b423a..0000000000 --- a/meta/recipes-devtools/rpm/rpm_5.4.9.bb +++ /dev/null | |||
@@ -1,514 +0,0 @@ | |||
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 bison-native" | ||
46 | PR = "r63" | ||
47 | |||
48 | # rpm2cpio is a shell script, which is part of the rpm src.rpm. It is needed | ||
49 | # in order to extract the distribution SRPM into a format we can extract... | ||
50 | SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.9-0.20120508.src.rpm;extract=rpm-5.4.9.tar.gz \ | ||
51 | file://rpm-log-auto-rm.patch \ | ||
52 | file://rpm-db-reduce.patch \ | ||
53 | file://perfile_rpmdeps.sh \ | ||
54 | file://rpm-autogen.patch \ | ||
55 | file://rpm-libsql-fix.patch \ | ||
56 | file://header-include-fix.patch \ | ||
57 | file://rpm-platform.patch \ | ||
58 | file://rpm-showrc.patch \ | ||
59 | file://rpm-solvedb.patch \ | ||
60 | file://rpm-tools-mtree-LDFLAGS.patch \ | ||
61 | file://rpm-fileclass.patch \ | ||
62 | file://rpm-canonarch.patch \ | ||
63 | file://rpm-no-loopmsg.patch \ | ||
64 | file://rpm-scriptletexechelper.patch \ | ||
65 | file://pythondeps.sh \ | ||
66 | file://rpmdeps-oecore.patch \ | ||
67 | file://rpm-resolvedep.patch \ | ||
68 | file://rpm-respect-arch.patch \ | ||
69 | file://rpm-no-perl-urpm.patch \ | ||
70 | file://rpm-macros.patch \ | ||
71 | file://rpm-lua.patch \ | ||
72 | file://rpm-ossp-uuid.patch \ | ||
73 | file://rpm-packageorigin.patch \ | ||
74 | file://rpm-pkgconfigdeps.patch \ | ||
75 | file://uclibc-support.patch \ | ||
76 | file://rpmatch.patch \ | ||
77 | file://fstack-protector-configure-check.patch \ | ||
78 | file://dbconvert.patch \ | ||
79 | file://rpm-uuid-include.patch \ | ||
80 | file://makefile-am-exec-hook.patch \ | ||
81 | file://rpm-stub-out-git_strerror.patch \ | ||
82 | file://rpm-db_buffer_small.patch \ | ||
83 | file://rpm-py-init.patch \ | ||
84 | file://python-rpm-rpmsense.patch \ | ||
85 | file://rpm-reloc-macros.patch \ | ||
86 | file://rpm-platform2.patch \ | ||
87 | file://rpm-remove-sykcparse-decl.patch \ | ||
88 | file://debugedit-segv.patch \ | ||
89 | file://debugedit-valid-file-to-fix-segment-fault.patch \ | ||
90 | file://rpm-platform-file-fix.patch \ | ||
91 | file://rpm-lsb-compatibility.patch \ | ||
92 | file://rpm-tag-generate-endian-conversion-fix.patch \ | ||
93 | file://rpm-verify-files.patch \ | ||
94 | file://rpm-hardlink-segfault-fix.patch \ | ||
95 | file://rpm-payload-use-hashed-inode.patch \ | ||
96 | " | ||
97 | |||
98 | # Uncomment the following line to enable platform score debugging | ||
99 | # This is useful when identifying issues with Smart being unable | ||
100 | # to process certain package feeds. | ||
101 | #SRC_URI += "file://rpm-debug-platform.patch" | ||
102 | |||
103 | SRC_URI[md5sum] = "60d56ace884340c1b3fcac6a1d58e768" | ||
104 | SRC_URI[sha256sum] = "bac7cc5bd9d0e8262fdc0099349924608da8f680f5cb243751f696552239dde8" | ||
105 | |||
106 | inherit autotools gettext | ||
107 | |||
108 | acpaths = "-I ${S}/db/dist/aclocal -I ${S}/db/dist/aclocal_java" | ||
109 | |||
110 | # Specify the default rpm macros in terms of adjustable variables | ||
111 | rpm_macros = "%{_usrlibrpm}/macros:%{_usrlibrpm}/poky/macros:%{_usrlibrpm}/poky/%{_target}/macros:%{_etcrpm}/macros.*:%{_etcrpm}/macros:%{_etcrpm}/%{_target}/macros:~/.oerpmmacros" | ||
112 | rpm_macros_class-native = "%{_usrlibrpm}/macros:%{_usrlibrpm}/poky/macros:%{_usrlibrpm}/poky/%{_target}/macros:~/.oerpmmacros" | ||
113 | rpm_macros_class-nativesdk = "%{_usrlibrpm}/macros:%{_usrlibrpm}/poky/macros:%{_usrlibrpm}/poky/%{_target}/macros:~/.oerpmmacros" | ||
114 | |||
115 | # sqlite lua tcl augeas nss gcrypt neon xz xar keyutils perl selinux | ||
116 | |||
117 | # Note: perl and sqlite w/o db specified does not currently work. | ||
118 | # tcl, augeas, nss, gcrypt, xar and keyutils support is untested. | ||
119 | PACKAGECONFIG ??= "db bzip2 zlib beecrypt openssl libelf python" | ||
120 | |||
121 | PACKAGECONFIG[bzip2] = "--with-bzip2,--without-bzip2,bzip2," | ||
122 | PACKAGECONFIG[xz] = "--with-xz,--without-xz,xz," | ||
123 | PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib," | ||
124 | PACKAGECONFIG[xar] = "--with-xar,--without-xar,xar," | ||
125 | |||
126 | WITH_PYTHON = " --with-python=${PYTHON_BASEVERSION} \ | ||
127 | --with-python-inc-dir=${STAGING_INCDIR}/python${PYTHON_BASEVERSION} \ | ||
128 | --with-python-lib-dir=${libdir}/python${PYTHON_BASEVERSION}/site-packages \ | ||
129 | --without-pythonembed" | ||
130 | PACKAGECONFIG[python] = "${WITH_PYTHON},--without-python,python," | ||
131 | |||
132 | # Perl modules are not built, but they could be enabled fairly easily | ||
133 | # the perl module creation and installation would need to be patched. | ||
134 | # (currently has host perl contamination issues) | ||
135 | WITH_PERL = "--with-perl --without-perlembed --without-perl-urpm" | ||
136 | WITHOUT_PERL = "--without-perl --without-perl-urpm" | ||
137 | PACKAGECONFIG[perl] = "${WITH_PERL},${WITHOUT_PERL},perl," | ||
138 | |||
139 | # The --with-dbsql will only tell RPM to check for support, db | ||
140 | # may or may not be built w/ the dbsql support. | ||
141 | WITH_DB = "--with-db --with-dbsql --without-db-tools-integrated" | ||
142 | PACKAGECONFIG[db] = "${WITH_DB},--without-db,db," | ||
143 | |||
144 | PACKAGECONFIG[sqlite] = "--with-sqlite,--without-sqlite,sqlite3," | ||
145 | |||
146 | PACKAGECONFIG[beecrypt] = "--with-beecrypt,--without-beecrypt,beecrypt," | ||
147 | PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl," | ||
148 | PACKAGECONFIG[nss] = "--with-nss,--without-nss,nss," | ||
149 | PACKAGECONFIG[gcrypt] = "--with-gcrypt,--without-gcrypt,gcrypt," | ||
150 | PACKAGECONFIG[keyutils] = "--with-keyutils,--without-keyutils,keyutils," | ||
151 | PACKAGECONFIG[libelf] = "--with-libelf,--without-libelf,elfutils," | ||
152 | |||
153 | WITH_SELINUX = "--with-selinux --with-sepol --with-semanage" | ||
154 | WITHOUT_SELINUX = "--without-selinux --without-sepol --without-semanage" | ||
155 | PACKAGECONFIG[selinux] = "${WITH_SELINUX},${WITHOUT_SELINUX},libselinux," | ||
156 | |||
157 | WITH_NEON = "--with-neon --with-libproxy --with-expat --without-gssapi" | ||
158 | WITHOUT_NEON = "--without-neon --without-libproxy --without-expat --without-gssapi" | ||
159 | PACKAGECONFIG[neon] = "${WITH_NEON},${WITHOUT_NEON},neon expat," | ||
160 | |||
161 | PACKAGECONFIG[lua] = "--with-lua,--without-lua,expat," | ||
162 | PACKAGECONFIG[tcl] = "--with-tcl,--without-tcl,tcl," | ||
163 | |||
164 | PACKAGECONFIG[augeas] = "--with-augeas,--without-augeas,augeas," | ||
165 | |||
166 | EXTRA_OECONF += "--verbose \ | ||
167 | --sysconfdir=${sysconfdir} \ | ||
168 | --with-file \ | ||
169 | --with-path-magic=%{_usrlibrpm}/../../share/misc/magic.mgc \ | ||
170 | --with-syck=internal \ | ||
171 | --without-readline \ | ||
172 | --without-libtasn1 \ | ||
173 | --without-pakchois \ | ||
174 | --without-gnutls \ | ||
175 | --with-pcre \ | ||
176 | --enable-utf8 \ | ||
177 | --with-uuid \ | ||
178 | --with-attr \ | ||
179 | --with-acl \ | ||
180 | --with-popt=external \ | ||
181 | --with-pthreads \ | ||
182 | --without-cudf \ | ||
183 | --without-ficl \ | ||
184 | --without-aterm \ | ||
185 | --without-nix \ | ||
186 | --without-bash \ | ||
187 | --without-rc \ | ||
188 | --without-js \ | ||
189 | --without-gpsee \ | ||
190 | --without-ruby \ | ||
191 | --without-squirrel \ | ||
192 | --with-build-extlibdep \ | ||
193 | --with-build-maxextlibdep \ | ||
194 | --without-valgrind \ | ||
195 | --disable-openmp \ | ||
196 | --enable-build-pic \ | ||
197 | --enable-build-versionscript \ | ||
198 | --enable-build-warnings \ | ||
199 | --enable-build-debug \ | ||
200 | --enable-maintainer-mode \ | ||
201 | --with-path-macros=${rpm_macros} \ | ||
202 | --with-path-lib=${libdir}/rpm \ | ||
203 | --with-bugreport=http://bugzilla.yoctoproject.org \ | ||
204 | --program-prefix=" | ||
205 | |||
206 | CFLAGS_append = " -DRPM_VENDOR_WINDRIVER -DRPM_VENDOR_POKY -DRPM_VENDOR_OE" | ||
207 | |||
208 | LDFLAGS_append_libc-uclibc = "-lrt -lpthread" | ||
209 | |||
210 | 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" | ||
211 | |||
212 | SOLIBS = "5.4.so" | ||
213 | |||
214 | # Based on %files section in the rpm.spec | ||
215 | |||
216 | FILES_${PN} = "${bindir}/rpm \ | ||
217 | ${bindir}/rpmconstant \ | ||
218 | ${libdir}/rpm/rpm.* \ | ||
219 | ${libdir}/rpm/tgpg \ | ||
220 | ${libdir}/rpm/macros \ | ||
221 | ${libdir}/rpm/rpmpopt \ | ||
222 | ${libdir}/rpm/rpm2cpio \ | ||
223 | ${libdir}/rpm/vcheck \ | ||
224 | ${libdir}/rpm/helpers \ | ||
225 | ${libdir}/rpm/qf \ | ||
226 | ${libdir}/rpm/cpuinfo.yaml \ | ||
227 | ${libdir}/rpm/bin/mtree \ | ||
228 | ${libdir}/rpm/bin/rpmkey \ | ||
229 | ${libdir}/rpm/bin/rpmrepo \ | ||
230 | ${libdir}/rpm/bin/rpmrepo.real \ | ||
231 | ${libdir}/rpm/bin/rpmspecdump \ | ||
232 | ${libdir}/rpm/bin/rpmspecdump.real \ | ||
233 | ${libdir}/rpm/bin/wget \ | ||
234 | ${localstatedir}/cache \ | ||
235 | ${localstatedir}/cache/rpm \ | ||
236 | ${localstatedir}/cache/wdj \ | ||
237 | ${localstatedir}/lib \ | ||
238 | ${localstatedir}/lib/rpm \ | ||
239 | ${localstatedir}/lib/wdj \ | ||
240 | ${bindir}/rpm.real \ | ||
241 | ${bindir}/rpmconstant.real \ | ||
242 | ${bindir}/rpm2cpio.real \ | ||
243 | " | ||
244 | |||
245 | FILES_${PN}-dbg += "${libdir}/rpm/.debug \ | ||
246 | ${libdir}/rpm/bin/.debug \ | ||
247 | " | ||
248 | |||
249 | FILES_${PN}-common = "${bindir}/rpm2cpio \ | ||
250 | ${bindir}/gendiff \ | ||
251 | ${sysconfdir}/rpm \ | ||
252 | ${localstatedir}/spool/repackage \ | ||
253 | " | ||
254 | |||
255 | FILES_${PN}-libs = "${libdir}/librpm-*.so \ | ||
256 | ${libdir}/librpmconstant-*.so \ | ||
257 | ${libdir}/librpmdb-*.so \ | ||
258 | ${libdir}/librpmio-*.so \ | ||
259 | ${libdir}/librpmmisc-*.so \ | ||
260 | ${libdir}/librpmbuild-*.so \ | ||
261 | " | ||
262 | |||
263 | RDEPENDS_${PN}-build += "bash" | ||
264 | |||
265 | FILES_${PN}-build = "${prefix}/src/rpm \ | ||
266 | ${bindir}/rpmbuild \ | ||
267 | ${bindir}/rpmbuild.real \ | ||
268 | ${libdir}/rpm/brp-* \ | ||
269 | ${libdir}/rpm/check-files \ | ||
270 | ${libdir}/rpm/cross-build \ | ||
271 | ${libdir}/rpm/find-debuginfo.sh \ | ||
272 | ${libdir}/rpm/find-lang.sh \ | ||
273 | ${libdir}/rpm/find-prov.pl \ | ||
274 | ${libdir}/rpm/find-provides.perl \ | ||
275 | ${libdir}/rpm/find-req.pl \ | ||
276 | ${libdir}/rpm/find-requires.perl \ | ||
277 | ${libdir}/rpm/getpo.sh \ | ||
278 | ${libdir}/rpm/http.req \ | ||
279 | ${libdir}/rpm/javadeps.sh \ | ||
280 | ${libdir}/rpm/mono-find-provides \ | ||
281 | ${libdir}/rpm/mono-find-requires \ | ||
282 | ${libdir}/rpm/executabledeps.sh \ | ||
283 | ${libdir}/rpm/libtooldeps.sh \ | ||
284 | ${libdir}/rpm/osgideps.pl \ | ||
285 | ${libdir}/rpm/perldeps.pl \ | ||
286 | ${libdir}/rpm/perl.prov \ | ||
287 | ${libdir}/rpm/perl.req \ | ||
288 | ${libdir}/rpm/php.prov \ | ||
289 | ${libdir}/rpm/php.req \ | ||
290 | ${libdir}/rpm/pkgconfigdeps.sh \ | ||
291 | ${libdir}/rpm/pythondeps.sh \ | ||
292 | ${libdir}/rpm/bin/debugedit \ | ||
293 | ${libdir}/rpm/bin/debugedit.real \ | ||
294 | ${libdir}/rpm/bin/rpmcache \ | ||
295 | ${libdir}/rpm/bin/rpmcache.real \ | ||
296 | ${libdir}/rpm/bin/rpmcmp \ | ||
297 | ${libdir}/rpm/bin/rpmcmp.real \ | ||
298 | ${libdir}/rpm/bin/rpmdeps \ | ||
299 | ${libdir}/rpm/bin/rpmdeps.real \ | ||
300 | ${libdir}/rpm/bin/rpmdeps-oecore \ | ||
301 | ${libdir}/rpm/bin/rpmdeps-oecore.real \ | ||
302 | ${libdir}/rpm/bin/rpmdigest \ | ||
303 | ${libdir}/rpm/bin/rpmdigest.real \ | ||
304 | ${libdir}/rpm/bin/abi-compliance-checker.pl \ | ||
305 | ${libdir}/rpm/bin/api-sanity-autotest.pl \ | ||
306 | ${libdir}/rpm/bin/chroot \ | ||
307 | ${libdir}/rpm/bin/cp \ | ||
308 | ${libdir}/rpm/bin/dbsql \ | ||
309 | ${libdir}/rpm/bin/find \ | ||
310 | ${libdir}/rpm/bin/install-sh \ | ||
311 | ${libdir}/rpm/bin/lua \ | ||
312 | ${libdir}/rpm/bin/luac \ | ||
313 | ${libdir}/rpm/bin/mkinstalldirs \ | ||
314 | ${libdir}/rpm/bin/rpmlua \ | ||
315 | ${libdir}/rpm/bin/rpmluac \ | ||
316 | ${libdir}/rpm/bin/sqlite3 \ | ||
317 | ${libdir}/rpm/macros.d/cmake \ | ||
318 | ${libdir}/rpm/macros.d/java \ | ||
319 | ${libdir}/rpm/macros.d/libtool \ | ||
320 | ${libdir}/rpm/macros.d/mandriva \ | ||
321 | ${libdir}/rpm/macros.d/mono \ | ||
322 | ${libdir}/rpm/macros.d/perl \ | ||
323 | ${libdir}/rpm/macros.d/php \ | ||
324 | ${libdir}/rpm/macros.d/pkgconfig \ | ||
325 | ${libdir}/rpm/macros.d/python \ | ||
326 | ${libdir}/rpm/macros.d/ruby \ | ||
327 | ${libdir}/rpm/macros.d/selinux \ | ||
328 | ${libdir}/rpm/macros.d/tcl \ | ||
329 | ${libdir}/rpm/macros.rpmbuild \ | ||
330 | ${libdir}/rpm/u_pkg.sh \ | ||
331 | ${libdir}/rpm/vpkg-provides.sh \ | ||
332 | ${libdir}/rpm/vpkg-provides2.sh \ | ||
333 | ${libdir}/rpm/perfile_rpmdeps.sh \ | ||
334 | " | ||
335 | RDEPENDS_${PN} = "base-files run-postinsts" | ||
336 | RDEPENDS_${PN}_class-native = "" | ||
337 | RDEPENDS_${PN}_class-nativesdk = "" | ||
338 | RDEPENDS_${PN}-build = "file" | ||
339 | |||
340 | RDEPENDS_python-rpm = "${PN}" | ||
341 | |||
342 | FILES_python-rpm-dbg = "${libdir}/python*/site-packages/rpm/.debug/_*" | ||
343 | FILES_python-rpm-dev = "${libdir}/python*/site-packages/rpm/*.la" | ||
344 | FILES_python-rpm-staticdev = "${libdir}/python*/site-packages/rpm/*.a" | ||
345 | FILES_python-rpm = "${libdir}/python*/site-packages/rpm" | ||
346 | |||
347 | FILES_perl-module-rpm = "${libdir}/perl/*/* \ | ||
348 | " | ||
349 | |||
350 | FILES_perl-module-rpm-dev = "${prefix}/share/man/man3/RPM* \ | ||
351 | " | ||
352 | |||
353 | RDEPENDS_${PN}-dev += "bash" | ||
354 | |||
355 | FILES_${PN}-dev = "${includedir}/rpm \ | ||
356 | ${libdir}/librpm.la \ | ||
357 | ${libdir}/librpm.so \ | ||
358 | ${libdir}/librpmconstant.la \ | ||
359 | ${libdir}/librpmconstant.so \ | ||
360 | ${libdir}/librpmdb.la \ | ||
361 | ${libdir}/librpmdb.so \ | ||
362 | ${libdir}/librpmio.la \ | ||
363 | ${libdir}/librpmio.so \ | ||
364 | ${libdir}/librpmmisc.la \ | ||
365 | ${libdir}/librpmmisc.so \ | ||
366 | ${libdir}/librpmbuild.la \ | ||
367 | ${libdir}/librpmbuild.so \ | ||
368 | ${libdir}/rpm/lib/liblua.la \ | ||
369 | ${libdir}/pkgconfig/rpm.pc \ | ||
370 | ${libdir}/rpm/rpmdb_loadcvt \ | ||
371 | " | ||
372 | |||
373 | FILES_${PN}-staticdev = " \ | ||
374 | ${libdir}/librpm.a \ | ||
375 | ${libdir}/librpmconstant.a \ | ||
376 | ${libdir}/librpmdb.a \ | ||
377 | ${libdir}/librpmio.a \ | ||
378 | ${libdir}/librpmmisc.a \ | ||
379 | ${libdir}/librpmbuild.a \ | ||
380 | ${libdir}/rpm/lib/liblua.a \ | ||
381 | " | ||
382 | |||
383 | do_configure() { | ||
384 | # Disable tests! | ||
385 | echo "all:" > ${S}/tests/Makefile.am | ||
386 | sed -e 's/@__MKDIR_P@/%{__mkdir} -p/' -i ${S}/macros/macros.in | ||
387 | |||
388 | ( cd ${S}; ${S}/autogen.sh ) | ||
389 | |||
390 | # NASTY hack to make sure configure files the right pkg-config file... | ||
391 | sed -e 's/pkg-config --exists uuid/pkg-config --exists ossp-uuid/g' \ | ||
392 | -e 's/pkg-config uuid/pkg-config ossp-uuid/g' -i ${S}/configure | ||
393 | |||
394 | export varprefix=${localstatedir} | ||
395 | oe_runconf | ||
396 | } | ||
397 | |||
398 | do_install_append() { | ||
399 | sed -i -e 's,%__check_files,#%%__check_files,' ${D}/${libdir}/rpm/macros | ||
400 | sed -i -e 's,%__scriptlet_requires,#%%__scriptlet_requires,' ${D}/${libdir}/rpm/macros | ||
401 | sed -i -e 's,%__perl_provides,#%%__perl_provides,' ${D}/${libdir}/rpm/macros ${D}/${libdir}/rpm/macros.d/* | ||
402 | sed -i -e 's,%__perl_requires,#%%__perl_requires,' ${D}/${libdir}/rpm/macros ${D}/${libdir}/rpm/macros.d/* | ||
403 | sed -i -e 's,%_repackage_all_erasures[^_].*,%_repackage_all_erasures 0,' ${D}/${libdir}/rpm/macros | ||
404 | sed -i -e 's,^#%_openall_before_chroot.*,%_openall_before_chroot\t1,' ${D}/${libdir}/rpm/macros | ||
405 | |||
406 | # Enable Debian style arbitrary tags... | ||
407 | sed -i -e 's,%_arbitrary_tags[^_].*,%_arbitrary_tags %{_arbitrary_tags_debian},' ${D}/${libdir}/rpm/macros | ||
408 | |||
409 | install -m 0755 ${WORKDIR}/pythondeps.sh ${D}/${libdir}/rpm/pythondeps.sh | ||
410 | install -m 0755 ${WORKDIR}/perfile_rpmdeps.sh ${D}/${libdir}/rpm/perfile_rpmdeps.sh | ||
411 | |||
412 | # Remove unpackaged files (based on list in rpm.spec) | ||
413 | rm -f ${D}/${libdir}/rpm/{Specfile.pm,cpanflute,cpanflute2,rpmdiff,rpmdiff.cgi,sql.prov,sql.req,tcl.req,trpm} | ||
414 | |||
415 | rm -f ${D}/${mandir}/man8/rpmcache.8* | ||
416 | rm -f ${D}/${mandir}/man8/rpmgraph.8* | ||
417 | rm -f ${D}/${mandir}/*/man8/rpmcache.8* | ||
418 | rm -f ${D}/${mandir}/*/man8/rpmgraph.8* | ||
419 | rm -rf ${D}/${mandir}/{fr,ko} | ||
420 | |||
421 | rm -f ${D}/${includedir}/popt.h | ||
422 | rm -f ${D}/${libdir}/libpopt.* | ||
423 | rm -f ${D}/${libdir}/pkgconfig/popt.pc | ||
424 | rm -f ${D}/${datadir}/locale/*/LC_MESSAGES/popt.mo | ||
425 | rm -f ${D}/${mandir}/man3/popt.3 | ||
426 | |||
427 | rm -f ${D}/${mandir}/man1/xar.1* | ||
428 | rm -f ${D}/${bindir}/xar | ||
429 | rm -rf ${D}/${includedir}/xar | ||
430 | rm -f ${D}/${libdir}/libxar* | ||
431 | |||
432 | rm -f ${D}/${bindir}/lz* | ||
433 | rm -f ${D}/${bindir}/unlzma | ||
434 | rm -f ${D}/${bindir}/unxz | ||
435 | rm -f ${D}/${bindir}/xz* | ||
436 | rm -rf ${D}/${includedir}/lzma* | ||
437 | rm -f ${D}/${mandir}/man1/lz*.1 | ||
438 | rm -f ${D}/${libdir}/pkgconfig/liblzma* | ||
439 | |||
440 | rm -f ${D}/${libdir}/python%{with_python_version}/site-packages/*.{a,la} | ||
441 | rm -f ${D}/${libdir}/python%{with_python_version}/site-packages/rpm/*.{a,la} | ||
442 | |||
443 | #find ${D}/${libdir}/perl5 -type f -a \( -name perllocal.pod -o -name .packlist \ | ||
444 | # -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';' | ||
445 | #find ${D}/${libdir}/perl5 -type d -depth -exec rmdir {} 2>/dev/null ';' | ||
446 | |||
447 | # We don't want the default macro set | ||
448 | rm -rf ${D}/${libdir}/rpm/{i[3456]86*,athlon*,pentium*,x86_64*,alpha*,sparc*,ia64*,ppc*,s390*,armv[34][lb]*,armv[345]*,mips*,noarch*} | ||
449 | |||
450 | rm -f ${D}/${libdir}/rpm/dbconvert.sh | ||
451 | |||
452 | rm -f ${D}/${libdir}/rpm/libsqldb.* | ||
453 | |||
454 | # We don't want, nor need the Mandriva multiarch items | ||
455 | rm -f ${D}/${bindir}/multiarch-dispatch | ||
456 | rm -f ${D}/${bindir}/multiarch-platform | ||
457 | rm -f ${D}/${libdir}/rpm/check-multiarch-files | ||
458 | rm -f ${D}/${libdir}/rpm/mkmultiarch | ||
459 | rm -f ${D}/${includedir}/multiarch-dispatch.h | ||
460 | |||
461 | rm -f ${D}/${libdir}/rpm/gstreamer.sh | ||
462 | rm -f ${D}/${libdir}/rpm/gem_helper.rb | ||
463 | rm -f ${D}/${libdir}/rpm/rubygems.rb | ||
464 | rm -f ${D}/${libdir}/rpm/kmod-deps.sh | ||
465 | rm -f ${D}/${libdir}/rpm/pythoneggs.py | ||
466 | rm -f ${D}/${libdir}/rpm/macros.d/kernel | ||
467 | rm -f ${D}/${libdir}/rpm/macros.d/gstreamer | ||
468 | rm -f ${D}/${libdir}/rpm/bin/mgo | ||
469 | rm -f ${D}/${libdir}/rpm/bin/dbconvert | ||
470 | rm -f ${D}/${libdir}/rpm/bin/pom2spec | ||
471 | |||
472 | rm -rf ${D}/var/lib/wdj ${D}/var/cache/wdj | ||
473 | rm -f ${D}/${libdir}/rpm/bin/api-sanity-checker.pl | ||
474 | |||
475 | } | ||
476 | |||
477 | add_native_wrapper() { | ||
478 | create_wrapper ${D}/${bindir}/rpm \ | ||
479 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \ | ||
480 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \ | ||
481 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale | ||
482 | |||
483 | create_wrapper ${D}/${bindir}/rpm2cpio \ | ||
484 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \ | ||
485 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \ | ||
486 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale | ||
487 | |||
488 | create_wrapper ${D}/${bindir}/rpmbuild \ | ||
489 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \ | ||
490 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \ | ||
491 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale | ||
492 | |||
493 | create_wrapper ${D}/${bindir}/rpmconstant \ | ||
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 | for rpm_binary in ${D}/${libdir}/rpm/bin/rpm* ${D}/${libdir}/rpm/bin/debugedit; do | ||
499 | create_wrapper $rpm_binary \ | ||
500 | RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \ | ||
501 | RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \ | ||
502 | RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale | ||
503 | done | ||
504 | } | ||
505 | |||
506 | do_install_append_class-native() { | ||
507 | add_native_wrapper | ||
508 | } | ||
509 | |||
510 | do_install_append_class-nativesdk() { | ||
511 | add_native_wrapper | ||
512 | } | ||
513 | |||
514 | BBCLASSEXTEND = "native nativesdk" | ||