Bug 33275

Summary: gcc-14.1.0-1 from Cauldron fails to rebuild in Mageia 9 due to missing adalib
Product: Mageia Reporter: Kristoffer Grundström <lovaren>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: lovaren
Version: 9   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: gcc-14.1.0-1 CVE:
Status comment:

Description Kristoffer Grundström 2024-06-07 18:35:53 CEST
Description of problem: I made sure that all the dependencies are installed and got no errors during the installation of them. I then tried to rebuild the src.rpm from Cauldron to Mageia 9 and it fails saying:

+ pushd /home/kristoffer/rpmbuild/BUILDROOT/gcc-14.1.0-1.mga9.x86_64/usr/lib/gcc/x86_64-mageia-linux/14/adalib
/var/tmp/rpm-tmp.da5lsv: line 95: pushd: /home/kristoffer/rpmbuild/BUILDROOT/gcc-14.1.0-1.mga9.x86_64/usr/lib/gcc/x86_64-mageia-linux/14/adalib: No such file or directory

Version-Release number of selected component (if applicable): 14.1.0-1

How reproducible: All the time.

Steps to Reproduce:
1. Download the src.rpm for gcc-14.1.0-1
2. Extract the source files to ~/rpmbuild/SOURCES/ and the gcc.spec to ~/Desktop/
3. Open a terminal window.
4. If your user isn't already added to the wheel group, go ahead and add it and re-login to your Desktop Environment for the change to take affect.
Skip this instruction otherwise.
5. If you're at $USER/Desktop now type sudo urpmi gcc.spec --auto in a terminal window and hit Enter/Return.
6. Now do rpmbuild -ba gcc.spec and hit Enter/Return and wait.
7. The build will reach almost to the end, but fails with saying that adalib is missing.
Kristoffer Grundström 2024-06-07 18:36:58 CEST

CC: (none) => lovaren

Comment 1 sturmvogel 2024-06-09 22:42:15 CEST
The source rpm gcc-14.1.0-1.mga10.src.rpm just rebuilds absolutly flawlessly on Mageia 9. This was verified on a clean MGA9 Virtualbox installation and on the openSUSE Build Service (OBS) infrastructure.

Your issue seems to be caused by not following the guidelines and an unclean building environment.
https://wiki.mageia.org/en/Packaging_for_beginners#Example_A:_Build_an_environment_and_your_first_rpm

Resolution: (none) => INVALID
Status: NEW => RESOLVED