Learn more about these different git repos.
Other Git URLs
For the build of (normal) Fedora SRPM from dist-git, I only have to know the package name and the branch branch to build from - then I do fedpkg clone PACKAGE && cd PACKAGE && fedpkg srpm.
fedpkg clone PACKAGE && cd PACKAGE && fedpkg srpm
It would be convenient to have a copr soruce method that requires only this info, too. A simple cli interface could look like:
$ copr-cli add-package-distgit [--distgit=copr] [--namespace=rpms] [--branch=master] package-name
Where --distgit can be copr, fedora, centos, ... The --namespace would have some default per --distgit instance (e.g. rpms for --distgit=fedora).
--distgit
copr
fedora
centos
--namespace
rpms
--distgit=fedora
Note that this needs to be configurable per copr installation, so people can add non-default dist-git instances, too (e.g. Red Hat dist-git instance for Red Hat Copr). E.g.
$ cat /etc/copr-rpmbuild/distgit.d/fedora.conf [fedora] lookasideurl=... distgit_clone_url=... etc..
EDIT note that there are rhpkg-simple (RH dist-git) and fedpkg-minimal (Fedora distgit). So it might be much simpler.
rhpkg-simple
fedpkg-minimal
specific distgit would be useful also for different purposes. For example, if upstream sources from lookaside cache are required to build package, there is no way to specify different lookaside. Such information cannot be specified anywhere.
Useful if I want some package rebuilt for different distribution and reuse its dist-git if public.
This could solve:
Note there's now be56551 which is the first step for this.
I don't understand how, but I'll trust you on that.
It added a database table with configurations for specific dist-git instances.
\o/ Thanks. The commit message was really module-oriented.
Commit 25dcdda fixes this issue
@praiskup Thank You so much! If there is a staging environment to tests this before deployment/release, I'll gladly do that. If not, I'll report back once it is out.
Jakub is working on the migration of builders to F32, so I can not deploy it on staging right now ... I'll ping you later once it is possible.
Ok, deployed on staging here (I can not promise it will be there all the time, but now it is :-)): https://copr-fe-dev.cloud.fedoraproject.org
I cannot see the option:
<img alt="png" src="/copr/copr/issue/raw/files/325b9119c11573a1d3aba09b987dd8fc344a3d14bec7ab72909366885651ba30-png" />
Its not SCM, but DistGIT type
Oh, sorry. Got it.
https://pagure.io/copr/copr/issue/1219 is not fixed:
error: Couldn't download http://downloads.tryton.org/4.0/trytond-dashboard-4.0.1.tar.gz
https://copr-fe-dev.cloud.fedoraproject.org/coprs/churchyard/test-simple-dist-git/build/858996/
https://pagure.io/copr/copr/issue/798 is fixed by using the dist git option.
Thanks for checking! It makes me confided that we have to drop the %_disable_source_fetch 0 configuration. When this is enabled, despite the fact all the sources are available in _sourcedir, rpm for some reason goes and attempts to download it.
%_disable_source_fetch 0
Login to comment on this ticket.