Bug 31125

Summary: When rebuilding firefox-beta 2 warnings about expanded macros on lines 34 and 35
Product: Mageia Reporter: Kristoffer Grundström <lovaren>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: firefox-beta CVE:
Status comment:

Description Kristoffer Grundström 2022-11-15 04:20:46 CET
Description of problem: I just rebuilt firefox-beta from Cauldron and the output shows the following 2 warnings that needs to be adressed:

warning: Macro expanded in comment on line 34: %{?build_with_clang}

warning: Macro expanded in comment on line 35: %global disable_elfhack   1

Adding an extra % should do the trick, but I have no commit rights to Cauldron.

Version-Release number of selected component (if applicable): 107.0b9

How reproducible: Everytime

Steps to Reproduce:
1. Download the firefox-beta src.rpm
2. Unpack the content (put the spec file somewhere else) to ~/rpmbuild/SOURCES/
3. Open a terminal window.
4. cd to the location of the firefox-beta.spec
5. Run sudo urpmi firefox-beta.spec --auto, type your password when asked and let it finish.
6. Type rpmbuild -ba firefox-beta.spec and watch the output at the beginning.
Comment 1 Kristoffer Grundström 2022-11-15 04:39:06 CET
As a side note to these 2 warnings I also suggest that we fix this:

The "MACH_USE_SYSTEM_PYTHON" environment variable is deprecated, please unset it or replace it with either "MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system" or "MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none"
Site not up-to-date reason: "/home/kristoffer/rpmbuild/BUILD/firefox-107.0/objdir/_virtualenvs/build" does not exist

and also this:

 0:21.92 ERROR: Rust compiler 1.60.0 is too old.
 0:21.92 To compile Rust language sources please install at least
 0:21.92 version 1.61.0 of the 'rustc' toolchain (or, if using nightly,
 0:21.92 at least one version newer than 1.61.0) and make sure it is
 0:21.92 first in your path.
 0:21.92 You can verify this by typing 'rustc --version'.
 0:21.92 If you have the 'rustup' tool installed you can upgrade
 0:21.92 to the latest release by typing 'rustup update'. The
 0:21.92 installer is available from https://rustup.rs/
*** Fix above errors and then restart with "./mach build"

I couldn't find rustup in Mageia 8 with the urpmf command so upgrading rustc to 1.61.0 is not possible unless a package update for it is delivered.
Comment 2 sturmvogel 2022-11-15 06:58:01 CET
Uuuuh dup

*** This bug has been marked as a duplicate of bug 30636 ***

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