LCG package relocation fails with native EL9 version
Summary
When using the native EL 9 version the package relocation fails for LCG RPMs. See AGENE-2273
What version of atlas-dnf5 do you use ?
v5.2.1.0 - but basically all before that are affected as well.
How do you use atlas-dnf5 ?
-
using the CVMFS container via apptainer -
from a local container via apptainer -
from the Alma 9 tar file -
via docker/podman container
Describe the bug behavior
Build paths in the LCG RPMs are not correctly relocated. No error or warning is shown during installation, but they can be seen in the log file (see below).
This happens only with the native EL 9 version, not any of the containerized variants.
The underlying problem is that the RPM command distributed with the tar file has been build with the /usr/local prefix. The default macros derive from this a temp dir location of /usr/local/var/tmp which does not exist.
The bug does not show up when the user has a ~/.rpmmacros file that defines %_tmppath to a valid location. This is also the work around to make things work:
%_tmppath /var/tmp
Log files or output (if applicable)
2024-05-16T16:15:08+0200 [2127486] INFO RPM callback install start "madgraph5amc-bc9f8_3.5.3.atlas6_x86_64_el9_gcc13_opt-0:1.0.0-1.noarch" total 214028016 2024-05-16T16:15:12+0200 [2127486] INFO RPM callback install stop "madgraph5amc-bc9f8_3.5.3.atlas6_x86_64_el9_gcc13_opt-0:1.0.0-1.noarch" amount 214028016 total 214028016 2024-05-16T16:15:12+0200 [2127486] INFO RPM callback start post-install scriptlet "madgraph5amc-bc9f8_3.5.3.atlas6_x86_64_el9_gcc13_opt-0:1.0.0-1.noarch" 2024-05-16T16:15:12+0200 [2127486] ERROR [rpm] error creating temporary file /usr/local/var/tmp/rpm-tmp.FjvVv3: No such file or directory 2024-05-16T16:15:12+0200 [2127486] ERROR [rpm] Couldn't create temporary file for %post(madgraph5amc-bc9f8_3.5.3.atlas6_x86_64_el9_gcc13_opt-1.0.0-1.noarch): No such file or directory 2024-05-16T16:15:12+0200 [2127486] INFO RPM callback stop post-install scriptlet "madgraph5amc-bc9f8_3.5.3.atlas6_x86_64_el9_gcc13_opt-0:1.0.0-1.noarch" return code 1 2024-05-16T16:15:12+0200 [2127486] WARNING RPM callback non-critical error in post-install scriptlet "madgraph5amc-bc9f8_3.5.3.atlas6_x86_64_el9_gcc13_opt-0:1.0.0-1.noarch"