From 64ce58fa615d22dac655583be3e78b7d4916a789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Sun, 9 May 2021 19:08:54 -0300 Subject: [PATCH] gufw: fix path to python module. The gufw-pkexec script hardcodes the path to the python module; this made it error out: python3: can't open file '/usr/share/gufw/gufw/gufw.py': [Errno 2] No such file or directory The issue was missed when the package was updated. Using python entry points should be suggested to upstream, since that's the standard way of distributing python programs with setuptools. --- srcpkgs/gufw/template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srcpkgs/gufw/template b/srcpkgs/gufw/template index 56e5d1de74..6495bd7b14 100644 --- a/srcpkgs/gufw/template +++ b/srcpkgs/gufw/template @@ -1,7 +1,7 @@ # Template file for 'gufw' pkgname=gufw version=21.04.0 -revision=1 +revision=2 wrksrc="gufw-${version}" build_style=python3-module hostmakedepends="python3-distutils-extra intltool" @@ -14,5 +14,7 @@ distfiles="https://github.com/costales/gufw/archive/refs/tags/$version.tar.gz" checksum=b57892ec9817ca1520b2fef31cc3ef404b243ef1230bdccfdc6d75ed4e461841 pre_configure() { - vsed -i -e "s/python3.5/python$py3_ver/" bin/gufw-pkexec + vsed -i -e \ + "s|/usr/share/gufw/gufw/gufw.py|/usr/lib/python${py3_ver}/site-packages/gufw/gufw.py|" \ + bin/gufw-pkexec }