diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2015-05-23 20:17:59 +0000 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2015-05-23 20:17:59 +0000 |
commit | 4daa755013e7e423d56b3e78486912333d034400 (patch) | |
tree | 25363bf437d81c9656b19aefd8f8179622294133 /media-plugins | |
parent | Version bump. Removed old (diff) | |
download | gentoo-2-4daa755013e7e423d56b3e78486912333d034400.tar.gz gentoo-2-4daa755013e7e423d56b3e78486912333d034400.tar.bz2 gentoo-2-4daa755013e7e423d56b3e78486912333d034400.zip |
Fix build with jpeg-9, bug 533470
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0B08240A96F66571)
Diffstat (limited to 'media-plugins')
-rw-r--r-- | media-plugins/kipi-plugins/ChangeLog | 6 | ||||
-rw-r--r-- | media-plugins/kipi-plugins/files/kipi-plugins-4.10.0-jpeg.patch | 76 | ||||
-rw-r--r-- | media-plugins/kipi-plugins/kipi-plugins-4.10.0.ebuild | 3 |
3 files changed, 83 insertions, 2 deletions
diff --git a/media-plugins/kipi-plugins/ChangeLog b/media-plugins/kipi-plugins/ChangeLog index e879ecce1e69..f099692bf36a 100644 --- a/media-plugins/kipi-plugins/ChangeLog +++ b/media-plugins/kipi-plugins/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-plugins/kipi-plugins # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/kipi-plugins/ChangeLog,v 1.179 2015/05/19 21:59:34 dilfridge Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/kipi-plugins/ChangeLog,v 1.180 2015/05/23 20:17:59 dilfridge Exp $ + + 23 May 2015; Andreas K. Huettel <dilfridge@gentoo.org> + kipi-plugins-4.10.0.ebuild, +files/kipi-plugins-4.10.0-jpeg.patch: + Fix build with jpeg-9, bug 533470 *kipi-plugins-4.10.0 (19 May 2015) diff --git a/media-plugins/kipi-plugins/files/kipi-plugins-4.10.0-jpeg.patch b/media-plugins/kipi-plugins/files/kipi-plugins-4.10.0-jpeg.patch new file mode 100644 index 000000000000..361059e0e0aa --- /dev/null +++ b/media-plugins/kipi-plugins/files/kipi-plugins-4.10.0-jpeg.patch @@ -0,0 +1,76 @@ +diff -u -r a/extra/kipi-plugins/common/libkipiplugins/tools/imageio/kpwriteimage.cpp b/extra/kipi-plugins/common/libkipiplugins/tools/imageio/kpwriteimage.cpp +--- a/extra/kipi-plugins/common/libkipiplugins/tools/imageio/kpwriteimage.cpp 2014-12-16 09:54:40.000000000 +0200 ++++ b/extra/kipi-plugins/common/libkipiplugins/tools/imageio/kpwriteimage.cpp 2014-12-24 20:46:51.471208340 +0200 +@@ -181,8 +181,8 @@ + cinfo.comp_info[2].v_samp_factor = 1; + + // bug #154273: use 99 compression level instead 100 to reduce output JPEG file size. +- jpeg_set_quality(&cinfo, 99, true); +- jpeg_start_compress(&cinfo, true); ++ jpeg_set_quality(&cinfo, 99, boolean (true)); ++ jpeg_start_compress(&cinfo, boolean(true)); + + // Write ICC color profile. + if (!d->iccProfile.isEmpty()) +diff -u -r a/extra/kipi-plugins/jpeglossless/transform/jpegtransform.cpp b/extra/kipi-plugins/jpeglossless/transform/jpegtransform.cpp +--- a/extra/kipi-plugins/jpeglossless/transform/jpegtransform.cpp 2014-12-16 09:54:40.000000000 +0200 ++++ b/extra/kipi-plugins/jpeglossless/transform/jpegtransform.cpp 2014-12-24 20:53:06.757881558 +0200 +@@ -197,10 +197,10 @@ + JCOPY_OPTION copyoption = JCOPYOPT_ALL; + jpeg_transform_info transformoption; + +- transformoption.perfect = false; +- transformoption.force_grayscale = false; +- transformoption.trim = false; +- transformoption.crop = false; ++ transformoption.perfect = boolean(false); ++ transformoption.force_grayscale = boolean(false); ++ transformoption.trim = boolean(false); ++ transformoption.crop = boolean(false); + + struct jpeg_decompress_struct srcinfo; + struct jpeg_compress_struct dstinfo; +@@ -277,7 +277,7 @@ + kp_jpeg_qiodevice_src(&srcinfo, &input_file); + jcopy_markers_setup(&srcinfo, copyoption); + +- (void) jpeg_read_header(&srcinfo, true); ++ (void) jpeg_read_header(&srcinfo, boolean(true)); + + // First rotate - execute even if rotate is JXFORM_NONE to apply new EXIF settings + transformoption.transform = rotate; +@@ -296,10 +296,10 @@ + kp_jpeg_qiodevice_dest(&dstinfo, &output_file); + + // Do not write a JFIF header if previously the image did not contain it +- dstinfo.write_JFIF_header = false; ++ dstinfo.write_JFIF_header = boolean(false); + + // Start compressor (note no image data is actually written here) +- dstinfo.optimize_coding = true; ++ dstinfo.optimize_coding = boolean(true); + jpeg_write_coefficients(&dstinfo, dst_coef_arrays); + + // Copy to the output file any extra markers that we want to preserve +@@ -349,7 +349,7 @@ + kp_jpeg_qiodevice_src(&srcinfo, &input_file); + jcopy_markers_setup(&srcinfo, copyoption); + +- (void) jpeg_read_header(&srcinfo, true); ++ (void) jpeg_read_header(&srcinfo, boolean(true)); + + transformoption.transform=flip; + jtransform_request_workspace(&srcinfo, &transformoption); +@@ -366,10 +366,10 @@ + kp_jpeg_qiodevice_dest(&dstinfo, &output_file); + + // Do not write a JFIF header if previously the image did not contain it +- dstinfo.write_JFIF_header = false; ++ dstinfo.write_JFIF_header = boolean(false); + + // Start compressor (note no image data is actually written here) +- dstinfo.optimize_coding = true; ++ dstinfo.optimize_coding = boolean(true); + jpeg_write_coefficients(&dstinfo, dst_coef_arrays); + + // Copy to the output file any extra markers that we want to preserve diff --git a/media-plugins/kipi-plugins/kipi-plugins-4.10.0.ebuild b/media-plugins/kipi-plugins/kipi-plugins-4.10.0.ebuild index 15fa65cd94e7..6a672ed9c05f 100644 --- a/media-plugins/kipi-plugins/kipi-plugins-4.10.0.ebuild +++ b/media-plugins/kipi-plugins/kipi-plugins-4.10.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/kipi-plugins/kipi-plugins-4.10.0.ebuild,v 1.1 2015/05/19 21:59:34 dilfridge Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/kipi-plugins/kipi-plugins-4.10.0.ebuild,v 1.2 2015/05/23 20:17:59 dilfridge Exp $ # # TODO: complete packaging of qtsoap and qtkoauth, see dilfridge overlay for work in progress @@ -95,6 +95,7 @@ RESTRICT=test PATCHES=( "${FILESDIR}/${PN}-4.6.0-options.patch" + "${FILESDIR}/${PN}-4.10.0-jpeg.patch" ) src_prepare() { |