86>Apr 29 09:31:18 userdel[2906595]: delete user 'rooter'
<86>Apr 29 09:31:18 userdel[2906595]: removed group 'rooter' owned by 'rooter'
<86>Apr 29 09:31:18 userdel[2906595]: removed shadow group 'rooter' owned by 'rooter'
<86>Apr 29 09:31:18 groupadd[2906610]: group added to /etc/group: name=rooter, GID=633
<86>Apr 29 09:31:18 groupadd[2906610]: group added to /etc/gshadow: name=rooter
<86>Apr 29 09:31:18 groupadd[2906610]: new group: name=rooter, GID=633
<86>Apr 29 09:31:18 useradd[2906622]: new user: name=rooter, UID=633, GID=633, home=/root, shell=/bin/bash
<86>Apr 29 09:31:18 userdel[2906644]: delete user 'builder'
<86>Apr 29 09:31:18 userdel[2906644]: removed group 'builder' owned by 'builder'
<86>Apr 29 09:31:18 userdel[2906644]: removed shadow group 'builder' owned by 'builder'
<86>Apr 29 09:31:18 groupadd[2906658]: group added to /etc/group: name=builder, GID=634
<86>Apr 29 09:31:18 groupadd[2906658]: group added to /etc/gshadow: name=builder
<86>Apr 29 09:31:18 groupadd[2906658]: new group: name=builder, GID=634
<86>Apr 29 09:31:18 useradd[2906668]: new user: name=builder, UID=634, GID=634, home=/usr/src, shell=/bin/bash
/usr/src/in/srpm/python3-module-imsvdex-2.0-alt3.src.rpm: license not found in '/usr/share/license' directory: D-FSL
/usr/src/in/srpm/python3-module-imsvdex-2.0-alt3.src.rpm: license not found in '/usr/share/license' directory: -
/usr/src/in/srpm/python3-module-imsvdex-2.0-alt3.src.rpm: license not found in '/usr/share/license' directory: German
/usr/src/in/srpm/python3-module-imsvdex-2.0-alt3.src.rpm: license not found in '/usr/share/license' directory: Free
/usr/src/in/srpm/python3-module-imsvdex-2.0-alt3.src.rpm: license not found in '/usr/share/license' directory: Software
/usr/src/in/srpm/python3-module-imsvdex-2.0-alt3.src.rpm: license not found in '/usr/share/license' directory: License
<13>Apr 29 09:31:22 rpmi: rpm-macros-python3-0.1.14-alt1 sisyphus+270922.100.1.1 1619661227 installed
<13>Apr 29 09:31:22 rpmi: libgdbm-1.8.3-alt10 1454943334 installed
<13>Apr 29 09:31:22 rpmi: libexpat-2.2.10-alt1 sisyphus+259966.100.1.1 1602824518 installed
<13>Apr 29 09:31:22 rpmi: libp11-kit-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed
<13>Apr 29 09:31:22 rpmi: libtasn1-4.16.0-alt1 sisyphus+245480.100.1.1 1580825062 installed
<13>Apr 29 09:31:22 rpmi: rpm-macros-alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed
<13>Apr 29 09:31:22 rpmi: alternatives-0.5.1-alt1 sisyphus+226946.100.1.1 1554830426 installed
<13>Apr 29 09:31:22 rpmi: ca-certificates-2021.03.24-alt1 sisyphus+268304.300.1.1 1616591829 installed
<13>Apr 29 09:31:22 rpmi: ca-trust-0.1.2-alt1 sisyphus+233348.100.1.1 1561653823 installed
<13>Apr 29 09:31:22 rpmi: p11-kit-trust-0.23.15-alt2 sisyphus+252784.100.2.2 1591274901 installed
<13>Apr 29 09:31:22 rpmi: libcrypto1.1-1.1.1k-alt1 sisyphus+268375.100.1.1 1616684255 installed
<13>Apr 29 09:31:22 rpmi: libssl1.1-1.1.1k-alt1 sisyphus+268375.100.1.1 1616684255 installed
<13>Apr 29 09:31:22 rpmi: python3-3.9.4-alt1 sisyphus+268966.100.1.1 1617609166 installed
<13>Apr 29 09:31:23 rpmi: python3-base-3.9.4-alt1 sisyphus+268966.100.1.1 1617609166 installed
<13>Apr 29 09:31:23 rpmi: libpython3-3.9.4-alt1 sisyphus+268966.100.1.1 1617609166 installed
<13>Apr 29 09:31:23 rpmi: tests-for-installed-python3-pkgs-0.1.14-alt1 sisyphus+270922.100.1.1 1619661227 installed
<13>Apr 29 09:31:23 rpmi: rpm-build-python3-0.1.14-alt1 sisyphus+270922.100.1.1 1619661227 installed
<13>Apr 29 09:31:27 rpmi: python3-module-six-1.15.0-alt1 sisyphus+255738.100.2.1 1596527214 installed
<13>Apr 29 09:31:27 rpmi: python3-module-genshi-0.7.4-alt2 sisyphus+261703.100.2.1 1605232240 installed
<13>Apr 29 09:31:27 rpmi: python3-module-webencodings-0.5.1-alt2 sisyphus+245915.200.1.1 1581496105 installed
<13>Apr 29 09:31:27 rpmi: libpython-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed
<13>Apr 29 09:31:27 rpmi: python2-base-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed
<13>Apr 29 09:31:27 rpmi: python-modules-encodings-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed
<13>Apr 29 09:31:27 rpmi: python-modules-compiler-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed
<13>Apr 29 09:31:27 rpmi: python-modules-email-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed
<13>Apr 29 09:31:27 rpmi: python-modules-unittest-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed
<13>Apr 29 09:31:28 rpmi: python-modules-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed
<13>Apr 29 09:31:28 rpmi: python-modules-ctypes-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed
<13>Apr 29 09:31:28 rpmi: python-modules-multiprocessing-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed
<13>Apr 29 09:31:28 rpmi: python-modules-logging-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed
<13>Apr 29 09:31:28 rpmi: libgpg-error-1.41-alt4 sisyphus+264254.200.1.1 1609440111 installed
<13>Apr 29 09:31:28 rpmi: libgcrypt20-1.9.2-alt1 sisyphus+266496.100.1.1 1613559234 installed
<13>Apr 29 09:31:28 rpmi: libxslt-1.1.34-alt2 sisyphus+248264.100.1.1 1584829770 installed
<13>Apr 29 09:31:28 rpmi: python3-module-html5lib-1:1.0.1-alt1 sisyphus+238807.100.2.1 1570465973 installed
<13>Apr 29 09:31:28 rpmi: python3-module-cssselect-0.9.1-alt2 sisyphus+250566.2300.6.1 1588188959 installed
<13>Apr 29 09:31:28 rpmi: python3-module-lxml-4.6.3-alt1 sisyphus+268152.100.1.1 1616388041 installed
<13>Apr 29 09:31:28 rpmi: python-tools-2to3-2.7.18-alt5 sisyphus+270920.100.1.1 1619657728 installed
Building target platforms: i586
Building for target i586
Wrote: /usr/src/in/nosrpm/python3-module-imsvdex-2.0-alt3.nosrc.rpm (w1.gzdio)
<13>Apr 29 09:31:31 rpmi: python3-module-pkg_resources-1:56.0.0-alt1 sisyphus+269911.100.2.1 1618475070 installed
<13>Apr 29 09:31:31 rpmi: libtinfo-devel-6.2.20210123-alt1 sisyphus+265425.100.1.1 1611851433 installed
<13>Apr 29 09:31:31 rpmi: libncurses-devel-6.2.20210123-alt1 sisyphus+265425.100.1.1 1611851433 installed
<13>Apr 29 09:31:31 rpmi: python3-dev-3.9.4-alt1 sisyphus+268966.100.1.1 1617609166 installed
<13>Apr 29 09:31:31 rpmi: python3-module-setuptools-1:56.0.0-alt1 sisyphus+269911.100.2.1 1618475070 installed
Installing python3-module-imsvdex-2.0-alt3.src.rpm
Building target platforms: i586
Building for target i586
Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.53880
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf python3-module-imsvdex-2.0
+ echo 'Source #0 (python3-module-imsvdex-2.0.tar):'
Source #0 (python3-module-imsvdex-2.0.tar):
+ /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-imsvdex-2.0.tar
+ cd python3-module-imsvdex-2.0
+ /bin/chmod -c -Rf u+rwX,go-w .
+ echo 'Patch #0 (port-on-python3.patch):'
Patch #0 (port-on-python3.patch):
+ /usr/bin/patch -p1
patching file imsvdex/vdex.py
+ find ./ -type f -name '*.py' -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: No changes to ./setup.py
RefactoringTool: Refactored ./imsvdex/vdex.py
RefactoringTool: No changes to ./imsvdex/tests/testDoctests.py
RefactoringTool: Refactored ./imsvdex/tests/testConverters.py
--- ./imsvdex/vdex.py (original)
+++ ./imsvdex/vdex.py (refactored)
@@ -80,7 +80,7 @@
should the term be returned in the default language
or as self.unnamed_term ?
"""
- if isinstance(matrix, basestring):
+ if isinstance(matrix, str):
raise AttributeError("This is the new imsvdex version. You "
"tried to pass the default language as "
"the matrix. Consider to use named arguments")
@@ -115,14 +115,14 @@
file = StringIO(file)
try:
self.tree = etree.parse(file)
- except (SyntaxError, ExpatError), e:
- raise VDEXError, 'Parse error in vocabulary XML: %s' % e
+ except (SyntaxError, ExpatError) as e:
+ raise VDEXError('Parse error in vocabulary XML: %s' % e)
try:
filename = file.name
except AttributeError:
filename = 'parsed XML text'
if not self.isVDEX():
- raise VDEXError, 'Vocabulary format not correct in %s' % filename
+ raise VDEXError('Vocabulary format not correct in %s' % filename)
self.order_significant = self.isOrderSignificant()
self.makeTermDict()
return self.tree
@@ -358,8 +358,8 @@
# First full iteration, get all languages
if not hasattr(self, 'tree'):
return []
- languages = filter(lambda x:x,set([x.attrib.get('language', '') \
- for x in self.tree.findall('//*')]))
+ languages = [x for x in set([x.attrib.get('language', '') \
+ for x in self.tree.findall('//*')]) if x]
languages.sort()
depth = 0
rows = []
@@ -379,11 +379,11 @@
descriptions[lang] = ""
for caption in term.findall(\
self.vdexSearchTerm('caption', 'langstring')):
- if caption.attrib.has_key('language'):
+ if 'language' in caption.attrib:
captions[caption.attrib['language']] = caption.text.strip()
for description in term.findall(\
self.vdexSearchTerm('description', 'langstring')):
- if description.attrib.has_key('language'):
+ if 'language' in description.attrib:
descriptions[description.attrib['language']] = \
description.text and description.text.strip() or ''
row['captions'] = captions
@@ -492,14 +492,14 @@
addSubElem(term, 'termIdentifier', row[row_depth])
captions = [row[x] for x in range(len(parents)-1, len(row), 2)]
descriptions = [row[x] for x in range(len(parents), len(row), 2)]
- if filter(lambda x:x,captions):
+ if [x for x in captions if x]:
caption = addSubElem(term, 'caption')
- for index, translation in filter(lambda (i,x):x,[x for x in enumerate(captions)]):
+ for index, translation in [i_x for i_x in [x for x in enumerate(captions)] if i_x[1]]:
langstring = addSubElem(caption, 'langstring', translation)
langstring.attrib['language'] = languages[index]
- if filter(lambda x:x,descriptions):
+ if [x for x in descriptions if x]:
description = addSubElem(term, 'description')
- for index, translation in filter(lambda (i,x):x,[x for x in enumerate(descriptions)]):
+ for index, translation in [i_x1 for i_x1 in [x for x in enumerate(descriptions)] if i_x1[1]]:
langstring = addSubElem(description, 'langstring', translation)
langstring.attrib['language'] = languages[index]
self.tree = etree.ElementTree(root)
--- ./imsvdex/tests/testConverters.py (original)
+++ ./imsvdex/tests/testConverters.py (refactored)
@@ -9,25 +9,25 @@
def testMatrixExport(self):
manager = VDEXManager(resource_stream(__name__,RefactoringTool: Files that were modified:
RefactoringTool: ./setup.py
RefactoringTool: ./imsvdex/vdex.py
RefactoringTool: ./imsvdex/tests/testDoctests.py
RefactoringTool: ./imsvdex/tests/testConverters.py
'test.xml'))
data = manager.exportMatrix()
- should_be = [['Level 0', 'Level 1', 'Caption de', 'Description de', 'Caption en', 'Description en', 'Caption fr', 'Description fr', 'Caption it', 'Description it'], ['identical', '', '', '', 'is identical with', '', 'est identique avec', '', u'\xe8 identico con', ''], ['relative', '', 'ist verwandt mit', '', 'is relative of', '', 'est parent avec', '', u'\xe8 parente di', ''], ['', 'child', 'ist Kind von', '', 'is child of', '', 'est enfant de', '', u'\xe8 prole di', '']]
- self.assertEquals(should_be, data)
+ should_be = [['Level 0', 'Level 1', 'Caption de', 'Description de', 'Caption en', 'Description en', 'Caption fr', 'Description fr', 'Caption it', 'Description it'], ['identical', '', '', '', 'is identical with', '', 'est identique avec', '', '\xe8 identico con', ''], ['relative', '', 'ist verwandt mit', '', 'is relative of', '', 'est parent avec', '', '\xe8 parente di', ''], ['', 'child', 'ist Kind von', '', 'is child of', '', 'est enfant de', '', '\xe8 prole di', '']]
+ self.assertEqual(should_be, data)
def testMatrixImport(self):
manager = VDEXManager(resource_stream(__name__, 'test.xml'))
matrix = manager.exportMatrix()
new_manager = VDEXManager(matrix=matrix)
- self.assertEquals(matrix, new_manager.exportMatrix())
+ self.assertEqual(matrix, new_manager.exportMatrix())
data = new_manager.serialize()
should_be_xml = '\nidenticalis identical withest identique avec\xc3\xa8 identico conrelativeist verwandt mitis relative ofest parent avec\xc3\xa8 parente dichildist Kind vonis child ofest enfant de\xc3\xa8 prole di'
obj = objectify.fromstring(should_be_xml)
should_be = etree.tostring(obj, encoding='utf-8', standalone=True)
- self.assertEquals(should_be, data)
+ self.assertEqual(should_be, data)
def testEmptyMatrix(self):
manager = VDEXManager()
matrix = manager.exportMatrix()
- self.assertEquals([], matrix)
+ self.assertEqual([], matrix)
def testOldSyntax(self):
xml = ''
+ exit 0
Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.85761
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ cd python3-module-imsvdex-2.0
+ CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic'
+ export CFLAGS
+ CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic'
+ export CXXFLAGS
+ FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic'
+ export FFLAGS
+ /usr/bin/python3 setup.py build --debug
running build
running build_py
creating build
creating build/lib
creating build/lib/imsvdex
copying imsvdex/vdex.py -> build/lib/imsvdex
copying imsvdex/__init__.py -> build/lib/imsvdex
creating build/lib/imsvdex/tests
copying imsvdex/tests/testDoctests.py -> build/lib/imsvdex/tests
copying imsvdex/tests/testConverters.py -> build/lib/imsvdex/tests
copying imsvdex/tests/__init__.py -> build/lib/imsvdex/tests
running egg_info
creating imsvdex.egg-info
writing imsvdex.egg-info/PKG-INFO
writing dependency_links to imsvdex.egg-info/dependency_links.txt
writing requirements to imsvdex.egg-info/requires.txt
writing top-level names to imsvdex.egg-info/top_level.txt
writing manifest file 'imsvdex.egg-info/SOURCES.txt'
reading manifest file 'imsvdex.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'imsvdex.egg-info/SOURCES.txt'
copying imsvdex/vdex.txt -> build/lib/imsvdex
copying imsvdex/tests/test.xml -> build/lib/imsvdex/tests
+ exit 0
Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.65511
+ umask 022
+ /bin/mkdir -p /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-imsvdex-buildroot
+ :
+ /bin/rm -rf -- /usr/src/tmp/python3-module-imsvdex-buildroot
+ PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games
+ cd python3-module-imsvdex-2.0
+ CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic'
+ export CFLAGS
+ CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic'
+ export CXXFLAGS
+ FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586 -mtune=generic'
+ export FFLAGS
+ /usr/bin/python3 setup.py install --skip-build --root=/usr/src/tmp/python3-module-imsvdex-buildroot --force
running install
running install_lib
creating /usr/src/tmp/python3-module-imsvdex-buildroot
creating /usr/src/tmp/python3-module-imsvdex-buildroot/usr
creating /usr/src/tmp/python3-module-imsvdex-buildroot/usr/lib
creating /usr/src/tmp/python3-module-imsvdex-buildroot/usr/lib/python3
creating /usr/src/tmp/python3-module-imsvdex-buildroot/usr/lib/python3/site-packages
creating /usr/src/tmp/python3-module-imsvdex-buildroot/usr/lib/python3/site-packages/imsvdex
copying build/lib/imsvdex/vdex.txt -> /usr/src/tmp/python3-module-imsvdex-buildroot/usr/lib/python3/site-packages/imsvdex
creating /usr/src/tmp/python3-module-imsvdex-buildroot/usr/lib/python3/site-packages/imsvdex/tests
copying build/lib/imsvdex/tests/test.xml -> /usr/src/tmp/python3-module-imsvdex-buildroot/usr/lib/python3/site-packages/imsvdex/tests
copying build/lib/imsvdex/tests/__init__.py -> /usr/src/tmp/python3-module-imsvdex-buildroot/usr/lib/python3/site-packages/imsvdex/tests
copying build/lib/imsvdex/tests/testConverters.py -> /usr/src/tmp/python3-module-imsvdex-buildroot/usr/lib/python3/site-packages/imsvdex/tests
copying build/lib/imsvdex/tests/testDoctests.py -> /usr/src/tmp/python3-module-imsvdex-buildroot/usr/lib/python3/site-packages/imsvdex/tests
copying build/lib/imsvdex/__init__.py -> /usr/src/tmp/python3-module-imsvdex-buildroot/usr/lib/python3/site-packages/imsvdex
copying build/lib/imsvdex/vdex.py -> /usr/src/tmp/python3-module-imsvdex-buildroot/usr/lib/python3/site-packages/imsvdex
byte-compiling /usr/src/tmp/python3-module-imsvdex-buildroot/usr/lib/python3/site-packages/imsvdex/tests/__init__.py to __init__.cpython-39.pyc
byte-compiling /usr/src/tmp/python3-module-imsvdex-buildroot/usr/lib/python3/site-packages/imsvdex/tests/testConverters.py to testConverters.cpython-39.pyc
byte-compiling /usr/src/tmp/python3-module-imsvdex-buildroot/usr/lib/python3/site-packages/imsvdex/tests/testDoctests.py to testDoctests.cpython-39.pyc
byte-compiling /usr/src/tmp/python3-module-imsvdex-buildroot/usr/lib/python3/site-packages/imsvdex/__init__.py to __init__.cpython-39.pyc
byte-compiling /usr/src/tmp/python3-module-imsvdex-buildroot/usr/lib/python3/site-packages/imsvdex/vdex.py to vdex.cpython-39.pyc
running install_egg_info
running egg_info
writing imsvdex.egg-info/PKG-INFO
writing dependency_links to imsvdex.egg-info/dependency_links.txt
writing requirements to imsvdex.egg-info/requires.txt
writing top-level names to imsvdex.egg-info/top_level.txt
reading manifest file 'imsvdex.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'imsvdex.egg-info/SOURCES.txt'
Copying imsvdex.egg-info to /usr/src/tmp/python3-module-imsvdex-buildroot/usr/lib/python3/site-packages/imsvdex-2.0.dev0-py3.9.egg-info
running install_scripts
+ /usr/lib/rpm/brp-alt
Cleaning files in /usr/src/tmp/python3-module-imsvdex-buildroot (auto)
Verifying and fixing files in /usr/src/tmp/python3-module-imsvdex-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig)
Checking contents of files in /usr/src/tmp/python3-module-imsvdex-buildroot/ (default)
Compressing files in /usr/src/tmp/python3-module-imsvdex-buildroot (auto)
Adjusting library links in /usr/src/tmp/python3-module-imsvdex-buildroot
./usr/lib: (from :0)
Verifying ELF objects in /usr/src/tmp/python3-module-imsvdex-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal)
Bytecompiling python modules in /usr/src/tmp/python3-module-imsvdex-buildroot using /usr/bin/python2.7
/usr/bin/python2.7: can't open file '/usr/lib/rpm/python.compileall.py': [Errno 2] No such file or directory
error: Bad exit status from /usr/src/tmp/rpm-tmp.65511 (%install)
RPM build errors:
Bad exit status from /usr/src/tmp/rpm-tmp.65511 (%install)
Command exited with non-zero status 1
4.71user 0.44system 0:05.09elapsed 101%CPU (0avgtext+0avgdata 19056maxresident)k
0inputs+0outputs (0major+59701minor)pagefaults 0swaps
hsh-rebuild: rebuild of `python3-module-imsvdex-2.0-alt3.src.rpm' failed.
Command exited with non-zero status 1
16.79user 7.54system 0:23.09elapsed 105%CPU (0avgtext+0avgdata 110168maxresident)k
0inputs+0outputs (0major+469861minor)pagefaults 0swaps