From: Vicente Olivert Riera Date: Thu, 23 Oct 2014 10:40:10 +0000 (+0100) Subject: pixman: rename patches to follow the new name structure X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eac4760909f5c8cafb934187b800d48723300506;p=buildroot.git pixman: rename patches to follow the new name structure Signed-off-by: Vicente Olivert Riera Signed-off-by: Thomas Petazzoni --- diff --git a/package/pixman/0001-check-fe-divbyzero.patch b/package/pixman/0001-check-fe-divbyzero.patch new file mode 100644 index 0000000000..01c6c96de6 --- /dev/null +++ b/package/pixman/0001-check-fe-divbyzero.patch @@ -0,0 +1,41 @@ +Add a check for FE_DIVBYZERO + +Some architectures (namely Microblaze) do have fenv.h and +feenableexcept, but they don't have the FE_DIVBYZERO definition. This +patch adds a configure check for FE_DIVBYZERO, and only uses it if +it's available. + +Signed-off-by: Thomas Petazzoni + +Index: b/configure.ac +=================================================================== +--- a/configure.ac ++++ b/configure.ac +@@ -838,6 +838,11 @@ + AC_DEFINE(HAVE_FEENABLEEXCEPT, 1, [Whether we have feenableexcept()]) + fi + ++AC_CHECK_DECL([FE_DIVBYZERO], [], [], [[#include ]]) ++if test x$ac_cv_have_decl_FE_DIVBYZERO = xyes; then ++ AC_DEFINE(HAVE_FEDIVBYZERO, 1, [Whether we have FE_DIVBYZERO]) ++fi ++ + AC_CHECK_FUNC(gettimeofday, have_gettimeofday=yes, have_gettimeofday=no) + AC_CHECK_HEADER(sys/time.h, have_sys_time_h=yes, have_sys_time_h=no) + if test x$have_gettimeofday = xyes && test x$have_sys_time_h = xyes; then +Index: b/test/utils.c +=================================================================== +--- a/test/utils.c ++++ b/test/utils.c +@@ -776,9 +776,11 @@ + { + #ifdef HAVE_FENV_H + #ifdef HAVE_FEENABLEEXCEPT ++#ifdef HAVE_FE_DIVBYZERO + feenableexcept (FE_DIVBYZERO); + #endif + #endif ++#endif + } + + void * diff --git a/package/pixman/pixman-02-check-fe-divbyzero.patch b/package/pixman/pixman-02-check-fe-divbyzero.patch deleted file mode 100644 index 01c6c96de6..0000000000 --- a/package/pixman/pixman-02-check-fe-divbyzero.patch +++ /dev/null @@ -1,41 +0,0 @@ -Add a check for FE_DIVBYZERO - -Some architectures (namely Microblaze) do have fenv.h and -feenableexcept, but they don't have the FE_DIVBYZERO definition. This -patch adds a configure check for FE_DIVBYZERO, and only uses it if -it's available. - -Signed-off-by: Thomas Petazzoni - -Index: b/configure.ac -=================================================================== ---- a/configure.ac -+++ b/configure.ac -@@ -838,6 +838,11 @@ - AC_DEFINE(HAVE_FEENABLEEXCEPT, 1, [Whether we have feenableexcept()]) - fi - -+AC_CHECK_DECL([FE_DIVBYZERO], [], [], [[#include ]]) -+if test x$ac_cv_have_decl_FE_DIVBYZERO = xyes; then -+ AC_DEFINE(HAVE_FEDIVBYZERO, 1, [Whether we have FE_DIVBYZERO]) -+fi -+ - AC_CHECK_FUNC(gettimeofday, have_gettimeofday=yes, have_gettimeofday=no) - AC_CHECK_HEADER(sys/time.h, have_sys_time_h=yes, have_sys_time_h=no) - if test x$have_gettimeofday = xyes && test x$have_sys_time_h = xyes; then -Index: b/test/utils.c -=================================================================== ---- a/test/utils.c -+++ b/test/utils.c -@@ -776,9 +776,11 @@ - { - #ifdef HAVE_FENV_H - #ifdef HAVE_FEENABLEEXCEPT -+#ifdef HAVE_FE_DIVBYZERO - feenableexcept (FE_DIVBYZERO); - #endif - #endif -+#endif - } - - void *