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

me at tdiehl.org

me at tdiehl.org
Sun May 31 16:49:43 UTC 2020

On Sat, 30 May 2020, Dominique Martinet wrote:

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

Thanks, that was the piece I was missing. Changing the rpmbuild command to
rpmbuild -D "_topdir $PWD" -bs SPECS/amanda.spec gets me the src.rpm so
that I can feed it into mock.


Tom			me at tdiehl.org

More information about the CentOS-devel mailing list