From: | "Anthony G. Basile (blueness)" <blueness@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo commit in src/patchsets/texlive/2014/texlive-core: 040_all_remove_define_abs.patch series |
Date: | Sat, 28 Feb 2015 17:34:27 |
Message-Id: | 20150228173424.1767612BFB@oystercatcher.gentoo.org |
1 | blueness 15/02/28 17:34:24 |
2 | |
3 | Modified: series |
4 | Added: 040_all_remove_define_abs.patch |
5 | Log: |
6 | Remove macro definition of abs(), bug #510770 |
7 | |
8 | Revision Changes Path |
9 | 1.2 src/patchsets/texlive/2014/texlive-core/series |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2014/texlive-core/series?rev=1.2&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2014/texlive-core/series?rev=1.2&content-type=text/plain |
13 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2014/texlive-core/series?r1=1.1&r2=1.2 |
14 | |
15 | Index: series |
16 | =================================================================== |
17 | RCS file: /var/cvsroot/gentoo/src/patchsets/texlive/2014/texlive-core/series,v |
18 | retrieving revision 1.1 |
19 | retrieving revision 1.2 |
20 | diff -u -r1.1 -r1.2 |
21 | --- series 2 Nov 2014 15:17:48 -0000 1.1 |
22 | +++ series 28 Feb 2015 17:34:24 -0000 1.2 |
23 | @@ -1,3 +1,4 @@ |
24 | 010_all_installedscripts.patch |
25 | 020_all_a2ping_invocation.patch |
26 | 030_all_updmap_normalize.patch |
27 | +040_all_remove_define_abs.patch |
28 | |
29 | |
30 | |
31 | 1.1 src/patchsets/texlive/2014/texlive-core/040_all_remove_define_abs.patch |
32 | |
33 | file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2014/texlive-core/040_all_remove_define_abs.patch?rev=1.1&view=markup |
34 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2014/texlive-core/040_all_remove_define_abs.patch?rev=1.1&content-type=text/plain |
35 | |
36 | Index: 040_all_remove_define_abs.patch |
37 | =================================================================== |
38 | utils/pmx/pmx-2.7.0/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 | --- utils/pmx/pmx-2.7.0/libf2c/f2c.h.orig 2013-01-18 02:59:22.000000000 -0500 |
52 | +++ utils/pmx/pmx-2.7.0/libf2c/f2c.h 2015-02-28 12:13:56.352201310 -0500 |
53 | @@ -162,7 +162,6 @@ |
54 | }; |
55 | typedef struct Namelist Namelist; |
56 | |
57 | -#define abs(x) ((x) >= 0 ? (x) : -(x)) |
58 | #define dabs(x) (doublereal)abs(x) |
59 | #undef min |
60 | #undef max |