基本信息
源码地址:
openstack-neutron: Neutron is an OpenStack project to provide "network connectivity as a service" between interface devices (e.g., vNICs) managed by other OpenStack services - Gitee.com
git clone -b Multi-Version_OpenStack-Wallaby_openEuler-22.03-LTS https://gitee.com/src-openeuler/openstack-neutron.git
依赖
yum-builddep -y openstack-neutron.spec
没有匹配的软件包可以安装: 'python3-keystoneauth1 >= 3.14.0'
没有匹配的软件包可以安装: 'python3-keystonemiddleware'
没有匹配的软件包可以安装: 'python3-neutron-lib'
没有匹配的软件包可以安装: 'python3-novaclient'
没有匹配的软件包可以安装: 'python3-os-vif'
没有匹配的软件包可以安装: 'python3-oslo-cache'
没有匹配的软件包可以安装: 'python3-oslo-concurrency'
没有匹配的软件包可以安装: 'python3-oslo-config'
没有匹配的软件包可以安装: 'python3-oslo-db'
没有匹配的软件包可以安装: 'python3-oslo-log'
没有匹配的软件包可以安装: 'python3-oslo-messaging'
没有匹配的软件包可以安装: 'python3-oslo-policy'
没有匹配的软件包可以安装: 'python3-oslo-privsep'
没有匹配的软件包可以安装: 'python3-oslo-rootwrap'
没有匹配的软件包可以安装: 'python3-oslo-service'
没有匹配的软件包可以安装: 'python3-oslo-upgradecheck'
没有匹配的软件包可以安装: 'python3-oslo-versionedobjects'
没有匹配的软件包可以安装: 'python3-osprofiler >= 1.3.0'
没有匹配的软件包可以安装: 'python3-ovsdbapp'
软件包 python3-pbr-5.4.5-1.p01.ky10.noarch 已安装。
没有匹配的软件包可以安装: 'python3-pyroute2 >= 0.5.13'
没有匹配的软件包可以安装: 'python3-tenacity >= 4.4.0'
软件包 systemd-243-55.p05.se.01.ky10.aarch64 已安装。
RPM: 错误:%changelog 中存在错误的日期:Thur Jan 27 2022 lijiawei <ljw1101.vip@gmail.com> - 18.2.0-1
没有满足全部的依赖关系
错误:某些软件包无法找到。
如果是openEuler 2203系统,解决方案
yum install openstack-release-wallaby
aarch64 其他系统,参考源码包
https://repo.openeuler.org/openEuler-22.03-LTS/EPOL/multi_version/OpenStack/Wallaby/source/Packages/
2203系统自带python3版本为3.9.9,源码包地址:
https://repo.openeuler.org/openEuler-22.03-LTS/source/Packages/python3-3.9.9-7.oe2203.src.rpm
python3.9.9
kylin v10sp3 构建python3.9.9rpm包
rpm -ivh python3-3.9.9-7.oe2203.src.rpm
cd ~/rpmbuild/
yum-builddep -y SPECS/python3.spec
需要ks10-adv-os源
# gcc 版本 7.3.0 (GCC)
rpmbuild -ba SPECS/python3.spec
测试阶段报错
test_constructor (test.test_ssl.ContextTests) ... Fatal Python error: Segmentation fault
Current thread 0x0000fffc36634f00 (most recent call first):
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/ssl.py", line 483 in __new__
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/test_ssl.py", line 1129 in test_constructor
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/case.py", line 550 in _callTestMethod
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/case.py", line 592 in run
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/case.py", line 651 in __call__
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/suite.py", line 122 in run
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/suite.py", line 84 in __call__
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/suite.py", line 122 in run
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/suite.py", line 84 in __call__
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/suite.py", line 122 in run
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/suite.py", line 84 in __call__
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/runner.py", line 176 in run
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/support/__init__.py", line 1805 in _run_suite
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/support/__init__.py", line 1929 in run_unittest
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/runtest.py", line 263 in _test_module
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/runtest.py", line 288 in _runtest_inner2
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/runtest.py", line 326 in _runtest_inner
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/runtest.py", line 217 in _runtest
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/runtest.py", line 247 in runtest
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/main.py", line 334 in rerun_failed_tests
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/main.py", line 712 in _main
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/main.py", line 655 in main
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/main.py", line 733 in main
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/regrtest.py", line 43 in _main
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/regrtest.py", line 47 in <module>
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/runpy.py", line 87 in _run_code
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/runpy.py", line 197 in _run_module_as_main
/var/tmp/rpm-tmp.NsyvgB: line 50: 81782 Segmentation fault (core dumped) WITHIN_PYTHON_RPM_BUILD= LD_LIBRARY_PATH=$(pwd)/build/debug $(pwd)/build/debug/python -m test.regrtest -wW --slowest -j0 -x test_distutils -x test_bdist_rpm -x test_gdb -x test_socket -x test_asyncio
错误:/var/tmp/rpm-tmp.NsyvgB (%check) 退出状态不好
尝试手动跳过(坏主意)
成功编译
附:
升级gcc 版本 10.3.1 (GCC) 故障依旧
test_constructor (test.test_ssl.ContextTests) ... Fatal Python error: Segmentation fault
Current thread 0x0000fffef7114f00 (most recent call first):
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/ssl.py", line 483 in __new__
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/test_ssl.py", line 1129 in test_constructor
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/case.py", line 550 in _callTestMethod
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/case.py", line 592 in run
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/case.py", line 651 in __call__
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/suite.py", line 122 in run
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/suite.py", line 84 in __call__
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/suite.py", line 122 in run
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/suite.py", line 84 in __call__
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/suite.py", line 122 in run
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/suite.py", line 84 in __call__
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/runner.py", line 176 in run
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/support/__init__.py", line 1805 in _run_suite
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/support/__init__.py", line 1929 in run_unittest
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/runtest.py", line 263 in _test_module
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/runtest.py", line 288 in _runtest_inner2
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/runtest.py", line 326 in _runtest_inner
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/runtest.py", line 217 in _runtest
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/runtest.py", line 247 in runtest
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/main.py", line 334 in rerun_failed_tests
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/main.py", line 712 in _main
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/main.py", line 655 in main
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/libregrtest/main.py", line 733 in main
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/regrtest.py", line 43 in _main
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/regrtest.py", line 47 in <module>
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/runpy.py", line 87 in _run_code
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/runpy.py", line 197 in _run_module_as_main
/var/tmp/rpm-tmp.6GxdMf: line 50: 147628 Segmentation fault (core dumped) WITHIN_PYTHON_RPM_BUILD= LD_LIBRARY_PATH=$(pwd)/build/debug $(pwd)/build/debug/python -m test.regrtest -wW --slowest -j0 -x test_distutils -x test_bdist_rpm -x test_gdb -x test_socket -x test_asyncio
错误:/var/tmp/rpm-tmp.6GxdMf (%check) 退出状态不好
另外一个系统 gcc10.3.1故障
testEncodings (test.test_minidom.MinidomTest) ... ERROR
testExceptionOnSpacesInXMLNSValue (test.test_minidom.MinidomTest) ... ERROR
======================================================================
ERROR: testEncodings (test.test_minidom.MinidomTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/test_minidom.py", line 1158, in testEncodings
self.assertRaises(UnicodeDecodeError, parseString,
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/case.py", line 739, in assertRaises
return context.handle('assertRaises', args, kwargs)
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/unittest/case.py", line 201, in handle
callable_obj(*args, **kwargs)
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/xml/dom/minidom.py", line 1998, in parseString
return expatbuilder.parseString(string)
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/xml/dom/expatbuilder.py", line 925, in parseString
return builder.parseString(string)
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/xml/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 5
======================================================================
ERROR: testExceptionOnSpacesInXMLNSValue (test.test_minidom.MinidomTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/test/test_minidom.py", line 1626, in testExceptionOnSpacesInXMLNSValue
parseString('<element xmlns:abc="http:abc.com/de f g/hi/j k"><abc:foo /></element>')
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/xml/dom/minidom.py", line 1998, in parseString
return expatbuilder.parseString(string)
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/xml/dom/expatbuilder.py", line 925, in parseString
return builder.parseString(string)
File "/root/rpmbuild/BUILD/Python-3.9.9/Lib/xml/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: syntax error: line 1, column 0
----------------------------------------------------------------------
Ran 2 tests in 0.011s
FAILED (errors=2)
test test_minidom failed
0:04:48 load avg: 17.08 Re-running test_ssl in verbose mode
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK
1 test failed again:
test_minidom
== Tests result: FAILURE then FAILURE ==
400 tests OK.
10 slowest tests:
- test_peg_generator: 4 min 16 sec
- test_concurrent_futures: 4 min 3 sec
- test_multiprocessing_spawn: 2 min 57 sec
- test_multiprocessing_forkserver: 1 min 59 sec
- test_buffer: 1 min 21 sec
- test_multiprocessing_fork: 1 min 21 sec
- test_io: 1 min 14 sec
- test_descr: 1 min 14 sec
- test_array: 1 min 8 sec
- test_datetime: 1 min 8 sec
1 test failed:
test_minidom
19 tests skipped:
test_curses test_devpoll test_ioctl test_kqueue test_msilib
test_ossaudiodev test_smtpnet test_socketserver test_startfile
test_tix test_tk test_ttk_guionly test_urllib2net test_urllibnet
test_winconsoleio test_winreg test_winsound test_xmlrpc_net
test_zipfile64
2 re-run tests:
test_minidom test_ssl
1 test run no tests:
test_ssl
Total duration: 4 min 49 sec
Tests result: FAILURE then FAILURE
错误:/var/tmp/rpm-tmp.6BpwDl (%check) 退出状态不好
RPM 构建错误:
行 101:It's not recommended to have unversioned Obsoletes:Obsoletes: python39
行 106:It's not recommended to have unversioned Obsoletes:Obsoletes: python3-libs
行 146:It's not recommended to have unversioned Obsoletes:Obsoletes: python3-idle
行 148:It's not recommended to have unversioned Obsoletes:Obsoletes: python3-test
行 150:It's not recommended to have unversioned Obsoletes:Obsoletes: python3-tkinter
%changelog (更新日志)中存在虚假的日期:Thu Mar 30 2021 shenyangyang<shenyangyang4@huawei.com> - 3.8.5-8
%changelog 中存在错误的日期:Web Mar 03 2021 wuchaochao<wuchaochao4@huawei.com> - 3.8.5-7
/var/tmp/rpm-tmp.6BpwDl (%check) 退出状态不好
2203 openssl 1.1.1m
kylinv10sp3 openssl 1.1.1f
有影响?