From 68d5159b0381ba51d10612a4ff825cc1303274d6 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sat, 23 Sep 2023 21:02:54 -0400 Subject: [PATCH] rhythmbox: rebuild for Python 3.12 --- srcpkgs/rhythmbox/template | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/srcpkgs/rhythmbox/template b/srcpkgs/rhythmbox/template index 46bacdc151f..4a2508c7229 100644 --- a/srcpkgs/rhythmbox/template +++ b/srcpkgs/rhythmbox/template @@ -1,13 +1,13 @@ # Template file for 'rhythmbox' pkgname=rhythmbox version=3.4.4 -revision=6 +revision=7 build_style=gnu-configure build_helper=gir configure_args="--disable-static --with-gudev --without-hal $(vopt_if gir --enable-vala) ac_cv_strftime_supports_E_O=yes" -hostmakedepends="pkg-config intltool itstool glib-devel +hostmakedepends="pkg-config intltool itstool glib-devel python3-setuptools $(vopt_if gir 'gobject-introspection vala')" makedepends="gtk+3-devel libsoup-gnome-devel totem-pl-parser-devel json-glib-devel libgudev-devel libdiscid-devel vala-devel @@ -30,6 +30,16 @@ build_options="gir brasero" desc_option_brasero="Enable CD burning support" build_options_default="gir" +post_extract() { + # The py-compile helper uses the imp module, removed in Python 3.12; + # besides, we don't want the module pre-compiled anyway, so just drop it + : > py-compile + cat > py-compile <<-'EOF' + #!/bin/sh + : "$@" + EOF +} + pre_build() { export GIR_EXTRA_LIBS_PATH="$wrksrc/shell/.libs" }