public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-gfx/exact-image/, media-gfx/exact-image/files/
@ 2017-09-02 18:45 Michał Górny
  0 siblings, 0 replies; 5+ messages in thread
From: Michał Górny @ 2017-09-02 18:45 UTC (permalink / raw
  To: gentoo-commits

commit:     97e7a2a7296a283bc7f0ad95604e6a83666bf036
Author:     Peter Levine <plevine457 <AT> gmail <DOT> com>
AuthorDate: Wed Aug  2 07:14:25 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Sep  2 18:45:02 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97e7a2a7

media-gfx/exact-image: Fix building with GCC-6

Closes: https://bugs.gentoo.org/600380
Closes: https://github.com/gentoo/gentoo/pull/5275
Package-Manager: Portage-2.3.6, Repoman-2.3.2

 media-gfx/exact-image/exact-image-0.8.1-r3.ebuild  |   3 +-
 .../exact-image/files/exact-image-0.8.1-gcc6.patch | 139 +++++++++++++++++++++
 2 files changed, 141 insertions(+), 1 deletion(-)

diff --git a/media-gfx/exact-image/exact-image-0.8.1-r3.ebuild b/media-gfx/exact-image/exact-image-0.8.1-r3.ebuild
index 7868e9f4c45..7aae44b9343 100644
--- a/media-gfx/exact-image/exact-image-0.8.1-r3.ebuild
+++ b/media-gfx/exact-image/exact-image-0.8.1-r3.ebuild
@@ -47,7 +47,8 @@ pkg_setup() {
 src_prepare() {
 	eapply \
 		"${FILESDIR}"/${PN}-0.7.5-libpng14.patch \
-		"${FILESDIR}"/${P}-libpng15.patch
+		"${FILESDIR}"/${P}-libpng15.patch \
+		"${FILESDIR}"/${P}-gcc6.patch
 	eapply_user
 
 	# fix python hardcoded path wrt bug #327171

diff --git a/media-gfx/exact-image/files/exact-image-0.8.1-gcc6.patch b/media-gfx/exact-image/files/exact-image-0.8.1-gcc6.patch
new file mode 100644
index 00000000000..4871c99205a
--- /dev/null
+++ b/media-gfx/exact-image/files/exact-image-0.8.1-gcc6.patch
@@ -0,0 +1,139 @@
+Bug: https://bugs.gentoo.org/600380
+
+--- a/bardecode/code25i.hh
++++ b/bardecode/code25i.hh
+@@ -20,6 +20,12 @@
+ 
+ #include "scanner_utils.hh"
+ 
++#if __cplusplus >= 201103L
++#define STATIC_CONST_DOUBLE static constexpr double
++#else
++#define STATIC_CONST_DOUBLE static const double
++#endif
++
+ namespace BarDecode
+ {
+     struct code25i_t
+@@ -37,11 +43,11 @@
+ 	#define w_hq 1.5
+ 	#define tol 0.2
+ #else
+-        static const double n_lq = 15;
+-        static const double n_hq = 5.3;
+-        static const double w_lq = 5.2;
+-        static const double w_hq = 1.5;
+-        static const double tol = 0.2;
++        STATIC_CONST_DOUBLE n_lq = 15;
++        STATIC_CONST_DOUBLE n_hq = 5.3;
++        STATIC_CONST_DOUBLE w_lq = 5.2;
++        STATIC_CONST_DOUBLE w_hq = 1.5;
++        STATIC_CONST_DOUBLE tol = 0.2;
+ #endif
+         static const usize_t min_quiet_usize = 5;
+         //static const usize_t min_quiet_usize = 10;
+--- a/codecs/bmp.cc
++++ b/codecs/bmp.cc
+@@ -473,7 +473,7 @@
+ 	  std::cerr << "scanline " << row << " Seek error: " << stream->tellg() << " vs " << offset << std::endl;
+ 	}
+ 	
+-	if (stream->read ((char*)row_data, file_stride) < 0) {
++	if (!static_cast<bool>(stream->read ((char*)row_data, file_stride))) {
+ 	  std::cerr << "scanline " << row << ": Read error\n";
+ 	}
+ 	
+--- a/codecs/dcraw.h
++++ b/codecs/dcraw.h
+@@ -3958,22 +3958,22 @@
+     -2,+0,+0,-1,0,0x06, -2,+0,+0,+0,1,0x02, -2,+0,+0,+1,0,0x03,
+     -2,+1,-1,+0,0,0x04, -2,+1,+0,-1,1,0x04, -2,+1,+0,+0,0,0x06,
+     -2,+1,+0,+1,0,0x02, -2,+2,+0,+0,1,0x04, -2,+2,+0,+1,0,0x04,
+-    -1,-2,-1,+0,0,0x80, -1,-2,+0,-1,0,0x01, -1,-2,+1,-1,0,0x01,
+-    -1,-2,+1,+0,1,0x01, -1,-1,-1,+1,0,0x88, -1,-1,+1,-2,0,0x40,
++    -1,-2,-1,+0,0,(signed char) 0x80, -1,-2,+0,-1,0,0x01, -1,-2,+1,-1,0,0x01,
++    -1,-2,+1,+0,1,0x01, -1,-1,-1,+1,0,(signed char) 0x88, -1,-1,+1,-2,0,0x40,
+     -1,-1,+1,-1,0,0x22, -1,-1,+1,+0,0,0x33, -1,-1,+1,+1,1,0x11,
+     -1,+0,-1,+2,0,0x08, -1,+0,+0,-1,0,0x44, -1,+0,+0,+1,0,0x11,
+     -1,+0,+1,-2,1,0x40, -1,+0,+1,-1,0,0x66, -1,+0,+1,+0,1,0x22,
+     -1,+0,+1,+1,0,0x33, -1,+0,+1,+2,1,0x10, -1,+1,+1,-1,1,0x44,
+     -1,+1,+1,+0,0,0x66, -1,+1,+1,+1,0,0x22, -1,+1,+1,+2,0,0x10,
+     -1,+2,+0,+1,0,0x04, -1,+2,+1,+0,1,0x04, -1,+2,+1,+1,0,0x04,
+-    +0,-2,+0,+0,1,0x80, +0,-1,+0,+1,1,0x88, +0,-1,+1,-2,0,0x40,
++    +0,-2,+0,+0,1,(signed char) 0x80, +0,-1,+0,+1,1,(signed char) 0x88, +0,-1,+1,-2,0,0x40,
+     +0,-1,+1,+0,0,0x11, +0,-1,+2,-2,0,0x40, +0,-1,+2,-1,0,0x20,
+     +0,-1,+2,+0,0,0x30, +0,-1,+2,+1,1,0x10, +0,+0,+0,+2,1,0x08,
+     +0,+0,+2,-2,1,0x40, +0,+0,+2,-1,0,0x60, +0,+0,+2,+0,1,0x20,
+     +0,+0,+2,+1,0,0x30, +0,+0,+2,+2,1,0x10, +0,+1,+1,+0,0,0x44,
+     +0,+1,+1,+2,0,0x10, +0,+1,+2,-1,1,0x40, +0,+1,+2,+0,0,0x60,
+-    +0,+1,+2,+1,0,0x20, +0,+1,+2,+2,0,0x10, +1,-2,+1,+0,0,0x80,
+-    +1,-1,+1,+1,0,0x88, +1,+0,+1,+2,0,0x08, +1,+0,+2,-1,0,0x40,
++    +0,+1,+2,+1,0,0x20, +0,+1,+2,+2,0,0x10, +1,-2,+1,+0,0,(signed char) 0x80,
++    +1,-1,+1,+1,0,(signed char) 0x88, +1,+0,+1,+2,0,0x08, +1,+0,+2,-1,0,0x40,
+     +1,+0,+2,+1,0,0x10
+   }, chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 };
+   ushort (*brow[5])[4], *pix;
+@@ -6341,11 +6341,11 @@
+ 	{ 10793,-3791,-1146,-7498,15177,2488,-1390,1577,7321 } },
+     { "OLYMPUS C80", 0, 0,
+ 	{ 8606,-2509,-1014,-8238,15714,2703,-942,979,7760 } },
+-    { "OLYMPUS E-10", 0, 0xffc0,
++    { "OLYMPUS E-10", 0, (short) 0xffc0,
+ 	{ 12745,-4500,-1416,-6062,14542,1580,-1934,2256,6603 } },
+-    { "OLYMPUS E-1", 0, 0xfff0,
++    { "OLYMPUS E-1", 0, (short) 0xfff0,
+ 	{ 11846,-4767,-945,-7027,15878,1089,-2699,4122,8311 } },
+-    { "OLYMPUS E-20", 0, 0xffc0,
++    { "OLYMPUS E-20", 0, (short) 0xffc0,
+ 	{ 13173,-4732,-1499,-5807,14036,1895,-2045,2452,7142 } },
+     { "OLYMPUS E-300", 0, 0,
+ 	{ 7828,-1761,-348,-5788,14071,1830,-2853,4518,6557 } },
+@@ -6353,7 +6353,7 @@
+ 	{ 8961,-2473,-1084,-7979,15990,2067,-2319,3035,8249 } },
+     { "OLYMPUS E-3", 0, 0xf99,
+ 	{ 9487,-2875,-1115,-7533,15606,2010,-1618,2100,7389 } },
+-    { "OLYMPUS E-400", 0, 0xfff0,
++    { "OLYMPUS E-400", 0, (short) 0xfff0,
+ 	{ 6169,-1483,-21,-7107,14761,2536,-2904,3580,8568 } },
+     { "OLYMPUS E-410", 0, 0xf6a,
+ 	{ 8856,-2582,-1026,-7761,15766,2082,-2009,2575,7469 } },
+@@ -6399,23 +6399,23 @@
+ 	{ 9186,-2678,-907,-8693,16517,2260,-1129,1094,8524 } },
+     { "PENTAX K2000", 0, 0,
+ 	{ 11057,-3604,-1155,-5152,13046,2329,-282,375,8104 } },
+-    { "Panasonic DMC-FZ8", 0, 0xf7f0,
++    { "Panasonic DMC-FZ8", 0, (short) 0xf7f0,
+ 	{ 8986,-2755,-802,-6341,13575,3077,-1476,2144,6379 } },
+     { "Panasonic DMC-FZ18", 0, 0,
+ 	{ 9932,-3060,-935,-5809,13331,2753,-1267,2155,5575 } },
+     { "Panasonic DMC-FZ28", 15, 0xfff,
+ 	{ 10109,-3488,-993,-5412,12812,2916,-1305,2140,5543 } },
+-    { "Panasonic DMC-FZ30", 0, 0xf94c,
++    { "Panasonic DMC-FZ30", 0, (short) 0xf94c,
+ 	{ 10976,-4029,-1141,-7918,15491,2600,-1670,2071,8246 } },
+-    { "Panasonic DMC-FZ50", 0, 0xfff0,	/* aka "LEICA V-LUX1" */
++    { "Panasonic DMC-FZ50", 0, (short) 0xfff0,	/* aka "LEICA V-LUX1" */
+ 	{ 7906,-2709,-594,-6231,13351,3220,-1922,2631,6537 } },
+     { "Panasonic DMC-L10", 15, 0xf96,
+ 	{ 8025,-1942,-1050,-7920,15904,2100,-2456,3005,7039 } },
+-    { "Panasonic DMC-L1", 0, 0xf7fc,	/* aka "LEICA DIGILUX 3" */
++    { "Panasonic DMC-L1", 0, (short) 0xf7fc,	/* aka "LEICA DIGILUX 3" */
+ 	{ 8054,-1885,-1025,-8349,16367,2040,-2805,3542,7629 } },
+     { "Panasonic DMC-LC1", 0, 0,	/* aka "LEICA DIGILUX 2" */
+ 	{ 11340,-4069,-1275,-7555,15266,2448,-2960,3426,7685 } },
+-    { "Panasonic DMC-LX1", 0, 0xf7f0,	/* aka "LEICA D-LUX2" */
++    { "Panasonic DMC-LX1", 0, (short) 0xf7f0,	/* aka "LEICA D-LUX2" */
+ 	{ 10704,-4187,-1230,-8314,15952,2501,-920,945,8927 } },
+     { "Panasonic DMC-LX2", 0, 0,	/* aka "LEICA D-LUX3" */
+ 	{ 8048,-2810,-623,-6450,13519,3272,-1700,2146,7049 } },
+--- a/codecs/raw.cc
++++ b/codecs/raw.cc
+@@ -66,7 +66,7 @@
+   if (!image.getRawData())
+     return false;
+ 
+-  return stream->write ((char*)image.getRawData(), image.stride()*image.h)
++  return static_cast<bool>(stream->write ((char*)image.getRawData(), image.stride()*image.h))
+     /* ==
+        (size_t) image.stride()*image.h*/;
+ }


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-gfx/exact-image/, media-gfx/exact-image/files/
@ 2020-07-04 19:46 Alfredo Tupone
  0 siblings, 0 replies; 5+ messages in thread
From: Alfredo Tupone @ 2020-07-04 19:46 UTC (permalink / raw
  To: gentoo-commits

commit:     0ccbe6cd4cbebaac19731d5e29885f6ac03e8abb
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  4 19:46:18 2020 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Jul  4 19:46:18 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ccbe6cd

media-gfx/exact-image: Version bump to 1.0.2

Closes: https://bugs.gentoo.org/544102
Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 media-gfx/exact-image/Manifest                     |  1 +
 media-gfx/exact-image/exact-image-1.0.2.ebuild     | 94 ++++++++++++++++++++++
 .../exact-image/files/exact-image-1.0.2-gcc6.patch | 64 +++++++++++++++
 3 files changed, 159 insertions(+)

diff --git a/media-gfx/exact-image/Manifest b/media-gfx/exact-image/Manifest
index 242900902c3..139b6188894 100644
--- a/media-gfx/exact-image/Manifest
+++ b/media-gfx/exact-image/Manifest
@@ -1 +1,2 @@
 DIST exact-image-0.8.1.tar.bz2 283660 BLAKE2B 49aa68640b785da59fd0e04d0a0892ad06adbc286a98bf908e60e77cfd273263e83dce3c9eb75c30f422c2b6eef2178dd0585aada63f992291abf298b369f3aa SHA512 0adc51c5a29415e236a963cfdaf8f5527e628e9a645e87d00c69a7185e60639cfcd9b1c2b4c3abe1826c5364f0c5d45a0ebb8923cfed53d041d1d36b2604b565
+DIST exact-image-1.0.2.tar.bz2 322174 BLAKE2B 67afefb4c5a52416459cd4ac6198012eb6d7895a73ea8363fae05286c7e7f62aa1a02166985f53b5638c7dc7b23b4dc1fb1c7b2272a9dc595ce329a7083ee1b9 SHA512 8ba5a198a236ddf5fa58f40c80f32ba9d300376c637a13a7acf3d2db7906fced373b33a7ecff9cff4d09d8b21de9ce1fb9f5bfb1f4522557bd01af0e3d6dcc65

diff --git a/media-gfx/exact-image/exact-image-1.0.2.ebuild b/media-gfx/exact-image/exact-image-1.0.2.ebuild
new file mode 100644
index 00000000000..7e5d51787a4
--- /dev/null
+++ b/media-gfx/exact-image/exact-image-1.0.2.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit eutils multilib toolchain-funcs
+
+DESCRIPTION="A fast, modern and generic image processing library"
+HOMEPAGE="http://www.exactcode.de/site/open_source/exactimage/"
+SRC_URI="http://dl.exactcode.de/oss/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="expat jpeg lua openexr php perl png ruby swig tiff truetype X"
+
+RDEPEND="x11-libs/agg[truetype]
+	sys-libs/zlib
+	expat? ( dev-libs/expat )
+	jpeg? ( virtual/jpeg )
+	lua? ( dev-lang/lua:= )
+	openexr? ( media-libs/openexr )
+	php? ( dev-lang/php:* )
+	perl? ( dev-lang/perl )
+	png? ( >=media-libs/libpng-1.2.43 )
+	ruby? ( dev-lang/ruby:* )
+	tiff? ( media-libs/tiff )
+	truetype? ( >=media-libs/freetype-2 )
+	X? (
+		x11-libs/libXext
+		x11-libs/libXt
+		x11-libs/libICE
+		x11-libs/libSM
+	)"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig
+	swig? ( dev-lang/swig )"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-gcc6.patch
+)
+
+src_prepare() {
+	default
+
+	# Respect user CFLAGS/CXXFLAGS.
+	sed -i \
+		-e '/C\(XX\)\?FLAGS =/s/-O2//' \
+		-e "\$aCFLAGS += ${CFLAGS}\nCXXFLAGS += ${CXXFLAGS}" \
+		Makefile || die
+
+	# Show commands.  Use qualified CC/CXX.
+	sed -i \
+		-e '/^Q =/d' \
+		-e '/^\t@echo /d' \
+		-e "\$aCC:=$(tc-getCC)\nCXX:=$(tc-getCXX)" \
+		build/bottom.make || die
+
+	# The copied string fits exactly.  Use memcpy to reflect that a null
+	# terminator is not needed.
+	sed -i \
+		-e 's/strcpy(\([^,]*\)\(,["a-zA-Z -]*\))/memcpy(\1\2, sizeof(\1))/' \
+		codecs/tga.cc || die
+}
+
+src_configure() {
+	# evas -> enlightenment overlay
+	# bardecode -> protected by custom license
+	# libungif -> not supported anymore
+	# python -> allegedly not python3, but python2 only
+
+	./configure \
+		--prefix=/usr \
+		--libdir=/usr/$(get_libdir) \
+		$(use_with X x11) \
+		$(use_with truetype freetype) \
+		--without-evas \
+		$(use_with jpeg libjpeg) \
+		$(use_with tiff libtiff) \
+		$(use_with png libpng) \
+		--without-libgif \
+		--without-jasper \
+		$(use_with openexr) \
+		$(use_with expat) \
+		--without-lcms \
+		--without-bardecode \
+		$(use_with lua) \
+		$(use_with swig) \
+		--without-python \
+		$(use_with perl) \
+		--without-python \
+		$(use_with php) \
+		$(use_with ruby) || die
+}

diff --git a/media-gfx/exact-image/files/exact-image-1.0.2-gcc6.patch b/media-gfx/exact-image/files/exact-image-1.0.2-gcc6.patch
new file mode 100644
index 00000000000..10fb38d6d65
--- /dev/null
+++ b/media-gfx/exact-image/files/exact-image-1.0.2-gcc6.patch
@@ -0,0 +1,64 @@
+Bug: https://bugs.gentoo.org/600380
+
+--- a/bardecode/code25i.hh
++++ b/bardecode/code25i.hh
+@@ -21,6 +21,12 @@
+ 
+ #include "scanner_utils.hh"
+ 
++#if __cplusplus >= 201103L
++#define STATIC_CONST_DOUBLE static constexpr double
++#else
++#define STATIC_CONST_DOUBLE static const double
++#endif
++
+ namespace BarDecode
+ {
+     struct code25i_t
+@@ -31,11 +37,11 @@
+         static const int END_SEQUENCE = 0xD;
+         static const char no_entry = 0;
+ 
+-        static const double n_lq = 15;
+-        static const double n_hq = 5.3;
+-        static const double w_lq = 5.2;
+-        static const double w_hq = 1.5;
+-        static const double tol = 0.2;
++        STATIC_CONST_DOUBLE n_lq = 15;
++        STATIC_CONST_DOUBLE n_hq = 5.3;
++        STATIC_CONST_DOUBLE w_lq = 5.2;
++        STATIC_CONST_DOUBLE w_hq = 1.5;
++        STATIC_CONST_DOUBLE tol = 0.2;
+ 
+         static const usize_t min_quiet_usize = 5;
+         //static const usize_t min_quiet_usize = 10;
+--- a/codecs/dcraw.h
++++ b/codecs/dcraw.h
+@@ -3958,22 +3958,22 @@
+     -2,+0,+0,-1,0,0x06, -2,+0,+0,+0,1,0x02, -2,+0,+0,+1,0,0x03,
+     -2,+1,-1,+0,0,0x04, -2,+1,+0,-1,1,0x04, -2,+1,+0,+0,0,0x06,
+     -2,+1,+0,+1,0,0x02, -2,+2,+0,+0,1,0x04, -2,+2,+0,+1,0,0x04,
+-    -1,-2,-1,+0,0,0x80, -1,-2,+0,-1,0,0x01, -1,-2,+1,-1,0,0x01,
+-    -1,-2,+1,+0,1,0x01, -1,-1,-1,+1,0,0x88, -1,-1,+1,-2,0,0x40,
++    -1,-2,-1,+0,0,(signed char) 0x80, -1,-2,+0,-1,0,0x01, -1,-2,+1,-1,0,0x01,
++    -1,-2,+1,+0,1,0x01, -1,-1,-1,+1,0,(signed char) 0x88, -1,-1,+1,-2,0,0x40,
+     -1,-1,+1,-1,0,0x22, -1,-1,+1,+0,0,0x33, -1,-1,+1,+1,1,0x11,
+     -1,+0,-1,+2,0,0x08, -1,+0,+0,-1,0,0x44, -1,+0,+0,+1,0,0x11,
+     -1,+0,+1,-2,1,0x40, -1,+0,+1,-1,0,0x66, -1,+0,+1,+0,1,0x22,
+     -1,+0,+1,+1,0,0x33, -1,+0,+1,+2,1,0x10, -1,+1,+1,-1,1,0x44,
+     -1,+1,+1,+0,0,0x66, -1,+1,+1,+1,0,0x22, -1,+1,+1,+2,0,0x10,
+     -1,+2,+0,+1,0,0x04, -1,+2,+1,+0,1,0x04, -1,+2,+1,+1,0,0x04,
+-    +0,-2,+0,+0,1,0x80, +0,-1,+0,+1,1,0x88, +0,-1,+1,-2,0,0x40,
++    +0,-2,+0,+0,1,(signed char) 0x80, +0,-1,+0,+1,1,(signed char) 0x88, +0,-1,+1,-2,0,0x40,
+     +0,-1,+1,+0,0,0x11, +0,-1,+2,-2,0,0x40, +0,-1,+2,-1,0,0x20,
+     +0,-1,+2,+0,0,0x30, +0,-1,+2,+1,1,0x10, +0,+0,+0,+2,1,0x08,
+     +0,+0,+2,-2,1,0x40, +0,+0,+2,-1,0,0x60, +0,+0,+2,+0,1,0x20,
+     +0,+0,+2,+1,0,0x30, +0,+0,+2,+2,1,0x10, +0,+1,+1,+0,0,0x44,
+     +0,+1,+1,+2,0,0x10, +0,+1,+2,-1,1,0x40, +0,+1,+2,+0,0,0x60,
+-    +0,+1,+2,+1,0,0x20, +0,+1,+2,+2,0,0x10, +1,-2,+1,+0,0,0x80,
+-    +1,-1,+1,+1,0,0x88, +1,+0,+1,+2,0,0x08, +1,+0,+2,-1,0,0x40,
++    +0,+1,+2,+1,0,0x20, +0,+1,+2,+2,0,0x10, +1,-2,+1,+0,0,(signed char) 0x80,
++    +1,-1,+1,+1,0,(signed char) 0x88, +1,+0,+1,+2,0,0x08, +1,+0,+2,-1,0,0x40,
+     +1,+0,+2,+1,0,0x10
+   }, chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 };
+   ushort (*brow[5])[4], *pix;


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-gfx/exact-image/, media-gfx/exact-image/files/
@ 2020-07-23 17:20 Alfredo Tupone
  0 siblings, 0 replies; 5+ messages in thread
From: Alfredo Tupone @ 2020-07-23 17:20 UTC (permalink / raw
  To: gentoo-commits

commit:     954ac8189027048023fb01e319d81ddf0533b7a9
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 23 17:20:35 2020 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Jul 23 17:20:35 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=954ac818

media-gfx/exact-image: fix calling g++ directly

Closes: https://bugs.gentoo.org/730778
Package-Manager: Portage-2.3.99, Repoman-2.3.23
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 media-gfx/exact-image/exact-image-1.0.2.ebuild     |  1 +
 .../exact-image/files/exact-image-1.0.2-g++.patch  | 22 ++++++++++++++++++++++
 2 files changed, 23 insertions(+)

diff --git a/media-gfx/exact-image/exact-image-1.0.2.ebuild b/media-gfx/exact-image/exact-image-1.0.2.ebuild
index 7e5d51787a4..0cea0d26cf5 100644
--- a/media-gfx/exact-image/exact-image-1.0.2.ebuild
+++ b/media-gfx/exact-image/exact-image-1.0.2.ebuild
@@ -38,6 +38,7 @@ DEPEND="${RDEPEND}
 
 PATCHES=(
 	"${FILESDIR}"/${P}-gcc6.patch
+	"${FILESDIR}"/${P}-g++.patch
 )
 
 src_prepare() {

diff --git a/media-gfx/exact-image/files/exact-image-1.0.2-g++.patch b/media-gfx/exact-image/files/exact-image-1.0.2-g++.patch
new file mode 100644
index 00000000000..29370eaa9ab
--- /dev/null
+++ b/media-gfx/exact-image/files/exact-image-1.0.2-g++.patch
@@ -0,0 +1,22 @@
+--- a/configure	2020-07-23 19:16:47.199283125 +0200
++++ b/configure	2020-07-23 19:17:01.229075367 +0200
+@@ -19,19 +19,6 @@
+ 
+ parse_options $*
+ 
+-compile c++ available.c ||
+-	status_error "A C++ compiler is not installed or does not work correctly.
+-A C++ compiler is vital for exact-image - so you need to install it first."
+-
+-compile c++ stl.c template.c template-specialization.c \
+-        partial-template-specialization.c function-template.c \
+-        || status_error \
+-	"At least one of the advanced ANSI C++ tests failed. Since these
+-features are vital for exact-image you need to update to a more recent compiler first."
+-
+-headercheck c++ iostream string iostream sstream fstream ||
+-	status_error "Not all tested STL headers are present - please install them."
+-
+ pkgcheck x11 compile X11 atleast 11.0
+ pkgcheck libagg pkg-config LIBAGG atleast 2.3 ||
+ 	status_error "Anti-Grain Geometry was not found, since it is vital


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-gfx/exact-image/, media-gfx/exact-image/files/
@ 2021-03-26  0:21 Conrad Kostecki
  0 siblings, 0 replies; 5+ messages in thread
From: Conrad Kostecki @ 2021-03-26  0:21 UTC (permalink / raw
  To: gentoo-commits

commit:     3d8c5adfaa40d1bdebd43d3e432917f81e8394d6
Author:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 26 00:18:27 2021 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Fri Mar 26 00:21:21 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d8c5adf

media-gfx/exact-image: drop old version

Dropping all old versions, which do not support slotted lua.

Closes: https://bugs.gentoo.org/634050
Closes: https://bugs.gentoo.org/712618
Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 media-gfx/exact-image/Manifest                     |   1 -
 media-gfx/exact-image/exact-image-0.8.1-r3.ebuild  |  95 --------------
 media-gfx/exact-image/exact-image-1.0.2.ebuild     |  97 --------------
 .../files/exact-image-0.7.5-libpng14.patch         |  69 ----------
 .../exact-image/files/exact-image-0.8.1-gcc6.patch | 139 ---------------------
 .../files/exact-image-0.8.1-libpng15.patch         |  34 -----
 6 files changed, 435 deletions(-)

diff --git a/media-gfx/exact-image/Manifest b/media-gfx/exact-image/Manifest
index 139b6188894..484e6b6fdbc 100644
--- a/media-gfx/exact-image/Manifest
+++ b/media-gfx/exact-image/Manifest
@@ -1,2 +1 @@
-DIST exact-image-0.8.1.tar.bz2 283660 BLAKE2B 49aa68640b785da59fd0e04d0a0892ad06adbc286a98bf908e60e77cfd273263e83dce3c9eb75c30f422c2b6eef2178dd0585aada63f992291abf298b369f3aa SHA512 0adc51c5a29415e236a963cfdaf8f5527e628e9a645e87d00c69a7185e60639cfcd9b1c2b4c3abe1826c5364f0c5d45a0ebb8923cfed53d041d1d36b2604b565
 DIST exact-image-1.0.2.tar.bz2 322174 BLAKE2B 67afefb4c5a52416459cd4ac6198012eb6d7895a73ea8363fae05286c7e7f62aa1a02166985f53b5638c7dc7b23b4dc1fb1c7b2272a9dc595ce329a7083ee1b9 SHA512 8ba5a198a236ddf5fa58f40c80f32ba9d300376c637a13a7acf3d2db7906fced373b33a7ecff9cff4d09d8b21de9ce1fb9f5bfb1f4522557bd01af0e3d6dcc65

diff --git a/media-gfx/exact-image/exact-image-0.8.1-r3.ebuild b/media-gfx/exact-image/exact-image-0.8.1-r3.ebuild
deleted file mode 100644
index 54e1fbe7f7f..00000000000
--- a/media-gfx/exact-image/exact-image-0.8.1-r3.ebuild
+++ /dev/null
@@ -1,95 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit eutils multilib toolchain-funcs
-
-DESCRIPTION="A fast, modern and generic image processing library"
-HOMEPAGE="http://www.exactcode.de/site/open_source/exactimage/"
-SRC_URI="http://dl.exactcode.de/oss/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="expat jpeg lua openexr php perl png ruby swig tiff truetype X"
-
-RDEPEND="x11-libs/agg[truetype]
-	sys-libs/zlib
-	expat? ( dev-libs/expat )
-	jpeg? ( virtual/jpeg )
-	lua? ( dev-lang/lua:0= )
-	openexr? ( media-libs/openexr )
-	php? ( dev-lang/php:* )
-	perl? ( dev-lang/perl )
-	png? ( >=media-libs/libpng-1.2.43 )
-	ruby? ( dev-lang/ruby:* )
-	tiff? ( media-libs/tiff )
-	truetype? ( >=media-libs/freetype-2 )
-	X? (
-		x11-libs/libXext
-		x11-libs/libXt
-		x11-libs/libICE
-		x11-libs/libSM
-	)"
-DEPEND="${RDEPEND}
-	virtual/pkgconfig
-	swig? ( dev-lang/swig )"
-
-PATCHES=(
-	"${FILESDIR}"/${PN}-0.7.5-libpng14.patch
-	"${FILESDIR}"/${P}-libpng15.patch
-	"${FILESDIR}"/${P}-gcc6.patch
-)
-
-src_prepare() {
-	default
-
-	# Respect user CFLAGS/CXXFLAGS.
-	sed -i \
-		-e '/C\(XX\)\?FLAGS =/s/-O2//' \
-		-e "\$aCFLAGS += ${CFLAGS}\nCXXFLAGS += ${CXXFLAGS}" \
-		Makefile || die
-
-	# Show commands.  Use qualified CC/CXX.
-	sed -i \
-		-e '/^Q =/d' \
-		-e '/^\t@echo /d' \
-		-e "\$aCC:=$(tc-getCC)\nCXX:=$(tc-getCXX)" \
-		build/bottom.make || die
-
-	# The copied string fits exactly.  Use memcpy to reflect that a null
-	# terminator is not needed.
-	sed -i \
-		-e 's/strcpy(\([^,]*\)\(,["a-zA-Z -]*\))/memcpy(\1\2, sizeof(\1))/' \
-		codecs/tga.cc || die
-}
-
-src_configure() {
-	# evas -> enlightenment overlay
-	# bardecode -> protected by custom license
-	# libungif -> not supported anymore
-	# python -> allegedly not python3, but python2 only
-
-	./configure \
-		--prefix=/usr \
-		--libdir=/usr/$(get_libdir) \
-		$(use_with X x11) \
-		$(use_with truetype freetype) \
-		--without-evas \
-		$(use_with jpeg libjpeg) \
-		$(use_with tiff libtiff) \
-		$(use_with png libpng) \
-		--without-libungif \
-		--without-jasper \
-		$(use_with openexr) \
-		$(use_with expat) \
-		--without-lcms \
-		--without-bardecode \
-		$(use_with lua) \
-		$(use_with swig) \
-		$(use_with perl) \
-		--without-python \
-		$(use_with php) \
-		$(use_with ruby) || die
-}

diff --git a/media-gfx/exact-image/exact-image-1.0.2.ebuild b/media-gfx/exact-image/exact-image-1.0.2.ebuild
deleted file mode 100644
index de0d4b8a5af..00000000000
--- a/media-gfx/exact-image/exact-image-1.0.2.ebuild
+++ /dev/null
@@ -1,97 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit eutils multilib toolchain-funcs
-
-DESCRIPTION="A fast, modern and generic image processing library"
-HOMEPAGE="http://www.exactcode.de/site/open_source/exactimage/"
-SRC_URI="http://dl.exactcode.de/oss/${PN}/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="expat jpeg lua openexr php perl png ruby swig tiff truetype X"
-
-RDEPEND="x11-libs/agg[truetype]
-	sys-libs/zlib
-	expat? ( dev-libs/expat )
-	jpeg? ( virtual/jpeg )
-	lua? ( dev-lang/lua:0= )
-	openexr? ( media-libs/openexr )
-	php? ( dev-lang/php:* )
-	perl? ( dev-lang/perl )
-	png? ( >=media-libs/libpng-1.2.43 )
-	ruby? ( dev-lang/ruby:* )
-	tiff? ( media-libs/tiff )
-	truetype? ( >=media-libs/freetype-2 )
-	X? (
-		x11-libs/libXext
-		x11-libs/libXt
-		x11-libs/libICE
-		x11-libs/libSM
-	)"
-DEPEND="${RDEPEND}
-	virtual/pkgconfig
-	swig? ( dev-lang/swig )"
-
-PATCHES=(
-	"${FILESDIR}"/${P}-gcc6.patch
-	"${FILESDIR}"/${P}-g++.patch
-	"${FILESDIR}"/${P}-dcraw.patch
-	"${FILESDIR}"/${P}-php.patch
-)
-
-src_prepare() {
-	default
-
-	# Respect user CFLAGS/CXXFLAGS.
-	sed -i \
-		-e '/C\(XX\)\?FLAGS =/s/-O2//' \
-		-e "\$aCFLAGS += ${CFLAGS}\nCXXFLAGS += ${CXXFLAGS}" \
-		Makefile || die
-
-	# Show commands.  Use qualified CC/CXX.
-	sed -i \
-		-e '/^Q =/d' \
-		-e '/^\t@echo /d' \
-		-e "\$aCC:=$(tc-getCC)\nCXX:=$(tc-getCXX)" \
-		build/bottom.make || die
-
-	# The copied string fits exactly.  Use memcpy to reflect that a null
-	# terminator is not needed.
-	sed -i \
-		-e 's/strcpy(\([^,]*\)\(,["a-zA-Z -]*\))/memcpy(\1\2, sizeof(\1))/' \
-		codecs/tga.cc || die
-}
-
-src_configure() {
-	# evas -> enlightenment overlay
-	# bardecode -> protected by custom license
-	# libungif -> not supported anymore
-	# python -> allegedly not python3, but python2 only
-
-	./configure \
-		--prefix=/usr \
-		--libdir=/usr/$(get_libdir) \
-		$(use_with X x11) \
-		$(use_with truetype freetype) \
-		--without-evas \
-		$(use_with jpeg libjpeg) \
-		$(use_with tiff libtiff) \
-		$(use_with png libpng) \
-		--without-libgif \
-		--without-jasper \
-		$(use_with openexr) \
-		$(use_with expat) \
-		--without-lcms \
-		--without-bardecode \
-		$(use_with lua) \
-		$(use_with swig) \
-		--without-python \
-		$(use_with perl) \
-		--without-python \
-		$(use_with php) \
-		$(use_with ruby) || die
-}

diff --git a/media-gfx/exact-image/files/exact-image-0.7.5-libpng14.patch b/media-gfx/exact-image/files/exact-image-0.7.5-libpng14.patch
deleted file mode 100644
index 7c62a6cbd72..00000000000
--- a/media-gfx/exact-image/files/exact-image-0.7.5-libpng14.patch
+++ /dev/null
@@ -1,69 +0,0 @@
---- a/codecs/png.cc
-+++ b/codecs/png.cc
-@@ -71,7 +71,7 @@
-   /* Allocate/initialize the memory for image information.  REQUIRED. */
-   info_ptr = png_create_info_struct(png_ptr);
-   if (info_ptr == NULL) {
--    png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL);
-+    png_destroy_read_struct(&png_ptr, NULL, NULL);
-     return 0;
-   }
-   
-@@ -82,7 +82,7 @@
-   
-   if (setjmp(png_jmpbuf(png_ptr))) {
-     /* Free all of the memory associated with the png_ptr and info_ptr */
--    png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
-+    png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
-     /* If we get here, we had a problem reading the file */
-     return 0;
-   }
-@@ -99,7 +99,7 @@
-   png_read_info (png_ptr, info_ptr);
-   
-   png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
--		&interlace_type, int_p_NULL, int_p_NULL);
-+		&interlace_type, NULL, NULL);
-   
-   image.w = width;
-   image.h = height;
-@@ -132,7 +132,7 @@
- #if 0 // no longer needed
-   /* Expand grayscale images to the full 8 bits from 2, or 4 bits/pixel */
-   if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth > 1 && bit_depth < 8) {
--    png_set_gray_1_2_4_to_8(png_ptr);
-+    png_set_expand_gray_1_2_4_to_8(png_ptr);
-     image.bps = 8;
-   }
- #endif  
-@@ -196,11 +196,11 @@
-   for (int pass = 0; pass < number_passes; ++pass)
-     for (unsigned int y = 0; y < height; ++y) {
-       row_pointers[0] = image.getRawData() + y * stride;
--      png_read_rows(png_ptr, row_pointers, png_bytepp_NULL, 1);
-+      png_read_rows(png_ptr, row_pointers, NULL, 1);
-     }
-   
-   /* clean up after the read, and free any memory allocated - REQUIRED */
--  png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
-+  png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
-   
-   /* that's it */
-   return true;
-@@ -224,7 +224,7 @@
-   /* Allocate/initialize the memory for image information.  REQUIRED. */
-   info_ptr = png_create_info_struct(png_ptr);
-   if (info_ptr == NULL) {
--    png_destroy_write_struct(&png_ptr, png_infopp_NULL);
-+    png_destroy_write_struct(&png_ptr, NULL);
-     return false;
-   }
-   
-@@ -244,7 +244,6 @@
-   else if (quality > Z_BEST_COMPRESSION) quality = Z_BEST_COMPRESSION;
-   png_set_compression_level(png_ptr, quality);
-   
--  png_info_init (info_ptr);
-   
-   /* Set up our STL stream output control */ 
-   png_set_write_fn (png_ptr, stream, &stdstream_write_data, &stdstream_flush_data);

diff --git a/media-gfx/exact-image/files/exact-image-0.8.1-gcc6.patch b/media-gfx/exact-image/files/exact-image-0.8.1-gcc6.patch
deleted file mode 100644
index 4871c99205a..00000000000
--- a/media-gfx/exact-image/files/exact-image-0.8.1-gcc6.patch
+++ /dev/null
@@ -1,139 +0,0 @@
-Bug: https://bugs.gentoo.org/600380
-
---- a/bardecode/code25i.hh
-+++ b/bardecode/code25i.hh
-@@ -20,6 +20,12 @@
- 
- #include "scanner_utils.hh"
- 
-+#if __cplusplus >= 201103L
-+#define STATIC_CONST_DOUBLE static constexpr double
-+#else
-+#define STATIC_CONST_DOUBLE static const double
-+#endif
-+
- namespace BarDecode
- {
-     struct code25i_t
-@@ -37,11 +43,11 @@
- 	#define w_hq 1.5
- 	#define tol 0.2
- #else
--        static const double n_lq = 15;
--        static const double n_hq = 5.3;
--        static const double w_lq = 5.2;
--        static const double w_hq = 1.5;
--        static const double tol = 0.2;
-+        STATIC_CONST_DOUBLE n_lq = 15;
-+        STATIC_CONST_DOUBLE n_hq = 5.3;
-+        STATIC_CONST_DOUBLE w_lq = 5.2;
-+        STATIC_CONST_DOUBLE w_hq = 1.5;
-+        STATIC_CONST_DOUBLE tol = 0.2;
- #endif
-         static const usize_t min_quiet_usize = 5;
-         //static const usize_t min_quiet_usize = 10;
---- a/codecs/bmp.cc
-+++ b/codecs/bmp.cc
-@@ -473,7 +473,7 @@
- 	  std::cerr << "scanline " << row << " Seek error: " << stream->tellg() << " vs " << offset << std::endl;
- 	}
- 	
--	if (stream->read ((char*)row_data, file_stride) < 0) {
-+	if (!static_cast<bool>(stream->read ((char*)row_data, file_stride))) {
- 	  std::cerr << "scanline " << row << ": Read error\n";
- 	}
- 	
---- a/codecs/dcraw.h
-+++ b/codecs/dcraw.h
-@@ -3958,22 +3958,22 @@
-     -2,+0,+0,-1,0,0x06, -2,+0,+0,+0,1,0x02, -2,+0,+0,+1,0,0x03,
-     -2,+1,-1,+0,0,0x04, -2,+1,+0,-1,1,0x04, -2,+1,+0,+0,0,0x06,
-     -2,+1,+0,+1,0,0x02, -2,+2,+0,+0,1,0x04, -2,+2,+0,+1,0,0x04,
--    -1,-2,-1,+0,0,0x80, -1,-2,+0,-1,0,0x01, -1,-2,+1,-1,0,0x01,
--    -1,-2,+1,+0,1,0x01, -1,-1,-1,+1,0,0x88, -1,-1,+1,-2,0,0x40,
-+    -1,-2,-1,+0,0,(signed char) 0x80, -1,-2,+0,-1,0,0x01, -1,-2,+1,-1,0,0x01,
-+    -1,-2,+1,+0,1,0x01, -1,-1,-1,+1,0,(signed char) 0x88, -1,-1,+1,-2,0,0x40,
-     -1,-1,+1,-1,0,0x22, -1,-1,+1,+0,0,0x33, -1,-1,+1,+1,1,0x11,
-     -1,+0,-1,+2,0,0x08, -1,+0,+0,-1,0,0x44, -1,+0,+0,+1,0,0x11,
-     -1,+0,+1,-2,1,0x40, -1,+0,+1,-1,0,0x66, -1,+0,+1,+0,1,0x22,
-     -1,+0,+1,+1,0,0x33, -1,+0,+1,+2,1,0x10, -1,+1,+1,-1,1,0x44,
-     -1,+1,+1,+0,0,0x66, -1,+1,+1,+1,0,0x22, -1,+1,+1,+2,0,0x10,
-     -1,+2,+0,+1,0,0x04, -1,+2,+1,+0,1,0x04, -1,+2,+1,+1,0,0x04,
--    +0,-2,+0,+0,1,0x80, +0,-1,+0,+1,1,0x88, +0,-1,+1,-2,0,0x40,
-+    +0,-2,+0,+0,1,(signed char) 0x80, +0,-1,+0,+1,1,(signed char) 0x88, +0,-1,+1,-2,0,0x40,
-     +0,-1,+1,+0,0,0x11, +0,-1,+2,-2,0,0x40, +0,-1,+2,-1,0,0x20,
-     +0,-1,+2,+0,0,0x30, +0,-1,+2,+1,1,0x10, +0,+0,+0,+2,1,0x08,
-     +0,+0,+2,-2,1,0x40, +0,+0,+2,-1,0,0x60, +0,+0,+2,+0,1,0x20,
-     +0,+0,+2,+1,0,0x30, +0,+0,+2,+2,1,0x10, +0,+1,+1,+0,0,0x44,
-     +0,+1,+1,+2,0,0x10, +0,+1,+2,-1,1,0x40, +0,+1,+2,+0,0,0x60,
--    +0,+1,+2,+1,0,0x20, +0,+1,+2,+2,0,0x10, +1,-2,+1,+0,0,0x80,
--    +1,-1,+1,+1,0,0x88, +1,+0,+1,+2,0,0x08, +1,+0,+2,-1,0,0x40,
-+    +0,+1,+2,+1,0,0x20, +0,+1,+2,+2,0,0x10, +1,-2,+1,+0,0,(signed char) 0x80,
-+    +1,-1,+1,+1,0,(signed char) 0x88, +1,+0,+1,+2,0,0x08, +1,+0,+2,-1,0,0x40,
-     +1,+0,+2,+1,0,0x10
-   }, chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 };
-   ushort (*brow[5])[4], *pix;
-@@ -6341,11 +6341,11 @@
- 	{ 10793,-3791,-1146,-7498,15177,2488,-1390,1577,7321 } },
-     { "OLYMPUS C80", 0, 0,
- 	{ 8606,-2509,-1014,-8238,15714,2703,-942,979,7760 } },
--    { "OLYMPUS E-10", 0, 0xffc0,
-+    { "OLYMPUS E-10", 0, (short) 0xffc0,
- 	{ 12745,-4500,-1416,-6062,14542,1580,-1934,2256,6603 } },
--    { "OLYMPUS E-1", 0, 0xfff0,
-+    { "OLYMPUS E-1", 0, (short) 0xfff0,
- 	{ 11846,-4767,-945,-7027,15878,1089,-2699,4122,8311 } },
--    { "OLYMPUS E-20", 0, 0xffc0,
-+    { "OLYMPUS E-20", 0, (short) 0xffc0,
- 	{ 13173,-4732,-1499,-5807,14036,1895,-2045,2452,7142 } },
-     { "OLYMPUS E-300", 0, 0,
- 	{ 7828,-1761,-348,-5788,14071,1830,-2853,4518,6557 } },
-@@ -6353,7 +6353,7 @@
- 	{ 8961,-2473,-1084,-7979,15990,2067,-2319,3035,8249 } },
-     { "OLYMPUS E-3", 0, 0xf99,
- 	{ 9487,-2875,-1115,-7533,15606,2010,-1618,2100,7389 } },
--    { "OLYMPUS E-400", 0, 0xfff0,
-+    { "OLYMPUS E-400", 0, (short) 0xfff0,
- 	{ 6169,-1483,-21,-7107,14761,2536,-2904,3580,8568 } },
-     { "OLYMPUS E-410", 0, 0xf6a,
- 	{ 8856,-2582,-1026,-7761,15766,2082,-2009,2575,7469 } },
-@@ -6399,23 +6399,23 @@
- 	{ 9186,-2678,-907,-8693,16517,2260,-1129,1094,8524 } },
-     { "PENTAX K2000", 0, 0,
- 	{ 11057,-3604,-1155,-5152,13046,2329,-282,375,8104 } },
--    { "Panasonic DMC-FZ8", 0, 0xf7f0,
-+    { "Panasonic DMC-FZ8", 0, (short) 0xf7f0,
- 	{ 8986,-2755,-802,-6341,13575,3077,-1476,2144,6379 } },
-     { "Panasonic DMC-FZ18", 0, 0,
- 	{ 9932,-3060,-935,-5809,13331,2753,-1267,2155,5575 } },
-     { "Panasonic DMC-FZ28", 15, 0xfff,
- 	{ 10109,-3488,-993,-5412,12812,2916,-1305,2140,5543 } },
--    { "Panasonic DMC-FZ30", 0, 0xf94c,
-+    { "Panasonic DMC-FZ30", 0, (short) 0xf94c,
- 	{ 10976,-4029,-1141,-7918,15491,2600,-1670,2071,8246 } },
--    { "Panasonic DMC-FZ50", 0, 0xfff0,	/* aka "LEICA V-LUX1" */
-+    { "Panasonic DMC-FZ50", 0, (short) 0xfff0,	/* aka "LEICA V-LUX1" */
- 	{ 7906,-2709,-594,-6231,13351,3220,-1922,2631,6537 } },
-     { "Panasonic DMC-L10", 15, 0xf96,
- 	{ 8025,-1942,-1050,-7920,15904,2100,-2456,3005,7039 } },
--    { "Panasonic DMC-L1", 0, 0xf7fc,	/* aka "LEICA DIGILUX 3" */
-+    { "Panasonic DMC-L1", 0, (short) 0xf7fc,	/* aka "LEICA DIGILUX 3" */
- 	{ 8054,-1885,-1025,-8349,16367,2040,-2805,3542,7629 } },
-     { "Panasonic DMC-LC1", 0, 0,	/* aka "LEICA DIGILUX 2" */
- 	{ 11340,-4069,-1275,-7555,15266,2448,-2960,3426,7685 } },
--    { "Panasonic DMC-LX1", 0, 0xf7f0,	/* aka "LEICA D-LUX2" */
-+    { "Panasonic DMC-LX1", 0, (short) 0xf7f0,	/* aka "LEICA D-LUX2" */
- 	{ 10704,-4187,-1230,-8314,15952,2501,-920,945,8927 } },
-     { "Panasonic DMC-LX2", 0, 0,	/* aka "LEICA D-LUX3" */
- 	{ 8048,-2810,-623,-6450,13519,3272,-1700,2146,7049 } },
---- a/codecs/raw.cc
-+++ b/codecs/raw.cc
-@@ -66,7 +66,7 @@
-   if (!image.getRawData())
-     return false;
- 
--  return stream->write ((char*)image.getRawData(), image.stride()*image.h)
-+  return static_cast<bool>(stream->write ((char*)image.getRawData(), image.stride()*image.h))
-     /* ==
-        (size_t) image.stride()*image.h*/;
- }

diff --git a/media-gfx/exact-image/files/exact-image-0.8.1-libpng15.patch b/media-gfx/exact-image/files/exact-image-0.8.1-libpng15.patch
deleted file mode 100644
index 94c8906a874..00000000000
--- a/media-gfx/exact-image/files/exact-image-0.8.1-libpng15.patch
+++ /dev/null
@@ -1,34 +0,0 @@
---- a/codecs/png.cc
-+++ b/codecs/png.cc
-@@ -16,6 +16,7 @@
-  */
- 
- #include <stdlib.h>
-+#include <zlib.h>
- #include <png.h>
- 
- #include <iostream>
-@@ -104,7 +105,7 @@
-   image.w = width;
-   image.h = height;
-   image.bps = bit_depth;
--  image.spp = info_ptr->channels;
-+  image.spp = png_get_channels(png_ptr, info_ptr);
-   
-   png_uint_32 res_x, res_y;
-   res_x = png_get_x_pixels_per_meter(png_ptr, info_ptr);
-@@ -120,10 +121,13 @@
-   // png_set_packswap(png_ptr);
- 
-   /* Expand paletted colors into true RGB triplets */
-+
-+  int num_trans;
-+
-   if (color_type == PNG_COLOR_TYPE_PALETTE) {
-     png_set_palette_to_rgb(png_ptr);
-     image.bps = 8;
--    if (info_ptr->num_trans)
-+    if (num_trans)
-       image.spp = 4;
-     else
-       image.spp = 3;


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-gfx/exact-image/, media-gfx/exact-image/files/
@ 2024-10-06 19:01 Alfredo Tupone
  0 siblings, 0 replies; 5+ messages in thread
From: Alfredo Tupone @ 2024-10-06 19:01 UTC (permalink / raw
  To: gentoo-commits

commit:     da70248ebd82b66c505b09d62518feb893872657
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  6 16:09:06 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sun Oct  6 18:58:56 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da70248e

media-gfx/exact-image: subs deprecated function

Closes: https://bugs.gentoo.org/940766
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 ...xact-image-1.2.1-r1.ebuild => exact-image-1.2.1-r2.ebuild} |  3 ++-
 media-gfx/exact-image/files/exact-image-1.2.1-libjxl-9.patch  | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/media-gfx/exact-image/exact-image-1.2.1-r1.ebuild b/media-gfx/exact-image/exact-image-1.2.1-r2.ebuild
similarity index 97%
rename from media-gfx/exact-image/exact-image-1.2.1-r1.ebuild
rename to media-gfx/exact-image/exact-image-1.2.1-r2.ebuild
index 7480e98e5c79..ea33ddee2755 100644
--- a/media-gfx/exact-image/exact-image-1.2.1-r1.ebuild
+++ b/media-gfx/exact-image/exact-image-1.2.1-r2.ebuild
@@ -24,7 +24,7 @@ RDEPEND="
 	sys-libs/zlib
 	expat? ( dev-libs/expat )
 	jpeg? ( media-libs/libjpeg-turbo:= )
-	jpegxl? ( <media-libs/libjxl-0.9:= )
+	jpegxl? ( media-libs/libjxl:= )
 	lua? ( ${LUA_DEPS} )
 	openexr? ( media-libs/openexr:= )
 	perl? ( dev-lang/perl )
@@ -47,6 +47,7 @@ BDEPEND="virtual/pkgconfig"
 PATCHES=(
 	"${FILESDIR}"/${P}-gcc6.patch
 	"${FILESDIR}"/${PN}-1.0.2-g++.patch
+	"${FILESDIR}"/${P}-libjxl-9.patch
 )
 
 src_prepare() {

diff --git a/media-gfx/exact-image/files/exact-image-1.2.1-libjxl-9.patch b/media-gfx/exact-image/files/exact-image-1.2.1-libjxl-9.patch
new file mode 100644
index 000000000000..520300b85146
--- /dev/null
+++ b/media-gfx/exact-image/files/exact-image-1.2.1-libjxl-9.patch
@@ -0,0 +1,11 @@
+--- a/codecs/jpegxl.cc	2024-10-06 17:58:07.684805110 +0200
++++ b/codecs/jpegxl.cc	2024-10-06 17:58:23.929604759 +0200
+@@ -186,7 +186,7 @@
+   }
+   
+   if (JXL_ENC_SUCCESS !=
+-      JxlEncoderAddImageFrame(JxlEncoderOptionsCreate(enc.get(), nullptr),
++      JxlEncoderAddImageFrame(JxlEncoderFrameSettingsCreate(enc.get(), nullptr),
+                               &pixel_format, image.getRawData(),
+                               image.stride() * image.h)) {
+     std::cerr << "JxlEncoderAddImageFrame failed" << std::endl;


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-10-06 19:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-02 18:45 [gentoo-commits] repo/gentoo:master commit in: media-gfx/exact-image/, media-gfx/exact-image/files/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2020-07-04 19:46 Alfredo Tupone
2020-07-23 17:20 Alfredo Tupone
2021-03-26  0:21 Conrad Kostecki
2024-10-06 19:01 Alfredo Tupone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox