diff options
Diffstat (limited to 'media-gfx/icoutils/files')
-rw-r--r-- | media-gfx/icoutils/files/icoutils-0.29.1-gettext.patch | 13 | ||||
-rw-r--r-- | media-gfx/icoutils/files/icoutils-0.29.1-locale.patch | 39 |
2 files changed, 52 insertions, 0 deletions
diff --git a/media-gfx/icoutils/files/icoutils-0.29.1-gettext.patch b/media-gfx/icoutils/files/icoutils-0.29.1-gettext.patch new file mode 100644 index 000000000000..4aa4c44cc3ce --- /dev/null +++ b/media-gfx/icoutils/files/icoutils-0.29.1-gettext.patch @@ -0,0 +1,13 @@ +Index: icoutils-0.29.1/configure.ac +=================================================================== +--- icoutils-0.29.1.orig/configure.ac ++++ icoutils-0.29.1/configure.ac +@@ -26,7 +26,7 @@ gl_INIT + + # Gettext + AM_GNU_GETTEXT([external]) +-# AM_GNU_GETTEXT_VERSION(0.14.1) ++AM_GNU_GETTEXT_VERSION(0.14.1) + + # Checks for header files. + AC_HEADER_STDC diff --git a/media-gfx/icoutils/files/icoutils-0.29.1-locale.patch b/media-gfx/icoutils/files/icoutils-0.29.1-locale.patch new file mode 100644 index 000000000000..d73ae119ea5e --- /dev/null +++ b/media-gfx/icoutils/files/icoutils-0.29.1-locale.patch @@ -0,0 +1,39 @@ +Fix compiling with -O0 (see <https://bugs.gentoo.org/show_bug.cgi?id=319559>) + + +--- a/wrestool/main.c ++++ b/wrestool/main.c +@@ -32,6 +32,10 @@ + #include "common/string-utils.h" + #include "wrestool.h" + ++#ifdef HAVE_LOCALE_H ++#include <locale.h> ++#endif ++ + #define PROGRAM "wrestool" + + +--- a/icotool/main.c ++++ b/icotool/main.c +@@ -37,6 +37,10 @@ + #include "common/io-utils.h" + #include "icotool.h" + ++#ifdef HAVE_LOCALE_H ++#include <locale.h> ++#endif ++ + #define PROGRAM "icotool" + + static int32_t image_index = -1; +--- a/configure.ac ++++ b/configure.ac +@@ -34,6 +34,7 @@ + AC_HEADER_SYS_WAIT + AC_HEADER_TIME + #AC_CHECK_HEADERS([byteswap.h errno.h fcntl.h getopt.h limits.h sys/stat.h sys/time.h sys/types.h unistd.h]) ++AC_CHECK_HEADERS([locale.h]) + + # Checks for typedefs, structures, and compiler characteristics. + AC_C_INLINE |