mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
classes: Move package RDEPENDS processing out of debian.bbclass
INHERIT_DIRSTO by default includes debian.bbclass which in turn properly establishes dependencies between package management tasks and build process. Debian class also unconditionally renames several packages in a Debian way. In order to allow disabling of such renaming rules, the logic of RDEPENDS handling is moved to a package.bbclass. This commit also solves the SDK building issue without debian.bbclass. (From OE-Core rev: 8313a4201cde39c444aa6fbe82e46a767fc31f6b) Signed-off-by: Sergei Zhmylev <s.zhmylev@yadro.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f1b0ab7e4b
commit
251a5c88f6
@@ -14,26 +14,14 @@
|
||||
#
|
||||
# Better expressed as ensure all RDEPENDS package before we package
|
||||
# This means we can't have circular RDEPENDS/RRECOMMENDS
|
||||
#
|
||||
# Logic of processing dependencies moved to a package.bbclass to
|
||||
# allow removing inheritance on debian.bbclass
|
||||
|
||||
AUTO_LIBNAME_PKGS = "${PACKAGES}"
|
||||
|
||||
inherit package
|
||||
|
||||
DEBIANRDEP = "do_packagedata"
|
||||
do_package_write_ipk[deptask] = "${DEBIANRDEP}"
|
||||
do_package_write_deb[deptask] = "${DEBIANRDEP}"
|
||||
do_package_write_tar[deptask] = "${DEBIANRDEP}"
|
||||
do_package_write_rpm[deptask] = "${DEBIANRDEP}"
|
||||
do_package_write_ipk[rdeptask] = "${DEBIANRDEP}"
|
||||
do_package_write_deb[rdeptask] = "${DEBIANRDEP}"
|
||||
do_package_write_tar[rdeptask] = "${DEBIANRDEP}"
|
||||
do_package_write_rpm[rdeptask] = "${DEBIANRDEP}"
|
||||
|
||||
python () {
|
||||
if not d.getVar("PACKAGES"):
|
||||
d.setVar("DEBIANRDEP", "")
|
||||
}
|
||||
|
||||
python debian_package_name_hook () {
|
||||
import glob, copy, stat, errno, re, pathlib, subprocess
|
||||
|
||||
|
||||
Reference in New Issue
Block a user