| Summary: | RPM build macros: add support for %limit_build macro | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Jani Välimaa <jani.valimaa> |
| Component: | RPM Packages | Assignee: | QA Team <qa-bugs> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | andrewsfarm, davidwhodgins, jani.valimaa, sysadmin-bugs |
| Version: | 9 | Keywords: | advisory, validated_update |
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | MGA9-64-OK | ||
| Source RPM: | rpm-mageia-setup-2.71-1.mga9 | CVE: | |
| Status comment: | |||
|
Description
Jani Välimaa
2024-04-23 15:14:48 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 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 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 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
ValidatingKeywords:
(none) =>
validated_update An update for this issue has been pushed to the Mageia Updates repository. https://advisories.mageia.org/MGAA-2024-0134.html Resolution:
(none) =>
FIXED |