Bug 33131 - RPM build macros: add support for %limit_build macro
Summary: RPM build macros: add support for %limit_build macro
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2024-04-23 15:14 CEST by Jani Välimaa
Modified: 2024-04-27 02:38 CEST (History)
4 users (show)

See Also:
Source RPM: rpm-mageia-setup-2.71-1.mga9
CVE:
Status comment:


Attachments

Description Jani Välimaa 2024-04-23 15:14:48 CEST
Include macros.build-constraints macro file from Cauldron to mga9 rpm-mageia-setup package.

It'll add %limit_build macro to help to build huge pkgs like webkit2.
Comment 1 Jani Välimaa 2024-04-23 15:25:25 CEST
Fixed in upcoming rpm-mageia-setup-2.71-1.1.mga9

SRPMS:
rpm-mageia-setup-2.71-1.1.mga9

RPMS:
rpm-mageia-setup-2.71-1.1.mga9
rpm-mageia-setup-build-2.71-1.1.mga9
Comment 2 Jani Välimaa 2024-04-23 15:28:15 CEST
Easy test case.

Before update there's no %limit_build macro and 'rpm --eval' output is b0rked.
$ rpm --eval '%{limit_build -m 2048}'
%{limit_build -m 2048}

After update the macro is available and 'rpm --eval' returns sane output depending on used CPU and available memory.
$ rpm --eval '%{limit_build -m 2048}'
-j3
Jani Välimaa 2024-04-24 06:02:53 CEST

CC: (none) => jani.valimaa
Assignee: bugsquad => qa-bugs

Comment 3 katnatek 2024-04-26 03:49:27 CEST
RH mageia 9 x86_64

Before the update

rpm --eval '%{limit_build -m 2048}'
%{limit_build -m 2048}

LC_ALL=C urpmi --auto --auto-update
medium "QA Testing (32-bit)" is up-to-date
medium "QA Testing (64-bit)" is up-to-date
medium "Core Release (distrib1)" is up-to-date
medium "Core Updates (distrib3)" is up-to-date
medium "Nonfree Release (distrib11)" is up-to-date
medium "Nonfree Updates (distrib13)" is up-to-date
medium "Tainted Release (distrib21)" is up-to-date
medium "Tainted Updates (distrib23)" is up-to-date
medium "Core 32bit Release (distrib31)" is up-to-date
medium "Core 32bit Updates (distrib32)" is up-to-date
medium "Nonfree 32bit Release (distrib36)" is up-to-date
medium "Tainted 32bit Release (distrib41)" is up-to-date
medium "Tainted 32bit Updates (distrib42)" is up-to-date


installing rpm-mageia-setup-build-2.71-1.1.mga9.x86_64.rpm rpm-mageia-setup-2.71-1.1.mga9.x86_64.rpm from //home/katnatek/qa-testing/x86_64
Preparing...                     ##################################################################################################
      1/2: rpm-mageia-setup      ##################################################################################################
      2/2: rpm-mageia-setup-build
                                 ##################################################################################################
      1/2: removing rpm-mageia-setup-build-2.71-1.mga9.x86_64
                                 ##################################################################################################
      2/2: removing rpm-mageia-setup-2.71-1.mga9.x86_64
                                 ##################################################################################################


After the update

rpm --eval '%{limit_build -m 2048}'
-j2
katnatek 2024-04-26 03:49:50 CEST

CC: (none) => andrewsfarm

katnatek 2024-04-26 03:50:04 CEST

Whiteboard: (none) => MGA9-64-OK

katnatek 2024-04-26 04:17:17 CEST

Keywords: (none) => advisory

Comment 4 Dave Hodgins 2024-04-26 17:37:27 CEST
On a quad core with 16GB ram ...
[root@x3 ~]# rpm --eval '%{limit_build -m 2048}'

[root@x3 ~]# rpm --eval '%{limit_build -m 4096}'
-j3
[root@x3 ~]# rpm --eval '%{limit_build -m 6144}'
-j2
[root@x3 ~]# rpm --eval '%{limit_build -m 8192}'
-j1

Validating

Keywords: (none) => validated_update
CC: (none) => davidwhodgins, sysadmin-bugs

Comment 5 Mageia Robot 2024-04-27 02:38:00 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2024-0134.html

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


Note You need to log in before you can comment on or make changes to this bug.