Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/texlive/2012/texlive-core: 130_all_remove_define_abs.patch series
Date: Sat, 28 Feb 2015 16:48:22
Message-Id: 20150228164817.06B9D12BF3@oystercatcher.gentoo.org
1 blueness 15/02/28 16:48:17
2
3 Modified: series
4 Added: 130_all_remove_define_abs.patch
5 Log:
6 Remove macro definition of abs(), bug #510770
7
8 Revision Changes Path
9 1.5 src/patchsets/texlive/2012/texlive-core/series
10
11 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2012/texlive-core/series?rev=1.5&view=markup
12 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2012/texlive-core/series?rev=1.5&content-type=text/plain
13 diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2012/texlive-core/series?r1=1.4&r2=1.5
14
15 Index: series
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo/src/patchsets/texlive/2012/texlive-core/series,v
18 retrieving revision 1.4
19 retrieving revision 1.5
20 diff -u -r1.4 -r1.5
21 --- series 21 Apr 2013 18:51:56 -0000 1.4
22 +++ series 28 Feb 2015 16:48:16 -0000 1.5
23 @@ -3,3 +3,4 @@
24 090_all_updmap_normalize.patch
25 100_all_icu_pkgdata_buffer.patch
26 120_all_icu_sparc.patch
27 +130_all_remove_define_abs.patch
28
29
30
31 1.1 src/patchsets/texlive/2012/texlive-core/130_all_remove_define_abs.patch
32
33 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2012/texlive-core/130_all_remove_define_abs.patch?rev=1.1&view=markup
34 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2012/texlive-core/130_all_remove_define_abs.patch?rev=1.1&content-type=text/plain
35
36 Index: 130_all_remove_define_abs.patch
37 ===================================================================
38 utils/pmx/pmx-2.6.18/libf2c/f2c.h: remove unnecesary macro for abs()
39
40 On POSIX systems, abs() is a function provided by your C Standard library,
41 so we don't need to define it as a macro. It is dangerous to do so because
42 if f2c.h is included before stdlib.h, then then macro breaks the function
43 prototype.
44
45 We just remove it. See
46
47 https://bugs.gentoo.org/show_bug.cgi?id=510770
48
49 Signed-off-by: Anthony G. Basile <blueness@g.o>
50
51 diff -Naur texlive-20120701-source.orig/utils/pmx/pmx-2.6.18/libf2c/f2c.h texlive-20120701-source/utils/pmx/pmx-2.6.18/libf2c/f2c.h
52 --- texlive-20120701-source.orig/utils/pmx/pmx-2.6.18/libf2c/f2c.h 2012-05-20 10:47:27.000000000 +0000
53 +++ texlive-20120701-source/utils/pmx/pmx-2.6.18/libf2c/f2c.h 2014-05-15 17:16:37.030402773 +0000
54 @@ -157,7 +157,6 @@
55 };
56 typedef struct Namelist Namelist;
57
58 -#define abs(x) ((x) >= 0 ? (x) : -(x))
59 #define dabs(x) (doublereal)abs(x)
60 #define min(a,b) ((a) <= (b) ? (a) : (b))
61 #define max(a,b) ((a) >= (b) ? (a) : (b))