media-gfx/argyllcms: fix compilation with GCC 5
authorBernard Cafarelli <voyageur@gentoo.org>
Fri, 4 Sep 2015 11:43:38 +0000 (13:43 +0200)
committerBernard Cafarelli <voyageur@gentoo.org>
Fri, 4 Sep 2015 11:49:00 +0000 (13:49 +0200)
Bug #559534 by tetromino

Package-Manager: portage-2.2.20.1

media-gfx/argyllcms/argyllcms-1.8.0.ebuild
media-gfx/argyllcms/files/argyllcms-1.8.0-gcc5.patch [new file with mode: 0644]

index c59a59aaf2175a7b9a1d2d3628e7f555c518b704..eac1ccdc5706ccda01c86330df9ff74b85aaba47 100644 (file)
@@ -36,6 +36,7 @@ DEPEND="${RDEPEND}
 S="${WORKDIR}/${MY_P}"
 
 PATCHES=(
+       "${FILESDIR}"/${P}-gcc5.patch
        )
 
 src_compile() {
diff --git a/media-gfx/argyllcms/files/argyllcms-1.8.0-gcc5.patch b/media-gfx/argyllcms/files/argyllcms-1.8.0-gcc5.patch
new file mode 100644 (file)
index 0000000..2806745
--- /dev/null
@@ -0,0 +1,20 @@
+Description: Fix FTBFS with GCC 5
+Author: James Cowgill <james410@cowgill.org.uk>
+Bug-Debian: https://bugs.debian.org/777779
+Forwarded: no
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/icc/icc.h
++++ b/icc/icc.h
+@@ -100,7 +100,11 @@
+ #define CF64PREC "LL"         /* Constant precision specifier */
+ #ifndef ATTRIBUTE_NORETURN
++#ifdef _MSC_VER
+ # define ATTRIBUTE_NORETURN __declspec(noreturn)
++#else
++# define ATTRIBUTE_NORETURN __attribute__((noreturn))
++#endif
+ #endif
+ #else  /* !__STDC_VERSION__ */