Bug 29460 - %mkrel 2 is not expanded in bm message
Summary: %mkrel 2 is not expanded in bm message
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: papoteur
QA Contact:
URL: rpm-build-4.16.1.3-1.1.mga8
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-15 07:45 CEST by papoteur
Modified: 2021-11-12 08:45 CET (History)
4 users (show)

See Also:
Source RPM: bm
CVE:
Status comment:


Attachments
[Patch] for bm (939 bytes, patch)
2021-11-12 08:45 CET, papoteur
Details | Diff

Description papoteur 2021-09-15 07:45:04 CEST
Description of problem:
When building a package with bm, different steps are displayed.
One of these is (at beginning):
processing package vosk-model-small-ru-0.15-%mkrel 2

You can note that %mkrel 2 is not expanded
This is minor, but this can conduct to think that something is wrong in the spec file using this macro.

I presume the problem is in rpmbuild, not bm.


Version-Release number of selected component (if applicable):
rpm-build-4.16.1.3-1.1.mga8
Comment 1 Marja Van Waes 2021-09-15 11:43:21 CEST
(In reply to papoteur from comment #0)
> Description of problem:
> When building a package with bm, different steps are displayed.
> One of these is (at beginning):
> processing package vosk-model-small-ru-0.15-%mkrel 2
> 
> You can note that %mkrel 2 is not expanded
> This is minor, but this can conduct to think that something is wrong in the
> spec file using this macro.
> 
> I presume the problem is in rpmbuild, not bm.
> 
> 
> Version-Release number of selected component (if applicable):
> rpm-build-4.16.1.3-1.1.mga8

Assigning to the rpm stack maintainers.

CC: (none) => marja11
Source RPM: (none) => rpm-build-4.16.1.3-1.1.mga8
Assignee: bugsquad => rpmstack

Comment 2 Thierry Vignaud 2021-10-31 02:35:29 CET
AFAIC This is not a bug in rpm-build but in bm.

/usr/lib/python3.9/site-packages/BuildManager/package.py just manually parses the spec file in _package_spec()
It should explicitly try to expand macros…

Assigning according to http://sophie.zarb.org/rpms/b2cc908a66112494642edb8becb5079b/changelog

Source RPM: rpm-build-4.16.1.3-1.1.mga8 => bm
CC: (none) => geiger.david68210, thierry.vignaud
Assignee: rpmstack => bugsquad

Comment 3 Frank Griffin 2021-11-12 00:47:51 CET
Assigning to the current bm maintainer.

Assignee: bugsquad => geiger.david68210
CC: (none) => ftg

Comment 4 papoteur 2021-11-12 08:37:24 CET
It's not a packaging job.
I take it.

Assignee: geiger.david68210 => yves.brungard_mageia

papoteur 2021-11-12 08:37:47 CET

Summary: %mkrel 2 is not expanded in rpmbuild message => %mkrel 2 is not expanded in bm message

Comment 5 papoteur 2021-11-12 08:45:01 CET
Created attachment 12985 [details]
[Patch] for bm

If %mkrel is seen in the release line, use rpm for evaluating it.

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