summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Fontenelle2022-09-18 22:50:08 -0300
committerRafael Fontenelle2022-09-18 22:50:08 -0300
commit0b741da8982146aaa07ac6b75706d48df282459a (patch)
treefedf87056121bd3a5c8325a1b7da9182b06485b3
parent462795cebd706ae2798564fedfddc1fb5847dcc1 (diff)
downloadaur-0b741da8982146aaa07ac6b75706d48df282459a.tar.gz
Enforce the use of official python package
AUR users have been reporting build failures when meson tries to find python3 installation because it hits their non-official Python environment added to the PATH environment variable. Enforcing /usr/bin/python3 should solve this problem as this path belongs to the python package in Arch's official repositories.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 4 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a22da6b64958..a763ce67d8fb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = gnome-browser-connector
pkgdesc = Native browser connector for integration with extensions.gnome.org
pkgver = 42.1
- pkgrel = 1
+ pkgrel = 2
url = https://wiki.gnome.org/Projects/GnomeShellIntegration
arch = any
license = GPL3
diff --git a/PKGBUILD b/PKGBUILD
index 81f2127f9c8d..766d519e371c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=gnome-browser-connector
pkgver=42.1
-pkgrel=1
+pkgrel=2
pkgdesc='Native browser connector for integration with extensions.gnome.org'
arch=(any)
url="https://wiki.gnome.org/Projects/GnomeShellIntegration"
@@ -24,6 +24,8 @@ pkgver() {
prepare() {
cd $pkgname
+ # Enforce Arch python package's binary, to avoid different python binary in users' PATH
+ sed -i "/find_installation('python3'/s/python3/\/usr\/bin\/python3/" meson.build
}
build() {