From abeb8ef1693396451baadaa115bc35f8dbd5a0d9 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Tue, 5 Nov 2024 08:23:21 +0100 Subject: [PATCH] glade: fix 32bit compiler error g_stat uses different types than the system stat --- mingw-w64-glade/0001-fix-stat-type.patch | 11 +++++++++++ mingw-w64-glade/PKGBUILD | 10 +++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 mingw-w64-glade/0001-fix-stat-type.patch diff --git a/mingw-w64-glade/0001-fix-stat-type.patch b/mingw-w64-glade/0001-fix-stat-type.patch new file mode 100644 index 0000000000..622e8427b1 --- /dev/null +++ b/mingw-w64-glade/0001-fix-stat-type.patch @@ -0,0 +1,11 @@ +--- glade-3.40.0/gladeui/glade-utils.c.orig 2024-11-05 08:19:55.467129100 +0100 ++++ glade-3.40.0/gladeui/glade-utils.c 2024-11-05 08:20:05.802027500 +0100 +@@ -1277,7 +1277,7 @@ + time_t + glade_util_get_file_mtime (const gchar *filename, GError **error) + { +- struct stat info; ++ GStatBuf info; + gint retval; + + g_return_val_if_fail (filename, 0); diff --git a/mingw-w64-glade/PKGBUILD b/mingw-w64-glade/PKGBUILD index 7171fd179b..57c58877cf 100644 --- a/mingw-w64-glade/PKGBUILD +++ b/mingw-w64-glade/PKGBUILD @@ -4,7 +4,7 @@ _realname=glade pkgbase=mingw-w64-${_realname} pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" pkgver=3.40.0 -pkgrel=3 +pkgrel=4 pkgdesc="User interface builder for GTK+ and GNOME (mingw-w64)" arch=('any') mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64') @@ -26,11 +26,15 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cc" "${MINGW_PACKAGE_PREFIX}-meson" "${MINGW_PACKAGE_PREFIX}-ninja") optdepends=("${MINGW_PACKAGE_PREFIX}-python: Python widgets support") -source=(https://download.gnome.org/sources/${_realname}/${pkgver%.*}/${_realname}-${pkgver}.tar.xz) -sha256sums=('31c9adaea849972ab9517b564e19ac19977ca97758b109edc3167008f53e3d9c') +source=(https://download.gnome.org/sources/${_realname}/${pkgver%.*}/${_realname}-${pkgver}.tar.xz + "0001-fix-stat-type.patch") +sha256sums=('31c9adaea849972ab9517b564e19ac19977ca97758b109edc3167008f53e3d9c' + '363bd03bb65d018a7792a33eb930f034819a69242d6d0953f8a8efcb719efe2e') prepare() { cd "${srcdir}/${_realname}-${pkgver}" + + patch -Np1 -i "${srcdir}/0001-fix-stat-type.patch" } build() {