[CentOS-devel] Centos 8.1 - missing src.rpms/debuginfos (again)

Dominique Martinet

dominique.martinet at cea.fr
Sat May 30 18:40:29 UTC 2020


me at tdiehl.org wrote on Sat, May 30, 2020 at 02:11:57PM -0400:
> So if I use your example and run git clone https://git.centos.org/rpms/amanda.git
> I get the following:
> 
> (vgeppetto3 pts12) $ git clone https://git.centos.org/rpms/amanda.git
> Cloning into 'amanda'...
> remote: Counting objects: 90, done.
> remote: Compressing objects: 100% (81/81), done.
> remote: Total 90 (delta 24), reused 0 (delta 0)
> Unpacking objects: 100% (90/90), done.
> warning: remote HEAD refers to nonexistent ref, unable to checkout.

This line here says that there is no default branch, so you need to
specify you want the 'c8' branch yourself (or c8s if there is one for
stream, there isn't for amanda, see `git branch -r`)
In that clone you can just `git checkout c8`, or for a fresh clone you
can use the -b option of clone.

So to keep the same example you can do:
$ git clone https://git.centos.org/centos-git-common
$ git clone -b c8 https://git.centos.org/rpms/amanda.git
$ cd amanda
$ ../centos-git-common/get_sources.sh
$ rpmbuild -D "_topdir $PWD" -ba SPECS/amanda.spec
(or mock or whatever)

That should work for pretty much all packages.
-- 
Dominique



More information about the CentOS-devel mailing list