D: [iurt_root_command] chroot warning: line 85: It's not recommended to have unversioned Obsoletes: Obsoletes: lib64GConf2_4-devel Installing /home/pterjan/rpmbuild/SRPMS/GConf2-3.2.6-21.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Xg7Q09 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf GConf-3.2.6 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/GConf-3.2.6.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + cd GConf-3.2.6 + rm -rf /home/pterjan/rpmbuild/BUILD/GConf-3.2.6-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/GConf-3.2.6-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/GConf-2.12.1-reload.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + 2to3 --write --nobackup gsettings/gsettings-schema-convert /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: Refactored gsettings/gsettings-schema-convert RefactoringTool: Files that were modified: RefactoringTool: gsettings/gsettings-schema-convert --- gsettings/gsettings-schema-convert (original) +++ gsettings/gsettings-schema-convert (refactored) @@ -398,7 +398,7 @@ def _word_to_token(self, word): lower = word.lower() - if lower and lower in self.allowed_tokens.keys(): + if lower and lower in list(self.allowed_tokens.keys()): return lower raise GSettingsSchemaConvertException('\'%s\' is not a valid token.' % lower) @@ -603,7 +603,7 @@ for line in lines: current_line_nb += 1 self.parse_line(line) - except GSettingsSchemaConvertException, e: + except GSettingsSchemaConvertException as e: raise GSettingsSchemaConvertException('%s:%s: %s' % (os.path.basename(self.file), current_line_nb, e)) return self.root @@ -711,7 +711,7 @@ schema = self._parse_schema(schema_node) for (child_schema, child_name) in schema._children: - if parent.has_key(child_schema): + if child_schema in parent: raise GSettingsSchemaConvertException('Child \'%s\' is declared by two different schemas: \'%s\' and \'%s\'.' % (child_schema, parent[child_schema], schema.id)) parent[child_schema] = schema @@ -719,7 +719,7 @@ # now let's move all schemas where they should leave for schema in schemas: - if parent.has_key(schema.id): + if schema.id in parent: parent_schema = parent[schema.id] # check that the paths of parent and child are supported by @@ -1054,31 +1054,31 @@ (options, args) = parser.parse_args() if len(args) < 1: - print >> sys.stderr, 'Need a filename to work on.' + print('Need a filename to work on.', file=sys.stderr) return 1 elif len(args) > 1: - print >> sys.stderr, 'Too many arguments.' + print('Too many arguments.', file=sys.stderr) return 1 if options.simple and options.xml: - print >> sys.stderr, 'Too many output formats requested.' + print('Too many output formats requested.', file=sys.stderr) return 1 if not options.gconf and options.gettext_domain: - print >> sys.stderr, 'Default gettext domain can only be specified when converting a gconf schema.' + print('Default gettext domain can only be specified when converting a gconf schema.', file=sys.stderr) return 1 if not options.gconf and options.schema_id: - print >> sys.stderr, 'Default schema ID can only be specified when converting a gconf schema.' + print('Default schema ID can only be specified when converting a gconf schema.', file=sys.stderr) return 1 if not options.gconf and options.keep_underscores: - print >> sys.stderr, 'The --keep-underscores option can only be specified when converting a gconf schema.' + print('The --keep-underscores option can only be specified when converting a gconf schema.', file=sys.stderr) return 1 argfile = os.path.expanduser(args[0]) if not os.path.exists(argfile): - print >> sys.stderr, '\'%s\' does not exist.' % argfile + print('\'%s\' does not exist.' % argfile, file=sys.stderr) return 1 if options.output: @@ -1095,7 +1095,7 @@ try: parser = GConfSchemaParser(argfile, options.gettext_domain, options.schema_id, options.keep_underscores) schema_root = parser.parse() - except SyntaxError, e: + except SyntaxError as e: raise GSettingsSchemaConvertException('\'%s\' does not look like a valid gconf schema file: %s' % (argfile, e)) else: # autodetect if file is XML or not @@ -1104,7 +1104,7 @@ schema_root = parser.parse() if not options.simple and not options.xml: options.simple = True - except SyntaxError, e: + except SyntaxError as e: parser = SimpleSchemaParser(argfile) schema_root = parser.parse() if not options.simple and not options.xml: @@ -1127,14 +1127,14 @@ fout = open(options.output, 'w') fout.write(output) fout.close() - except GSettingsSchemaConvertException, e: + except GSettingsSchemaConvertException as e: fout.close() if os.path.exists(options.output): os.unlink(options.output) raise e - except GSettingsSchemaConvertException, e: - print >> sys.stderr, '%s' % e + except GSettingsSchemaConvertException as e: + print('%s' % e, file=sys.stderr) return 1 return 0 + pathfix.py -pni '/usr/bin/python3 -sP' . gsettings/gsettings-schema-convert /home/pterjan/rpmbuild/tmp/rpm-tmp.Xg7Q09: line 54: pathfix.py: command not found error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.Xg7Q09 (%prep) RPM build warnings: line 85: It's not recommended to have unversioned Obsoletes: Obsoletes: lib64GConf2_4-devel RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.Xg7Q09 (%prep) I: [iurt_root_command] ERROR: chroot