From 14b035b0e811dd4252989f4d28395a08acfab921 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Wed, 11 Oct 2023 01:01:31 -0400 Subject: [PATCH] system-config-printer: fix installation of python module --- .../system-config-printer/patches/python3.12.patch | 11 +++++++++++ srcpkgs/system-config-printer/template | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/system-config-printer/patches/python3.12.patch diff --git a/srcpkgs/system-config-printer/patches/python3.12.patch b/srcpkgs/system-config-printer/patches/python3.12.patch new file mode 100644 index 00000000000..8b62bf7ac55 --- /dev/null +++ b/srcpkgs/system-config-printer/patches/python3.12.patch @@ -0,0 +1,11 @@ +--- a/Makefile.in ++++ b/Makefile.in +@@ -1955,7 +1955,7 @@ + + # Use distutils to install the module. + install-exec-local: .stamp-distutils-in-builddir +- $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix) ++ $(PYTHON) setup.py install --prefix=$(prefix) --root=$(DESTDIR) --single-version-externally-managed + + # Uninstall the module, crossing our fingers that we know enough + # about how distutils works to do this. Unfortunately, distutils diff --git a/srcpkgs/system-config-printer/template b/srcpkgs/system-config-printer/template index 230a8755c7f..3bcaa3ecd34 100644 --- a/srcpkgs/system-config-printer/template +++ b/srcpkgs/system-config-printer/template @@ -1,7 +1,7 @@ # Template file for 'system-config-printer' pkgname=system-config-printer version=1.5.18 -revision=2 +revision=3 build_style=gnu-configure pycompile_dirs="usr/share/system-config-printer" configure_args="--with-udev-rules"