summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm
diff options
context:
space:
mode:
authorDiego Santa Cruz <Diego.SantaCruz@spinetix.com>2021-03-03 19:09:04 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-06 22:39:04 +0000
commited253541ee12eecf85c23b9893b3e8b1b326b6a3 (patch)
treebe1d212af3c5bc7de8f0d9e9375b90b30d29faf8 /meta/recipes-devtools/rpm
parent5623cf33c13358df3ed34882ceed9ca79965fde2 (diff)
downloadpoky-ed253541ee12eecf85c23b9893b3e8b1b326b6a3.tar.gz
rpm: split build and extra functionality into separate packages
Having all the rpm build related tools in the main package requires adding runtime dependencies on perl and python3-core, so adding rpm to a target image can pull quite many unneeded packages to satisfy the dependencies. This splits all the build related tools into rpm-build and moves the bash, perl and python3-core runtime dependencies to that package. Also, the rpmsign tool is split into rpm-sign and rpm2archive (only built if archive is in PACKAGECONFIG) into rpm-archive. These are separate packages since they are not really related to building, so do not belong in rpm-build, but are not necessarily wanted in target images when rpm is included. (From OE-Core rev: 0dea6cccc1c638078846e6eb8e48e8ef69c87618) Signed-off-by: Diego Santa Cruz <Diego.SantaCruz@spinetix.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rpm')
-rw-r--r--meta/recipes-devtools/rpm/rpm_4.16.1.2.bb39
1 files changed, 35 insertions, 4 deletions
diff --git a/meta/recipes-devtools/rpm/rpm_4.16.1.2.bb b/meta/recipes-devtools/rpm/rpm_4.16.1.2.bb
index 9195d66dd1..d369c706a2 100644
--- a/meta/recipes-devtools/rpm/rpm_4.16.1.2.bb
+++ b/meta/recipes-devtools/rpm/rpm_4.16.1.2.bb
@@ -145,15 +145,46 @@ FILES_${PN}_append_class-nativesdk = " ${SDKPATHNATIVE}/environment-setup.d/rpm.
145 145
146FILES_${PN}-dev += "${libdir}/rpm-plugins/*.la \ 146FILES_${PN}-dev += "${libdir}/rpm-plugins/*.la \
147 " 147 "
148PACKAGE_BEFORE_PN += "${PN}-build ${PN}-sign ${PN}-archive"
149
150RRECOMMENDS_${PN} += "rpm-build rpm-sign rpm-archive"
151
152FILES_${PN}-build = "\
153 ${bindir}/rpmbuild \
154 ${bindir}/gendiff \
155 ${bindir}/rpmspec \
156 ${libdir}/librpmbuild.so.* \
157 ${libdir}/rpm/brp-* \
158 ${libdir}/rpm/check-* \
159 ${libdir}/rpm/debugedit \
160 ${libdir}/rpm/sepdebugcrcfix \
161 ${libdir}/rpm/find-debuginfo.sh \
162 ${libdir}/rpm/find-lang.sh \
163 ${libdir}/rpm/*provides* \
164 ${libdir}/rpm/*requires* \
165 ${libdir}/rpm/*deps* \
166 ${libdir}/rpm/*.prov \
167 ${libdir}/rpm/*.req \
168 ${libdir}/rpm/config.* \
169 ${libdir}/rpm/mkinstalldirs \
170 ${libdir}/rpm/macros.p* \
171 ${libdir}/rpm/fileattrs/* \
172"
173
174FILES_${PN}-sign = "\
175 ${bindir}/rpmsign \
176 ${libdir}/librpmsign.so.* \
177"
178
179FILES_${PN}-archive = "\
180 ${bindir}/rpm2archive \
181"
148 182
149PACKAGES += "python3-rpm" 183PACKAGES += "python3-rpm"
150PROVIDES += "python3-rpm" 184PROVIDES += "python3-rpm"
151FILES_python3-rpm = "${PYTHON_SITEPACKAGES_DIR}/rpm/*" 185FILES_python3-rpm = "${PYTHON_SITEPACKAGES_DIR}/rpm/*"
152 186
153# rpm 5.x was packaging the rpm build tools separately 187RDEPENDS_${PN}-build = "bash perl python3-core"
154RPROVIDES_${PN} += "rpm-build"
155
156RDEPENDS_${PN} = "bash perl python3-core"
157 188
158PACKAGE_PREPROCESS_FUNCS += "rpm_package_preprocess" 189PACKAGE_PREPROCESS_FUNCS += "rpm_package_preprocess"
159 190