« Koji/BriefSetup » : différence entre les versions
Aller à la navigation
Aller à la recherche
(Page créée avec « = Koji Tags and Targets = These commands do not have to be done on the koji build server, as long as you are setup with authority to interact with the koji server. For this... ») |
Aucun résumé des modifications |
||
| Ligne 24 : | Ligne 24 : | ||
koji add-external-repo ascendos-build http://build.ascendos.org/external/ascendos/build/\$arch/ | koji add-external-repo ascendos-build http://build.ascendos.org/external/ascendos/build/\$arch/ | ||
koji add-external-repo ascendos-build -t f13-build | koji add-external-repo ascendos-build -t f13-build | ||
= Regenerate repo = | |||
koji regen-repo dist-f15-build | |||
Version du 16 juillet 2012 à 21:57
Koji Tags and Targets
These commands do not have to be done on the koji build server, as long as you are setup with authority to interact with the koji server.
For this example, we will setup a tag to build on fedora 13.
koji add-tag f13 koji add-tag --arches "i686,x86_64" f13-build koji add-target f13 f13-build f13 koji add-group f13-build build koji add-group-pkg f13-build build bash bzip2 coreutils cpio diffutils findutils gawk koji add-group-pkg f13-build build gcc gcc-c++ grep gzip info make patch redhat-rpm-config koji add-group-pkg f13-build build rpm-build sed shadow-utils tar unzip util-linux-ng which koji add-group-pkg f13-build build fedora-release koji add-group-pkg f13-build build buildsys-macros-el6
Now we need to setup a repository for our build target. For this example, we will use a fedora mirror that is close to our build server, in Austratia.
koji add-external-repo fedora13-base http://mirror.aarnet.edu.au/pub/fedora/linux/releases/13/Fedora/\$arch/os/ koji add-external-repo fedora13-base -t f13-build
Now we also need to add our special build repository. This is where we keep various packages that aren't in the release, but are needed for building. In this instance we have buildsys-macros-el6 that needs to be installed. This package ensures that the %dist variable is set to el6 instead of f13.
koji add-external-repo ascendos-build http://build.ascendos.org/external/ascendos/build/\$arch/ koji add-external-repo ascendos-build -t f13-build
Regenerate repo
koji regen-repo dist-f15-build