Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1859867 - skf-2.10.12-1.fc33.3 FTBFS: attempt to use unversioned python, define %__python to /usr/bin/python2 or /usr/bin/python3 explicitly
Summary: skf-2.10.12-1.fc33.3 FTBFS: attempt to use unversioned python, define %__pyth...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: skf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mamoru TASAKA
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F33FTBFS
TreeView+ depends on / blocked
 
Reported: 2020-07-23 08:21 UTC by Petr Pisar
Modified: 2020-08-04 23:12 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-08-04 23:12:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2020-07-23 08:21:11 UTC
skf-2.10.12-1.fc33.3 fails to build in Fedora 33, because a SRPM package cannot built:

DEBUG util.py:719:  Executing command: ['rpmbuild', '--define', '_topdir /chroot_tmpdir/srpm_unpacked', '-bs', '--nodeps', '/chroot_tmpdir/srpm_unpacked/SPECS/skf.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;<mock-chroot>\\007"', 'PS1': '<mock-chroot> \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False
DEBUG util.py:448:  Unsharing. Flags: 134217728
DEBUG util.py:621:  error: attempt to use unversioned python, define %__python to /usr/bin/python2 or /usr/bin/python3 explicitly
DEBUG util.py:621:  error: /chroot_tmpdir/srpm_unpacked/SPECS/skf.spec: line 8: Macro %python_sitearch failed to expand
DEBUG util.py:774:  Child return code was: 1

A difference between a passing and failing build root is at <https://koschei.fedoraproject.org/build/8621153>. This is triggered by upgrading python-srpm-macros from 3.9-5 to 3.9-6:

* Thu Jul 16 2020 Miro Hrončok <mhroncok> - 3.9-6
- Make the unversioned %__python macro error
- https://fedoraproject.org/wiki/Changes/PythonMacroError

Comment 1 Miro Hrončok 2020-08-04 23:12:24 UTC
The following builds were made after this report was opened: skf-2.10.12-2.fc33


Note You need to log in before you can comment on or make changes to this bug.