diff --git a/recipes-support/libraw/files/0001-gcc-6-sucks.patch b/recipes-support/libraw/files/0001-gcc-6-sucks.patch deleted file mode 100644 index 06fd8a95..00000000 --- a/recipes-support/libraw/files/0001-gcc-6-sucks.patch +++ /dev/null @@ -1,114 +0,0 @@ -From a7b91c36dea8ff17bbef6a1932d57f1be0da6a26 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Andreas=20M=C3=BCller?= -Date: Wed, 14 Sep 2016 18:44:16 +0200 -Subject: [PATCH] gcc-6 sucks -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -Stolen at [1] - -[1] http://pkgs.fedoraproject.org/cgit/rpms/LibRaw.git/plain/dcraw_narrowing.patch - -Upstream-Status: Pending - -Signed-off-by: Andreas Müller ---- - internal/dcraw_common.cpp | 12 ++++++------ - 1 file changed, 6 insertions(+), 6 deletions(-) - -diff --git a/internal/dcraw_common.cpp b/internal/dcraw_common.cpp -index f7ec563..877ba5f 100644 ---- a/internal/dcraw_common.cpp -+++ b/internal/dcraw_common.cpp -@@ -2469,7 +2469,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, -@@ -4417,30 +4417,37 @@ void CLASS lin_interpolate() - */ - void CLASS vng_interpolate() - { -- static const signed char *cp, terms[] = { -- -2,-2,+0,-1,0,0x01, -2,-2,+0,+0,1,0x01, -2,-1,-1,+0,0,0x01, -- -2,-1,+0,-1,0,0x02, -2,-1,+0,+0,0,0x03, -2,-1,+0,+1,1,0x01, -- -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,-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,-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, -- +1,+0,+2,+1,0,0x10 -- }, chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 }; -+ struct interpolate_terms { -+ signed char y1, x1, y2, x2, weight; -+ unsigned char grads; -+ }; -+ static const interpolate_terms terms[] = { -+ {-2,-2,+0,-1,0,0x01}, {-2,-2,+0,+0,1,0x01}, {-2,-1,-1,+0,0,0x01}, -+ {-2,-1,+0,-1,0,0x02}, {-2,-1,+0,+0,0,0x03}, {-2,-1,+0,+1,1,0x01}, -+ {-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,-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,-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}, -+ {+1,+0,+2,+1,0,0x10} -+ }; -+ const interpolate_terms *cpt; -+ signed char *cp; -+ signed char chood[] = { -1,-1, -1,0, -1,+1, 0,+1, +1,+1, +1,0, +1,-1, 0,-1 }; - ushort (*brow[5])[4], *pix; - int prow=8, pcol=2, *ip, *code[16][16], gval[8], gmin, gmax, sum[4]; - int row, col, x, y, x1, x2, y1, y2, t, weight, grads, color, diag; -@@ -4456,11 +4463,11 @@ void CLASS vng_interpolate() - for (row=0; row < prow; row++) /* Precalculate for VNG */ - for (col=0; col < pcol; col++) { - code[row][col] = ip; -- for (cp=terms, t=0; t < 64; t++) { -- y1 = *cp++; x1 = *cp++; -- y2 = *cp++; x2 = *cp++; -- weight = *cp++; -- grads = *cp++; -+ for (cpt=&terms[0], t=0; t < 64, cpt = &terms[t]; t++) { -+ y1 = cpt->y1; x1 = cpt->x1; -+ y2 = cpt->y2; x2 = cpt->x2; -+ weight = cpt->weight; -+ grads = cpt->grads; - color = fcol(row+y1,col+x1); - if (fcol(row+y2,col+x2) != color) continue; - diag = (fcol(row,col+1) == color && fcol(row+1,col) == color) ? 2:1; --- -2.5.5 - diff --git a/recipes-support/libraw/libraw_0.17.2.bb b/recipes-support/libraw/libraw_0.17.2.bb deleted file mode 100644 index 895a1125..00000000 --- a/recipes-support/libraw/libraw_0.17.2.bb +++ /dev/null @@ -1,15 +0,0 @@ -SUMMARY = "raw image decoder" -LICENSE = "LGPLv2.1 | CDDL-1.0" -LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=342cc298b1d5db74b6fb703001e5020a" - -SRC_URI = " \ - http://www.libraw.org/data/LibRaw-${PV}.tar.gz \ - file://0001-gcc-6-sucks.patch \ -" -SRC_URI[md5sum] = "456626300777209def1ea784910f326a" -SRC_URI[sha256sum] = "92b0c42c7666eca9307e5e1f97d6fefc196cf0b7ee089e22880259a76fafd15c" -S = "${WORKDIR}/LibRaw-${PV}" - -inherit autotools pkgconfig - -DEPENDS = "jpeg jasper lcms" diff --git a/recipes-support/libraw/libraw_0.18.2.bb b/recipes-support/libraw/libraw_0.18.2.bb new file mode 100644 index 00000000..4092ee50 --- /dev/null +++ b/recipes-support/libraw/libraw_0.18.2.bb @@ -0,0 +1,12 @@ +SUMMARY = "raw image decoder" +LICENSE = "LGPLv2.1 | CDDL-1.0" +LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=da556b13ec78a2eca584c86147e50e61" + +SRC_URI = "http://www.libraw.org/data/LibRaw-${PV}.tar.gz" +SRC_URI[md5sum] = "7bd923ea7c9cc71897b005be46c01b2b" +SRC_URI[sha256sum] = "ce366bb38c1144130737eb16e919038937b4dc1ab165179a225d5e847af2abc6" +S = "${WORKDIR}/LibRaw-${PV}" + +inherit autotools pkgconfig + +DEPENDS = "jpeg jasper lcms"