Bug 1705222

Summary: apx FTBFS with Python 3.8
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: apxAssignee: Raphael Groner <projects.rg>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: projects.rg
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-19 21:27:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1686977    
Attachments:
Description Flags
Full log from Copr none

Description Miro Hrončok 2019-05-01 18:59:09 UTC
Created attachment 1561037 [details]
Full log from Copr

apx-0.1-21.fc31 fails to build on Python 3.8:

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.AUNFGt
+ umask 022
+ cd /builddir/build/BUILD
+ '[' /builddir/build/BUILDROOT/apx-0.1-21.fc31.x86_64 '!=' / ']'
+ rm -rf /builddir/build/BUILDROOT/apx-0.1-21.fc31.x86_64
++ dirname /builddir/build/BUILDROOT/apx-0.1-21.fc31.x86_64
+ mkdir -p /builddir/build/BUILDROOT
+ mkdir /builddir/build/BUILDROOT/apx-0.1-21.fc31.x86_64
+ cd apx-0.1
+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/apx-0.1-21.fc31.x86_64
running install
Traceback (most recent call last):
  File "setup.py", line 38, in <module>
    setup(
  File "/usr/lib/python3.8/site-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib64/python3.8/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib64/python3.8/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python3.8/distutils/dist.py", line 984, in run_command
    cmd_obj.ensure_finalized()
  File "/usr/lib64/python3.8/distutils/cmd.py", line 107, in ensure_finalized
    self.finalize_options()
  File "setup.py", line 16, in finalize_options
    platform.linux_distribution()[0].lower() in special_cases):
AttributeError: module 'platform' has no attribute 'linux_distribution'

Full log attached.

https://docs.python.org/3.7/library/platform.html#platform.linux_distribution

platform.linux_distribution is deprecated since Python 3.5 and removed in 3.8.

Comment 1 Raphael Groner 2019-05-10 21:58:10 UTC
Fixed in master. Please retest.
https://src.fedoraproject.org/rpms/apx/c/6a1c54f7c11e6e052efbc2039c29150cdef31170?branch=master

Comment 2 Miro Hrončok 2019-05-10 23:28:07 UTC
I cannot get the sources from lookaside cache.

Comment 3 Miro Hrončok 2019-05-30 18:25:34 UTC
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.m6xDHu
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf apx-722c52e819e98ed8b88a26f9891d4b6b0983bcb7
+ /usr/bin/gzip -dc /builddir/build/SOURCES/apx-722c52e819e98ed8b88a26f9891d4b6b0983bcb7.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd apx-722c52e819e98ed8b88a26f9891d4b6b0983bcb7
/var/tmp/rpm-tmp.m6xDHu: line 38: cd: apx-722c52e819e98ed8b88a26f9891d4b6b0983bcb7: No such file or directory

Comment 4 Raphael Groner 2019-05-31 08:44:50 UTC
A mock build with the copr repo worked. No idea what's b0rken now, I'll try another build later.

Comment 5 Miro Hrončok 2019-07-10 09:59:07 UTC
Still at:

Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.TFB2Ot
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf apx-722c52e819e98ed8b88a26f9891d4b6b0983bcb7
+ /usr/bin/gzip -dc /builddir/build/SOURCES/apx-722c52e819e98ed8b88a26f9891d4b6b0983bcb7.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd apx-722c52e819e98ed8b88a26f9891d4b6b0983bcb7
/var/tmp/rpm-tmp.TFB2Ot: line 39: cd: apx-722c52e819e98ed8b88a26f9891d4b6b0983bcb7: No such file or directory

Any news here?

Comment 6 Raphael Groner 2019-07-19 20:40:20 UTC
Uploaded new sources. Please retry. Sorry for the delay.

Comment 7 Miro Hrončok 2019-07-19 21:27:42 UTC
Thanks.