From ee73b850713a087bb0716f08506ae3c642764db7 Mon Sep 17 00:00:00 2001 From: Krul Ceter Date: Tue, 10 Jan 2023 02:01:36 +0300 Subject: [PATCH] lxappearance-obconf: fix segfault with lxappearance --- .../patches/gtk3-cairo-segfault.patch | 24 +++++++++++++++++++ srcpkgs/lxappearance-obconf/template | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/lxappearance-obconf/patches/gtk3-cairo-segfault.patch diff --git a/srcpkgs/lxappearance-obconf/patches/gtk3-cairo-segfault.patch b/srcpkgs/lxappearance-obconf/patches/gtk3-cairo-segfault.patch new file mode 100644 index 000000000000..7ff8a28b803d --- /dev/null +++ b/srcpkgs/lxappearance-obconf/patches/gtk3-cairo-segfault.patch @@ -0,0 +1,24 @@ +https://github.com/lxde/lxappearance-obconf/pull/1 + +From b31c69d41c80e92762ffe17addeb238d9df2c62b Mon Sep 17 00:00:00 2001 +From: bill-auger +Date: Thu, 29 Oct 2020 21:15:54 -0400 +Subject: [PATCH] fix GTK3/cairo segfault (closes sf#933) + +--- + src/preview.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/preview.c b/src/preview.c +index ada6eb3..a2fc63d 100644 +--- a/src/preview.c ++++ b/src/preview.c +@@ -30,6 +30,8 @@ + #include + + #if GTK_CHECK_VERSION(3, 0, 0) ++#include ++#include + #include + #endif + diff --git a/srcpkgs/lxappearance-obconf/template b/srcpkgs/lxappearance-obconf/template index 063e6d0380a5..d95d3bc795e6 100644 --- a/srcpkgs/lxappearance-obconf/template +++ b/srcpkgs/lxappearance-obconf/template @@ -1,7 +1,7 @@ # Template file for 'lxappearance-obconf' pkgname=lxappearance-obconf version=0.2.3 -revision=3 +revision=4 build_style=gnu-configure configure_args="--disable-static --enable-gtk3" hostmakedepends="pkg-config intltool"