Hello community,

here is the log from the commit of package libcpuid for openSUSE:Factory 
checked in at 2020-08-14 09:33:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libcpuid (Old)
 and      /work/SRC/openSUSE:Factory/.libcpuid.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libcpuid"

Fri Aug 14 09:33:17 2020 rev:6 rq:826264 version:0.5.0+git.20200528

Changes:
--------
--- /work/SRC/openSUSE:Factory/libcpuid/libcpuid.changes        2020-05-28 
09:13:46.396670287 +0200
+++ /work/SRC/openSUSE:Factory/.libcpuid.new.3399/libcpuid.changes      
2020-08-14 09:34:36.740437879 +0200
@@ -1,0 +2,8 @@
+Thu Aug 13 11:17:44 UTC 2020 - Martin Pluskal <[email protected]>
+
+- Update to version 0.5.0+git.20200528:
+  * Related to c2645d0. Convert all python scripts to Python 3.
+  * Add Downloads section on Readme.md Close #140
+  * Add I-Nex to the users list
+
+-------------------------------------------------------------------

Old:
----
  libcpuid-0.5.0+git.20200526.obscpio

New:
----
  libcpuid-0.5.0+git.20200528.obscpio

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libcpuid.spec ++++++
--- /var/tmp/diff_new_pack.L1HkDm/_old  2020-08-14 09:34:37.336438184 +0200
+++ /var/tmp/diff_new_pack.L1HkDm/_new  2020-08-14 09:34:37.336438184 +0200
@@ -18,7 +18,7 @@
 
 %define so_ver  15
 Name:           libcpuid
-Version:        0.5.0+git.20200526
+Version:        0.5.0+git.20200528
 Release:        0
 Summary:        Library providing x86 CPU identification
 License:        BSD-2-Clause

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.L1HkDm/_old  2020-08-14 09:34:37.380438207 +0200
+++ /var/tmp/diff_new_pack.L1HkDm/_new  2020-08-14 09:34:37.380438207 +0200
@@ -1,4 +1,4 @@
 <servicedata>
 <service name="tar_scm">
                 <param name="url">[email protected]:anrieff/libcpuid.git</param>
-              <param 
name="changesrevision">5da90c9dcc8db37fed62c9fc681ade6f31418e78</param></service></servicedata>
\ No newline at end of file
+              <param 
name="changesrevision">52c5f505cff57266b32aa8eb95eb7c7fc47db94b</param></service></servicedata>
\ No newline at end of file

++++++ libcpuid-0.5.0+git.20200526.obscpio -> 
libcpuid-0.5.0+git.20200528.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcpuid-0.5.0+git.20200526/Readme.md 
new/libcpuid-0.5.0+git.20200528/Readme.md
--- old/libcpuid-0.5.0+git.20200526/Readme.md   2020-05-26 09:17:00.000000000 
+0200
+++ new/libcpuid-0.5.0+git.20200528/Readme.md   2020-05-28 18:57:30.000000000 
+0200
@@ -70,11 +70,33 @@
 Users
 -----
 
-So far, I'm aware of the following projects which utilize libcpuid:
+So far, I'm aware of the following projects which utilize libcpuid (listed 
alphabetically):
 
 * CPU-X (https://github.com/X0rg/CPU-X)
 * fre:ac (https://www.freac.org/)
-* ucbench (http://anrieff.net/ucbench)
+* I-Nex (https://github.com/i-nex/I-Nex)
 * Multiprecision Computing Toolbox for MATLAB (https://www.advanpix.com/)
+* ucbench (http://anrieff.net/ucbench)
 
 We'd love to hear from you if you are also using libcpuid and want your 
project listed above.
+
+Downloads
+---------
+
+You can find latest versioned archives 
[here](https://github.com/anrieff/libcpuid/releases/latest), with binaries for 
macOS and Windows.
+
+#### Binary packages
+
+Also, libcpuid is available for following systems in official repositories:
+
+* [Debian (since version 11 
"Bullseye")](https://packages.debian.org/source/bullseye/libcpuid): `apt 
install cpuidtool libcpuid14 libcpuid-dev`
+* [Fedora (since version 25)](https://src.fedoraproject.org/rpms/libcpuid): 
`dnf install libcpuid libcpuid-devel`
+* [FreeBSD (since version 11)](https://www.freshports.org/sysutils/libcpuid): 
`pkg install libcpuid`
+* [OpenMandriva Lx (since version 4.0 
"Nitrogen")](https://github.com/OpenMandrivaAssociation/libcpuid): `dnf install 
libcpuid-tools libcpuid14 libcpuid-devel`
+* [openSUSE Leap (since version 
15.1)](https://software.opensuse.org/package/libcpuid): `zypper install 
libcpuid-tools libcpuid14 libcpuid-devel`
+* [Solus](https://packages.getsol.us/shannon/libc/libcpuid/): `eopkg install 
libcpuid libcpuid-devel`
+* [Ubuntu (since version 20.04 "Focal 
Fossa")](https://packages.ubuntu.com/source/focal/libcpuid) : `apt install 
cpuidtool libcpuid14 libcpuid-dev`
+
+#### Build tool
+
+* Vcpkg: `vcpkg install cpuid`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libcpuid-0.5.0+git.20200526/libcpuid/check-consistency.py 
new/libcpuid-0.5.0+git.20200528/libcpuid/check-consistency.py
--- old/libcpuid-0.5.0+git.20200526/libcpuid/check-consistency.py       
2020-05-26 09:17:00.000000000 +0200
+++ new/libcpuid-0.5.0+git.20200528/libcpuid/check-consistency.py       
2020-05-28 18:57:30.000000000 +0200
@@ -1,9 +1,9 @@
-#!/usr/bin/env python2.7
+#!/usr/bin/env python3
 
 import os, sys, re, glob
 
 if len(sys.argv) != 2:
-       print "Usage: check-consistency <path>"
+       print("Usage: check-consistency <path>")
        sys.exit(0)
 
 err = 0
@@ -37,24 +37,24 @@
        return value
 
 def checkEnumSize(enumName, constantName):
-       print "Checking enum `%s':" % enumName,
+       print("Checking enum `%s':" % enumName, end=' ')
        count = len(getEnumElements(enumName)) - 1
        themax = getConstant(constantName)
-       print "%d elements; max size (%s=%d)..." % (count, constantName, 
themax),
+       print("%d elements; max size (%s=%d)..." % (count, constantName, 
themax), end=' ')
        if count > themax:
                err += 1
-               print "FAILED"
+               print("FAILED")
                global firstError
                firstError = False
        else:
-               print "OK"
+               print("OK")
 
 checkEnumSize("cpu_feature_t", "CPU_FLAGS_MAX")
 checkEnumSize("cpu_hint_t", "CPU_HINTS_MAX")
 checkEnumSize("cpu_sgx_feature_t", "SGX_FLAGS_MAX")
 
 rexp = re.compile('.*{ CPU_FEATURE_([^,]+), "([^"]+)".*}.*')
-print "Finding features:"
+print("Finding features:")
 for fn in glob.glob("%s/*.c" % sys.argv[1]):
        f = open(fn, "rt")
        line = 1
@@ -63,15 +63,13 @@
                if rexp.match(s):
                        nfeat += 1
                        res = rexp.findall(s)
-                       if len(res) > 1:
-                               err += 1
-                               raise "..Too many matches"
+                       assert len(res) == 1, "Too many matches"
                        if res[0][0].lower() != res[0][1]:
                                err += 1
-                               print "..Mismatch - %s:%d - `%s' vs `%s'" % 
(os.path.basename(fn), line, res[0][0], res[0][1])
+                               print("..Mismatch - %s:%d - `%s' vs `%s'" % 
(os.path.basename(fn), line, res[0][0], res[0][1]))
                line += 1
        if nfeat:
-               print "  %s: %d features described" % (os.path.basename(fn), 
nfeat)
+               print("  %s: %d features described" % (os.path.basename(fn), 
nfeat))
        f.close()
 
 # Check whether all features are converted by cpu_feature_str():
@@ -93,19 +91,19 @@
                entry = rexp.findall(s)[0]
                if entry in impf:
                        err += 1
-                       print "cpu_feature_str(): duplicate entry: %s" % entry
+                       print("cpu_feature_str(): duplicate entry: %s" % entry)
                impf.append(entry)
 f.close()
 
-print "Found %d total features and %d named features" % (len(allf), len(impf))
+print("Found %d total features and %d named features" % (len(allf), len(impf)))
 
 for feature in allf:
        if not feature in impf:
                err += 1
-               print "cpu_feature_str(): don't have entry for %s" % feature
+               print("cpu_feature_str(): don't have entry for %s" % feature)
 
 # Check whether all features have detection code:
-print "Checking whether all features have detection code...",
+print("Checking whether all features have detection code...", end=' ')
 firstError = True
 
 files_code = {}
@@ -129,22 +127,22 @@
                        matching_files.append(fn)
        if len(matching_files) == 0 and feature not in features_whitelist:
                if firstError:
-                       print "FAILED:"
+                       print("FAILED:")
                        firstError = False
                err += 1
-               print "..No detection code for %s" % feature
+               print("..No detection code for %s" % feature)
        if len(matching_files) > 1:
                if firstError:
-                       print "FAILED:"
+                       print("FAILED:")
                        firstError = False
                err += 1
-               print "..Conflicting detection code for %s in files %s" % 
(feature, " and ".join(matching_files))
+               print("..Conflicting detection code for %s in files %s" % 
(feature, " and ".join(matching_files)))
 
 if firstError:
-       print "All OK."
-print ""
+       print("All OK.")
+print("")
 
-print "Checking processor definitions:"
+print("Checking processor definitions:")
 cache_exp = re.compile(".*([\(/ ][0-9]+K).*")
 # Check whether CPU codenames for consistency:
 #   - Codenames should not exceed 31 characters
@@ -174,26 +172,26 @@
                        s = parts[10].strip()
                        if s[0] != '"' or s[-1] != '"':
                                err += 1
-                               print "..Warning, %s:%d - cannot correctly 
handle the cpu codename" % (bfn, nline)
+                               print("..Warning, %s:%d - cannot correctly 
handle the cpu codename" % (bfn, nline))
                                allok = False
                                continue
                        s = s[1:-1]
                        if len(s) > 31:
                                err += 1
-                               print "..%s:%d - codename (%s) is longer than 
31 characters!" % (bfn, nline, s)
+                               print("..%s:%d - codename (%s) is longer than 
31 characters!" % (bfn, nline, s))
                                allok = False
                        if cache_exp.match(s):
                                cache_size = cache_exp.findall(s)[0][1:-1]
                                if not cache_size in common_cache_sizes:
                                        err += 1
-                                       print "..Warning, %s:%d - suspicious 
cache size in codename [%s] (%s)" % (bfn, nline, s, cache_size)
+                                       print("..Warning, %s:%d - suspicious 
cache size in codename [%s] (%s)" % (bfn, nline, s, cache_size))
                                        allok = False
        if cdefs:
-               print "  %s: %d processor definitions," % (bfn, cdefs),
+               print("  %s: %d processor definitions," % (bfn, cdefs), end=' ')
                if allok:
-                       print "all OK"
+                       print("all OK")
                else:
-                       print "some errors/warnings"
+                       print("some errors/warnings")
        f.close()
 
 sys.exit(err)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcpuid-0.5.0+git.20200526/tests/create_test.py 
new/libcpuid-0.5.0+git.20200528/tests/create_test.py
--- old/libcpuid-0.5.0+git.20200526/tests/create_test.py        2020-05-26 
09:17:00.000000000 +0200
+++ new/libcpuid-0.5.0+git.20200528/tests/create_test.py        2020-05-28 
18:57:30.000000000 +0200
@@ -1,12 +1,12 @@
-#!/usr/bin/env python2.7
+#!/usr/bin/env python3
 
 import os, sys, re
 
 args = sys.argv
 
 if len(args) != 3:
-       print "Usage: create_test.py <rawdata file> <report file>"
-       print "The .test file is written to stdout."
+       print("Usage: create_test.py <rawdata file> <report file>")
+       print("The .test file is written to stdout.")
        sys.exit(1)
 
 def readRawFile():
@@ -57,4 +57,4 @@
 
 delimiter = "-" * 80
 lines = readRawFile() + [delimiter] + readResultFile()
-sys.stdout.writelines(map(lambda s: s + "\n", lines))
+sys.stdout.writelines([s + "\n" for s in lines])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libcpuid-0.5.0+git.20200526/tests/run_tests.py 
new/libcpuid-0.5.0+git.20200528/tests/run_tests.py
--- old/libcpuid-0.5.0+git.20200526/tests/run_tests.py  2020-05-26 
09:17:00.000000000 +0200
+++ new/libcpuid-0.5.0+git.20200528/tests/run_tests.py  2020-05-28 
18:57:30.000000000 +0200
@@ -1,6 +1,6 @@
-#!/usr/bin/env python2.7
+#!/usr/bin/env python3
+
 
-from __future__ import with_statement
 import os, sys, re, random
 
 
@@ -16,7 +16,7 @@
 show_test_fast_warning = False
 
 if len(args) < 3:
-       print """
+       print("""
 Usage: run_tests.py <cpuid_tool binary> <test file/dir> [test file/dir ...] 
[OPTIONS]
 
 If a test file is given, it is tested by itself.
@@ -24,7 +24,7 @@
 
 If the --fix option is given, the behaviour of the cpuid_tool binary is deemed 
correct
 and any failing tests are updated.
-"""
+""")
        sys.exit(1)
 
 filelist = []
@@ -51,12 +51,12 @@
 # warnings when you attempt to use that :(
 def make_tempname(prefix):
        chars = ""
-       for i in xrange(26):
+       for i in range(26):
                chars += chr(97+i)
                chars += chr(65+i)
-       for i in xrange(10):
+       for i in range(10):
                chars += chr(48+i)
-       for i in xrange(6):
+       for i in range(6):
                prefix += random.choice(chars)
        return prefix
 
@@ -66,24 +66,24 @@
 
 def fixFile(filename, input_lines, output_lines):
        f = open(filename, "wt")
-       f.writelines(map(lambda s: s + "\n", input_lines))
+       f.writelines([s + "\n" for s in input_lines])
        
f.write("--------------------------------------------------------------------------------\n")
-       f.writelines(map(lambda s: s + "\n", output_lines))
+       f.writelines([s + "\n" for s in output_lines])
        f.close()
 
 def do_test(inp, expected_out, binary, test_file_name):
        fninp = make_tempname("cpuidin")
        fnoutp = make_tempname("cpuidout")
        f = open(fninp, "wt")
-       f.writelines(map(lambda s: s + "\n", inp))
+       f.writelines([s + "\n" for s in inp])
        f.close()
-       cmd = "%s --load=%s --outfile=%s %s" % (binary, fninp, fnoutp, " 
".join(map(lambda s: "--" + s, fields)))
+       cmd = "%s --load=%s --outfile=%s %s" % (binary, fninp, fnoutp, " 
".join(["--" + s for s in fields]))
        os.system(cmd)
        os.unlink(fninp)
        real_out = []
        try:
                f = open(fnoutp, "rt")
-               real_out = map(lambda s: s.strip(), f.readlines())
+               real_out = [s.strip() for s in f.readlines()]
                f.close()
                os.unlink(fnoutp)
        except IOError:
@@ -104,7 +104,7 @@
                        return "Mismatch in fields:\n%s" % 
"\n".join([fmt_error(err) for err in err_fields])
 
 errors = False
-print "Testing..."
+print("Testing...")
 for test_file_name in filelist:
        current_input = []
        current_output = []
@@ -120,15 +120,15 @@
                                        current_input.append(line.strip())
                #codename = current_output[len(current_output) - 2]
                result = do_test(current_input, current_output, cpuid_tool, 
test_file_name)
-               print "Test [%s]: %s" % (test_file_name[:-5], result)
+               print("Test [%s]: %s" % (test_file_name[:-5], result))
                if result != "OK":
                        errors = True
                build_output = False
 
 if errors:
        if show_test_fast_warning:
-               print """
+               print("""
 You're running tests in fast mode; before taking any action on the errors
-above, please confirm that the slow mode ('make test-old') also fails."""
+above, please confirm that the slow mode ('make test-old') also fails.""")
 else:
-       print "All successfull!"
+       print("All successfull!")

++++++ libcpuid.obsinfo ++++++
--- /var/tmp/diff_new_pack.L1HkDm/_old  2020-08-14 09:34:37.548438293 +0200
+++ /var/tmp/diff_new_pack.L1HkDm/_new  2020-08-14 09:34:37.548438293 +0200
@@ -1,5 +1,5 @@
 name: libcpuid
-version: 0.5.0+git.20200526
-mtime: 1590477420
-commit: 5da90c9dcc8db37fed62c9fc681ade6f31418e78
+version: 0.5.0+git.20200528
+mtime: 1590685050
+commit: 52c5f505cff57266b32aa8eb95eb7c7fc47db94b
 


Reply via email to