Hello,
Do we have a writeup on how to bootstrap a new secondary architecture in koji ? Prebuilt binary rpms of F-10 are available and being imported into the koji hub. But how to proceed from there to get to F-11 ? A build loop over all source packages doesn't look like the optimal approach to me. Do we have scripts to identify leaves in the build dependency tree so that those can be built first before moving on the the next level ? And how about the package versions? I'd expect some iterations until I get a complete set of F-11 packages and still need to keep the n-v-r t the same level than on the primary archs. Scratch builds won't get added to the build environment and won't help here, right ?
Karsten
-- Karsten Hopp karsten@redhat.com Red Hat Deutschland, Hauptstaetter Str.58 70178 Stuttgart, Tel.+49-711-96437-0, Fax +49-711-96437-111
karsten@redhat.com píše v Pá 13. 02. 2009 v 16:14 +0100:
Hello,
Do we have a writeup on how to bootstrap a new secondary architecture in koji ? Prebuilt binary rpms of F-10 are available and being imported into the koji hub. But how to proceed from there to get to F-11 ?
I would start with a refreshment of the packages that create buildsys-build. And then do brute-force rebuild from A to Z ;-)
A build loop over all source packages doesn't look like the optimal approach to me. Do we have scripts to identify leaves in the build dependency tree so that those can be built first before moving on the the next level ?
Maybe the guys from Fedora/SPARC aka Aurora have some ...
And how about the package versions? I'd expect some iterations until I get a complete set of F-11 packages and still need to keep the n-v-r t the same level than on the primary archs. Scratch builds won't get added to the build environment and won't help here, right ?
You need to detect failed "BuildRequires", fix them in CVS, update n-v-r and build again for both primary and secondary. Then just do a new build (no change to n-v-r) of the package whose BRs were missing.
I am attaching few scripts I was using in the previous attempt to build Fedora/s390x.
Dan
On Fri, 2009-02-13 at 16:14 +0100, karsten@redhat.com wrote:
Hello,
Do we have a writeup on how to bootstrap a new secondary architecture in koji ? Prebuilt binary rpms of F-10 are available and being imported into the koji hub. But how to proceed from there to get to F-11 ? A build loop over all source packages doesn't look like the optimal approach to me. Do we have scripts to identify leaves in the build dependency tree so that those can be built first before moving on the the next level ? And how about the package versions? I'd expect some iterations until I get a complete set of F-11 packages and still need to keep the n-v-r t the same level than on the primary archs. Scratch builds won't get added to the build environment and won't help here, right ?
Karsten
You might take a look at "smock" (google it to find out more). It is a wrapper around mock that tries to build in the right order based on the packages each SRPM lists as required for building. Specifically you will probably want to look at the --chain option. You should be able to use that output to help koji build in the correct order.
- Doug
On Friday 13 February 2009 09:14:15 am karsten@redhat.com wrote:
Hello,
Do we have a writeup on how to bootstrap a new secondary architecture in koji ? Prebuilt binary rpms of F-10 are available and being imported into the koji hub. But how to proceed from there to get to F-11 ? A build loop over all source packages doesn't look like the optimal approach to me. Do we have scripts to identify leaves in the build dependency tree so that those can be built first before moving on the the next level ? And how about the package versions? I'd expect some iterations until I get a complete set of F-11 packages and still need to keep the n-v-r t the same level than on the primary archs. Scratch builds won't get added to the build environment and won't help here, right ?
Karsten
there is koji-shadow that is part of koji. its intended for use on secondary arches. Its not perfect but attempts to mimic the buildroot as close as possible. I need to write up documentation on how to configure and use it, along with documentation on how to setup koji for secondary arches.
you can only build a nvr once. there will be a mass rebuild of all of fedora soon for F11 to take advantage of gcc-4.4 and newer rpm features. scratch builds wont help.
Dennis
secondary@lists.fedoraproject.org