#529 Provide a really KISS way to build packages from (Fedora, CentOS, ..) dist-git
Closed: Fixed 3 years ago by praiskup. Opened 5 years ago by praiskup.

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.

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).

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.


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.

Note there's now be56551 which
is the first step for this.

I don't understand how, but I'll trust you on that.

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.

@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

Its not SCM, but DistGIT type

https://pagure.io/copr/copr/issue/1219 is not fixed:

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.

Login to comment on this ticket.

Metadata
Attachments 1
png
Attached 3 years ago View Comment
Related Pull Requests
  • #1478 Merged 3 years ago