Bug 20877

Summary: custom %distsuffix don't make effect
Product: Mageia Reporter: katnatek <j.alberto.vc>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: Normal CC: cae, j.biernacki+mga, marja11
Version: CauldronKeywords: NEEDINFO
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: rpm-4.13.0.1-2.mga6.src.rpm CVE:
Status comment:

Description katnatek 2017-05-17 03:20:08 CEST
Description of problem:

Some times i build some packages for the blogdrake's respository, today i build for test cdw and simpleburn, but once builded the packages don't have the custom bdk.mga6 as expected in mageia 5 builds all builded packages have bdk.mga5 custom suffix, i make double check and the used specs have all the needed, and i check also with a package builded for mageia 5.
Comment 1 katnatek 2017-05-17 03:23:07 CEST
Forget to comment the suffix is just .mga6
Comment 2 Charles Edwards 2017-05-17 04:04:20 CEST
In Mga6 your ~.rpmmacros you would need to use

%dist		    bdk.mga%{distro_release}

On my system I just use:
%dist		    zae%{distro_release}
charles@SuperSize ~]$ rpm --eval %dist
zae6 

If this solves your problem please change the status of this bug to resolved.

CC: (none) => cae

Marja Van Waes 2017-05-17 11:29:03 CEST

CC: (none) => marja11
Keywords: (none) => NEEDINFO

Comment 3 katnatek 2017-05-17 18:33:15 CEST
(In reply to Charles Edwards from comment #2)
> In Mga6 your ~.rpmmacros you would need to use
> 
> %dist		    bdk.mga%{distro_release}
> 
> On my system I just use:
> %dist		    zae%{distro_release}
> charles@SuperSize ~]$ rpm --eval %dist
> zae6 
> 
> If this solves your problem please change the status of this bug to resolved.

It works, but what have changed ?

before 6 i just define 

%distsuffix bdk.mga

and works.

Closed as solved anyway

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

Comment 4 Charles Edwards 2017-05-17 22:47:27 CEST
(In reply to katnatek from comment #3)
 
> > If this solves your problem please change the status of this bug to resolved.
> 
> It works, but what have changed ?

rpm provides and defines most of the macros used.
The macros and their values sometimes change with version upgrades in rpm.

This is the case with the rpm in Mga5 and rpm-4.13.0.1 in Mga6.
%distsuffix was replaced with %dist.

A full listing of the macros can be found in /usr/lib/rpm/
Comment 5 Jybz 2021-11-04 20:36:44 CET
Mark as duplicate even if the other bug report is the duplicate of this one.

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

CC: (none) => j.biernacki+mga
Resolution: FIXED => DUPLICATE