blueness 15/02/28 17:34:24 Modified: series Added: 040_all_remove_define_abs.patch Log: Remove macro definition of abs(), bug #510770
Revision Changes Path 1.2 src/patchsets/texlive/2014/texlive-core/series file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2014/texlive-core/series?rev=1.2&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2014/texlive-core/series?rev=1.2&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2014/texlive-core/series?r1=1.1&r2=1.2 Index: series =================================================================== RCS file: /var/cvsroot/gentoo/src/patchsets/texlive/2014/texlive-core/series,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- series 2 Nov 2014 15:17:48 -0000 1.1 +++ series 28 Feb 2015 17:34:24 -0000 1.2 @@ -1,3 +1,4 @@ 010_all_installedscripts.patch 020_all_a2ping_invocation.patch 030_all_updmap_normalize.patch +040_all_remove_define_abs.patch 1.1 src/patchsets/texlive/2014/texlive-core/040_all_remove_define_abs.patch 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 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 Index: 040_all_remove_define_abs.patch =================================================================== utils/pmx/pmx-2.7.0/libf2c/f2c.h: remove unnecesary macro for abs() On POSIX systems, abs() is a function provided by your C Standard library, so we don't need to define it as a macro. It is dangerous to do so because if f2c.h is included before stdlib.h, then then macro breaks the function prototype. We just remove it. See https://bugs.gentoo.org/show_bug.cgi?id=510770 Signed-off-by: Anthony G. Basile <[email protected]> --- utils/pmx/pmx-2.7.0/libf2c/f2c.h.orig 2013-01-18 02:59:22.000000000 -0500 +++ utils/pmx/pmx-2.7.0/libf2c/f2c.h 2015-02-28 12:13:56.352201310 -0500 @@ -162,7 +162,6 @@ }; typedef struct Namelist Namelist; -#define abs(x) ((x) >= 0 ? (x) : -(x)) #define dabs(x) (doublereal)abs(x) #undef min #undef max
