Excerpts from Nick Coghlan's message of 2015-06-25 15:05 +10:00:
With Python 3.5 in beta upstream, I'd like to create a Beaker
recipe that:
1. Rebuilds the Fedora Python RPMs using the upstream Python 3.5 beta
tarball rather than the stable 3.4 release
This will involve tweaking the spec file and making sure it successfully
builds so you will need to do this step outside Beaker beforehand. Use
mock to build your hacked SRPM.
There is a fairly scary-looking explanation in python3.spec about how to
bootstrap the build due to cyclical dependencies with pip so this part
may be fun...
You can then place the resulting RPMs into a yum repo accessible to your
recipe and add it to the MOCK_REPOS parameter.
2. Queries the Fedora repos to get the list of all packages with a
build
or runtime requirement on Python 3
Matej has a good suggestion for this.
3. Uses
https://beaker-project.org/docs-develop/user-guide/beaker-provided-tasks....
to rebuild all the packages from 2 against the Python 3.5 beta RPM from 1
The example in the docs should work well in this case. The second repo
in the MOCK_REPOS param will be your yum repo containing the Python 3.5
RPMs. Instead of SKIP_NOARCH you will want to populate the
SRPM_WHITELIST parameter based on the list of SRPMs from step 2, bearing
in mind that the whitelist is a list of globs matched against the entire
filename including .src.rpm extension.
--
Dan Callaghan <dcallagh(a)redhat.com>
Senior Software Engineer, Products & Technologies Operations
Red Hat, Inc.