Christian Heusel pushed to branch main at Arch Linux / Packaging / Packages / 
gegl


Commits:
1ca2b0da by Christian Heusel at 2025-01-29T10:27:22+01:00
upgpkg: 0.4.52-2: Fix build failure against sdl2compat

Fixes https://gitlab.archlinux.org/archlinux/packaging/packages/gegl/-/issues/2

- - - - -


3 changed files:

- .SRCINFO
- PKGBUILD
- + gegl-0.4.52-fix-sdl2compat-compilation.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = gegl
        pkgdesc = Graph based image processing framework
        pkgver = 0.4.52
-       pkgrel = 1
+       pkgrel = 2
        url = https://www.gegl.org/
        arch = x86_64
        license = GPL-3.0-or-later OR LGPL-3.0-or-later
@@ -40,6 +40,8 @@ pkgbase = gegl
        optdepends = graphviz: for gegl-introspect
        optdepends = sdl2: SDL2 Display plugin
        source = git+https://gitlab.gnome.org/GNOME/gegl.git#tag=GEGL_0_4_52
+       source = gegl-0.4.52-fix-sdl2compat-compilation.patch
        sha256sums = 
a59f046433a459f6d0d674dd4cf6f897086cfd359db0cb6519a7abddd140859b
+       sha256sums = 
b5c1690ff1be6581d0c320cf8859ff5121f6cdf3871ff313494c0af0a78ed49d
 
 pkgname = gegl


=====================================
PKGBUILD
=====================================
@@ -4,7 +4,7 @@
 
 pkgname=gegl
 pkgver=0.4.52
-pkgrel=1
+pkgrel=2
 pkgdesc='Graph based image processing framework'
 arch=('x86_64')
 url='https://www.gegl.org/'
@@ -17,14 +17,21 @@ makedepends=('ffmpeg' 'git' 'gobject-introspection' 
'libgexiv2' 'meson' 'python-
 optdepends=('ffmpeg: FFmpeg Frame Loader and FFmpeg Frame Saver plugins'
             'graphviz: for gegl-introspect'
             'sdl2: SDL2 Display plugin')
-source=("git+https://gitlab.gnome.org/GNOME/gegl.git#tag=GEGL_${pkgver//./_}";)
-sha256sums=('a59f046433a459f6d0d674dd4cf6f897086cfd359db0cb6519a7abddd140859b')
+source=("git+https://gitlab.gnome.org/GNOME/gegl.git#tag=GEGL_${pkgver//./_}";
+gegl-0.4.52-fix-sdl2compat-compilation.patch)
+sha256sums=('a59f046433a459f6d0d674dd4cf6f897086cfd359db0cb6519a7abddd140859b'
+            'b5c1690ff1be6581d0c320cf8859ff5121f6cdf3871ff313494c0af0a78ed49d')
 
 pkgver() {
   cd "${pkgname}"
   git describe --tags | sed 's/^GEGL_//;s/_$//;s/_/./g;s/-/+/g'
 }
 
+prepare() {
+  cd "${pkgname}"
+  patch -Np1 < ../gegl-0.4.52-fix-sdl2compat-compilation.patch
+}
+
 build() {
   mkdir -p build
   cd build


=====================================
gegl-0.4.52-fix-sdl2compat-compilation.patch
=====================================
@@ -0,0 +1,24 @@
+diff --git a/examples/sdl-draw.c b/examples/sdl-draw.c
+index e62db2764..a8a6e5a7f 100644
+--- a/examples/sdl-draw.c
++++ b/examples/sdl-draw.c
+@@ -1,6 +1,7 @@
+ 
+ #include <gegl.h>
+ #include <SDL.h>
++#include <stdio.h>
+ #include <math.h>
+ 
+ typedef struct
+diff --git a/operations/external/sdl2-display.c 
b/operations/external/sdl2-display.c
+index a56542a43..a9b6ddbe6 100644
+--- a/operations/external/sdl2-display.c
++++ b/operations/external/sdl2-display.c
+@@ -35,6 +35,7 @@ property_string (window_title, _("Window title"), 
"window_title")
+ 
+ #include "gegl-op.h"
+ #include <SDL.h>
++#include <stdio.h>
+ 
+ typedef struct {
+   SDL_Window   *window;



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/gegl/-/commit/1ca2b0da2efde68708fb9d097ca2c6b645e1b343

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/gegl/-/commit/1ca2b0da2efde68708fb9d097ca2c6b645e1b343
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to