diff options
author | Diego Santa Cruz <Diego.SantaCruz@spinetix.com> | 2021-03-03 19:09:04 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-03-06 22:39:04 +0000 |
commit | ed253541ee12eecf85c23b9893b3e8b1b326b6a3 (patch) | |
tree | be1d212af3c5bc7de8f0d9e9375b90b30d29faf8 /meta/recipes-devtools/rpm | |
parent | 5623cf33c13358df3ed34882ceed9ca79965fde2 (diff) | |
download | poky-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.bb | 39 |
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 | ||
146 | FILES_${PN}-dev += "${libdir}/rpm-plugins/*.la \ | 146 | FILES_${PN}-dev += "${libdir}/rpm-plugins/*.la \ |
147 | " | 147 | " |
148 | PACKAGE_BEFORE_PN += "${PN}-build ${PN}-sign ${PN}-archive" | ||
149 | |||
150 | RRECOMMENDS_${PN} += "rpm-build rpm-sign rpm-archive" | ||
151 | |||
152 | FILES_${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 | |||
174 | FILES_${PN}-sign = "\ | ||
175 | ${bindir}/rpmsign \ | ||
176 | ${libdir}/librpmsign.so.* \ | ||
177 | " | ||
178 | |||
179 | FILES_${PN}-archive = "\ | ||
180 | ${bindir}/rpm2archive \ | ||
181 | " | ||
148 | 182 | ||
149 | PACKAGES += "python3-rpm" | 183 | PACKAGES += "python3-rpm" |
150 | PROVIDES += "python3-rpm" | 184 | PROVIDES += "python3-rpm" |
151 | FILES_python3-rpm = "${PYTHON_SITEPACKAGES_DIR}/rpm/*" | 185 | FILES_python3-rpm = "${PYTHON_SITEPACKAGES_DIR}/rpm/*" |
152 | 186 | ||
153 | # rpm 5.x was packaging the rpm build tools separately | 187 | RDEPENDS_${PN}-build = "bash perl python3-core" |
154 | RPROVIDES_${PN} += "rpm-build" | ||
155 | |||
156 | RDEPENDS_${PN} = "bash perl python3-core" | ||
157 | 188 | ||
158 | PACKAGE_PREPROCESS_FUNCS += "rpm_package_preprocess" | 189 | PACKAGE_PREPROCESS_FUNCS += "rpm_package_preprocess" |
159 | 190 | ||