gmic/56f7340ecb1fbbe6fce87d0a5c8d35dd13359577.patch
Christophe Giboudeaux feb99f287c Accepting request 946946 from home:darix:playground
- added 56f7340ecb.patch
  make it search in /usr/share/gmic/ with all clients.

- prepare gimp 3 support
- install also the denoise data file
- introduce a new gmic-data subpackage and require it from all the
  frontends so we can access it more easily once this is resolved:
  https://discuss.pixls.us/t/fixing-more-things-in-gmic-packaging/28894
- make bash-completion noarch

- move shared options for all the gmic-qt versions into a define
  to reduce duplication

- Rework patches:
  - drop old patches with git generated copies:
    - 5e34754707b78358ef818d542d1e81d008bb2d12.patch
    - dont-set-gmic_build.patch
    - gmic-krita5.patch
    - make-build-without-gmic-cpp.patch
  - new patches:
    - gmic-make-build-without-gmic-cpp.patch
    - gmic-qt-make-it-work-without-gmic-cpp.patch
    - krita5.patch
- Update krita patch so we can apply it as normal patch without
  breaking other gmic-qt instances

- Remove unneeded BuildRequires fftw3-devel and cmake(KF5CoreAddons) 

- Use simpler syntax for the pkg version comparison

- enable building with Krita 5
  new BR: krita-devel
  new patches:
  - 5e34754707b78358ef818d542d1e81d008bb2d12.patch
  - gmic-krita5.patch

- Add dont-set-gmic_build.patch:
  Make gmic-qt flavors build without gmic.cpp. This should help
  with getting the new krita plugin built

- enable opencv support xshm support
  - Add BuildRequires xorg-x11-devel 

- add missing files for to make the devel package work:
  make-build-without-gmic-cpp.patch
- also track series for easier patching

- Add Conflicts for krita >= 5 as it needs the intree version of
  gmic-qt now

- Update to 3.0.1
  https://discuss.pixls.us/t/on-the-road-to-3-1/28221

OBS-URL: https://build.opensuse.org/request/show/946946
OBS-URL: https://build.opensuse.org/package/show/graphics/gmic?expand=0&rev=65
2022-01-18 09:47:00 +00:00

31 lines
959 B
Diff

From 56f7340ecb1fbbe6fce87d0a5c8d35dd13359577 Mon Sep 17 00:00:00 2001
From: David Tschumperle <David.Tschumperle@unicaen.fr>
Date: Sun, 16 Jan 2022 20:52:13 +0100
Subject: [PATCH] Add '/usr/share/gmic/' to the list of folders to explore when
trying to load resource files.
---
src/gmic_stdlib.gmic | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/gmic_stdlib.gmic b/src/gmic_stdlib.gmic
index 36e024f4..ce8e3eb9 100644
--- a/src/gmic_stdlib.gmic
+++ b/src/gmic_stdlib.gmic
@@ -3765,9 +3765,13 @@ _input_glob :
path_test1=$_path_rc
path_test2=${-path_gimp}plug-ins/
path_test3=${-path_gimp}plug-ins/gmic_gimp_qt/
- path_test4=$g_path_unix
+ if !${-is_windows}
+ path_test4=/usr/share/gmic/
+ path_test5=$g_path_unix
+ fi
file_found=0
- repeat 5
+ repeat inf
+ if ['${path_test$>}']==0 break fi
file=${path_test$>}$basename
l[] i $file file_found=1 onfail endl
if $file_found break fi