From 9c562f9b6e30728574525a14b8c8667aabd150a0 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Fri, 24 Sep 2021 23:15:54 -0400 Subject: [PATCH] glade3: rebuild for Python 3.10, update to 3.38.2. --- srcpkgs/glade3/patches/meson.build.patch | 23 +++++++++++++++++++++++ srcpkgs/glade3/template | 15 ++++----------- 2 files changed, 27 insertions(+), 11 deletions(-) create mode 100644 srcpkgs/glade3/patches/meson.build.patch diff --git a/srcpkgs/glade3/patches/meson.build.patch b/srcpkgs/glade3/patches/meson.build.patch new file mode 100644 index 00000000000..3dc80c5a9e9 --- /dev/null +++ b/srcpkgs/glade3/patches/meson.build.patch @@ -0,0 +1,23 @@ +Circumvent an attempt to run cross-compiled executables during configuration. + +--- ./meson.build ++++ ./meson.build +@@ -215,6 +215,10 @@ + glade_datadir, + ) + ++if meson.is_cross_build() ++ # On cross, the test program can't be run, so just assume tls_backend_support ++ tls_backend_support = 'true' ++else + tls_backend_support_src = ''' + #include + #include +@@ -225,6 +229,7 @@ + } + ''' + tls_backend_support = cc.run(tls_backend_support_src, dependencies: gio_dep).stdout() ++endif + + output = '\nConfiguration:\n\n' + output += '\tCompiler: ' + cc.get_id() + '\n' diff --git a/srcpkgs/glade3/template b/srcpkgs/glade3/template index e8e9f2dd2a2..763632c1e71 100644 --- a/srcpkgs/glade3/template +++ b/srcpkgs/glade3/template @@ -1,6 +1,6 @@ # Template file for 'glade3' pkgname=glade3 -version=3.38.1 +version=3.38.2 revision=1 wrksrc="glade-${version}" build_style=meson @@ -15,22 +15,15 @@ maintainer="Orphaned " license="GPL-2.0-or-later, LGPL-2.1-or-later" homepage="http://glade.gnome.org/" distfiles="${GNOME_SITE}/glade/${version%.*}/glade-${version}.tar.xz" -checksum=171a50be4930d4806fc8ce7f5ce3a75b49e9916f9d3037a5b50d35799bd0cfcd +checksum=98fc87647d88505c97dd2f30f2db2d3e9527515b3af11694787d62a8d28fbab7 lib32disabled=yes +# Requires running an xserver +make_check=no # Package build options build_options="gir" build_options_default="gir" -post_patch() { - vsed -i meson.build -e "/python_dep/s/3.8/3.9/g" -} - -do_check() { - # Require running xserver - : -} - libgladeui3_package() { depends="python3-gobject" short_desc="GTK+ User Interface Build core library"