From c8d60dada2ec8eb48b2d2b290cd6683ccec40e39 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 13 Feb 2021 21:41:11 +0000 Subject: gentoo (valentine's day) resync : 14.02.2021 --- media-gfx/fotoxx/files/fotoxx-15.05-docdir.patch | 12 +++++++++ media-gfx/fotoxx/files/fotoxx-15.05-gcc-11.patch | 31 ++++++++++++++++++++++++ media-gfx/fotoxx/files/fotoxx-15.05.patch | 13 ---------- 3 files changed, 43 insertions(+), 13 deletions(-) create mode 100644 media-gfx/fotoxx/files/fotoxx-15.05-docdir.patch create mode 100644 media-gfx/fotoxx/files/fotoxx-15.05-gcc-11.patch delete mode 100644 media-gfx/fotoxx/files/fotoxx-15.05.patch (limited to 'media-gfx/fotoxx/files') diff --git a/media-gfx/fotoxx/files/fotoxx-15.05-docdir.patch b/media-gfx/fotoxx/files/fotoxx-15.05-docdir.patch new file mode 100644 index 000000000000..8cab49ff51ea --- /dev/null +++ b/media-gfx/fotoxx/files/fotoxx-15.05-docdir.patch @@ -0,0 +1,12 @@ +--- fotoxx-14.10.2.orig/Makefile 2014-10-09 15:17:09.000000000 +0700 ++++ fotoxx-14.10.2/Makefile 2014-10-13 20:44:55.061728475 +0700 +@@ -16,3 +16,3 @@ + LOCALESDIR = $(SHAREDIR)/locales +-DOCDIR = $(PREFIX)/share/doc/fotoxx ++DOCDIR = $(PREFIX)/share/doc/$(PF) + MANDIR = $(PREFIX)/share/man/man1 +@@ -90,4 +90,2 @@ + rm -f fotoxx.1.gz +- # menu (desktop) file +- cp -f desktop $(DESTDIR)$(MENUFILE) + diff --git a/media-gfx/fotoxx/files/fotoxx-15.05-gcc-11.patch b/media-gfx/fotoxx/files/fotoxx-15.05-gcc-11.patch new file mode 100644 index 000000000000..5d84e687d397 --- /dev/null +++ b/media-gfx/fotoxx/files/fotoxx-15.05-gcc-11.patch @@ -0,0 +1,31 @@ +Fix 'smart_erase_blur' declaration and definition mismatch. + +https://bugs.gentoo.org/768207 +--- a/f.repair.cc ++++ b/f.repair.cc +@@ -2265,7 +2265,7 @@ void smart_erase_func(int mode) + + // add blur to the erased area to help mask the side-effects + +-int smart_erase_blur(float radius) ++void smart_erase_blur(float radius) + { + int ii, px, py, dx, dy, adx, ady; + float blur_weight[12][12]; // up to blur radius = 10 +@@ -2274,7 +2274,7 @@ int smart_erase_blur(float radius) + float red, green, blue; + float *pix9, *pix3, *pixN; + +- if (sa_stat != 3) return 0; ++ if (sa_stat != 3) return; + + rad = radius - 0.2; + rad2 = rad * rad; +@@ -2342,7 +2342,6 @@ int smart_erase_blur(float radius) + CEF->Fmods++; + CEF->Fsaved = 0; + Fpaint2(); // update window +- return 0; + } + + diff --git a/media-gfx/fotoxx/files/fotoxx-15.05.patch b/media-gfx/fotoxx/files/fotoxx-15.05.patch deleted file mode 100644 index 15fdaa9abacf..000000000000 --- a/media-gfx/fotoxx/files/fotoxx-15.05.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -r -U1 fotoxx-14.10.2.orig/Makefile fotoxx-14.10.2/Makefile ---- fotoxx-14.10.2.orig/Makefile 2014-10-09 15:17:09.000000000 +0700 -+++ fotoxx-14.10.2/Makefile 2014-10-13 20:44:55.061728475 +0700 -@@ -16,3 +16,3 @@ - LOCALESDIR = $(SHAREDIR)/locales --DOCDIR = $(PREFIX)/share/doc/fotoxx -+DOCDIR = $(PREFIX)/share/doc/$(PF) - MANDIR = $(PREFIX)/share/man/man1 -@@ -90,4 +90,2 @@ - rm -f fotoxx.1.gz -- # menu (desktop) file -- cp -f desktop $(DESTDIR)$(MENUFILE) - -- cgit v1.2.3