-
Notifications
You must be signed in to change notification settings - Fork 486
Description
Describe the bug
Rootful Fedora 43 Distrobox, fedpkg mockbuild is failing, I suspect due to /dev/null being inaccessible?
To Reproduce
- Create Rootful F43 Distrobox, via
distrobox create --root -i quay.io/fedora/fedora:43 -n fpkg --init -additional-packages 'systemd fedora-packager' - Grab fedora sources via
fedpkg co niri-settings(just using niri-settings as an example, this is happening with all attempted mockbuilds, regardless of package) - Run
fedpkg mockbuildon sources - mockbuild process fails, during setup of the mock buildroot, suspected due to:
>>> Running %triggerin scriptlet: info-0:7.2-7.fc44.x86_64
>>> Non-critical error in %triggerin scriptlet: info-0:7.2-7.fc44.x86_64
>>> Scriptlet output:
>>> /var/tmp/rpm-tmp.J2jliB: line 2: /dev/null: Permission denied
>>>
>>> [RPM] %transfiletriggerin(info-7.2-7.fc44.x86_64) scriptlet failed, exit status 1
>>> Running %triggerpostun scriptlet: info-0:7.2-7.fc44.x86_64
>>> Non-critical error in %triggerpostun scriptlet: info-0:7.2-7.fc44.x86_64
>>> [RPM] %transfiletriggerpostun(info-7.2-7.fc44.x86_64) scriptlet failed, exit status 1
Expected behavior
fedpkg mockbuild runs and sets up the buildroot properly and creates a local rpm
Logs
Run the commands with --verbose and post the log here as a file upload
Desktop (please complete the following information):
- Podman 5.7.1
- distrobox version: 1.8.2.2
- Kalpa Desktop (openSUSE Tumbleweed/MicroOS)
- Distribution provided RPM packages
Additional context
mockbuild.txt Log of the actual mockbuild
Apparently, in Fedora 42, rpmbuild was allowed to ignore these "Non-Critical Errors" in mockbuild, and proceed normally. In F43 and Rawhide, that policy has now changed.
I don't actually know what the issue is. Or if access to /dev/null has anything to do with it, but those errors were there with F42, and I could build fine. This may, or may not be a distrobox issue with permissions, but so far, I can't seem to narrow down where the actual problem is.