diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2024-01-26 14:34:52 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-01-27 08:20:02 +0000 |
commit | 2b20d612b4b69e8d5eebf17751517d51586fb079 (patch) | |
tree | 783791c6866c37fb72cb33fcdbd1e9cb7c192f83 /meta/classes-global/package_rpm.bbclass | |
parent | 347abb8c06b6a84ddd214d14964e049685a9be5f (diff) | |
download | poky-2b20d612b4b69e8d5eebf17751517d51586fb079.tar.gz |
classes/package_rpm: use weak user/group dependencies
rpm 4.19 automatically generates provides and depends for user and
groups:
https://github.com/rpm-software-management/rpm/blob/rpm-4.19.x/docs/manual/users_and_groups.md#dependencies
This mechanism relies on sysusers.d for the 'provides'
part, and thus is systemd-only at best. So we need to disable it for now,
otherwise image generation fails with unresolved dependencies.
(From OE-Core rev: 10064e364f015ad3c0c8d63511cd9a7da5e22c69)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-global/package_rpm.bbclass')
-rw-r--r-- | meta/classes-global/package_rpm.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes-global/package_rpm.bbclass b/meta/classes-global/package_rpm.bbclass index a641dbdb29..3ca6c5aa7b 100644 --- a/meta/classes-global/package_rpm.bbclass +++ b/meta/classes-global/package_rpm.bbclass | |||
@@ -721,6 +721,7 @@ python do_package_rpm () { | |||
721 | cmd = cmd + " --define '_unpackaged_files_terminate_build 0'" | 721 | cmd = cmd + " --define '_unpackaged_files_terminate_build 0'" |
722 | cmd = cmd + " --define 'debug_package %{nil}'" | 722 | cmd = cmd + " --define 'debug_package %{nil}'" |
723 | cmd = cmd + " --define '_tmppath " + workdir + "'" | 723 | cmd = cmd + " --define '_tmppath " + workdir + "'" |
724 | cmd = cmd + " --define '_use_weak_usergroup_deps 1'" | ||
724 | if d.getVarFlag('ARCHIVER_MODE', 'srpm') == '1' and bb.data.inherits_class('archiver', d): | 725 | if d.getVarFlag('ARCHIVER_MODE', 'srpm') == '1' and bb.data.inherits_class('archiver', d): |
725 | cmd = cmd + " --define '_sourcedir " + d.getVar('ARCHIVER_OUTDIR') + "'" | 726 | cmd = cmd + " --define '_sourcedir " + d.getVar('ARCHIVER_OUTDIR') + "'" |
726 | cmdsrpm = cmd + " --define '_srcrpmdir " + d.getVar('ARCHIVER_RPMOUTDIR') + "'" | 727 | cmdsrpm = cmd + " --define '_srcrpmdir " + d.getVar('ARCHIVER_RPMOUTDIR') + "'" |