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

Evangelos Foutras foutrelis at gemini.archlinux.org
Fri Dec 10 16:19:26 UTC 2021


    Date: Friday, December 10, 2021 @ 16:19:25
  Author: foutrelis
Revision: 1068107

upgpkg: freeradius 3.0.25-4: fix build with Python 3.10

Added:
  freeradius/trunk/python310.patch
Modified:
  freeradius/trunk/PKGBUILD

-----------------+
 PKGBUILD        |    9 ++++++++-
 python310.patch |   12 ++++++++++++
 2 files changed, 20 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-10 16:01:12 UTC (rev 1068106)
+++ PKGBUILD	2021-12-10 16:19:25 UTC (rev 1068107)
@@ -4,7 +4,7 @@
 
 pkgname=freeradius
 pkgver=3.0.25
-pkgrel=3
+pkgrel=4
 pkgdesc='The premier open source RADIUS server'
 arch=('x86_64')
 url="https://freeradius.org/"
@@ -26,15 +26,22 @@
 options=('!makeflags')
 validpgpkeys=('BF2384EC6938B9744B03E2A620E37C25995B4F85') # FreeRADIUS - Package Signing [...] <packages at freeradius.org>
 source=("ftp://ftp.freeradius.org/pub/radius/freeradius-server-$pkgver.tar.bz2"{,.sig}
+        'python310.patch'
         'freeradius-sysusers.conf'
         'freeradius-tmpfiles.conf'
         'freeradius.service')
 sha256sums=('fc158cdab4a705b179b1a91cd72473006ef4dfb570b0d097db6c9c34049a4509'
             'SKIP'
+            '58f415a4d05f2446d2514b98f5fd5d740d7bee400745d43a82d024a3d23ab253'
             '8ecaca94c7d0f4806b326685312dd4e543ce9c6c183d3d7ad01c1a0197bdfb94'
             'f536a9aa972e3e42a6b1a6d8ee17166eb721c7cba2e80f60473811497c7bd8bc'
             'c469e1a3f9edad769da01c324779babe783ee85a9b53ce4638d3d2d09c7c8d4b')
 
+prepare() {
+  cd "$srcdir"/freeradius-server-$pkgver
+  patch -Np1 -i ../python310.patch
+}
+
 build() {
   cd "$srcdir"/freeradius-server-$pkgver
 

Added: python310.patch
===================================================================
--- python310.patch	                        (rev 0)
+++ python310.patch	2021-12-10 16:19:25 UTC (rev 1068107)
@@ -0,0 +1,12 @@
+diff -upr freeradius-server-3.0.25.orig/src/modules/rlm_python/configure freeradius-server-3.0.25/src/modules/rlm_python/configure
+--- freeradius-server-3.0.25.orig/src/modules/rlm_python/configure	2021-10-07 22:46:04.000000000 +0300
++++ freeradius-server-3.0.25/src/modules/rlm_python/configure	2021-12-10 18:13:15.196401810 +0200
+@@ -2945,7 +2945,7 @@ $as_echo "$as_me: Python sys.prefix \"${
+ 		{ $as_echo "$as_me:${as_lineno-$LINENO}: Python sys.exec_prefix \"${PY_EXEC_PREFIX}\"" >&5
+ $as_echo "$as_me: Python sys.exec_prefix \"${PY_EXEC_PREFIX}\"" >&6;}
+ 
+-		PY_SYS_VERSION=`${PYTHON_BIN} -c 'import sys ; print(sys.version[0:3])'`
++		PY_SYS_VERSION=`${PYTHON_BIN} -c 'import sys ; print(".".join(map(str, sys.version_info[:2])))'`
+ 		{ $as_echo "$as_me:${as_lineno-$LINENO}: Python sys.version \"${PY_SYS_VERSION}\"" >&5
+ $as_echo "$as_me: Python sys.version \"${PY_SYS_VERSION}\"" >&6;}
+ 



More information about the arch-commits mailing list