[Mageia-sysadm] mgaversion and mgaver macros

Ahmad Samir ahmadsamir3891 at gmail.com
Thu Apr 14 21:12:05 CEST 2011


On 14 April 2011 13:41, Michael Scherer <misc at zarb.org> wrote:
> Le mardi 12 avril 2011 à 13:07 +0200, Olivier Blin a écrit :
>> Ahmad Samir <ahmadsamir3891 at gmail.com> writes:
>>
>> > Hello,
>> >
>> > $ rpm --showrc | grep mgaver
>> > -14: mgaver     1
>> > -14: mgaversion %(perl -pe '/(\d+)\.(\d)\.?(\d)?/; $_="$1$2".($3||0)'
>> > /etc/release)
>> >
>> > $ perl -pe '/(\d+)\.(\d)\.?(\d)?/; $_="$1$2".($3||0)' /etc/release
>> > 0
>> >
>> >
>> > this should be fixed before first release.
>>
>> Or this should be dropped.
>
> +1
>
>> Please prefer using distro-name-agnostic macros.
>> In this case, %distro_release (from product.id macros)
>
> Could we have a warning, or something like that so we can do a smooth
> migration ?
>
>
> --
> Michael Scherer

The only way %mdkversion got really dropped was removing it altogether
and making the build fail. So a post to -dev saying "%mgaver and
%mgaversion are gone" should be good enough.

Also note that those two macros aren't widely used in the specs, yet;
given the fact Mageia 1 is still not released yet.

-- 
Ahmad Samir


More information about the Mageia-sysadm mailing list