There are several stages of FTBFS with cloud-init-17.1-8.fc31 If I do a Fedora Koji scratchbuild: $ fedpkg --release master build --scratch I get: BUILDSTDERR: error: This macro requires some arguments BUILDSTDERR: error: line 124: %systemd_postun In my Copr with Python 3.8, built from SRPM I get the actual Python 3.8 problem: + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/cloud-init-17.1-8.fc31.x86_64 --init-system=systemd Traceback (most recent call last): File "setup.py", line 125, in <module> 'systemd': [render_tmpl(f) File "setup.py", line 125, in <listcomp> 'systemd': [render_tmpl(f) File "setup.py", line 114, in render_tmpl tiny_p([sys.executable, './tools/render-cloudcfg', template, fpath]) File "setup.py", line 44, in tiny_p raise RuntimeError("Failed running %s [rc=%s] (%s, %s)" % RuntimeError: Failed running ['/usr/bin/python3', './tools/render-cloudcfg', 'systemd/cloud-init.service.tmpl', 'tmph0v9h1_q/cloud-init.service'] [rc=1] (, Traceback (most recent call last): File "./tools/render-cloudcfg", line 44, in <module> main() File "./tools/render-cloudcfg", line 19, in main platform = util.system_info() File "/builddir/build/BUILD/cloud-init-17.1/cloudinit/util.py", line 589, in system_info 'dist': platform.dist(), # pylint: disable=W1505 AttributeError: module 'platform' has no attribute 'dist' That is indeed removed from Python 3.8 $ python3.7 >>> import platform >>> platform.dist() __main__:1: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5 ('fedora', '29', 'Twenty Nine') $ python3.8 >>> import platform >>> platform.dist() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'platform' has no attribute 'dist'
CC'ing zbyszek about the %systemd_postun failure. My Copr still has systemd 241-4.gitcbf14c9.fc31, Koji has 242~rc2-1.fc31.
And according to koschei, the tests are failing anyway since mid February https://apps.fedoraproject.org/koschei/package/cloud-init https://apps.fedoraproject.org/koschei/build/6037690 looks like bash update problem to me So this now has 3 levels of FTBFS: level 1) systemd macro problem with systemd 242 level 2) setup.py install platfrom.dist() problem with Python 3.8 level 3) %check failure anywhere caused by something that happened in February, maybe BASH 5
Seems like Bash 5 added EPOCHREALTIME env varibale and that's causing the tests to fail. https://lists.gnu.org/archive/html/bug-bash/2018-05/msg00068.html
It's not a bug, it's a feature! $ fedpkg srpm && mock -n $(ls -t1r *.src.rpm|tail -n1) Downloading cloud-init-17.1.tar.gz ######################################################################## 100.0% error: This macro requires some arguments error: line 124: %systemd_postun As it says, this macro requires some arguments, most likely the same ones that are used for %systemd_post and %systemd_preun in the lines right above.
Could you please try to fix this? Or should this be brought upstream?
Please respond.
Following with https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/5GEFZTPCOBKYY54KEHYSAYYMEYO7DI7Z/ https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
I'm not the maintainer of the package, but as a proven packager I have fixed the three issues mentioned in comment #2 since the maintainer was not replying. The package now builds fine on F30 and Rawhide (even with Python 3.8) again.
I forgot to mention: To fix that issue with platform.dist, I needed to add (Build)Requires: python3-distro.
Rawhide build: https://koji.fedoraproject.org/koji/buildinfo?buildID=1253879 F30 build: https://koji.fedoraproject.org/koji/buildinfo?buildID=1253877
cloud-init-17.1-9.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-67d7987a7b
cloud-init-17.1-9.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-67d7987a7b
cloud-init-17.1-9.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.