[arch-commits] Commit in sugar-datastore/trunk (PKGBUILD python310.patch)

Evangelos Foutras foutrelis at gemini.archlinux.org
Wed Dec 1 11:41:15 UTC 2021


    Date: Wednesday, December 1, 2021 @ 11:41:15
  Author: foutrelis
Revision: 1059236

Fix Python 3.10 version detection

Added:
  sugar-datastore/trunk/python310.patch
Modified:
  sugar-datastore/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   11 +++++++++--
 python310.patch |   12 ++++++++++++
 2 files changed, 21 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-01 11:37:53 UTC (rev 1059235)
+++ PKGBUILD	2021-12-01 11:41:15 UTC (rev 1059236)
@@ -8,9 +8,16 @@
 url="https://sugarlabs.org/"
 license=('GPL')
 depends=('python-dbus' 'python-gobject' 'python-xapian')
-source=(https://download.sugarlabs.org/sources/sucrose/glucose/$pkgname/$pkgname-$pkgver.tar.xz)
-sha256sums=('da6ac9f8ac4b945db1b286b9f4d46845bd90dd78b51d121556cf2b81541dc087')
+source=(https://download.sugarlabs.org/sources/sucrose/glucose/$pkgname/$pkgname-$pkgver.tar.xz
+        python310.patch)
+sha256sums=('da6ac9f8ac4b945db1b286b9f4d46845bd90dd78b51d121556cf2b81541dc087'
+            'ab1cf0024c0d1d1c91af037b6dcb2397c197070fd5d5a7bd4dc8948a40b5b520')
 
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np1 -i ../python310.patch
+}
+
 build() {
   cd $pkgname-$pkgver
   ./configure --prefix=/usr

Added: python310.patch
===================================================================
--- python310.patch	                        (rev 0)
+++ python310.patch	2021-12-01 11:41:15 UTC (rev 1059236)
@@ -0,0 +1,12 @@
+diff -upr sugar-datastore-0.118.orig/configure sugar-datastore-0.118/configure
+--- sugar-datastore-0.118.orig/configure	2020-12-17 03:51:53.000000000 +0200
++++ sugar-datastore-0.118/configure	2021-12-01 13:39:33.030877076 +0200
+@@ -12035,7 +12035,7 @@ $as_echo_n "checking for $am_display_PYT
+ if ${am_cv_python_version+:} false; then :
+   $as_echo_n "(cached) " >&6
+ else
+-  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
++  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write('{0}.{1}'.format(sys.version_info.major, sys.version_info.minor))"`
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
+ $as_echo "$am_cv_python_version" >&6; }



More information about the arch-commits mailing list