diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2021-09-14 13:27:13 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-09-16 00:45:33 +0700 |
commit | 16413f3dbe8cd3227fedf605b9e488acc74d824d (patch) | |
tree | 58552588f12d5d95f6f5d6668f1385a33383bcf9 /graphics | |
parent | 70f5b1f3ea2c7361552cadb946923dcc1ad4e7a5 (diff) |
graphics/ufraw: Updated for version 20210427_684af05.
Switched to a new upstream as the old looks unmaintained
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/ufraw/patches/0001-Change-use-of-header-files.patch | 30 | ||||
-rw-r--r-- | graphics/ufraw/patches/0002-Use-symbolic-error-code.patch | 26 | ||||
-rw-r--r-- | graphics/ufraw/patches/0003-ufraw-0.22-fix_omp_definitions.patch | 32 | ||||
-rw-r--r-- | graphics/ufraw/patches/05_fix_build_due_to_unsigned_char.patch | 14 | ||||
-rw-r--r-- | graphics/ufraw/patches/CVE-2015-8366.patch | 17 | ||||
-rw-r--r-- | graphics/ufraw/patches/gcc7.patch | 15 | ||||
-rw-r--r-- | graphics/ufraw/patches/no-gimp-remote.patch | 12 | ||||
-rw-r--r-- | graphics/ufraw/slack-desc | 2 | ||||
-rw-r--r-- | graphics/ufraw/ufraw.SlackBuild | 17 | ||||
-rw-r--r-- | graphics/ufraw/ufraw.info | 8 |
10 files changed, 9 insertions, 164 deletions
diff --git a/graphics/ufraw/patches/0001-Change-use-of-header-files.patch b/graphics/ufraw/patches/0001-Change-use-of-header-files.patch deleted file mode 100644 index 64cf176726633..0000000000000 --- a/graphics/ufraw/patches/0001-Change-use-of-header-files.patch +++ /dev/null @@ -1,30 +0,0 @@ -From a9fc8b39010640fd8e931e8d635160430ade57bc Mon Sep 17 00:00:00 2001 -From: Neil Mayhew <neil_mayhew@users.sourceforge.net> -Date: Fri, 5 Jul 2019 13:08:18 -0600 -Subject: [PATCH 1/2] Change use of header files to follow best practices -Content-Type: text/plain; charset=utf-8 - -This also fixes build errors after recent changes to dependencies ---- - ufraw_exiv2.cc | 5 ++--- - 1 file changed, 2 insertions(+), 3 deletions(-) - -diff --git a/ufraw_exiv2.cc b/ufraw_exiv2.cc -index f03011b..9a6ec86 100644 ---- a/ufraw_exiv2.cc -+++ b/ufraw_exiv2.cc -@@ -15,9 +15,8 @@ - #include "ufraw.h" - - #ifdef HAVE_EXIV2 --#include <exiv2/image.hpp> --#include <exiv2/easyaccess.hpp> --#include <exiv2/exif.hpp> -+#include <exiv2/exiv2.hpp> -+#include <iostream> - #include <sstream> - #include <cassert> - --- -2.22.0 - diff --git a/graphics/ufraw/patches/0002-Use-symbolic-error-code.patch b/graphics/ufraw/patches/0002-Use-symbolic-error-code.patch deleted file mode 100644 index 1859ca702adc2..0000000000000 --- a/graphics/ufraw/patches/0002-Use-symbolic-error-code.patch +++ /dev/null @@ -1,26 +0,0 @@ -From b85e03dd607fb697f69eb9afb044924f046f9eb3 Mon Sep 17 00:00:00 2001 -From: Neil Mayhew <neil_mayhew@users.sourceforge.net> -Date: Fri, 5 Jul 2019 13:08:35 -0600 -Subject: [PATCH 2/2] Use symbolic error code -Content-Type: text/plain; charset=utf-8 - ---- - ufraw_exiv2.cc | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/ufraw_exiv2.cc b/ufraw_exiv2.cc -index 9a6ec86..5958b3d 100644 ---- a/ufraw_exiv2.cc -+++ b/ufraw_exiv2.cc -@@ -66,7 +66,7 @@ extern "C" int ufraw_exif_read_input(ufraw_data *uf) - if (exifData.empty()) { - std::string error(uf->filename); - error += ": No Exif data found in the file"; -- throw Exiv2::Error(1, error); -+ throw Exiv2::Error(Exiv2::kerErrorMessage, error); - } - - /* List of tag names taken from exiv2's printSummary() in actions.cpp */ --- -2.22.0 - diff --git a/graphics/ufraw/patches/0003-ufraw-0.22-fix_omp_definitions.patch b/graphics/ufraw/patches/0003-ufraw-0.22-fix_omp_definitions.patch deleted file mode 100644 index 8b26ee3a3dfde..0000000000000 --- a/graphics/ufraw/patches/0003-ufraw-0.22-fix_omp_definitions.patch +++ /dev/null @@ -1,32 +0,0 @@ ---- a/dcraw_api.cc 2015-06-16 04:58:38.000000000 +0100 -+++ b/dcraw_api.cc 2019-06-30 16:37:05.503409567 +0100 -@@ -689,3 +689,3 @@ - #pragma omp parallel for schedule(static) default(none) \ -- shared(h,dark,rgbWB) -+ firstprivate(black,pixels) shared(h,dark,rgbWB) - #endif -@@ -702,3 +702,3 @@ - #pragma omp parallel for schedule(static) default(none) \ -- shared(h,dark,rgbWB) -+ firstprivate(black,pixels) shared(h,dark,rgbWB) - #endif ---- a/dcraw_indi.c 2015-06-16 04:58:38.000000000 +0100 -+++ b/dcraw_indi.c 2019-06-30 17:03:59.692710441 +0100 -@@ -140,2 +140,3 @@ - default(none) \ -+ firstprivate(iheight,iwidth,noise,threshold) \ - shared(nc,image,size,noise) \ -@@ -145,2 +146,3 @@ - default(none) \ -+ firstprivate(iheight,iwidth,noise,threshold) \ - shared(nc,image,size) \ -@@ -416,2 +418,3 @@ - default(none) \ -+ firstprivate(colors,filters,height,width) \ - shared(image,code,prow,pcol,h) \ -@@ -502,3 +502,4 @@ - default(none) \ -- shared(image,dir,diff) \ -+ firstprivate(filters,height,width) \ -+ shared(image,dir,diff) \ - private(row,col,i,d,c,pix,guess) diff --git a/graphics/ufraw/patches/05_fix_build_due_to_unsigned_char.patch b/graphics/ufraw/patches/05_fix_build_due_to_unsigned_char.patch deleted file mode 100644 index 9b634b69a24dc..0000000000000 --- a/graphics/ufraw/patches/05_fix_build_due_to_unsigned_char.patch +++ /dev/null @@ -1,14 +0,0 @@ -Author: Philip Rinn <rinni@inventati.org> -Description: Fix build with C++11 as char is unsigned on some architectures -Last-update: 2015-11-04 ---- a/dcraw.cc -+++ b/dcraw.cc -@@ -2054,7 +2054,7 @@ - - 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, diff --git a/graphics/ufraw/patches/CVE-2015-8366.patch b/graphics/ufraw/patches/CVE-2015-8366.patch deleted file mode 100644 index 9d59ca413fbed..0000000000000 --- a/graphics/ufraw/patches/CVE-2015-8366.patch +++ /dev/null @@ -1,17 +0,0 @@ -Fix a buffer overflow bug. See -https://github.com/LibRaw/LibRaw/commit/89d065424f09b788f443734d44857289489ca9e2 - ---- a/dcraw.cc -+++ b/dcraw.cc -@@ -3013,7 +3013,10 @@ - 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; diff --git a/graphics/ufraw/patches/gcc7.patch b/graphics/ufraw/patches/gcc7.patch deleted file mode 100644 index 2a77b06e62f26..0000000000000 --- a/graphics/ufraw/patches/gcc7.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/dcraw.cc b/dcraw.cc -index 88c8068..d78c66b 100644 ---- a/dcraw.cc -+++ b/dcraw.cc -@@ -8766,8 +8766,8 @@ void CLASS identify() - "Nikon", "Nokia", "Olympus", "Pentax", "Phase One", "Ricoh", - "Samsung", "Sigma", "Sinar", "Sony" }; - char head[32], *cp; -- unsigned fsize, i, c; -- int hlen, flen, zero_fsize=1; -+ unsigned fsize; -+ int hlen, flen, zero_fsize=1, i, c; - struct jhead jh; - - tiff_flip = flip = filters = UINT_MAX; /* unknown */
\ No newline at end of file diff --git a/graphics/ufraw/patches/no-gimp-remote.patch b/graphics/ufraw/patches/no-gimp-remote.patch deleted file mode 100644 index ca4f4beb6240f..0000000000000 --- a/graphics/ufraw/patches/no-gimp-remote.patch +++ /dev/null @@ -1,12 +0,0 @@ -Don't use gimp-remote since gimp 2.4 already includes gimp-remote functionality ---- a/ufraw_conf.c -+++ b/ufraw_conf.c -@@ -137,7 +137,7 @@ - #elif HAVE_GIMP_2_4 - "gimp", /* remoteGimpCommand */ - #else -- "gimp-remote", /* remoteGimpCommand */ -+ "gimp", /* remoteGimpCommand */ - #endif - - /* EXIF data */ diff --git a/graphics/ufraw/slack-desc b/graphics/ufraw/slack-desc index f3bc7c2f2e426..8a3a5385cd658 100644 --- a/graphics/ufraw/slack-desc +++ b/graphics/ufraw/slack-desc @@ -14,6 +14,6 @@ ufraw: It reads raw images using Dave Coffin's raw conversion utility ufraw: DCRaw. UFRaw supports basic color management using Little CMS, ufraw: allowing the user to apply color profiles. ufraw: -ufraw: Home Page: http://ufraw.sourceforge.net/ +ufraw: homepage: https://github.com/sergiomb2/ufraw/ ufraw: ufraw: diff --git a/graphics/ufraw/ufraw.SlackBuild b/graphics/ufraw/ufraw.SlackBuild index 2c863251de457..c0cea42e96ccd 100644 --- a/graphics/ufraw/ufraw.SlackBuild +++ b/graphics/ufraw/ufraw.SlackBuild @@ -28,8 +28,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM="ufraw" -VERSION=${VERSION:-0.22} -BUILD=${BUILD:-2} +VERSION=${VERSION:-20210427_684af05} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -78,7 +78,7 @@ set -e rm -rf $TMP/$PRGNAM-$VERSION $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z cd $TMP/$PRGNAM-$VERSION chown -R root.root . find -L . \ @@ -87,16 +87,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# patched from: https://sourceforge.net/p/ufraw/bugs/417/ -patch -p1 < $CWD/patches/05_fix_build_due_to_unsigned_char.patch -# Patches below courtesy of Arch Linux -patch -p1 < $CWD/patches/gcc7.patch -patch -p1 < $CWD/patches/CVE-2015-8366.patch -patch -p1 < $CWD/patches/no-gimp-remote.patch -# More patches suggested by Lockywolf on LQ -patch -p1 < $CWD/patches/0001-Change-use-of-header-files.patch -patch -p1 < $CWD/patches/0002-Use-symbolic-error-code.patch -patch -p1 < $CWD/patches/0003-ufraw-0.22-fix_omp_definitions.patch +autoreconf -fi CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ diff --git a/graphics/ufraw/ufraw.info b/graphics/ufraw/ufraw.info index 213d6d987dfb9..6e9a6c3d5e502 100644 --- a/graphics/ufraw/ufraw.info +++ b/graphics/ufraw/ufraw.info @@ -1,8 +1,8 @@ PRGNAM="ufraw" -VERSION="0.22" -HOMEPAGE="http://ufraw.sourceforge.net/" -DOWNLOAD="http://downloads.sourceforge.net/project/ufraw/ufraw/ufraw-0.22/ufraw-0.22.tar.gz" -MD5SUM="c30767cae2c44310f2a3d67d7a76f2c3" +VERSION="20210427_684af05" +HOMEPAGE="https://github.com/sergiomb2/ufraw/" +DOWNLOAD="https://ponce.cc/slackware/sources/repo/ufraw-20210427_684af05.tar.xz" +MD5SUM="29b30593cd9e466a09e3bd926abaa271" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="dcraw gtkimageview" |