blob: 5d616ec6821ac9f0105dbffebe149777184b574b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-sysadm] mgaversion and mgaver macros
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20mgaversion%20and%20mgaver%20macros&In-Reply-To=%3CBANLkTi%3DsYVKZ-%2BvLuxAYyQKAx%2BsZ%2B3Bv1Q%40mail.gmail.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="003354.html">
<LINK REL="Next" HREF="003340.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-sysadm] mgaversion and mgaver macros</H1>
<B>Ahmad Samir</B>
<A HREF="mailto:mageia-sysadm%40mageia.org?Subject=Re%3A%20%5BMageia-sysadm%5D%20mgaversion%20and%20mgaver%20macros&In-Reply-To=%3CBANLkTi%3DsYVKZ-%2BvLuxAYyQKAx%2BsZ%2B3Bv1Q%40mail.gmail.com%3E"
TITLE="[Mageia-sysadm] mgaversion and mgaver macros">ahmadsamir3891 at gmail.com
</A><BR>
<I>Thu Apr 14 21:12:05 CEST 2011</I>
<P><UL>
<LI>Previous message: <A HREF="003354.html">[Mageia-sysadm] mgaversion and mgaver macros
</A></li>
<LI>Next message: <A HREF="003340.html">[Mageia-sysadm] Hobbit [528732] jonund.mageia.org:cpu warning (YELLOW)
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3356">[ date ]</a>
<a href="thread.html#3356">[ thread ]</a>
<a href="subject.html#3356">[ subject ]</a>
<a href="author.html#3356">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On 14 April 2011 13:41, Michael Scherer <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">misc at zarb.org</A>> wrote:
><i> Le mardi 12 avril 2011 à 13:07 +0200, Olivier Blin a écrit :
</I>>><i> Ahmad Samir <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-sysadm">ahmadsamir3891 at gmail.com</A>> writes:
</I>>><i>
</I>>><i> > Hello,
</I>>><i> >
</I>>><i> > $ rpm --showrc | grep mgaver
</I>>><i> > -14: mgaver     1
</I>>><i> > -14: mgaversion %(perl -pe '/(\d+)\.(\d)\.?(\d)?/; $_="$1$2".($3||0)'
</I>>><i> > /etc/release)
</I>>><i> >
</I>>><i> > $ perl -pe '/(\d+)\.(\d)\.?(\d)?/; $_="$1$2".($3||0)' /etc/release
</I>>><i> > 0
</I>>><i> >
</I>>><i> >
</I>>><i> > this should be fixed before first release.
</I>>><i>
</I>>><i> Or this should be dropped.
</I>><i>
</I>><i> +1
</I>><i>
</I>>><i> Please prefer using distro-name-agnostic macros.
</I>>><i> In this case, %distro_release (from product.id macros)
</I>><i>
</I>><i> Could we have a warning, or something like that so we can do a smooth
</I>><i> migration ?
</I>><i>
</I>><i>
</I>><i> --
</I>><i> Michael Scherer
</I>
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
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="003354.html">[Mageia-sysadm] mgaversion and mgaver macros
</A></li>
<LI>Next message: <A HREF="003340.html">[Mageia-sysadm] Hobbit [528732] jonund.mageia.org:cpu warning (YELLOW)
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#3356">[ date ]</a>
<a href="thread.html#3356">[ thread ]</a>
<a href="subject.html#3356">[ subject ]</a>
<a href="author.html#3356">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-sysadm">More information about the Mageia-sysadm
mailing list</a><br>
</body></html>
|