From owner-svn-ports-all@freebsd.org Tue Apr 3 22:47:44 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 53380F86E5F; Tue, 3 Apr 2018 22:47:44 +0000 (UTC) (envelope-from rodrigo@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 00C5F79AB9; Tue, 3 Apr 2018 22:47:44 +0000 (UTC) (envelope-from rodrigo@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EF4942EA0; Tue, 3 Apr 2018 22:47:43 +0000 (UTC) (envelope-from rodrigo@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w33Mlh6f057725; Tue, 3 Apr 2018 22:47:43 GMT (envelope-from rodrigo@FreeBSD.org) Received: (from rodrigo@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w33MlhjR057713; Tue, 3 Apr 2018 22:47:43 GMT (envelope-from rodrigo@FreeBSD.org) Message-Id: <201804032247.w33MlhjR057713@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rodrigo set sender to rodrigo@FreeBSD.org using -f From: Rodrigo Osorio Date: Tue, 3 Apr 2018 22:47:43 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r466382 - in head/graphics/ufraw: . files X-SVN-Group: ports-head X-SVN-Commit-Author: rodrigo X-SVN-Commit-Paths: in head/graphics/ufraw: . files X-SVN-Commit-Revision: 466382 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2018 22:47:44 -0000 Author: rodrigo Date: Tue Apr 3 22:47:43 2018 New Revision: 466382 URL: https://svnweb.freebsd.org/changeset/ports/466382 Log: Move ufraw from sourceforge to github On the same time recover updates done in development branch and never released - Add WB for multiple new cameras : FUJIFILM X-T2, PENTAX K-1, Panasonic DMC-FZ300/DMC-FZ330, Canon PowerShot G7 X Mark II, Canon EOS M10, Canon EOS 700D, Canon EOS 80D, NIKON D200, FUJIFILM X-T10, PENTAX K-S2, NIKON D5500, NIKON D810, FUJIFILM X100T, Canon PowerShot G5 X, Panasonic DMC-LF1, SONY RX10M2, Canon EOS M2, Canon PowerShot S120, FUJIFILM X-M1, OLYMPUS E-M10 Mark II, etc - multiple bug fixes : memory leak, etc Remove existing patches since they coming from upstream and are now provided by default in the distfile. Incorporate the patched made by the debian project, including a fix for the CVE-2015-8366. MFH: 2018Q2 Security: CVE-2015-8366 Added: head/graphics/ufraw/files/patch-ufraw__conf.c (contents, props changed) Modified: head/graphics/ufraw/Makefile head/graphics/ufraw/distinfo head/graphics/ufraw/files/patch-dcraw.cc head/graphics/ufraw/pkg-plist Modified: head/graphics/ufraw/Makefile ============================================================================== --- head/graphics/ufraw/Makefile Tue Apr 3 21:32:40 2018 (r466381) +++ head/graphics/ufraw/Makefile Tue Apr 3 22:47:43 2018 (r466382) @@ -3,9 +3,8 @@ PORTNAME= ufraw PORTVERSION= 0.22 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= graphics -MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} MAINTAINER= rodrigo@FreeBSD.org COMMENT= Read and manipulate raw images from various digital cameras @@ -14,15 +13,17 @@ LICENSE= GPLv2 LIB_DEPENDS= libtiff.so:graphics/tiff \ libpng.so:graphics/png \ - liblcms2.so:graphics/lcms2 + liblcms2.so:graphics/lcms2 \ + libjasper.so:graphics/jasper \ + libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 GNU_CONFIGURE= yes CONFIGURE_ARGS= --enable-extras -USES= desktop-file-utils gettext gmake jpeg pkgconfig +USES= gettext gmake jpeg pkgconfig autoreconf CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -lpthread -L${LOCALBASE}/lib -PC_FALSE= cinepaint OPTIONS_DEFINE= CONTRAST DST EXIV2 LENSFUN FITS GIMP GTK2 GNOME OPTIONS_DEFAULT=CONTRAST EXIV2 LENSFUN GTK2 @@ -33,6 +34,13 @@ DST_DESC= Use local time for timestamps FITS_DESC= FITS output support GIMP_DESC= Install GIMP plugin +USE_GITHUB= yes +GH_ACCOUNT= sergiomb2 +GH_PROJECT= ufraw +GH_TAGNAME= 6d3259a + +USE_GNOME+=glib20 gtk20 cairo gdkpixbuf2 + CONTRAST_CONFIGURE_ENABLE= contrast DST_CONFIGURE_ENABLE= dst-correction EXIV2_LIB_DEPENDS= libexiv2.so:graphics/exiv2 @@ -51,17 +59,12 @@ GNOME_USE= GNOME=gconf2 GNOME_CONFIGURE_ENABLE= mime GNOME_VARS= CATEGORIES+=gnome GCONF_SCHEMAS=${PORTNAME}.schemas -post-patch: - @${REINPLACE_CMD} -e '18s|^$$|#include |' \ - ${WRKSRC}/dcraw.h -# Fix GConf2 schemas installation path; unconditionalize installation of -# .desktop file; avoid conflict with `graphics/dcraw' (rename the binary) - @${REINPLACE_CMD} -e '/@schemasdir/s|datadir|sysconfdir| ; \ - /@app/s|@INSTALL_MIME_TRUE@|| ; \ - s|dcraw\$$(EXEEXT)|${PORTNAME}-&|' ${WRKSRC}/Makefile.in -.for i in ${PC_FALSE} - @${REINPLACE_CMD} -e '/PKG_CONFIG.*${i}/s|$$PKG_CONFIG|${FALSE}|' \ - ${WRKSRC}/configure -.endfor - +#post-patch: +# echo "START REPLACE" ; \ +# ${REINPLACE_CMD} -e '18s|^$$|#include |' \ +# ${WRKSRC}/dcraw.h +## Fix GConf2 schemas installation path; unconditionalize installation of +## .desktop file; avoid conflict with `graphics/dcraw' (rename the binary) +# ${REINPLACE_CMD} -e '/schemasdir/s|datadir|sysconfdir|' ${WRKSRC}/Makefile.am +# .include Modified: head/graphics/ufraw/distinfo ============================================================================== --- head/graphics/ufraw/distinfo Tue Apr 3 21:32:40 2018 (r466381) +++ head/graphics/ufraw/distinfo Tue Apr 3 22:47:43 2018 (r466382) @@ -1,2 +1,3 @@ -SHA256 (ufraw-0.22.tar.gz) = f7abd28ce587db2a74b4c54149bd8a2523a7ddc09bedf4f923246ff0ae09a25e -SIZE (ufraw-0.22.tar.gz) = 1103554 +TIMESTAMP = 1521620815 +SHA256 (sergiomb2-ufraw-0.22-6d3259a_GH0.tar.gz) = 4a3b415bf86c7cadc71350a8f0a206cef79bb3c22a6a794a9d9894d6bc7ec6dc +SIZE (sergiomb2-ufraw-0.22-6d3259a_GH0.tar.gz) = 870086 Modified: head/graphics/ufraw/files/patch-dcraw.cc ============================================================================== --- head/graphics/ufraw/files/patch-dcraw.cc Tue Apr 3 21:32:40 2018 (r466381) +++ head/graphics/ufraw/files/patch-dcraw.cc Tue Apr 3 22:47:43 2018 (r466382) @@ -1,30 +1,23 @@ ---- dcraw.cc.orig 2015-06-16 03:58:38 UTC +--- dcraw.cc.orig 2018-04-03 22:16:35 UTC +++ dcraw.cc -@@ -9240,13 +9240,13 @@ canon_a5: - filters = 0x16161616; - } - if (make[0] == 'O') { -- i = find_green (12, 32, 1188864, 3576832); -- c = find_green (12, 32, 2383920, 2387016); -- if (abs(i) < abs(c)) { -- SWAP(i,c); -+ float g1 = find_green (12, 32, 1188864, 3576832); -+ float g2 = find_green (12, 32, 2383920, 2387016); -+ if (fabsf(g1) < fabsf(g2)) { -+ SWAP(g1,g2); - load_flags = 24; - } -- if ((int) i < 0) filters = 0x61616161; -+ if (g1 < 0) filters = 0x61616161; - } - } else if (fsize == 5869568) { - if (!timestamp && minolta_z2()) { -@@ -10073,7 +10073,7 @@ void CLASS tiff_head (struct tiff_hdr *th, int full) - strncpy (th->desc, desc, 512); - strncpy (th->make, make, 64); - strncpy (th->model, model, 64); -- strcpy (th->soft, "dcraw v"DCRAW_VERSION); -+ strcpy (th->soft, "dcraw v" DCRAW_VERSION); - t = localtime (×tamp); - sprintf (th->date, "%04d:%02d:%02d %02d:%02d:%02d", - t->tm_year+1900,t->tm_mon+1,t->tm_mday,t->tm_hour,t->tm_min,t->tm_sec); +@@ -2287,7 +2287,7 @@ void CLASS quicktake_100_load_raw() + + void CLASS kodak_radc_load_raw() + { +- static const char src[] = { ++ static const signed char src[] = { + 1,1, 2,3, 3,4, 4,2, 5,7, 6,5, 7,6, 7,8, + 1,0, 2,1, 3,3, 4,4, 5,2, 6,7, 7,6, 8,5, 8,8, + 2,1, 2,3, 3,0, 3,2, 3,4, 4,6, 5,5, 6,7, 6,8, +@@ -3017,7 +3017,10 @@ void CLASS smal_decode_segment (unsigned + diff = diff ? -diff : 0x80; + if (ftell(ifp) + 12 >= (int) seg[1][1]) + diff = 0; +- raw_image[pix] = pred[pix & 1] += diff; ++ if(pix>=raw_width*raw_height) ++ derror(); ++ else ++ raw_image[pix] = pred[pix & 1] += diff; + if (!(pix & 1) && HOLE(pix / raw_width)) pix += 2; + } + maximum = 0xff; Added: head/graphics/ufraw/files/patch-ufraw__conf.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/ufraw/files/patch-ufraw__conf.c Tue Apr 3 22:47:43 2018 (r466382) @@ -0,0 +1,11 @@ +--- ufraw_conf.c.orig 2016-11-13 04:00:05 UTC ++++ ufraw_conf.c +@@ -138,7 +138,7 @@ const conf_data conf_default = { + #elif HAVE_GIMP_2_4 + "gimp", /* remoteGimpCommand */ + #else +- "gimp-remote", /* remoteGimpCommand */ ++ "gimp", /* remoteGimpCommand */ + #endif + + /* EXIF data */ Modified: head/graphics/ufraw/pkg-plist ============================================================================== --- head/graphics/ufraw/pkg-plist Tue Apr 3 21:32:40 2018 (r466381) +++ head/graphics/ufraw/pkg-plist Tue Apr 3 22:47:43 2018 (r466382) @@ -1,10 +1,8 @@ +bin/dcraw bin/nikon-curve +bin/ufraw bin/ufraw-batch -bin/ufraw-dcraw -%%GIMP%%libexec/gimp/2.2/plug-ins/ufraw-gimp man/man1/ufraw.1.gz -share/appdata/ufraw.appdata.xml -share/applications/ufraw.desktop share/locale/ca/LC_MESSAGES/ufraw.mo share/locale/cs/LC_MESSAGES/ufraw.mo share/locale/da/LC_MESSAGES/ufraw.mo @@ -25,4 +23,3 @@ share/locale/sv/LC_MESSAGES/ufraw.mo share/locale/zh_CN/LC_MESSAGES/ufraw.mo share/locale/zh_TW/LC_MESSAGES/ufraw.mo share/pixmaps/ufraw.png -%%GTK2%%bin/ufraw