<86>Nov 9 09:55:04 userdel[3564]: delete user 'rooter' <86>Nov 9 09:55:04 userdel[3564]: removed group 'rooter' owned by 'rooter' <86>Nov 9 09:55:04 userdel[3564]: removed shadow group 'rooter' owned by 'rooter' <86>Nov 9 09:55:04 groupadd[3595]: group added to /etc/group: name=rooter, GID=549 <86>Nov 9 09:55:04 groupadd[3595]: group added to /etc/gshadow: name=rooter <86>Nov 9 09:55:04 groupadd[3595]: new group: name=rooter, GID=549 <86>Nov 9 09:55:04 useradd[3619]: new user: name=rooter, UID=549, GID=549, home=/root, shell=/bin/bash <86>Nov 9 09:55:04 userdel[3656]: delete user 'builder' <86>Nov 9 09:55:04 userdel[3656]: removed group 'builder' owned by 'builder' <86>Nov 9 09:55:04 userdel[3656]: removed shadow group 'builder' owned by 'builder' <86>Nov 9 09:55:04 groupadd[3682]: group added to /etc/group: name=builder, GID=550 <86>Nov 9 09:55:04 groupadd[3682]: group added to /etc/gshadow: name=builder <86>Nov 9 09:55:04 groupadd[3682]: new group: name=builder, GID=550 <86>Nov 9 09:55:04 useradd[3702]: new user: name=builder, UID=550, GID=550, home=/usr/src, shell=/bin/bash <13>Nov 9 09:55:08 rpmi: libverto-0.3.0-alt1_7 sisyphus+225932.100.1.1 1553994919 installed <13>Nov 9 09:55:08 rpmi: libtinfo-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Nov 9 09:55:08 rpmi: libkeyutils-1.6-alt2 sisyphus+226520.100.2.1 1554512089 installed <13>Nov 9 09:55:08 rpmi: libgdbm-1.8.3-alt10 1454943334 installed <13>Nov 9 09:55:08 rpmi: libcom_err-1.44.6-alt1 sisyphus+224154.100.1.1 1552091678 installed <13>Nov 9 09:55:08 rpmi: libp11-kit-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Nov 9 09:55:08 rpmi: libtasn1-4.14-alt1 sisyphus+235791.100.1.1 1565282372 installed <13>Nov 9 09:55:08 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Nov 9 09:55:08 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed <13>Nov 9 09:55:08 rpmi: ca-certificates-2019.10.28-alt1 sisyphus+239875.300.1.1 1572267834 installed <13>Nov 9 09:55:08 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed <13>Nov 9 09:55:08 rpmi: p11-kit-trust-0.23.15-alt1 sisyphus+226408.100.2.1 1554288204 installed <13>Nov 9 09:55:08 rpmi: libcrypto1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235729 installed <13>Nov 9 09:55:08 rpmi: libssl1.1-1.1.1d-alt1.1 sisyphus+237931.100.2.1 1569235729 installed <86>Nov 9 09:55:08 groupadd[11452]: group added to /etc/group: name=_keytab, GID=499 <86>Nov 9 09:55:08 groupadd[11452]: group added to /etc/gshadow: name=_keytab <86>Nov 9 09:55:08 groupadd[11452]: new group: name=_keytab, GID=499 <13>Nov 9 09:55:08 rpmi: libkrb5-1.16.3-alt1 sisyphus+223678.100.1.1 1551746516 installed <13>Nov 9 09:55:08 rpmi: libtirpc-1.0.3-alt1 1532008017 installed <13>Nov 9 09:55:08 rpmi: libnsl2-1.1.0-alt1_1 1511548749 installed <13>Nov 9 09:55:08 rpmi: python-modules-encodings-2.7.17-alt1 sisyphus+240064.1100.11.1 1573147551 installed <13>Nov 9 09:55:09 rpmi: python-modules-compiler-2.7.17-alt1 sisyphus+240064.1100.11.1 1573147551 installed <13>Nov 9 09:55:09 rpmi: python-modules-email-2.7.17-alt1 sisyphus+240064.1100.11.1 1573147551 installed <13>Nov 9 09:55:09 rpmi: python-modules-unittest-2.7.17-alt1 sisyphus+240064.1100.11.1 1573147551 installed <13>Nov 9 09:55:09 rpmi: python-modules-nis-2.7.17-alt1 sisyphus+240064.1100.11.1 1573147551 installed <13>Nov 9 09:55:09 rpmi: python-modules-2.7.17-alt1 sisyphus+240064.1100.11.1 1573147551 installed <13>Nov 9 09:55:09 rpmi: python-modules-ctypes-2.7.17-alt1 sisyphus+240064.1100.11.1 1573147551 installed <13>Nov 9 09:55:09 rpmi: python-modules-multiprocessing-2.7.17-alt1 sisyphus+240064.1100.11.1 1573147551 installed <13>Nov 9 09:55:09 rpmi: python-modules-logging-2.7.17-alt1 sisyphus+240064.1100.11.1 1573147551 installed <13>Nov 9 09:55:09 rpmi: python-tools-2to3-2.7.17-alt1 sisyphus+240064.1100.11.1 1573147551 installed <13>Nov 9 09:55:09 rpmi: libncurses-devel-6.1.20180407-alt2 sisyphus+222164.200.1.1 1550686226 installed <13>Nov 9 09:55:09 rpmi: libreadline-devel-7.0.3-alt3 sisyphus+222164.300.1.1 1550686330 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/mathomatic-16.0.5-alt3.nosrc.rpm Installing mathomatic-16.0.5-alt3.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.97946 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf mathomatic-16.0.5 + echo 'Source #0 (mathomatic-16.0.5.tar.bz2):' Source #0 (mathomatic-16.0.5.tar.bz2): + /bin/bzip2 -dc /usr/src/RPM/SOURCES/mathomatic-16.0.5.tar.bz2 + /bin/tar -xf - + cd mathomatic-16.0.5 + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #0 (mathomatic-16.0.1-m4.patch):' Patch #0 (mathomatic-16.0.1-m4.patch): + /usr/bin/patch -p1 patching file m4/matho patching file makefile Hunk #1 succeeded at 246 (offset 3 lines). + sed -i s/-Cv// makefile + sed -i s/-Cv// primes/makefile + find -type f '(' -name matho-mult -o -name matho-sum -o -name primorial -o -name factorial ')' -exec 2to3 -w -n '{}' + RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored ./primes/primorial RefactoringTool: Refactored ./primes/matho-sum RefactoringTool: Refactored ./primes/matho-mult RefactoringTool: Refactored ./examples/factorial RefactoringTool: Files that were modified: RefactoringTool: ./primes/primorial RefactoringTool: ./primes/matho-sum RefactoringTool: ./primes/matho-mult RefactoringTool: ./examples/factorial --- ./primes/primorial (original) +++ ./primes/primorial (refactored) @@ -16,11 +16,11 @@ import sys def usage(ev): - print "This program calculates large primorials." - print - print "Usage: %s integers" % os.path.basename(sys.argv[0]) - print - print "A primorial is the product of all primes up to the given number." + print("This program calculates large primorials.") + print() + print("Usage: %s integers" % os.path.basename(sys.argv[0])) + print() + print("A primorial is the product of all primes up to the given number.") sys.exit(ev) def output_primorial(arg): @@ -36,9 +36,9 @@ for arg in args: try: if (int(arg) < 1): - print >>sys.stderr, "Number too small." + print("Number too small.", file=sys.stderr) sys.exit(1) except: - print >>sys.stderr, "Positive integer required." + print("Positive integer required.", file=sys.stderr) usage(1) output_primorial(arg) --- ./primes/matho-sum (original) +++ ./primes/matho-sum (refactored) @@ -12,7 +12,7 @@ # read stdin if no command line args while True: try: - input_line = raw_input() + input_line = input() except: break; for s in string.split(input_line): @@ -21,4 +21,4 @@ # sum together the command-line args for arg in args: sum += int(arg) -print sum +print(sum) --- ./primes/matho-mult (original) +++ ./primes/matho-mult (refactored) @@ -15,7 +15,7 @@ # read stdin if no command line args while True: try: - input_line = raw_input() + input_line = input() except: break; for s in string.split(input_line): @@ -24,4 +24,4 @@ # multiply together the command-line args for arg in args: prod *= int(arg) -print prod +print(prod) --- ./examples/factorial (original) +++ ./examples/factorial (refactored) @@ -8,13 +8,13 @@ import string def usage(): - print "This program calculates large factorials." - print "Requires and tests \"fact.py\"." - print - print "Usage: %s integer_expressions" % os.path.basename(sys.argv[0]) - print - print "The integer expressions should be separated by spaces." - print "A factorial is the product of all positive integers <= a given integer." + print("This program calculates large factorials.") + print("Requires and tests \"fact.py\".") + print() + print("Usage: %s integer_expressions" % os.path.basename(sys.argv[0])) + print() + print("The integer expressions should be separated by spaces.") + print("A factorial is the product of all positive integers <= a given integer.") sys.exit(2) args = sys.argv[1:] @@ -23,8 +23,8 @@ else: try: num = eval(string.join(args)) - print "factorial(", num, ") =", factorial(num) + print("factorial(", num, ") =", factorial(num)) except: for arg in args: num = eval(arg) - print "factorial(", num, ") =", factorial(num) + print("factorial(", num, ") =", factorial(num)) ++ find ./ -type f '(' -name matho-mult -o -name matho-sum -o -name primorial -o -name factorial ')' + sed -i 's|#!/usr/bin/python|#!/usr/bin/python3|' ./primes/primorial ./primes/matho-sum ./primes/matho-mult ./examples/factorial + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.264 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd mathomatic-16.0.5 + make -j8 READLINE=1 mathdocdir=/usr/share/doc/mathomatic-16.0.5 make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o globals.o globals.c make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o main.o main.c make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o parse.o parse.c make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o am.o am.c make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o unfactor.o unfactor.c make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o solve.o solve.c make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o super.o super.c make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o diff.o diff.c In file included from includes.h:114, from diff.c:25: diff.c: In function 'limit_cmd': diff.c:828:46: warning: '%s' directive output may be truncated writing up to 179 bytes into a region of size 77 [-Wformat-truncation=] 828 | snprintf(prompt_str, sizeof(prompt_str), _("as %s goes to: "), var_str); | ^~~~~~~~~~~~~~~~~ am.h:51:17: note: in definition of macro '_' 51 | #define _(str) str /* Constant strings to be translated should be marked with this macro. */ | ^~~ diff.c:828:50: note: format string is defined here 828 | snprintf(prompt_str, sizeof(prompt_str), _("as %s goes to: "), var_str); | ^~ In file included from /usr/include/stdio.h:862, from includes.h:69, from diff.c:25: /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 14 and 193 bytes into a destination of size 80 64 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 65 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o complex_lib.o complex_lib.c make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o complex.o complex.c make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o help.o help.c make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o factor_int.o factor_int.c make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o poly.o poly.c make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o gcd.o gcd.c make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o factor.o factor.c make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o integrate.o integrate.c make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o simplify.o simplify.c make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o list.o list.c list.c: In function 'list_code.constprop': list.c:945:38: warning: ')' directive output may be truncated writing 1 byte into a region of size between 0 and 499 [-Wformat-truncation=] 945 | snprintf(buf2, sizeof(buf2), "(%s)", buf); | ^ In file included from /usr/include/stdio.h:862, from includes.h:69, from list.c:26: /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 3 and 502 bytes into a destination of size 500 64 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 65 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ list.c: In function 'list_string_sub.constprop': list.c:691:38: warning: ')' directive output may be truncated writing 1 byte into a region of size between 0 and 499 [-Wformat-truncation=] 691 | snprintf(buf2, sizeof(buf2), "(%s)", buf); | ^ In file included from /usr/include/stdio.h:862, from includes.h:69, from list.c:26: /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 3 and 502 bytes into a destination of size 500 64 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 65 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ list.c: In function 'list_string_sub.constprop': list.c:691:38: warning: ')' directive output may be truncated writing 1 byte into a region of size between 0 and 499 [-Wformat-truncation=] 691 | snprintf(buf2, sizeof(buf2), "(%s)", buf); | ^ In file included from /usr/include/stdio.h:862, from includes.h:69, from list.c:26: /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 3 and 502 bytes into a destination of size 500 64 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 65 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ list.c: In function 'list_string_sub': list.c:691:38: warning: ')' directive output may be truncated writing 1 byte into a region of size between 0 and 499 [-Wformat-truncation=] 691 | snprintf(buf2, sizeof(buf2), "(%s)", buf); | ^ In file included from /usr/include/stdio.h:862, from includes.h:69, from list.c:26: /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 3 and 502 bytes into a destination of size 500 64 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 65 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ list.c: In function 'list_code': list.c:945:38: warning: ')' directive output may be truncated writing 1 byte into a region of size between 0 and 499 [-Wformat-truncation=] 945 | snprintf(buf2, sizeof(buf2), "(%s)", buf); | ^ In file included from /usr/include/stdio.h:862, from includes.h:69, from list.c:26: /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 3 and 502 bytes into a destination of size 500 64 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 65 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE -c -o cmds.o cmds.c cmds.c: In function 'sum_product': cmds.c:722:45: warning: '%s' directive output may be truncated writing up to 179 bytes into a region of size 80 [-Wformat-truncation=] 722 | snprintf(prompt_str, sizeof(prompt_str), "%s = ", var_str); | ^~ ~~~~~~~ In file included from /usr/include/stdio.h:862, from includes.h:69, from cmds.c:25: /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 4 and 183 bytes into a destination of size 80 64 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 65 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from includes.h:114, from cmds.c:25: cmds.c: In function 'calculate_cmd': cmds.c:2374:47: warning: '%s' directive output may be truncated writing up to 179 bytes into a region of size 74 [-Wformat-truncation=] 2374 | snprintf(prompt_str, sizeof(prompt_str), _("Enter %s: "), var_str); | ^~~~~~~~~~~~ am.h:51:17: note: in definition of macro '_' 51 | #define _(str) str /* Constant strings to be translated should be marked with this macro. */ | ^~~ cmds.c:2374:54: note: format string is defined here 2374 | snprintf(prompt_str, sizeof(prompt_str), _("Enter %s: "), var_str); | ^~ In file included from /usr/include/stdio.h:862, from includes.h:69, from cmds.c:25: /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 9 and 188 bytes into a destination of size 80 64 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 65 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from includes.h:114, from cmds.c:25: cmds.c:2393:47: warning: '%s' directive output may be truncated writing up to 179 bytes into a region of size 66 [-Wformat-truncation=] 2393 | snprintf(prompt_str, sizeof(prompt_str), _("Enter initial %s: "), var_str); | ^~~~~~~~~~~~~~~~~~~~ am.h:51:17: note: in definition of macro '_' 51 | #define _(str) str /* Constant strings to be translated should be marked with this macro. */ | ^~~ cmds.c:2393:62: note: format string is defined here 2393 | snprintf(prompt_str, sizeof(prompt_str), _("Enter initial %s: "), var_str); | ^~ In file included from /usr/include/stdio.h:862, from includes.h:69, from cmds.c:25: /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 17 and 196 bytes into a destination of size 80 64 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 65 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from includes.h:114, from cmds.c:25: cmds.c: In function 'replace_cmd': cmds.c:3809:46: warning: '%s' directive output may be truncated writing up to 179 bytes into a region of size 74 [-Wformat-truncation=] 3809 | snprintf(prompt_str, sizeof(prompt_str), _("Enter %s: "), var_str); | ^~~~~~~~~~~~ am.h:51:17: note: in definition of macro '_' 51 | #define _(str) str /* Constant strings to be translated should be marked with this macro. */ | ^~~ cmds.c:3809:53: note: format string is defined here 3809 | snprintf(prompt_str, sizeof(prompt_str), _("Enter %s: "), var_str); | ^~ In file included from /usr/include/stdio.h:862, from includes.h:69, from cmds.c:25: /usr/include/bits/stdio2.h:64:10: note: '__builtin___snprintf_chk' output between 9 and 188 bytes into a destination of size 80 64 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 65 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' cc -O3 -Wall -Wshadow -Wno-char-subscripts -fexceptions -DUNIX -DVERSION=\"`cat VERSION`\" -DREADLINE main.o globals.o am.o solve.o help.o parse.o cmds.o simplify.o factor.o super.o unfactor.o poly.o diff.o integrate.o complex.o complex_lib.o list.o gcd.o factor_int.o -lm -lreadline -o mathomatic ./mathomatic successfully created. make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' + make -j8 -C primes READLINE=1 mathdocdir=/usr/share/doc/mathomatic-16.0.5 make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5/primes' cc -O3 -Wall -Wshadow -Wno-char-subscripts -c -o lsqrt.o lsqrt.c make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5/primes' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5/primes' cc -O3 -Wall -Wshadow -Wno-char-subscripts -c -o matho-sumsq.o matho-sumsq.c make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5/primes' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5/primes' cc -O3 -Wall -Wshadow -Wno-char-subscripts matho-sumsq.o lsqrt.o -lm -o matho-sumsq make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5/primes' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5/primes' cc -O3 -Wall -Wshadow -Wno-char-subscripts matho-pascal.c -lm -o matho-pascal make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5/primes' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5/primes' cc -O3 -Wall -Wshadow -Wno-char-subscripts matho-primes.c -lm -o matho-primes make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5/primes' make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5/primes' Prime Number Tools successfully created. make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5/primes' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.97988 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/mathomatic-buildroot + : + /bin/rm -rf -- /usr/src/tmp/mathomatic-buildroot + cd mathomatic-16.0.5 + /usr/bin/make 'INSTALL=/bin/install -p' prefix=/usr/src/tmp/mathomatic-buildroot/usr exec_prefix=/usr/src/tmp/mathomatic-buildroot/usr bindir=/usr/src/tmp/mathomatic-buildroot/usr/bin sbindir=/usr/src/tmp/mathomatic-buildroot/usr/sbin sysconfdir=/usr/src/tmp/mathomatic-buildroot/etc datadir=/usr/src/tmp/mathomatic-buildroot/usr/share includedir=/usr/src/tmp/mathomatic-buildroot/usr/include libdir=/usr/src/tmp/mathomatic-buildroot/usr/lib libexecdir=/usr/src/tmp/mathomatic-buildroot/usr/lib localstatedir=/usr/src/tmp/mathomatic-buildroot/var/lib sharedstatedir=/usr/src/tmp/mathomatic-buildroot/var/lib mandir=/usr/src/tmp/mathomatic-buildroot/usr/share/man infodir=/usr/src/tmp/mathomatic-buildroot/usr/share/info install m4install mathdocdir=/usr/src/tmp/mathomatic-buildroot/usr/share/doc/mathomatic-16.0.5 make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' /bin/install -p -d /usr/src/tmp/mathomatic-buildroot/usr/bin /bin/install -p -d /usr/src/tmp/mathomatic-buildroot/usr/share/applications /bin/install -p -d /usr/src/tmp/mathomatic-buildroot/usr/share/pixmaps /bin/install -p -d /usr/src/tmp/mathomatic-buildroot/usr/share/man/man1 /bin/install -p mathomatic /usr/src/tmp/mathomatic-buildroot/usr/bin /bin/install -p -m 0644 icons/mathomatic.desktop /usr/src/tmp/mathomatic-buildroot/usr/share/applications /bin/install -p -m 0644 icons/mathomatic.png icons/mathomatic.xpm /usr/src/tmp/mathomatic-buildroot/usr/share/pixmaps /bin/install -p -m 0644 mathomatic.1 /usr/src/tmp/mathomatic-buildroot/usr/share/man/man1 Installing docs... /bin/install -p -d /usr/src/tmp/mathomatic-buildroot/usr/share/doc/mathomatic-16.0.5 /bin/install -p -d /usr/src/tmp/mathomatic-buildroot/usr/share/doc/mathomatic-16.0.5/html /bin/install -p -d /usr/src/tmp/mathomatic-buildroot/usr/share/doc/mathomatic-16.0.5/tests /bin/install -p -d /usr/src/tmp/mathomatic-buildroot/usr/share/doc/mathomatic-16.0.5/examples /bin/install -p -m 0644 VERSION AUTHORS COPYING README.txt NEWS /usr/src/tmp/mathomatic-buildroot/usr/share/doc/mathomatic-16.0.5 /bin/install -p -m 0644 doc/* /usr/src/tmp/mathomatic-buildroot/usr/share/doc/mathomatic-16.0.5/html /bin/install -p -m 0644 *.pdf /usr/src/tmp/mathomatic-buildroot/usr/share/doc/mathomatic-16.0.5 /bin/install: cannot stat '*.pdf': No such file or directory make: [makefile:296: docinstall] Error 1 (ignored) /bin/install -p -m 0644 tests/* /usr/src/tmp/mathomatic-buildroot/usr/share/doc/mathomatic-16.0.5/tests /bin/install -p -m 0644 examples/* /usr/src/tmp/mathomatic-buildroot/usr/share/doc/mathomatic-16.0.5/examples Mathomatic is installed. /bin/install -p -d /usr/src/tmp/mathomatic-buildroot/usr/share/mathomatic /bin/install -p -d /usr/src/tmp/mathomatic-buildroot/usr/share/mathomatic/m4 echo '#!/bin/sh' >/usr/src/tmp/mathomatic-buildroot/usr/bin/matho echo '# Shell script to run Mathomatic with the GNU m4 preprocessor.' >>/usr/src/tmp/mathomatic-buildroot/usr/bin/matho echo '# This allows entry of many standard math functions.' >>/usr/src/tmp/mathomatic-buildroot/usr/bin/matho echo '#' >>/usr/src/tmp/mathomatic-buildroot/usr/bin/matho echo '# Usage: matho [ input_files ]' >>/usr/src/tmp/mathomatic-buildroot/usr/bin/matho echo >>/usr/src/tmp/mathomatic-buildroot/usr/bin/matho echo 'if ! m4 --version >/dev/null' >>/usr/src/tmp/mathomatic-buildroot/usr/bin/matho echo 'then' >>/usr/src/tmp/mathomatic-buildroot/usr/bin/matho echo ' echo The m4 package is not installed. GNU m4 is required to run m4 Mathomatic.' >>/usr/src/tmp/mathomatic-buildroot/usr/bin/matho echo ' exit 1' >>/usr/src/tmp/mathomatic-buildroot/usr/bin/matho echo 'fi' >>/usr/src/tmp/mathomatic-buildroot/usr/bin/matho echo >>/usr/src/tmp/mathomatic-buildroot/usr/bin/matho echo 'm4 -iP -- /usr/src/tmp/mathomatic-buildroot/usr/share/mathomatic/m4/functions.m4 "$@" - | mathomatic -ru -s-1' >>/usr/src/tmp/mathomatic-buildroot/usr/bin/matho chmod 0755 /usr/src/tmp/mathomatic-buildroot/usr/bin/matho /bin/install -p m4/rmath /usr/src/tmp/mathomatic-buildroot/usr/bin /bin/install -p -m 0644 rmath.1 /usr/src/tmp/mathomatic-buildroot/usr/share/man/man1 cd /usr/src/tmp/mathomatic-buildroot/usr/share/man/man1 && ln -sf rmath.1 matho.1 /bin/install -p -m 0644 m4/functions.m4 m4/degrees.m4 m4/gradians.m4 /usr/src/tmp/mathomatic-buildroot/usr/share/mathomatic/m4 m4 Mathomatic install completed. make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' + /usr/bin/make 'INSTALL=/bin/install -p' prefix=/usr/src/tmp/mathomatic-buildroot/usr exec_prefix=/usr/src/tmp/mathomatic-buildroot/usr bindir=/usr/src/tmp/mathomatic-buildroot/usr/bin sbindir=/usr/src/tmp/mathomatic-buildroot/usr/sbin sysconfdir=/usr/src/tmp/mathomatic-buildroot/etc datadir=/usr/src/tmp/mathomatic-buildroot/usr/share includedir=/usr/src/tmp/mathomatic-buildroot/usr/include libdir=/usr/src/tmp/mathomatic-buildroot/usr/lib libexecdir=/usr/src/tmp/mathomatic-buildroot/usr/lib localstatedir=/usr/src/tmp/mathomatic-buildroot/var/lib sharedstatedir=/usr/src/tmp/mathomatic-buildroot/var/lib mandir=/usr/src/tmp/mathomatic-buildroot/usr/share/man infodir=/usr/src/tmp/mathomatic-buildroot/usr/share/info install -C primes make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5/primes' /bin/install -p -d /usr/src/tmp/mathomatic-buildroot/usr/bin /bin/install -p -d /usr/src/tmp/mathomatic-buildroot/usr/share/man/man1 /bin/install -p matho-primes matho-pascal matho-sumsq primorial matho-mult matho-sum /usr/src/tmp/mathomatic-buildroot/usr/bin /bin/install -p -m 0644 matho-primes.1 matho-pascal.1 matho-sumsq.1 primorial.1 matho-mult.1 matho-sum.1 /usr/src/tmp/mathomatic-buildroot/usr/share/man/man1 The Prime Number Tools are installed. make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5/primes' + install -D icons/mathomatic.png /usr/src/tmp/mathomatic-buildroot/usr/share/icons/hicolor/32x32/apps/mathomatic.png + sed -i s@/usr/src/tmp/mathomatic-buildroot@@ /usr/src/tmp/mathomatic-buildroot//usr/bin/matho + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/mathomatic-buildroot (auto) Verifying and fixing files in /usr/src/tmp/mathomatic-buildroot (binconfig,pkgconfig,libtool,desktop) Checking contents of files in /usr/src/tmp/mathomatic-buildroot/ (default) Compressing files in /usr/src/tmp/mathomatic-buildroot (auto) removed '/usr/src/tmp/mathomatic-buildroot/usr/share/man/man1/matho.1' '/usr/src/tmp/mathomatic-buildroot/usr/share/man/man1/matho.1.xz' -> 'rmath.1.xz' Verifying ELF objects in /usr/src/tmp/mathomatic-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) verify-elf: WARNING: ./usr/bin/mathomatic: uses non-LFS functions: fopen mkstemp Bytecompiling python modules in /usr/src/tmp/mathomatic-buildroot using /usr/bin/python Bytecompiling python modules with optimization in /usr/src/tmp/mathomatic-buildroot using /usr/bin/python -O Hardlinking identical .pyc and .pyo files Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.94725 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd mathomatic-16.0.5 + make test make: Entering directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' Testing ./mathomatic (Mathomatic version 16.0.5) cd tests && time -p ../mathomatic -t all 0<&- >test.out && diff -u --strip-trailing-cr all.out test.out && rm test.out && cd .. real 2.62 user 1.82 sys 0.00 All tests passed 100% correctly. make: Leaving directory '/usr/src/RPM/BUILD/mathomatic-16.0.5' + exit 0 Processing files: mathomatic-16.0.5-alt3 Executing(%doc): /bin/sh -e /usr/src/tmp/rpm-tmp.56779 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd mathomatic-16.0.5 + DOCDIR=/usr/src/tmp/mathomatic-buildroot/usr/share/doc/mathomatic-16.0.5 + export DOCDIR + rm -rf /usr/src/tmp/mathomatic-buildroot/usr/share/doc/mathomatic-16.0.5 + /bin/mkdir -p /usr/src/tmp/mathomatic-buildroot/usr/share/doc/mathomatic-16.0.5 + cp -prL CMakeLists.txt INSTALL.txt README.txt changes.txt changes_series_15.txt doc tests m4 /usr/src/tmp/mathomatic-buildroot/usr/share/doc/mathomatic-16.0.5 + chmod -R go-w /usr/src/tmp/mathomatic-buildroot/usr/share/doc/mathomatic-16.0.5 + chmod -R a+rX /usr/src/tmp/mathomatic-buildroot/usr/share/doc/mathomatic-16.0.5 + exit 0 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.xzvSeJ find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.JqBpUP find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks) shebang.req: /usr/src/tmp/mathomatic-buildroot/usr/bin/matho-mult: /usr/bin/python3 -> /usr/bin/python3 (raw, not installed) shebang.req: /usr/src/tmp/mathomatic-buildroot/usr/bin/matho-sum: /usr/bin/python3 -> /usr/bin/python3 (raw, not installed) shebang.req: /usr/src/tmp/mathomatic-buildroot/usr/bin/primorial: /usr/bin/python3 -> /usr/bin/python3 (raw, not installed) find-requires: FINDPACKAGE-COMMANDS: m4 rlwrap Requires: /bin/sh, /lib/ld-linux.so.2, /usr/bin/python3, libc.so.6(GLIBC_2.0), libc.so.6(GLIBC_2.1), libc.so.6(GLIBC_2.11), libc.so.6(GLIBC_2.3), libc.so.6(GLIBC_2.3.4), libc.so.6(GLIBC_2.4), libm.so.6(GLIBC_2.0), libm.so.6(GLIBC_2.1), libreadline.so.7 >= set:njCJKlFc0RzB8yuidtd9ZiMw8N5, m4, rlwrap, rtld(GNU_HASH) Requires(rpmlib): rpmlib(SetVersions) Finding debuginfo files (using /usr/lib/rpm/find-debuginfo-files) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.8YjbUp Creating mathomatic-debuginfo package Processing files: mathomatic-debuginfo-16.0.5-alt3 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.Fi8JOq find-provides: running scripts (debuginfo) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.LXT2zY find-requires: running scripts (debuginfo) Requires: mathomatic = 16.0.5-alt3, /usr/lib/debug/lib/ld-linux.so.2.debug, debug(libc.so.6), debug(libm.so.6), debug(libreadline.so.7) Adding to mathomatic-debuginfo a strict dependency on mathomatic Wrote: /usr/src/RPM/RPMS/i586/mathomatic-16.0.5-alt3.i586.rpm Wrote: /usr/src/RPM/RPMS/i586/mathomatic-debuginfo-16.0.5-alt3.i586.rpm 30.48user 2.95system 0:26.39elapsed 126%CPU (0avgtext+0avgdata 44664maxresident)k 0inputs+0outputs (0major+491545minor)pagefaults 0swaps 38.67user 8.34system 0:40.51elapsed 116%CPU (0avgtext+0avgdata 110528maxresident)k 0inputs+0outputs (0major+825759minor)pagefaults 0swaps