[Debian-salsa-ci] Need some information regarding building package with git submodules

Santiago Ruano Rincón santiagorr at riseup.net
Fri Oct 21 15:36:06 BST 2022


El 20/10/22 a las 12:28, probal basak escribió:
> Hello,
> 
> In my particular case, the code repository and the build repo are
> different.
> In my build repo I have the gitlab ci config and the debian folder.

A debian source package should contain all the code.

> 
> 
> I have checked and in my case, the gbp export-orig fails and thus the tar
> is created using the origtargz
> 
> https://salsa.debian.org/salsa-ci-team/pipeline/-/blob/master/salsa-ci.yml#L137
> 
> I still could not find a way out to get the git submodules source as well
> while creating the source tar.
> 
> 
> I tried to use --git-submodules with gbp buildpackage and it did not help
> either.

With gbp buildpackage or gbp export-orig?

> I just need the source of all the git submodules in the source tarball.

Exactly.

> 
> Any help will be appreciated please.
> 
> 
> Thanks.
> 
> 
> On Wed, 19 Oct 2022 at 20:51, Santiago Ruano Rincón <santiagorr at riseup.net>
> wrote:
> 
> > El 19/10/22 a las 16:51, probal basak escribió:
> > > Hello Team,
> > >
> > > I already used the salsa ci pipeline to build a deb package for one of
> > the
> > > package.
> > >
> > > Now I have another use case with me where I have a git repo that I need
> > to
> > > configure to build deb package using salsa but this time the repo has git
> > > submodules.
> > >
> > > Is there any way I can enable the submodules source cloning/update as
> > well
> > > while building the source tar?
> > >
> > > Or if you can please suggest a better way to do that please, it would
> > > really help.
> >
> > Please note the pipeline relies on gbp to extract the source package. I
> > have never used git submodules to produce/export a source package, but
> > the gbp export-orig's man page mentions it:
> >
> > https://manpages.debian.org/unstable/git-buildpackage/gbp-export-orig.1.en.html
> >
> > Note sure it that helps though.
> >
> > cheers,
> >
> >  -- S
> >
> 
> 
> -- 
> Thanks,
> Probal Basak.
> Phone : +91-9681893111

> -- 
> Debian-salsa-ci mailing list
> Debian-salsa-ci at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-salsa-ci

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-salsa-ci/attachments/20221021/767ed4e7/attachment.sig>


More information about the Debian-salsa-ci mailing list