2024-09-09 08:52:07 +00:00
|
|
|
SUMMARY = "The RPM package management system"
|
|
|
|
DESCRIPTION = "The RPM Package Manager (RPM) is a powerful command line driven \
|
|
|
|
package management system capable of installing, uninstalling, \
|
|
|
|
verifying, querying, and updating software packages. Each software \
|
|
|
|
package consists of an archive of files along with information about \
|
|
|
|
the package like its version, a description, etc."
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
SUMMARY_${PN}-libs = "Libraries for manipulating RPM packages"
|
2024-09-09 08:52:07 +00:00
|
|
|
DESCRIPTION_${PN}-libs = "This package contains the RPM shared libraries."
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
SUMMARY_${PN}-dev = "Development files for manipulating RPM packages"
|
2024-09-09 08:52:07 +00:00
|
|
|
DESCRIPTION_${PN}-dev = "This package contains the RPM C library and header files. These \
|
|
|
|
development files will simplify the process of writing programs that \
|
|
|
|
manipulate RPM packages and databases. These files are intended to \
|
|
|
|
simplify the process of creating graphical package managers or any \
|
|
|
|
other tools that need an intimate knowledge of RPM packages in order \
|
|
|
|
to function."
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
SUMMARY_${PN}-common = "Common RPM paths, scripts, documentation and configuration"
|
2024-09-09 08:52:07 +00:00
|
|
|
DESCRIPTION_${PN}-common = "The rpm-common package contains paths, scripts, documentation \
|
|
|
|
and configuration common between RPM Package Manager."
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
SUMMARY_${PN}-build = "Scripts and executable programs used to build packages"
|
2024-09-09 08:52:07 +00:00
|
|
|
DESCRIPTION_${PN}-build = "The rpm-build packagec ontains the scripts and executable programs \
|
|
|
|
that are used to build packages using the RPM Package Manager."
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
SUMMARY_python-rpm = "Python bindings for apps which will manupulate RPM packages"
|
2024-09-09 08:52:07 +00:00
|
|
|
DESCRIPTION_python-rpm = "The rpm-python package contains a module that permits applications \
|
|
|
|
written in the Python programming language to use the interface \
|
|
|
|
supplied by the RPM Package Manager libraries."
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
SUMMARY_perl-module-rpm = "Perl bindings for apps which will manipulate RPM packages"
|
2024-09-09 08:52:07 +00:00
|
|
|
DESCRIPTION_perl-modules-rpm = "The perl-modules-rpm package contains a module that permits applications \
|
|
|
|
written in the Perl programming language to use the interface \
|
|
|
|
supplied by the RPM Package Manager libraries."
|
|
|
|
|
|
|
|
SUMMARY_perl-module-rpm-dev = "Development components for perl bindings"
|
|
|
|
DESCRIPTION_perl-modules-rpm-dev = "Development items such as man pages for use with the Perl \
|
|
|
|
language bindings."
|
|
|
|
|
|
|
|
HOMEPAGE = "http://rpm5.org/"
|
2024-09-09 08:57:42 +00:00
|
|
|
LICENSE = "LGPLv2.1"
|
2024-09-09 08:52:07 +00:00
|
|
|
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
DEPENDS = "libpcre attr acl popt ossp-uuid file byacc-native"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
# rpm2cpio is a shell script, which is part of the rpm src.rpm. It is needed
|
|
|
|
# in order to extract the distribution SRPM into a format we can extract...
|
2024-09-09 08:57:42 +00:00
|
|
|
SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.14-0.20131024.src.rpm;extract=rpm-5.4.14.tar.gz \
|
2024-09-09 08:52:07 +00:00
|
|
|
file://rpm-log-auto-rm.patch \
|
|
|
|
file://rpm-db-reduce.patch \
|
|
|
|
file://perfile_rpmdeps.sh \
|
|
|
|
file://rpm-autogen.patch \
|
|
|
|
file://rpm-libsql-fix.patch \
|
|
|
|
file://header-include-fix.patch \
|
|
|
|
file://rpm-platform.patch \
|
|
|
|
file://rpm-showrc.patch \
|
|
|
|
file://rpm-tools-mtree-LDFLAGS.patch \
|
|
|
|
file://rpm-fileclass.patch \
|
|
|
|
file://rpm-canonarch.patch \
|
|
|
|
file://rpm-no-loopmsg.patch \
|
|
|
|
file://rpm-scriptletexechelper.patch \
|
|
|
|
file://pythondeps.sh \
|
2024-09-09 08:57:42 +00:00
|
|
|
file://rpmdeps-oecore.patch \
|
|
|
|
file://rpm-resolvedep.patch \
|
|
|
|
file://rpm-no-perl-urpm.patch \
|
|
|
|
file://rpm-macros.patch \
|
|
|
|
file://rpm-lua.patch \
|
|
|
|
file://rpm-ossp-uuid.patch \
|
|
|
|
file://rpm-packageorigin.patch \
|
|
|
|
file://rpm-pkgconfigdeps.patch \
|
|
|
|
file://uclibc-support.patch \
|
|
|
|
file://rpmatch.patch \
|
|
|
|
file://fstack-protector-configure-check.patch \
|
|
|
|
file://dbconvert.patch \
|
|
|
|
file://rpm-uuid-include.patch \
|
|
|
|
file://makefile-am-exec-hook.patch \
|
|
|
|
file://rpm-db_buffer_small.patch \
|
|
|
|
file://rpm-py-init.patch \
|
|
|
|
file://python-rpm-rpmsense.patch \
|
|
|
|
file://rpm-reloc-macros.patch \
|
|
|
|
file://rpm-platform2.patch \
|
|
|
|
file://rpm-remove-sykcparse-decl.patch \
|
|
|
|
file://debugedit-segv.patch \
|
|
|
|
file://debugedit-valid-file-to-fix-segment-fault.patch \
|
|
|
|
file://rpm-platform-file-fix.patch \
|
|
|
|
file://rpm-lsb-compatibility.patch \
|
|
|
|
file://rpm-tag-generate-endian-conversion-fix.patch \
|
|
|
|
file://verify-fix-broken-logic-for-ghost-avoidance-Mark-Hat.patch \
|
|
|
|
file://rpm-hardlink-segfault-fix.patch \
|
|
|
|
file://rpm-payload-use-hashed-inode.patch \
|
|
|
|
file://rpm-fix-logio-cp.patch \
|
|
|
|
file://rpm-db5-or-db6.patch \
|
|
|
|
file://rpm-disable-Wno-override-init.patch \
|
|
|
|
file://rpmqv_cc_b_gone.patch \
|
|
|
|
file://rpm-realpath.patch \
|
|
|
|
file://0001-using-poptParseArgvString-to-parse-the-_gpg_check_pa.patch \
|
2024-09-09 08:52:07 +00:00
|
|
|
"
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
# Uncomment the following line to enable platform score debugging
|
|
|
|
# This is useful when identifying issues with Smart being unable
|
|
|
|
# to process certain package feeds.
|
|
|
|
#SRC_URI += "file://rpm-debug-platform.patch"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
SRC_URI[md5sum] = "25093d399a0b5d1342d24900a91b347d"
|
|
|
|
SRC_URI[sha256sum] = "676e3ab41f72e3b504e04109cfb565a300742f56a7da084f202013b30eeae467"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
inherit autotools gettext
|
|
|
|
|
|
|
|
acpaths = "-I ${S}/db/dist/aclocal -I ${S}/db/dist/aclocal_java"
|
|
|
|
|
|
|
|
# Specify the default rpm macros in terms of adjustable variables
|
|
|
|
rpm_macros = "%{_usrlibrpm}/macros:%{_usrlibrpm}/poky/macros:%{_usrlibrpm}/poky/%{_target}/macros:%{_etcrpm}/macros.*:%{_etcrpm}/macros:%{_etcrpm}/%{_target}/macros:~/.oerpmmacros"
|
2024-09-09 08:57:42 +00:00
|
|
|
rpm_macros_class-native = "%{_usrlibrpm}/macros:%{_usrlibrpm}/poky/macros:%{_usrlibrpm}/poky/%{_target}/macros:~/.oerpmmacros"
|
|
|
|
rpm_macros_class-nativesdk = "%{_usrlibrpm}/macros:%{_usrlibrpm}/poky/macros:%{_usrlibrpm}/poky/%{_target}/macros:~/.oerpmmacros"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
# sqlite lua tcl augeas nss gcrypt neon xz xar keyutils perl selinux
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
# Note: perl and sqlite w/o db specified does not currently work.
|
|
|
|
# tcl, augeas, nss, gcrypt, xar and keyutils support is untested.
|
|
|
|
PACKAGECONFIG ??= "db bzip2 zlib beecrypt openssl libelf python"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
PACKAGECONFIG[bzip2] = "--with-bzip2,--without-bzip2,bzip2,"
|
|
|
|
PACKAGECONFIG[xz] = "--with-xz,--without-xz,xz,"
|
|
|
|
PACKAGECONFIG[zlib] = "--with-zlib,--without-zlib,zlib,"
|
|
|
|
PACKAGECONFIG[xar] = "--with-xar,--without-xar,xar,"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
WITH_PYTHON = " --with-python=${PYTHON_BASEVERSION} \
|
2024-09-09 08:52:07 +00:00
|
|
|
--with-python-inc-dir=${STAGING_INCDIR}/python${PYTHON_BASEVERSION} \
|
2024-09-09 08:57:42 +00:00
|
|
|
--with-python-lib-dir=${libdir}/python${PYTHON_BASEVERSION}/site-packages \
|
|
|
|
--without-pythonembed"
|
|
|
|
PACKAGECONFIG[python] = "${WITH_PYTHON},--without-python,python,"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
# Perl modules are not built, but they could be enabled fairly easily
|
|
|
|
# the perl module creation and installation would need to be patched.
|
|
|
|
# (currently has host perl contamination issues)
|
2024-09-09 08:57:42 +00:00
|
|
|
WITH_PERL = "--with-perl --without-perlembed --without-perl-urpm"
|
|
|
|
WITHOUT_PERL = "--without-perl --without-perl-urpm"
|
|
|
|
PACKAGECONFIG[perl] = "${WITH_PERL},${WITHOUT_PERL},perl,"
|
|
|
|
|
|
|
|
# The --with-dbsql will only tell RPM to check for support, db
|
|
|
|
# may or may not be built w/ the dbsql support.
|
|
|
|
WITH_DB = "--with-db --with-dbsql --without-db-tools-integrated"
|
|
|
|
PACKAGECONFIG[db] = "${WITH_DB},--without-db,db,"
|
|
|
|
|
|
|
|
PACKAGECONFIG[sqlite] = "--with-sqlite,--without-sqlite,sqlite3,"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
PACKAGECONFIG[beecrypt] = "--with-beecrypt=external,--without-beecrypt,beecrypt,"
|
|
|
|
PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl,"
|
|
|
|
PACKAGECONFIG[nss] = "--with-nss,--without-nss,nss,"
|
|
|
|
PACKAGECONFIG[gcrypt] = "--with-gcrypt,--without-gcrypt,gcrypt,"
|
|
|
|
PACKAGECONFIG[keyutils] = "--with-keyutils,--without-keyutils,keyutils,"
|
|
|
|
PACKAGECONFIG[libelf] = "--with-libelf,--without-libelf,elfutils,"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
WITH_SELINUX = "--with-selinux --with-sepol --with-semanage"
|
|
|
|
WITHOUT_SELINUX = "--without-selinux --without-sepol --without-semanage"
|
|
|
|
PACKAGECONFIG[selinux] = "${WITH_SELINUX},${WITHOUT_SELINUX},libselinux,"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
WITH_NEON = "--with-neon --with-libproxy --with-expat --without-gssapi"
|
|
|
|
WITHOUT_NEON = "--without-neon --without-libproxy --without-expat --without-gssapi"
|
|
|
|
PACKAGECONFIG[neon] = "${WITH_NEON},${WITHOUT_NEON},neon expat,"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
PACKAGECONFIG[lua] = "--with-lua,--without-lua,expat,"
|
|
|
|
PACKAGECONFIG[tcl] = "--with-tcl,--without-tcl,tcl,"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
PACKAGECONFIG[augeas] = "--with-augeas,--without-augeas,augeas,"
|
|
|
|
|
|
|
|
EXTRA_OECONF += "--verbose \
|
|
|
|
--sysconfdir=${sysconfdir} \
|
2024-09-09 08:52:07 +00:00
|
|
|
--with-file \
|
|
|
|
--with-path-magic=%{_usrlibrpm}/../../share/misc/magic.mgc \
|
|
|
|
--with-syck=internal \
|
|
|
|
--without-readline \
|
|
|
|
--without-libtasn1 \
|
|
|
|
--without-pakchois \
|
|
|
|
--without-gnutls \
|
|
|
|
--with-pcre \
|
|
|
|
--enable-utf8 \
|
2024-09-09 08:57:42 +00:00
|
|
|
--with-uuid \
|
2024-09-09 08:52:07 +00:00
|
|
|
--with-attr \
|
|
|
|
--with-acl \
|
|
|
|
--with-popt=external \
|
|
|
|
--with-pthreads \
|
|
|
|
--without-cudf \
|
|
|
|
--without-ficl \
|
|
|
|
--without-aterm \
|
|
|
|
--without-nix \
|
|
|
|
--without-bash \
|
|
|
|
--without-rc \
|
|
|
|
--without-js \
|
|
|
|
--without-gpsee \
|
|
|
|
--without-ruby \
|
|
|
|
--without-squirrel \
|
|
|
|
--with-build-extlibdep \
|
|
|
|
--with-build-maxextlibdep \
|
|
|
|
--without-valgrind \
|
|
|
|
--disable-openmp \
|
|
|
|
--enable-build-pic \
|
|
|
|
--enable-build-versionscript \
|
|
|
|
--enable-build-warnings \
|
|
|
|
--enable-build-debug \
|
|
|
|
--enable-maintainer-mode \
|
|
|
|
--with-path-macros=${rpm_macros} \
|
|
|
|
--with-path-lib=${libdir}/rpm \
|
|
|
|
--with-bugreport=http://bugzilla.yoctoproject.org \
|
2024-09-09 08:57:42 +00:00
|
|
|
--program-prefix= \
|
|
|
|
YACC=byacc"
|
|
|
|
|
|
|
|
CFLAGS_append = " -DRPM_VENDOR_WINDRIVER -DRPM_VENDOR_POKY -DRPM_VENDOR_OE"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
LDFLAGS_append_libc-uclibc = "-lrt -lpthread"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
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"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
SOLIBS = "5.4.so"
|
|
|
|
|
|
|
|
# Based on %files section in the rpm.spec
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
FILES_${PN} = "${bindir}/rpm \
|
2024-09-09 08:52:07 +00:00
|
|
|
${bindir}/rpmconstant \
|
|
|
|
${libdir}/rpm/rpm.* \
|
|
|
|
${libdir}/rpm/tgpg \
|
|
|
|
${libdir}/rpm/macros \
|
|
|
|
${libdir}/rpm/rpmpopt \
|
|
|
|
${libdir}/rpm/rpm2cpio \
|
|
|
|
${libdir}/rpm/vcheck \
|
|
|
|
${libdir}/rpm/helpers \
|
|
|
|
${libdir}/rpm/qf \
|
|
|
|
${libdir}/rpm/cpuinfo.yaml \
|
|
|
|
${libdir}/rpm/bin/mtree \
|
|
|
|
${libdir}/rpm/bin/rpmkey \
|
|
|
|
${libdir}/rpm/bin/rpmrepo \
|
2024-09-09 08:57:42 +00:00
|
|
|
${libdir}/rpm/bin/rpmrepo.real \
|
2024-09-09 08:52:07 +00:00
|
|
|
${libdir}/rpm/bin/rpmspecdump \
|
2024-09-09 08:57:42 +00:00
|
|
|
${libdir}/rpm/bin/rpmspecdump.real \
|
2024-09-09 08:52:07 +00:00
|
|
|
${libdir}/rpm/bin/wget \
|
2024-09-09 08:57:42 +00:00
|
|
|
${localstatedir}/cache \
|
|
|
|
${localstatedir}/cache/rpm \
|
|
|
|
${localstatedir}/cache/wdj \
|
|
|
|
${localstatedir}/lib \
|
|
|
|
${localstatedir}/lib/rpm \
|
|
|
|
${localstatedir}/lib/wdj \
|
|
|
|
${bindir}/rpm.real \
|
|
|
|
${bindir}/rpmconstant.real \
|
|
|
|
${bindir}/rpm2cpio.real \
|
2024-09-09 08:52:07 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
FILES_${PN}-dbg += "${libdir}/rpm/.debug \
|
|
|
|
${libdir}/rpm/bin/.debug \
|
|
|
|
"
|
|
|
|
|
|
|
|
FILES_${PN}-common = "${bindir}/rpm2cpio \
|
|
|
|
${bindir}/gendiff \
|
2024-09-09 08:57:42 +00:00
|
|
|
${sysconfdir}/rpm \
|
|
|
|
${localstatedir}/spool/repackage \
|
2024-09-09 08:52:07 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
FILES_${PN}-libs = "${libdir}/librpm-*.so \
|
|
|
|
${libdir}/librpmconstant-*.so \
|
|
|
|
${libdir}/librpmdb-*.so \
|
|
|
|
${libdir}/librpmio-*.so \
|
|
|
|
${libdir}/librpmmisc-*.so \
|
|
|
|
${libdir}/librpmbuild-*.so \
|
|
|
|
"
|
|
|
|
|
|
|
|
FILES_${PN}-build = "${prefix}/src/rpm \
|
|
|
|
${bindir}/rpmbuild \
|
2024-09-09 08:57:42 +00:00
|
|
|
${bindir}/rpmbuild.real \
|
2024-09-09 08:52:07 +00:00
|
|
|
${libdir}/rpm/brp-* \
|
|
|
|
${libdir}/rpm/check-files \
|
|
|
|
${libdir}/rpm/cross-build \
|
|
|
|
${libdir}/rpm/find-debuginfo.sh \
|
|
|
|
${libdir}/rpm/find-lang.sh \
|
|
|
|
${libdir}/rpm/find-prov.pl \
|
|
|
|
${libdir}/rpm/find-provides.perl \
|
|
|
|
${libdir}/rpm/find-req.pl \
|
|
|
|
${libdir}/rpm/find-requires.perl \
|
|
|
|
${libdir}/rpm/getpo.sh \
|
|
|
|
${libdir}/rpm/http.req \
|
|
|
|
${libdir}/rpm/javadeps.sh \
|
|
|
|
${libdir}/rpm/mono-find-provides \
|
|
|
|
${libdir}/rpm/mono-find-requires \
|
|
|
|
${libdir}/rpm/executabledeps.sh \
|
|
|
|
${libdir}/rpm/libtooldeps.sh \
|
|
|
|
${libdir}/rpm/osgideps.pl \
|
|
|
|
${libdir}/rpm/perldeps.pl \
|
|
|
|
${libdir}/rpm/perl.prov \
|
|
|
|
${libdir}/rpm/perl.req \
|
|
|
|
${libdir}/rpm/php.prov \
|
|
|
|
${libdir}/rpm/php.req \
|
|
|
|
${libdir}/rpm/pkgconfigdeps.sh \
|
|
|
|
${libdir}/rpm/pythondeps.sh \
|
|
|
|
${libdir}/rpm/bin/debugedit \
|
2024-09-09 08:57:42 +00:00
|
|
|
${libdir}/rpm/bin/debugedit.real \
|
2024-09-09 08:52:07 +00:00
|
|
|
${libdir}/rpm/bin/rpmcache \
|
2024-09-09 08:57:42 +00:00
|
|
|
${libdir}/rpm/bin/rpmcache.real \
|
2024-09-09 08:52:07 +00:00
|
|
|
${libdir}/rpm/bin/rpmcmp \
|
2024-09-09 08:57:42 +00:00
|
|
|
${libdir}/rpm/bin/rpmcmp.real \
|
2024-09-09 08:52:07 +00:00
|
|
|
${libdir}/rpm/bin/rpmdeps \
|
2024-09-09 08:57:42 +00:00
|
|
|
${libdir}/rpm/bin/rpmdeps.real \
|
|
|
|
${libdir}/rpm/bin/rpmdeps-oecore \
|
|
|
|
${libdir}/rpm/bin/rpmdeps-oecore.real \
|
2024-09-09 08:52:07 +00:00
|
|
|
${libdir}/rpm/bin/rpmdigest \
|
2024-09-09 08:57:42 +00:00
|
|
|
${libdir}/rpm/bin/rpmdigest.real \
|
2024-09-09 08:52:07 +00:00
|
|
|
${libdir}/rpm/bin/abi-compliance-checker.pl \
|
|
|
|
${libdir}/rpm/bin/api-sanity-autotest.pl \
|
|
|
|
${libdir}/rpm/bin/chroot \
|
|
|
|
${libdir}/rpm/bin/cp \
|
|
|
|
${libdir}/rpm/bin/dbsql \
|
|
|
|
${libdir}/rpm/bin/find \
|
|
|
|
${libdir}/rpm/bin/install-sh \
|
|
|
|
${libdir}/rpm/bin/lua \
|
|
|
|
${libdir}/rpm/bin/luac \
|
|
|
|
${libdir}/rpm/bin/mkinstalldirs \
|
|
|
|
${libdir}/rpm/bin/rpmlua \
|
|
|
|
${libdir}/rpm/bin/rpmluac \
|
|
|
|
${libdir}/rpm/bin/sqlite3 \
|
|
|
|
${libdir}/rpm/macros.d/cmake \
|
|
|
|
${libdir}/rpm/macros.d/java \
|
|
|
|
${libdir}/rpm/macros.d/libtool \
|
|
|
|
${libdir}/rpm/macros.d/mandriva \
|
|
|
|
${libdir}/rpm/macros.d/mono \
|
|
|
|
${libdir}/rpm/macros.d/perl \
|
|
|
|
${libdir}/rpm/macros.d/php \
|
|
|
|
${libdir}/rpm/macros.d/pkgconfig \
|
|
|
|
${libdir}/rpm/macros.d/python \
|
|
|
|
${libdir}/rpm/macros.d/ruby \
|
|
|
|
${libdir}/rpm/macros.d/selinux \
|
|
|
|
${libdir}/rpm/macros.d/tcl \
|
|
|
|
${libdir}/rpm/macros.rpmbuild \
|
|
|
|
${libdir}/rpm/u_pkg.sh \
|
|
|
|
${libdir}/rpm/vpkg-provides.sh \
|
|
|
|
${libdir}/rpm/vpkg-provides2.sh \
|
|
|
|
${libdir}/rpm/perfile_rpmdeps.sh \
|
|
|
|
"
|
2024-09-09 08:57:42 +00:00
|
|
|
RDEPENDS_${PN} = "base-files run-postinsts"
|
|
|
|
RDEPENDS_${PN}_class-native = ""
|
|
|
|
RDEPENDS_${PN}_class-nativesdk = ""
|
|
|
|
RDEPENDS_${PN}-build = "file bash perl"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
RDEPENDS_python-rpm = "${PN}"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
FILES_python-rpm-dbg = "${libdir}/python*/site-packages/rpm/.debug/_*"
|
|
|
|
FILES_python-rpm-dev = "${libdir}/python*/site-packages/rpm/*.la"
|
|
|
|
FILES_python-rpm-staticdev = "${libdir}/python*/site-packages/rpm/*.a"
|
|
|
|
FILES_python-rpm = "${libdir}/python*/site-packages/rpm"
|
|
|
|
PROVIDES += "python-rpm"
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
FILES_perl-module-rpm = "${libdir}/perl/*/* \
|
|
|
|
"
|
|
|
|
|
|
|
|
FILES_perl-module-rpm-dev = "${prefix}/share/man/man3/RPM* \
|
|
|
|
"
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
RDEPENDS_${PN}-dev += "bash"
|
|
|
|
|
|
|
|
FILES_${PN}-dev = "${includedir}/rpm \
|
2024-09-09 08:52:07 +00:00
|
|
|
${libdir}/librpm.la \
|
|
|
|
${libdir}/librpm.so \
|
|
|
|
${libdir}/librpmconstant.la \
|
|
|
|
${libdir}/librpmconstant.so \
|
|
|
|
${libdir}/librpmdb.la \
|
|
|
|
${libdir}/librpmdb.so \
|
|
|
|
${libdir}/librpmio.la \
|
|
|
|
${libdir}/librpmio.so \
|
|
|
|
${libdir}/librpmmisc.la \
|
|
|
|
${libdir}/librpmmisc.so \
|
|
|
|
${libdir}/librpmbuild.la \
|
|
|
|
${libdir}/librpmbuild.so \
|
2024-09-09 08:57:42 +00:00
|
|
|
${libdir}/rpm/lib/liblua.la \
|
2024-09-09 08:52:07 +00:00
|
|
|
${libdir}/pkgconfig/rpm.pc \
|
2024-09-09 08:57:42 +00:00
|
|
|
${libdir}/rpm/rpmdb_loadcvt \
|
2024-09-09 08:52:07 +00:00
|
|
|
"
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
FILES_${PN}-staticdev = " \
|
2024-09-09 08:52:07 +00:00
|
|
|
${libdir}/librpm.a \
|
|
|
|
${libdir}/librpmconstant.a \
|
|
|
|
${libdir}/librpmdb.a \
|
|
|
|
${libdir}/librpmio.a \
|
|
|
|
${libdir}/librpmmisc.a \
|
|
|
|
${libdir}/librpmbuild.a \
|
2024-09-09 08:57:42 +00:00
|
|
|
${libdir}/rpm/lib/liblua.a \
|
2024-09-09 08:52:07 +00:00
|
|
|
"
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
# Disable tests!
|
2024-09-09 08:57:42 +00:00
|
|
|
echo "all:" > ${S}/tests/Makefile.am
|
|
|
|
sed -e 's/@__MKDIR_P@/%{__mkdir} -p/' -i ${S}/macros/macros.in
|
|
|
|
|
|
|
|
( cd ${S}; ${S}/autogen.sh )
|
|
|
|
|
|
|
|
# NASTY hack to make sure configure files the right pkg-config file...
|
|
|
|
sed -e 's/pkg-config --exists uuid/pkg-config --exists ossp-uuid/g' \
|
|
|
|
-e 's/pkg-config uuid/pkg-config ossp-uuid/g' -i ${S}/configure
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
( cd ${S}/syck ; set +e ; rm -- -l* ; make distclean ) || :
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
export varprefix=${localstatedir}
|
|
|
|
oe_runconf
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install_append() {
|
|
|
|
sed -i -e 's,%__check_files,#%%__check_files,' ${D}/${libdir}/rpm/macros
|
|
|
|
sed -i -e 's,%__scriptlet_requires,#%%__scriptlet_requires,' ${D}/${libdir}/rpm/macros
|
2024-09-09 08:57:42 +00:00
|
|
|
sed -i -e 's,%__perl_provides,#%%__perl_provides,' ${D}/${libdir}/rpm/macros ${D}/${libdir}/rpm/macros.d/*
|
|
|
|
sed -i -e 's,%__perl_requires,#%%__perl_requires,' ${D}/${libdir}/rpm/macros ${D}/${libdir}/rpm/macros.d/*
|
2024-09-09 08:52:07 +00:00
|
|
|
sed -i -e 's,%_repackage_all_erasures[^_].*,%_repackage_all_erasures 0,' ${D}/${libdir}/rpm/macros
|
2024-09-09 08:57:42 +00:00
|
|
|
sed -i -e 's,^#%_openall_before_chroot.*,%_openall_before_chroot\t1,' ${D}/${libdir}/rpm/macros
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
# Enable Debian style arbitrary tags...
|
|
|
|
sed -i -e 's,%_arbitrary_tags[^_].*,%_arbitrary_tags %{_arbitrary_tags_debian},' ${D}/${libdir}/rpm/macros
|
|
|
|
|
|
|
|
install -m 0755 ${WORKDIR}/pythondeps.sh ${D}/${libdir}/rpm/pythondeps.sh
|
|
|
|
install -m 0755 ${WORKDIR}/perfile_rpmdeps.sh ${D}/${libdir}/rpm/perfile_rpmdeps.sh
|
|
|
|
|
|
|
|
# Remove unpackaged files (based on list in rpm.spec)
|
|
|
|
rm -f ${D}/${libdir}/rpm/{Specfile.pm,cpanflute,cpanflute2,rpmdiff,rpmdiff.cgi,sql.prov,sql.req,tcl.req,trpm}
|
|
|
|
|
|
|
|
rm -f ${D}/${mandir}/man8/rpmcache.8*
|
|
|
|
rm -f ${D}/${mandir}/man8/rpmgraph.8*
|
|
|
|
rm -f ${D}/${mandir}/*/man8/rpmcache.8*
|
|
|
|
rm -f ${D}/${mandir}/*/man8/rpmgraph.8*
|
|
|
|
rm -rf ${D}/${mandir}/{fr,ko}
|
|
|
|
|
|
|
|
rm -f ${D}/${includedir}/popt.h
|
|
|
|
rm -f ${D}/${libdir}/libpopt.*
|
|
|
|
rm -f ${D}/${libdir}/pkgconfig/popt.pc
|
|
|
|
rm -f ${D}/${datadir}/locale/*/LC_MESSAGES/popt.mo
|
|
|
|
rm -f ${D}/${mandir}/man3/popt.3
|
|
|
|
|
|
|
|
rm -f ${D}/${mandir}/man1/xar.1*
|
|
|
|
rm -f ${D}/${bindir}/xar
|
|
|
|
rm -rf ${D}/${includedir}/xar
|
|
|
|
rm -f ${D}/${libdir}/libxar*
|
|
|
|
|
|
|
|
rm -f ${D}/${bindir}/lz*
|
|
|
|
rm -f ${D}/${bindir}/unlzma
|
|
|
|
rm -f ${D}/${bindir}/unxz
|
|
|
|
rm -f ${D}/${bindir}/xz*
|
|
|
|
rm -rf ${D}/${includedir}/lzma*
|
|
|
|
rm -f ${D}/${mandir}/man1/lz*.1
|
|
|
|
rm -f ${D}/${libdir}/pkgconfig/liblzma*
|
|
|
|
|
|
|
|
rm -f ${D}/${libdir}/python%{with_python_version}/site-packages/*.{a,la}
|
|
|
|
rm -f ${D}/${libdir}/python%{with_python_version}/site-packages/rpm/*.{a,la}
|
|
|
|
|
|
|
|
#find ${D}/${libdir}/perl5 -type f -a \( -name perllocal.pod -o -name .packlist \
|
|
|
|
# -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';'
|
|
|
|
#find ${D}/${libdir}/perl5 -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
|
|
|
|
|
|
# We don't want the default macro set
|
|
|
|
rm -rf ${D}/${libdir}/rpm/{i[3456]86*,athlon*,pentium*,x86_64*,alpha*,sparc*,ia64*,ppc*,s390*,armv[34][lb]*,armv[345]*,mips*,noarch*}
|
|
|
|
|
|
|
|
rm -f ${D}/${libdir}/rpm/dbconvert.sh
|
|
|
|
|
|
|
|
rm -f ${D}/${libdir}/rpm/libsqldb.*
|
2024-09-09 08:57:42 +00:00
|
|
|
|
|
|
|
# We don't want, nor need the Mandriva multiarch items
|
|
|
|
rm -f ${D}/${bindir}/multiarch-dispatch
|
|
|
|
rm -f ${D}/${bindir}/multiarch-platform
|
|
|
|
rm -f ${D}/${libdir}/rpm/check-multiarch-files
|
|
|
|
rm -f ${D}/${libdir}/rpm/mkmultiarch
|
|
|
|
rm -f ${D}/${includedir}/multiarch-dispatch.h
|
|
|
|
|
|
|
|
rm -f ${D}/${libdir}/rpm/gstreamer.sh
|
|
|
|
rm -f ${D}/${libdir}/rpm/gem_helper.rb
|
|
|
|
rm -f ${D}/${libdir}/rpm/rubygems.rb
|
|
|
|
rm -f ${D}/${libdir}/rpm/kmod-deps.sh
|
|
|
|
rm -f ${D}/${libdir}/rpm/pythoneggs.py
|
|
|
|
rm -f ${D}/${libdir}/rpm/macros.d/kernel
|
|
|
|
rm -f ${D}/${libdir}/rpm/macros.d/gstreamer
|
|
|
|
rm -f ${D}/${libdir}/rpm/bin/mgo
|
|
|
|
rm -f ${D}/${libdir}/rpm/bin/dbconvert
|
|
|
|
rm -f ${D}/${libdir}/rpm/bin/pom2spec
|
|
|
|
|
|
|
|
rm -rf ${D}/var/lib/wdj ${D}/var/cache/wdj
|
|
|
|
rm -f ${D}/${libdir}/rpm/bin/api-sanity-checker.pl
|
|
|
|
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
add_native_wrapper() {
|
2024-09-09 08:52:07 +00:00
|
|
|
create_wrapper ${D}/${bindir}/rpm \
|
2024-09-09 08:57:42 +00:00
|
|
|
RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \
|
|
|
|
RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \
|
|
|
|
RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
create_wrapper ${D}/${bindir}/rpm2cpio \
|
2024-09-09 08:57:42 +00:00
|
|
|
RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \
|
|
|
|
RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \
|
|
|
|
RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
create_wrapper ${D}/${bindir}/rpmbuild \
|
2024-09-09 08:57:42 +00:00
|
|
|
RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \
|
|
|
|
RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \
|
|
|
|
RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
create_wrapper ${D}/${bindir}/rpmconstant \
|
2024-09-09 08:57:42 +00:00
|
|
|
RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \
|
|
|
|
RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \
|
|
|
|
RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale
|
|
|
|
|
|
|
|
for rpm_binary in ${D}/${libdir}/rpm/bin/rpm* ${D}/${libdir}/rpm/bin/debugedit; do
|
|
|
|
create_wrapper $rpm_binary \
|
|
|
|
RPM_USRLIBRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('libdir', True), d.getVar('bindir', True))}/rpm \
|
|
|
|
RPM_ETCRPM='$'{RPM_ETCRPM-'`dirname $''realpath`'/${@os.path.relpath(d.getVar('sysconfdir', True), d.getVar('bindir', True))}/rpm} \
|
|
|
|
RPM_LOCALEDIRRPM='`dirname $''realpath`'/${@os.path.relpath(d.getVar('datadir', True), d.getVar('bindir', True))}/locale
|
2024-09-09 08:52:07 +00:00
|
|
|
done
|
2024-09-09 08:57:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install_append_class-native() {
|
|
|
|
add_native_wrapper
|
|
|
|
}
|
2024-09-09 08:52:07 +00:00
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
do_install_append_class-nativesdk() {
|
|
|
|
add_native_wrapper
|
2024-09-09 08:52:07 +00:00
|
|
|
}
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
BBCLASSEXTEND = "native nativesdk"
|