blueness 15/02/28 16:48:17 Modified: series Added: 130_all_remove_define_abs.patch Log: Remove macro definition of abs(), bug #510770
Revision Changes Path 1.5 src/patchsets/texlive/2012/texlive-core/series file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2012/texlive-core/series?rev=1.5&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2012/texlive-core/series?rev=1.5&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/texlive/2012/texlive-core/series?r1=1.4&r2=1.5 Index: series =================================================================== RCS file: /var/cvsroot/gentoo/src/patchsets/texlive/2012/texlive-core/series,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- series 21 Apr 2013 18:51:56 -0000 1.4 +++ series 28 Feb 2015 16:48:16 -0000 1.5 @@ -3,3 +3,4 @@ 090_all_updmap_normalize.patch 100_all_icu_pkgdata_buffer.patch 120_all_icu_sparc.patch +130_all_remove_define_abs.patch 1.1 src/patchsets/texlive/2012/texlive-core/130_all_remove_define_abs.patch 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 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 Index: 130_all_remove_define_abs.patch =================================================================== utils/pmx/pmx-2.6.18/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]> 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 --- texlive-20120701-source.orig/utils/pmx/pmx-2.6.18/libf2c/f2c.h 2012-05-20 10:47:27.000000000 +0000 +++ texlive-20120701-source/utils/pmx/pmx-2.6.18/libf2c/f2c.h 2014-05-15 17:16:37.030402773 +0000 @@ -157,7 +157,6 @@ }; typedef struct Namelist Namelist; -#define abs(x) ((x) >= 0 ? (x) : -(x)) #define dabs(x) (doublereal)abs(x) #define min(a,b) ((a) <= (b) ? (a) : (b)) #define max(a,b) ((a) >= (b) ? (a) : (b))
