[Rpm-maint] [rpm-software-management/rpm] Requires(pre) should propagate along dependency graph (Issue #4141)
Yann Dirson
notifications at github.com
Wed Mar 11 17:19:47 UTC 2026
ydirson created an issue (rpm-software-management/rpm#4141)
**Describe the bug**
In the context of bootstrapping a koji dnf4 buildroot for Alma10 (`x86_64_v2`) a set of packages, the bootstrap command (here `dnf install -v python3-dnf python3-dnf-core-plugins`, but `dnf install filesystem` shows the same) can result in shell scriptlets failing to execute, even though `/bin/sh` is correctly made available first, because `glibc` (which `bash` has a `Requires:` against) does not get ordered in time for `bash` to be usable.
**To Reproduce**
Steps to reproduce the behavior:
1. start with a tag containing Almalinux 10.0 `x86_64_v2` packages (https://koji.xcp-ng.org/taginfo?tagID=157)
2. inherit from there a tag containing a single package "shaking dependency tree enough" (https://koji.xcp-ng.org/taginfo?tagID=158 containing https://koji.xcp-ng.org/buildinfo?buildID=5219 : `xcp-ng-release` (quite dirty and to be replaced, please do not judge that part :wink:, which provides `almalinux-release` and changes a pair of dependencies)
3. attempt to build a package against this tag: buildroot bootstrapping fails, as in https://koji.xcp-ng.org/taskinfo?taskID=100340
**Expected behavior**
`glibc` and any other requirement of prereq should be handled as a prereq itself.
See https://koji.xcp-ng.org/taskinfo?taskID=100361 for the same job, run with a `crypto-policies` package rebuilt with an explicit `Requires(pre): glibc`.
**Output**
```
DEBUG util.py:461: Installing : bash-5.2.26-6.el10.x86_64_v2 43/118
DEBUG util.py:461: Running scriptlet: bash-5.2.26-6.el10.x86_64_v2 43/118
DEBUG util.py:461: Running scriptlet: crypto-policies-20250214-1.gitfd9b9b9.el10_0.1.n 44/118
DEBUG util.py:461: error: failed to exec scriptlet interpreter /bin/sh: No such file or directory
DEBUG util.py:461: error: %prein(crypto-policies-20250214-1.gitfd9b9b9.el10_0.1.noarch) scriptlet failed, exit status 127
DEBUG util.py:459: Error in PREIN scriptlet in rpm package crypto-policies
DEBUG util.py:461: Installing : setup-2.14.5-4.el10.noarch 45/118
DEBUG util.py:461: error: crypto-policies-20250214-1.gitfd9b9b9.el10_0.1.noarch: install failed
DEBUG util.py:461: warning: /etc/hosts created as /etc/hosts.rpmnew
DEBUG util.py:461: Running scriptlet: setup-2.14.5-4.el10.noarch 45/118
DEBUG util.py:461: Installing : filesystem-3.18-16.el10.x86_64_v2 46/118
DEBUG util.py:461: Installing : basesystem-11-22.el10.noarch 47/118
DEBUG util.py:461: Running scriptlet: glibc-2.39-46.el10_0.4.alma.1.x86_64_v2 48/118
DEBUG util.py:461: Installing : glibc-2.39-46.el10_0.4.alma.1.x86_64_v2 48/118
DEBUG util.py:461: Running scriptlet: glibc-2.39-46.el10_0.4.alma.1.x86_64_v2 48/118
```
**Environment**
- OS / Distribution: Almalinux 10.0
- Version rpm-4.19.1.1
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/4141
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/4141 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260311/20adaf71/attachment.htm>
More information about the Rpm-maint
mailing list