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
Bug 1976656 - pypy and pypy3 FTBFS with RPM 4.17+: /usr/lib/rpm/brp-python-bytecompile no longer exists
Summary: pypy and pypy3 FTBFS with RPM 4.17+: /usr/lib/rpm/brp-python-bytecompile no l...
Alias: None
Product: Fedora
Classification: Fedora
Component: pypy
Version: rawhide
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Tomáš Hrnčiar
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2021-06-27 22:14 UTC by Miro Hrončok
Modified: 2021-07-15 08:35 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed:
Type: Bug

Attachments (Terms of Use)

Description Miro Hrončok 2021-06-27 22:14:23 UTC
Up until RPM 4.17, RPM shipped /usr/lib/rpm/brp-python-bytecompile.

In Fedora, we use /usr/lib/rpm/redhat/brp-python-bytecompile as the buildroot policy, so packages are not broken by the removal, but pypy and pypy3 use the old path directly (it is hardcoded in the specfile):

  /usr/lib/rpm/brp-python-bytecompile \
    %{buildroot}%{pypyprefix}/bin/%{name} \

We should switch to %py_byte_compile instead, as our brp-python-bytecompile does not support the use case since

Also note that pypy uses a very old-fashioned snippet to disable the actual buidlroot policy script:

  %global __os_install_post \
     %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')

And pypy3 uses a more modern way, but it shouldn't be required since

Comment 1 Fedora Release Engineering 2021-07-11 04:23:06 UTC
Dear Maintainer,

your package has an open Fails To Build From Source bug for Fedora 35.
Action is required from you.

If you can fix your package to build, perform a build in koji, and either create
an update in bodhi, or close this bug without creating an update, if updating is
not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to
acknowledge this. If you have already fixed this issue, please close this Bugzilla report.

Following the policy for such packages [2], your package will be orphaned if
this bug remains in NEW state more than 8 weeks (not sooner than 2021-08-22).

A week before the mass branching of Fedora 36 according to the schedule [3],
any packages not successfully rebuilt at least on Fedora 34 will be
retired regardless of the status of this bug.


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