15
0

- Add gcc14.patch to make it compatible with gcc14

gh#nima/python-dmidecode#59

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dmidecode?expand=0&rev=34
This commit is contained in:
2024-10-22 06:57:26 +00:00
committed by Git OBS Bridge
commit c9d18e0ca8
12 changed files with 557 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
From 3d656cd92a7b19758a17dfa47b4ce13da5b2bb61 Mon Sep 17 00:00:00 2001
From: Stefano Rivera <stefano@rivera.za.net>
Date: Fri, 19 Nov 2021 12:01:32 -0400
Subject: [PATCH] Support Python 3.10's 2-digit minor version
---
unit-tests/unit | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/unit-tests/unit
+++ b/unit-tests/unit
@@ -9,7 +9,7 @@ from getopt import getopt
# Setup temporary sys.path() with our build dir
(sysname, nodename, release, version, machine) = os.uname()
-pyver = sys.version[:3]
+pyver = '%i.%i' % sys.version_info[:2]
sys.path.insert(0,'../build/lib.%s-%s-%s' % (sysname.lower(), machine, pyver))
root_user = (os.getuid() == 0 and True or False)