[arch-commits] Commit in libpst/trunk (PKGBUILD python310.patch)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Fri Dec 3 14:27:09 UTC 2021
Date: Friday, December 3, 2021 @ 14:27:09
Author: foutrelis
Revision: 430629
Fix build with Python 3.10
Added:
libpst/trunk/python310.patch
Modified:
libpst/trunk/PKGBUILD
-----------------+
PKGBUILD | 11 +++++++++--
python310.patch | 12 ++++++++++++
2 files changed, 21 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-03 14:17:37 UTC (rev 430628)
+++ PKGBUILD 2021-12-03 14:27:09 UTC (rev 430629)
@@ -11,9 +11,16 @@
license=(GPL)
depends=(gcc-libs libgsf)
makedepends=(python boost)
-source=(https://www.five-ten-sg.com/libpst/packages/${pkgbase}-${pkgver}.tar.gz)
-sha256sums=('3d291beebbdb48d2b934608bc06195b641da63d2a8f5e0d386f2e9d6d05a0b42')
+source=(https://www.five-ten-sg.com/libpst/packages/${pkgbase}-${pkgver}.tar.gz
+ python310.patch)
+sha256sums=('3d291beebbdb48d2b934608bc06195b641da63d2a8f5e0d386f2e9d6d05a0b42'
+ '8bd2cf189719fa98831b26b28ed68098a82fe6f31a1e23d8576faa27fc4e819f')
+prepare() {
+ cd $pkgbase-$pkgver
+ patch -Np1 -i ../python310.patch
+}
+
build() {
cd $pkgbase-$pkgver
./configure --prefix=/usr --mandir=/usr/share/man \
Added: python310.patch
===================================================================
--- python310.patch (rev 0)
+++ python310.patch 2021-12-03 14:27:09 UTC (rev 430629)
@@ -0,0 +1,12 @@
+diff -upr libpst-0.6.76.orig/configure libpst-0.6.76/configure
+--- libpst-0.6.76.orig/configure 2021-03-28 02:08:10.000000000 +0200
++++ libpst-0.6.76/configure 2021-12-03 16:24:53.025153596 +0200
+@@ -24672,7 +24672,7 @@ if test "$enable_python" = "yes"; then
+ $as_echo_n "checking for python build information... " >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
+ $as_echo "" >&6; }
+-for python in python3.9 python3.8 python3.7 python3.6 python3.5 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
++for python in python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python; do
+ for ac_prog in $python
+ do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
More information about the arch-commits
mailing list