diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-gfx/ufraw | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-gfx/ufraw')
-rw-r--r-- | media-gfx/ufraw/Manifest | 3 | ||||
-rw-r--r-- | media-gfx/ufraw/files/ufraw-0.17-cfitsio-automagic.patch | 28 | ||||
-rw-r--r-- | media-gfx/ufraw/files/ufraw-0.20-gimp.patch | 24 | ||||
-rw-r--r-- | media-gfx/ufraw/files/ufraw-0.21-CVE-2015-3885.patch | 52 | ||||
-rw-r--r-- | media-gfx/ufraw/metadata.xml | 19 | ||||
-rw-r--r-- | media-gfx/ufraw/ufraw-0.20-r1.ebuild | 81 | ||||
-rw-r--r-- | media-gfx/ufraw/ufraw-0.21-r1.ebuild | 81 | ||||
-rw-r--r-- | media-gfx/ufraw/ufraw-0.21.ebuild | 80 | ||||
-rw-r--r-- | media-gfx/ufraw/ufraw-0.22.ebuild | 80 |
9 files changed, 448 insertions, 0 deletions
diff --git a/media-gfx/ufraw/Manifest b/media-gfx/ufraw/Manifest new file mode 100644 index 000000000000..1bc5165f713c --- /dev/null +++ b/media-gfx/ufraw/Manifest @@ -0,0 +1,3 @@ +DIST ufraw-0.20.tar.gz 1086969 SHA256 6dcd30f73238f56641ec87ae07807a6ebeab141a1a481aafe3ddab6f3db8a1e0 SHA512 d18ecc257f9d88c77fca0e7a8641ee1e78abd28e73c34bd98def2d0dbd65f8fbaa677deca34ac4ed3ce7775764b6baca2896a023d690573057e4659de6dc3b1a WHIRLPOOL fedecf66ef22bdffe667408ac0b8106ec99ee2a1dd29fab53877229ec375bdeab37cc6fe942d7e3ef2c3de38a5770eaf4f49c44367ca1677acfda13bb4c85a1d +DIST ufraw-0.21.tar.gz 1016298 SHA256 2a6a1bcc633bdc8e15615cf726befcd7f27ab00e7c2a518469a24e1a96964d87 SHA512 e1fbfcf7b6f15089d51626a3e2d3dc694aa79edfc0bdfe4a8be6f684d4a31a91c56502942174c0708de91413fe907acb5d2fa2ad9d1a5404eb66b14764909ae9 WHIRLPOOL 84e96894f9ecc9d3a81f96f7c58165e095553b9bab69343754c8a89ef18480f751745cb48e8846ea5db26d1077ace4104ef18d0c0546b2b54439819b81ee3a7c +DIST ufraw-0.22.tar.gz 1103554 SHA256 f7abd28ce587db2a74b4c54149bd8a2523a7ddc09bedf4f923246ff0ae09a25e SHA512 a42eff5052c18afec90245cf97ceeade78e3f288186cf697ac4abf2e8290d4081db8ac4de3ae47b3774f30a6cb4cbda392099e6fd2125fe751abb40d9b065ad2 WHIRLPOOL 5cb53f83d2f2baccd0752a0898eb894b8e15ad234962f3e3cc4ae2166309cd68893dceef28d32018aa486da1a09c64df378a2569f764a42f8251f5a568c14e5f diff --git a/media-gfx/ufraw/files/ufraw-0.17-cfitsio-automagic.patch b/media-gfx/ufraw/files/ufraw-0.17-cfitsio-automagic.patch new file mode 100644 index 000000000000..aff7c5a25930 --- /dev/null +++ b/media-gfx/ufraw/files/ufraw-0.17-cfitsio-automagic.patch @@ -0,0 +1,28 @@ +diff -ru ufraw-0.17.orig/configure.ac ufraw-0.17/configure.ac +--- ufraw-0.17.orig/configure.ac 2010-04-02 16:16:08.000000000 +0200 ++++ ufraw-0.17/configure.ac 2010-04-02 16:19:33.000000000 +0200 +@@ -246,11 +246,19 @@ + [ have_png=no + AC_MSG_RESULT($LIBPNG_PKG_ERRORS) ] ) + +-PKG_CHECK_MODULES(CFITSIO, cfitsio, +- [ have_cfitsio=yes +- AC_DEFINE(HAVE_LIBCFITSIO, 1, have the cfitsio library) ], +- [ have_cfitsio=no +- AC_MSG_RESULT($CFITSIO_PKG_ERRORS) ] ) ++AC_ARG_WITH([cfitsio], ++ [AS_HELP_STRING([--with-cfitsio], ++ [build fits support @<:@default=check@:>@])], ++ [], ++ [with_cfitsio=check]) ++ ++have_cfitsio=no ++AS_IF([test "x$with_cfitsio" != xno], ++ [PKG_CHECK_MODULES(CFITSIO, cfitsio, ++ [ have_cfitsio=yes ++ AC_DEFINE(HAVE_LIBCFITSIO, 1, have the cfitsio library) ], ++ [ have_cfitsio=no ++ AC_MSG_RESULT($CFITSIO_PKG_ERRORS) ] ) ] ) + + PKG_CHECK_MODULES(EXIV2, exiv2 >= 0.16, + [ have_exiv2=yes diff --git a/media-gfx/ufraw/files/ufraw-0.20-gimp.patch b/media-gfx/ufraw/files/ufraw-0.20-gimp.patch new file mode 100644 index 000000000000..5ce607c3179a --- /dev/null +++ b/media-gfx/ufraw/files/ufraw-0.20-gimp.patch @@ -0,0 +1,24 @@ +http://ufraw.cvs.sourceforge.net/viewvc/ufraw/ufraw/ufraw-gimp.c?r1=1.82&r2=1.83&diff_format=u +http://sourceforge.net/p/ufraw/bugs/392/ +https://bugs.gentoo.org/show_bug.cgi?id=527836 + +--- ufraw-gimp.c 2014/01/07 13:00:08 1.82 ++++ ufraw-gimp.c 2014/10/20 04:00:10 1.83 +@@ -79,12 +79,16 @@ + load_args, + load_return_vals); + ++#if HAVE_GIMP_2_9 + gimp_register_magic_load_handler("file_ufraw_load", + (char *)raw_ext, + "", + "0,string,II*\\0," + "0,string,MM\\0*," + "0,string,<?xml"); ++#else ++ gimp_register_load_handler("file_ufraw_load", (char *)raw_ext, ""); ++#endif + + gimp_install_procedure("file_ufraw_load_thumb", + "Loads thumbnails from digital camera raw files.", + diff --git a/media-gfx/ufraw/files/ufraw-0.21-CVE-2015-3885.patch b/media-gfx/ufraw/files/ufraw-0.21-CVE-2015-3885.patch new file mode 100644 index 000000000000..c17c66c41ab7 --- /dev/null +++ b/media-gfx/ufraw/files/ufraw-0.21-CVE-2015-3885.patch @@ -0,0 +1,52 @@ +From 6b4ff65c6fc1a88eaa7bfc1ee5a25413d171b5f7 Mon Sep 17 00:00:00 2001 +From: Nils Philippsen <nils@redhat.com> +Date: Thu, 21 May 2015 13:47:29 +0200 +Subject: [PATCH] patch: CVE-2015-3885 + +Squashed commit of the following: + +commit 8f2a2348638f74e059069d98a6329fcc656ae4b5 +Author: Nils Philippsen <nils@redhat.com> +Date: Tue May 19 11:36:57 2015 +0200 + + CVE-2015-3885: avoid overflowing array + + When reading raw image files containing lossless JPEG data, headers + could be manipulated to make the signed int variable 'len' negative + which specifies how much actual data follows. Interpreted as unsigned, + this could lead to reading file data past the 64k boundary of the array + used for storing it. To avoid that, make 'len' unsigned short, and bail + out early if its value would become invalid (i.e. <= 0). +--- + dcraw.cc | 8 +++++--- + 1 file changed, 5 insertions(+), 3 deletions(-) + +diff --git a/dcraw.cc b/dcraw.cc +index 75ea121..d9f96ff 100644 +--- a/dcraw.cc ++++ b/dcraw.cc +@@ -934,7 +934,8 @@ struct jhead { + + int CLASS ljpeg_start (struct jhead *jh, int info_only) + { +- int c, tag, len; ++ int c, tag; ++ ushort len; + uchar data[0x10000]; + const uchar *dp; + +@@ -945,8 +946,9 @@ int CLASS ljpeg_start (struct jhead *jh, int info_only) + do { + fread (data, 2, 2, ifp); + tag = data[0] << 8 | data[1]; +- len = (data[2] << 8 | data[3]) - 2; +- if (tag <= 0xff00) return 0; ++ len = (data[2] << 8 | data[3]); ++ if (tag <= 0xff00 || len <= 2) return 0; ++ len -= 2; + fread (data, 1, len, ifp); + switch (tag) { + case 0xffc3: +-- +2.4.1 + diff --git a/media-gfx/ufraw/metadata.xml b/media-gfx/ufraw/metadata.xml new file mode 100644 index 000000000000..56bf6e46d23e --- /dev/null +++ b/media-gfx/ufraw/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>graphics</herd> + <use> + <flag name="contrast"> + enable contrast setting option + </flag> + <flag name="fits"> + Enable support for the FITS image format through <pkg>sci-libs/cfitsio</pkg> + </flag> + <flag name="timezone"> + enable DST correction for file timestamps + </flag> + </use> + <upstream> + <remote-id type="sourceforge">ufraw</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-gfx/ufraw/ufraw-0.20-r1.ebuild b/media-gfx/ufraw/ufraw-0.20-r1.ebuild new file mode 100644 index 000000000000..60d5b046f303 --- /dev/null +++ b/media-gfx/ufraw/ufraw-0.20-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils fdo-mime gnome2-utils toolchain-funcs + +DESCRIPTION="RAW Image format viewer and GIMP plugin" +HOMEPAGE="http://ufraw.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris" +IUSE="contrast fits gimp gnome gtk openmp timezone" + +RDEPEND="dev-libs/glib:2 + >=media-gfx/exiv2-0.11:0= + media-libs/lcms + >=media-libs/lensfun-0.2.5 + media-libs/libpng:0= + media-libs/tiff + virtual/jpeg + fits? ( sci-libs/cfitsio:0= ) + gnome? ( >=gnome-base/gconf-2 ) + gtk? ( >=x11-libs/gtk+-2.6:2 + >=media-gfx/gtkimageview-1.5 ) + gimp? ( >=x11-libs/gtk+-2.6:2 + >=media-gfx/gtkimageview-1.5 + >=media-gfx/gimp-2 )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-0.17-cfitsio-automagic.patch \ + "${FILESDIR}"/${P}-gimp.patch + eautoreconf +} + +src_configure() { + econf \ + $(use_enable contrast) \ + $(use_with fits cfitsio) \ + $(use_with gimp) \ + $(use_enable gnome mime) \ + $(use_with gtk) \ + $(use_enable openmp) \ + $(use_enable timezone dst-correction) \ + $(usex gimp --with-gtk "") +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + emake DESTDIR="${D}" schemasdir=/etc/gconf/schemas install + dodoc README TODO +} + +pkg_preinst() { + if use gnome; then + gnome2_gconf_savelist + fi +} + +pkg_postinst() { + if use gnome; then + fdo-mime_mime_database_update + fdo-mime_desktop_database_update + gnome2_gconf_install + fi +} + +pkg_postrm() { + if use gnome; then + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + fi +} diff --git a/media-gfx/ufraw/ufraw-0.21-r1.ebuild b/media-gfx/ufraw/ufraw-0.21-r1.ebuild new file mode 100644 index 000000000000..b16c10f20169 --- /dev/null +++ b/media-gfx/ufraw/ufraw-0.21-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils fdo-mime gnome2-utils toolchain-funcs + +DESCRIPTION="RAW Image format viewer and GIMP plugin" +HOMEPAGE="http://ufraw.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris" +IUSE="contrast fits gimp gnome gtk openmp timezone" + +REQUIRED_USE="gimp? ( gtk )" + +RDEPEND=" + dev-libs/glib:2= + >=media-gfx/exiv2-0.11:0= + media-libs/lcms:2= + >=media-libs/lensfun-0.2.5:= + media-libs/libpng:0= + media-libs/tiff:0= + virtual/jpeg:0= + fits? ( sci-libs/cfitsio:0= ) + gnome? ( >=gnome-base/gconf-2 ) + gtk? ( >=x11-libs/gtk+-2.6:2 + >=media-gfx/gtkimageview-1.5 ) + gimp? ( >=media-gfx/gimp-2 ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.17-cfitsio-automagic.patch + epatch "${FILESDIR}"/${P}-CVE-2015-3885.patch + eautoreconf +} + +src_configure() { + econf \ + $(use_enable contrast) \ + $(use_with fits cfitsio) \ + $(use_with gimp) \ + $(use_enable gnome mime) \ + $(use_with gtk) \ + $(use_enable openmp) \ + $(use_enable timezone dst-correction) +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + emake DESTDIR="${D}" schemasdir=/etc/gconf/schemas install + dodoc README TODO +} + +pkg_preinst() { + if use gnome; then + gnome2_gconf_savelist + fi +} + +pkg_postinst() { + if use gnome; then + fdo-mime_mime_database_update + fdo-mime_desktop_database_update + gnome2_gconf_install + fi +} + +pkg_postrm() { + if use gnome; then + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + fi +} diff --git a/media-gfx/ufraw/ufraw-0.21.ebuild b/media-gfx/ufraw/ufraw-0.21.ebuild new file mode 100644 index 000000000000..4ddf3483190e --- /dev/null +++ b/media-gfx/ufraw/ufraw-0.21.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils fdo-mime gnome2-utils toolchain-funcs + +DESCRIPTION="RAW Image format viewer and GIMP plugin" +HOMEPAGE="http://ufraw.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris" +IUSE="contrast fits gimp gnome gtk openmp timezone" + +REQUIRED_USE="gimp? ( gtk )" + +RDEPEND=" + dev-libs/glib:2= + >=media-gfx/exiv2-0.11:0= + media-libs/lcms:2= + >=media-libs/lensfun-0.2.5:= + media-libs/libpng:0= + media-libs/tiff:0= + virtual/jpeg:0= + fits? ( sci-libs/cfitsio:0= ) + gnome? ( >=gnome-base/gconf-2 ) + gtk? ( >=x11-libs/gtk+-2.6:2 + >=media-gfx/gtkimageview-1.5 ) + gimp? ( >=media-gfx/gimp-2 ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.17-cfitsio-automagic.patch + eautoreconf +} + +src_configure() { + econf \ + $(use_enable contrast) \ + $(use_with fits cfitsio) \ + $(use_with gimp) \ + $(use_enable gnome mime) \ + $(use_with gtk) \ + $(use_enable openmp) \ + $(use_enable timezone dst-correction) +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + emake DESTDIR="${D}" schemasdir=/etc/gconf/schemas install + dodoc README TODO +} + +pkg_preinst() { + if use gnome; then + gnome2_gconf_savelist + fi +} + +pkg_postinst() { + if use gnome; then + fdo-mime_mime_database_update + fdo-mime_desktop_database_update + gnome2_gconf_install + fi +} + +pkg_postrm() { + if use gnome; then + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + fi +} diff --git a/media-gfx/ufraw/ufraw-0.22.ebuild b/media-gfx/ufraw/ufraw-0.22.ebuild new file mode 100644 index 000000000000..4ddf3483190e --- /dev/null +++ b/media-gfx/ufraw/ufraw-0.22.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit autotools eutils fdo-mime gnome2-utils toolchain-funcs + +DESCRIPTION="RAW Image format viewer and GIMP plugin" +HOMEPAGE="http://ufraw.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris" +IUSE="contrast fits gimp gnome gtk openmp timezone" + +REQUIRED_USE="gimp? ( gtk )" + +RDEPEND=" + dev-libs/glib:2= + >=media-gfx/exiv2-0.11:0= + media-libs/lcms:2= + >=media-libs/lensfun-0.2.5:= + media-libs/libpng:0= + media-libs/tiff:0= + virtual/jpeg:0= + fits? ( sci-libs/cfitsio:0= ) + gnome? ( >=gnome-base/gconf-2 ) + gtk? ( >=x11-libs/gtk+-2.6:2 + >=media-gfx/gtkimageview-1.5 ) + gimp? ( >=media-gfx/gimp-2 ) +" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}"/${PN}-0.17-cfitsio-automagic.patch + eautoreconf +} + +src_configure() { + econf \ + $(use_enable contrast) \ + $(use_with fits cfitsio) \ + $(use_with gimp) \ + $(use_enable gnome mime) \ + $(use_with gtk) \ + $(use_enable openmp) \ + $(use_enable timezone dst-correction) +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + emake DESTDIR="${D}" schemasdir=/etc/gconf/schemas install + dodoc README TODO +} + +pkg_preinst() { + if use gnome; then + gnome2_gconf_savelist + fi +} + +pkg_postinst() { + if use gnome; then + fdo-mime_mime_database_update + fdo-mime_desktop_database_update + gnome2_gconf_install + fi +} + +pkg_postrm() { + if use gnome; then + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + fi +} |