glade: fix 32bit compiler error
g_stat uses different types than the system stat
This commit is contained in:
11
mingw-w64-glade/0001-fix-stat-type.patch
Normal file
11
mingw-w64-glade/0001-fix-stat-type.patch
Normal file
@@ -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);
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user