summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2020-11-26 11:32:30 +0100
committerDavid Seifert <soap@gentoo.org>2020-11-26 11:32:30 +0100
commita854857e471de03b5b2f67b03b835f58db750768 (patch)
tree105484564a434a43645508867c659e101efbe7c8 /media-libs/icclib
parentx11-misc/zim: 0.73.4 bump (diff)
downloadgentoo-a854857e471de03b5b2f67b03b835f58db750768.tar.gz
gentoo-a854857e471de03b5b2f67b03b835f58db750768.tar.bz2
gentoo-a854857e471de03b5b2f67b03b835f58db750768.zip
media-libs/icclib: fix build with gcc-10
Closes: https://bugs.gentoo.org/707306 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-libs/icclib')
-rw-r--r--media-libs/icclib/files/icclib-2.14-fno-common.patch17
-rw-r--r--media-libs/icclib/icclib-2.14.ebuild5
2 files changed, 21 insertions, 1 deletions
diff --git a/media-libs/icclib/files/icclib-2.14-fno-common.patch b/media-libs/icclib/files/icclib-2.14-fno-common.patch
new file mode 100644
index 000000000000..564822b9fc83
--- /dev/null
+++ b/media-libs/icclib/files/icclib-2.14-fno-common.patch
@@ -0,0 +1,17 @@
+--- a/icc.h
++++ b/icc.h
+@@ -1705,12 +1705,12 @@ extern ICCLIB_API void icm1960UCS21964WUV(icmXYZNumber *w, double *out, double *
+ /* The standard D50 illuminant value */
+ extern icmXYZNumber icmD50;
+ extern icmXYZNumber icmD50_100; /* Scaled to 100 */
+-double icmD50_ary3[3]; /* As an array */
++extern double icmD50_ary3[3]; /* As an array */
+
+ /* The standard D65 illuminant value */
+ extern icmXYZNumber icmD65;
+ extern icmXYZNumber icmD65_100; /* Scaled to 100 */
+-double icmD65_ary3[3]; /* As an array */
++extern double icmD65_ary3[3]; /* As an array */
+
+ /* The default black value */
+ extern icmXYZNumber icmBlack;
diff --git a/media-libs/icclib/icclib-2.14.ebuild b/media-libs/icclib/icclib-2.14.ebuild
index c9b8483e17a5..b472dd74897b 100644
--- a/media-libs/icclib/icclib-2.14.ebuild
+++ b/media-libs/icclib/icclib-2.14.ebuild
@@ -19,7 +19,10 @@ BDEPEND="app-arch/unzip"
S="${WORKDIR}"
-PATCHES=( "${FILESDIR}"/${P}-make.patch )
+PATCHES=(
+ "${FILESDIR}"/${P}-make.patch
+ "${FILESDIR}"/${P}-fno-common.patch
+)
src_compile() {
ICCLIB_SOVERSION="0"