D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/b43-tools-019-7.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.evEYgr + umask 022 + cd /home/pterjan/rpmbuild/BUILD/b43-tools-019-build + test -d /home/pterjan/rpmbuild/BUILD/b43-tools-019-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/b43-tools-019-build + /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/b43-tools-019-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/b43-tools-019-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.tYznCr + umask 022 + cd /home/pterjan/rpmbuild/BUILD/b43-tools-019-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/b43-tools-019-build + rm -rf b43-tools-b43-fwcutter-019 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/b43-tools-b43-fwcutter-019.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd b43-tools-b43-fwcutter-019 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0001-b43-tools-fix-format-security-errors.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/0002-Explicitly-use-python3.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + install -p -m 0644 assembler/COPYING COPYING.assembler + install -p -m 0644 assembler/README README.assembler + install -p -m 0644 debug/COPYING COPYING.debug + install -p -m 0644 debug/README README.debug + install -p -m 0644 disassembler/COPYING COPYING.disassembler + install -p -m 0644 ssb_sprom/README README.ssb_sprom + install -p -m 0644 ssb_sprom/COPYING COPYING.ssb_sprom + install -p -m 0644 debug/install.py debug/setup.py + 2to3 -w . /usr/bin/2to3:3: DeprecationWarning: lib2to3 package is deprecated and may not be able to parse Python 3.10+ from lib2to3.main import main RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: No changes to ./debug/install.py RefactoringTool: Refactored ./debug/libb43.py RefactoringTool: No changes to ./debug/setup.py RefactoringTool: Refactored ./fwcutter/mklist.py --- ./debug/libb43.py (original) +++ ./debug/libb43.py (refactored) @@ -74,14 +74,14 @@ try: phys = os.listdir(b43_path) except OSError: - print "Could not find B43's debugfs directory: %s" % b43_path + print("Could not find B43's debugfs directory: %s" % b43_path) raise B43Exception if not phys: - print "Could not find any b43 device" + print("Could not find any b43 device") raise B43Exception if len(phys) != 1: - print "Found multiple b43 devices." - print "You must call this tool with a phyX parameter to specify a device" + print("Found multiple b43 devices.") + print("You must call this tool with a phyX parameter to specify a device") raise B43Exception phy = phys[0] b43_path += phy; @@ -96,8 +96,8 @@ self.f_shm16write = file(b43_path + "/shm16write", "w") self.f_shm32read = file(b43_path + "/shm32read", "r+") self.f_shm32write = file(b43_path + "/shm32write", "w") - except IOError, e: - print "Could not open debugfs file %s: %s" % (e.filename, e.strerror) + except IOError as e: + print("Could not open debugfs file %s: %s" % (e.filename, e.strerror)) raise B43Exception self.b43_path = b43_path @@ -114,7 +114,7 @@ path = m.group(1) break if not path: - print "Could not find debugfs in /etc/mtab" + print("Could not find debugfs in /etc/mtab") raise B43Exception return path @@ -126,8 +126,8 @@ self.f_mmio16read.flush() self.f_mmio16read.seek(0) val = self.f_mmio16read.read() - except IOError, e: - print "Could not access debugfs file %s: %s" % (e.filename, e.strerror) + except IOError as e: + print("Could not access debugfs file %s: %s" % (e.filename, e.strerror)) raise B43Exception return int(val, 16) @@ -139,8 +139,8 @@ self.f_mmio32read.flush() self.f_mmio32read.seek(0) val = self.f_mmio32read.read() - except IOError, e: - print "Could not access debugfs file %s: %s" % (e.filename, e.strerror) + except IOError as e: + print("Could not access debugfs file %s: %s" % (e.filename, e.strerror)) raise B43Exception return int(val, 16) @@ -152,8 +152,8 @@ self.f_mmio16write.seek(0) self.f_mmio16write.write("0x%X 0x%X 0x%X" % (reg, mask, set)) self.f_mmio16write.flush() - except IOError, e: - print "Could not access debugfs file %s: %s" % (e.filename, e.strerror) + except IOError as e: + print("Could not access debugfs file %s: %s" % (e.filename, e.strerror)) raise B43Exception return @@ -170,8 +170,8 @@ self.f_mmio32write.seek(0) self.f_mmio32write.write("0x%X 0x%X 0x%X" % (reg, mask, set)) self.f_mmio32write.flush() - except IOError, e: - print "Could not access debugfs file %s: %s" % (e.filename, e.strerror) + except IOError as e: + print("Could not access debugfs file %s: %s" % (e.filename, e.strerror)) raise B43Exception return @@ -188,8 +188,8 @@ self.f_shm16read.flush() self.f_shm16read.seek(0) val = self.f_shm16read.read() - except IOError, e: - print "Could not access debugfs file %s: %s" % (e.filename, e.strerror) + except IOError as e: + print("Could not access debugfs file %s: %s" % (e.filename, e.strerror)) raise B43Exception return int(val, 16) @@ -201,8 +201,8 @@ self.f_shm16write.seek(0) self.f_shm16write.write("0x%X 0x%X 0x%X 0x%X" % (routing, offset, mask, set)) self.f_shm16write.flush() - except IOError, e: - print "Could not access debugfs file %s: %s" % (e.filename, e.strerror) + except IOError as e: + print("Could not access debugfs file %s: %s" % (e.filename, e.strerror)) raise B43Exception return @@ -219,8 +219,8 @@ self.f_shm32read.flush() self.f_shm32read.seek(0) val = self.f_shm32read.read() - except IOError, e: - print "Could not access debugfs file %s: %s" % (e.filename, e.strerror) + except IOError as e: + print("Could not access debugfs file %s: %s" % (e.filename, e.strerror)) raise B43Exception return int(val, 16) @@ -232,8 +232,8 @@ self.f_shm32write.seek(0) self.f_shm32write.write("0x%X 0x%X 0x%X 0x%X" % (routing, offset, mask, set)) self.f_shm32write.flush() - except IOError, e: - print "Could not access debugfs file %s: %s" % (e.filename, e.strerror) + except IOError as e: + print("Could not access debugfs file %s: %s" % (e.filename, e.strerror)) raise B43Exception return @@ -345,9 +345,9 @@ def __init__(self, text, expected_md5sum): sum = hashlib.md5(text).hexdigest() if sum != expected_md5sum: - print "Patcher: The text does not match the expected MD5 sum" - print "Expected: " + expected_md5sum - print "Calculated: " + sum + print("Patcher: The text does not match the expected MD5 sum") + print("Expected: " + expected_md5sum) + print("Calculated: " + sum) raise B43Exception text = text.splitlines() self.lines = [] @@ -375,7 +375,7 @@ if l.index == linenumber: l.deleted = True return - print "Patcher deleteLine: Did not find the line!" + print("Patcher deleteLine: Did not find the line!") raise B43Exception def addText(self, beforeLineNumber, text): @@ -388,7 +388,7 @@ break index += 1 if index >= len(self.lines): - print "Patcher addText: Did not find the line!" + print("Patcher addText: Did not find the line!") raise B43Exception for l in text: self.lines.insert(index, TextPatcher.TextLine(-1, l)) @@ -402,8 +402,8 @@ assembly file containing the symbolic SPR definitions.""" try: defs = file(header_file).readlines() - except IOError, e: - print "B43SymbolicSpr: Could not read %s: %s" % (e.filename, e.strerror) + except IOError as e: + print("B43SymbolicSpr: Could not read %s: %s" % (e.filename, e.strerror)) B43Exception # Parse the definitions self.spr_names = { } @@ -438,8 +438,8 @@ assembly file containing the symbolic SHM definitions.""" try: defs = file(header_file).readlines() - except IOError, e: - print "B43SymbolicShm: Could not read %s: %s" % (e.filename, e.strerror) + except IOError as e: + print("B43SymbolicShm: Could not read %s: %s" % (e.filename, e.strerror)) raise B43Exception # Parse the definitions self.shm_names = { } @@ -477,8 +477,8 @@ assembly file containing the symbolic condition definitions.""" try: defs = file(header_file).readlines() - except IOError, e: - print "B43SymbolicCondition: Could not read %s: %s" % (e.filename, e.strerror) + except IOError as e: + print("B43SymbolicCondition: Could not read %s: %s" % (e.filename, e.strerror)) raise B43Exception # Parse the definitions self.cond_names = { } --- ./fwcutter/mklist.py (original) +++ ./fwcutter/mklist.py (refactored) @@ -33,7 +33,7 @@ import hashlib if len(sys.argv) != 2: - print "Usage: %s path/to/wl.o" % sys.argv[0] + print("Usage: %s path/to/wl.o" % sys.argv[0]) sys.exit(1) fn = sys.argv[1] @@ -52,13 +52,13 @@ rodata_fileoffset = int(m.group(1), 16) break if rodata_fileoffset == None: - print "ERROR: Could not find .rodata fileoffset" + print("ERROR: Could not find .rodata fileoffset") sys.exit(1) md5sum = hashlib.md5(file(fn, "r").read()) -print "static struct extract _%s[] =" % md5sum.hexdigest() -print "{" +print("static struct extract _%s[] =" % md5sum.hexdigest()) +print("{") sym_re = re.compile(r"([0-9a-fA-F]+)\s+g\s+O\s+\.rodata\s+([0-9a-fA-F]+) d11([-_\s\w0-9]+)") ucode_re = re.compile(r"ucode(\d+)") @@ -81,10 +81,10 @@ if "pcm" in name: type = "EXT_PCM" if "bommajor" in name: - print "\t/* ucode major version at offset 0x%x */" % pos + print("\t/* ucode major version at offset 0x%x */" % pos) continue if "bomminor" in name: - print "\t/* ucode minor version at offset 0x%x */" % pos + print("\t/* ucode minor version at offset 0x%x */" % pos) continue if "ucode_2w" in name: continue @@ -98,9 +98,9 @@ else: type = "EXT_UCODE_3" if not type: - print "\t/* ERROR: Could not guess data type for: %s */" % name + print("\t/* ERROR: Could not guess data type for: %s */" % name) continue - print "\t{ .name = \"%s\", .offset = 0x%X, .type = %s, .length = 0x%X }," % (name, pos, type, size)RefactoringTool: Files that were modified: RefactoringTool: ./debug/install.py RefactoringTool: ./debug/libb43.py RefactoringTool: ./debug/setup.py RefactoringTool: ./fwcutter/mklist.py -print "\tEXTRACT_LIST_END" -print "};" + print("\t{ .name = \"%s\", .offset = 0x%X, .type = %s, .length = 0x%X }," % (name, pos, type, size)) +print("\tEXTRACT_LIST_END") +print("};") + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.JeakKn + umask 022 + cd /home/pterjan/rpmbuild/BUILD/b43-tools-019-build + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd b43-tools-b43-fwcutter-019 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + make -j16 -C assembler make: Entering directory '/home/pterjan/rpmbuild/BUILD/b43-tools-019-build/b43-tools-b43-fwcutter-019/assembler' DEPEND dep/args.d DEPEND dep/initvals.d DEPEND dep/main.d YACC parser.c DEPEND dep/util.d LEX scanner.c DEPEND dep/parser.d DEPEND dep/scanner.d DEPEND dep/main.d CC obj/args.o CC obj/initvals.o CC obj/main.o CC obj/parser.o main.c: In function 'is_valid_imm': main.c:219:20: warning: left shift of negative value [-Wshift-negative-value] 219 | mask = (~0 << immediate_size) & 0xFFFF; | ^~ CC obj/scanner.o CC obj/util.o CC b43-asm.bin make: Leaving directory '/home/pterjan/rpmbuild/BUILD/b43-tools-019-build/b43-tools-b43-fwcutter-019/assembler' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + make -j16 -C disassembler make: Entering directory '/home/pterjan/rpmbuild/BUILD/b43-tools-019-build/b43-tools-b43-fwcutter-019/disassembler' DEPEND dep/args.d DEPEND dep/util.d DEPEND dep/main.d CC obj/args.o CC obj/main.o CC obj/util.o main.c: In function 'disasm_std_operand': main.c:105:30: warning: '%X' directive output may be truncated writing between 1 and 8 bytes into a region of size 6 [-Wformat-truncation=] 105 | snprintf(ret, 9, "[0x%X]", operand); | ^~ In function 'disasm_mem_operand', inlined from 'disasm_std_operand' at main.c:224:37: main.c:105:26: note: directive argument in the range [0, 4294965247] 105 | snprintf(ret, 9, "[0x%X]", operand); | ^~~~~~~~ In file included from /usr/include/stdio.h:970, from main.h:4, from main.c:14: In function 'snprintf', inlined from 'disasm_mem_operand' at main.c:105:2, inlined from 'disasm_std_operand' at main.c:224:37: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 6 and 13 bytes into a destination of size 9 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c: In function 'disasm_std_operand': main.c:105:30: warning: '%X' directive output may be truncated writing between 1 and 8 bytes into a region of size 6 [-Wformat-truncation=] 105 | snprintf(ret, 9, "[0x%X]", operand); | ^~ In function 'disasm_mem_operand', inlined from 'disasm_std_operand' at main.c:242:37: main.c:105:26: note: directive argument in the range [0, 4294963199] 105 | snprintf(ret, 9, "[0x%X]", operand); | ^~~~~~~~ In function 'snprintf', inlined from 'disasm_mem_operand' at main.c:105:2, inlined from 'disasm_std_operand' at main.c:242:37: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 6 and 13 bytes into a destination of size 9 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ main.c: In function 'disasm_std_operand': main.c:95:28: warning: '%X' directive output may be truncated writing between 3 and 8 bytes into a region of size 5 [-Wformat-truncation=] 95 | snprintf(ret, 6, "@%X", operand); | ^~ In function 'gen_raw_code', inlined from 'disasm_raw_operand' at main.c:212:35, inlined from 'disasm_std_operand' at main.c:262:2: main.c:95:26: note: directive argument in the range [2048, 4294966271] 95 | snprintf(ret, 6, "@%X", operand); | ^~~~~ In function 'snprintf', inlined from 'gen_raw_code' at main.c:95:2, inlined from 'disasm_raw_operand' at main.c:212:35, inlined from 'disasm_std_operand' at main.c:262:2: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 5 and 10 bytes into a destination of size 6 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ CC b43-dasm make: Leaving directory '/home/pterjan/rpmbuild/BUILD/b43-tools-019-build/b43-tools-b43-fwcutter-019/disassembler' + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + make -j16 -C ssb_sprom make: Entering directory '/home/pterjan/rpmbuild/BUILD/b43-tools-019-build/b43-tools-b43-fwcutter-019/ssb_sprom' DEPEND dep/ssb_sprom.d DEPEND dep/utils.d CC obj/utils.o CC obj/ssb_sprom.o In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from utils.h:4, from utils.c:24: /usr/include/features.h:197:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 197 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from utils.h:4, from ssb_sprom.h:27, from ssb_sprom.c:25: /usr/include/features.h:197:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 197 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ ssb_sprom.c: In function 'main': ssb_sprom.c:454:41: warning: '%s' directive writing up to 99 bytes into a region of size between 35 and 36 [-Wformat-overflow=] 454 | sprintf(buffer, "SPROM(0x%03X), %s, ", offset, desc); | ^~ ~~~~ In file included from /usr/include/stdio.h:970: In function 'sprintf', inlined from 'display_value' at ssb_sprom.c:454:2, inlined from 'display_sprom' at ssb_sprom.c:506:3, inlined from 'main' at ssb_sprom.c:1202:8: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 24 and 124 bytes into a destination of size 50 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ssb_sprom.c: In function 'main': ssb_sprom.c:454:41: warning: '%s' directive writing up to 99 bytes into a region of size between 35 and 36 [-Wformat-overflow=] 454 | sprintf(buffer, "SPROM(0x%03X), %s, ", offset, desc); | ^~ ~~~~ In function 'sprintf', inlined from 'display_value' at ssb_sprom.c:454:2, inlined from 'display_sprom' at ssb_sprom.c:506:3, inlined from 'main' at ssb_sprom.c:1202:8: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 24 and 124 bytes into a destination of size 50 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ssb_sprom.c: In function 'main': ssb_sprom.c:454:41: warning: '%s' directive writing up to 99 bytes into a region of size between 35 and 36 [-Wformat-overflow=] 454 | sprintf(buffer, "SPROM(0x%03X), %s, ", offset, desc); | ^~ ~~~~ In function 'sprintf', inlined from 'display_value' at ssb_sprom.c:454:2, inlined from 'display_sprom' at ssb_sprom.c:506:3, inlined from 'main' at ssb_sprom.c:1202:8: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 24 and 124 bytes into a destination of size 50 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ CC ssb-sprom make: Leaving directory '/home/pterjan/rpmbuild/BUILD/b43-tools-019-build/b43-tools-b43-fwcutter-019/ssb_sprom' + cd debug + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Q67dHo + umask 022 + cd /home/pterjan/rpmbuild/BUILD/b43-tools-019-build + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT ++ dirname /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT + mkdir -p /home/pterjan/rpmbuild/BUILD/b43-tools-019-build + mkdir /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd b43-tools-b43-fwcutter-019 + '[' 1 -eq 1 ']' + mkdir -p /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/bin + install -p -m 0755 assembler/b43-asm /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/bin + install -p -m 0755 assembler/b43-asm.bin /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/bin + install -p -m 0755 disassembler/b43-dasm /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/bin + install -p -m 0755 disassembler/b43-ivaldump /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/bin + install -p -m 0755 disassembler/brcm80211-fwconv /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/bin + install -p -m 0755 disassembler/brcm80211-ivaldump /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/bin + install -p -m 0755 ssb_sprom/ssb-sprom /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/bin + cd debug + CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full' + LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + /usr/bin/python3 setup.py install -O1 --skip-build --root /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT --prefix /usr /usr/lib/python3.12/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() + rm -rfv /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/bin/__pycache__ + /usr/bin/find-debuginfo -j16 --strict-build-id -m -i --build-id-seed 019-7.mga10 --unique-debug-suffix -019-7.mga10.x86_64 --unique-debug-src-base b43-tools-019-7.mga10.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/b43-tools-b43-fwcutter-019 find-debuginfo: starting Extracting debug info from 3 files DWARF-compressing 3 files sepdebugcrcfix: Updated 3 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/b43-tools-019-7.mga10.x86_64 find-debuginfo: done + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-mangle-shebangs mangling shebang in /usr/bin/b43-asm from /bin/sh to #!/usr/bin/sh mangling shebang in /usr/bin/brcm80211-fwconv from /usr/bin/env python3 to #!/usr/bin/python3 mangling shebang in /usr/bin/brcm80211-ivaldump from /usr/bin/env python3 to #!/usr/bin/python3 mangling shebang in /usr/bin/b43-ivaldump from /usr/bin/env python3 to #!/usr/bin/python3 + env -u SOURCE_DATE_EPOCH /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j16 Bytecompiling .py files below /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/lib/python3.12 using python3.12 Not clamping source mtimes, $SOURCE_DATE_EPOCH not set + /usr/lib/rpm/redhat/brp-python-hardlink Reading /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/SPECPARTS/rpm-debuginfo.specpart Processing files: b43-tools-019-7.mga10.x86_64 Executing(%doc): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.3lncNB + umask 022 + cd /home/pterjan/rpmbuild/BUILD/b43-tools-019-build + cd b43-tools-b43-fwcutter-019 + DOCDIR=/home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/share/doc/b43-tools + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/share/doc/b43-tools + cp -pr /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/b43-tools-b43-fwcutter-019/README.assembler /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/share/doc/b43-tools + cp -pr /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/b43-tools-b43-fwcutter-019/README.debug /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/share/doc/b43-tools + cp -pr /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/b43-tools-b43-fwcutter-019/README.ssb_sprom /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/share/doc/b43-tools + cp -pr /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/b43-tools-b43-fwcutter-019/COPYING.assembler /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/share/doc/b43-tools + cp -pr /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/b43-tools-b43-fwcutter-019/COPYING.debug /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/share/doc/b43-tools + cp -pr /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/b43-tools-b43-fwcutter-019/COPYING.disassembler /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/share/doc/b43-tools + cp -pr /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/b43-tools-b43-fwcutter-019/COPYING.ssb_sprom /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT/usr/share/doc/b43-tools + RPM_EC=0 ++ jobs -p + exit 0 Provides: b43-tools = 019-7.mga10 b43-tools(x86-64) = 019-7.mga10 python3.12dist(b43-debug-tools) = 0 python3dist(b43-debug-tools) = 0 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.38)(64bit) libc.so.6(GLIBC_2.4)(64bit) python(abi) = 3.12 Processing files: b43-tools-debugsource-019-7.mga10.x86_64 Provides: b43-tools-debugsource = 019-7.mga10 b43-tools-debugsource(x86-64) = 019-7.mga10 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: b43-tools-debuginfo-019-7.mga10.x86_64 Provides: b43-tools-debuginfo = 019-7.mga10 b43-tools-debuginfo(x86-64) = 019-7.mga10 debuginfo(build-id) = 38a8de44e101f657f38c9d7b6004cf16b7087955 debuginfo(build-id) = 4c6c917eba401b5eabb82f22bd0e1fa7aac2a152 debuginfo(build-id) = d9628a046bf5cb464e301097f9d8ebfc65b49980 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: b43-tools-debugsource(x86-64) = 019-7.mga10 Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/pterjan/rpmbuild/BUILD/b43-tools-019-build/BUILDROOT Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/b43-tools-019-7.mga10.x86_64.rpm Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/b43-tools-debuginfo-019-7.mga10.x86_64.rpm Wrote: /home/pterjan/rpmbuild/RPMS/x86_64/b43-tools-debugsource-019-7.mga10.x86_64.rpm Executing(rmbuild): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.o481p7 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/b43-tools-019-build + test -d /home/pterjan/rpmbuild/BUILD/b43-tools-019-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/b43-tools-019-build + rm -rf /home/pterjan/rpmbuild/BUILD/b43-tools-019-build + RPM_EC=0 ++ jobs -p + exit 0 D: [iurt_root_command] Success!