[packages/cifs-utils] - swith all scripts to python 3, rel 2

baggins baggins at pld-linux.org
Sat Sep 9 13:45:45 CEST 2023


commit 3ee423deeba407f16323d79ddfbd6a338c2b3bf3
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Sep 9 12:51:04 2023 +0200

    - swith all scripts to python 3, rel 2

 cifs-utils.spec | 11 ++++++-----
 python3.patch   | 20 ++++++++++++++++++++
 2 files changed, 26 insertions(+), 5 deletions(-)
---
diff --git a/cifs-utils.spec b/cifs-utils.spec
index 3dac809..1c64895 100644
--- a/cifs-utils.spec
+++ b/cifs-utils.spec
@@ -2,12 +2,13 @@ Summary:	Utilities for mounting and managing CIFS mounts
 Summary(pl.UTF-8):	Narzędzia do montowania i zarządzania montowaniami CIFS
 Name:		cifs-utils
 Version:	7.0
-Release:	1
+Release:	2
 License:	GPL v3+
 Group:		Daemons
 Source0:	https://ftp.samba.org/pub/linux-cifs/cifs-utils/%{name}-%{version}.tar.bz2
 # Source0-md5:	518431bf43f23e6aacd97e80e2060df7
 Patch0:		%{name}-heimdal.patch
+Patch1:		python3.patch
 URL:		https://wiki.samba.org/index.php/LinuxCIFS_utils
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
@@ -55,12 +56,12 @@ Plik nagłówkowy interfejsu wtyczek ID Mapping cifs-utils.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
-%{__sed} -i -e '1s,/usr/bin/env python$,%{__python},' \
+%{__sed} -i -e '1s,/usr/bin/env python$,%{__python3},' \
+	-e '1s,/usr/bin/env python3,%{__python3},' \
 	smb2-quota \
-	smb2-secdesc
-
-%{__sed} -i -e '1s,/usr/bin/env python3,%{__python3},' \
+	smb2-secdesc \
 	checkopts \
 	smbinfo
 
diff --git a/python3.patch b/python3.patch
new file mode 100644
index 0000000..585aab0
--- /dev/null
+++ b/python3.patch
@@ -0,0 +1,20 @@
+--- cifs-utils-7.0/smb2-secdesc.orig	2023-09-09 12:42:49.000000000 +0200
++++ cifs-utils-7.0/smb2-secdesc	2023-09-09 12:48:13.717223739 +0200
+@@ -8,7 +8,7 @@
+ import struct
+ import stat
+ import sys
+-from Tkinter import *
++from tkinter import *
+ 
+ FULL_CONTROL = 0x001f01ff
+ EWRITE = 0x00000116
+@@ -297,7 +297,7 @@
+ CIFS_QUERY_INFO = 0xc018cf07
+ 
+ def usage():
+-	print "Usage: %s <filename>" % (sys.argv[0])
++	print("Usage: %s <filename>" % (sys.argv[0]))
+ 	sys.exit()
+ 
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cifs-utils.git/commitdiff/3ee423deeba407f16323d79ddfbd6a338c2b3bf3



More information about the pld-cvs-commit mailing list