[Debian-salsa-ci] Update the name of the generated deb package name

Iñaki Malerba ina at malerba.space
Wed Oct 26 10:58:47 BST 2022


On Wed, Oct 26, 2022 at 02:46:58PM +0530, probal basak wrote:
> Hello,
>
> Also if version bump is enabled using variable:
> SALSA_CI_DISABLE_VERSION_BUMP: 0
>
> Even then the package name is always libzl_0.5-1-1+salsaci_armhf.deb
> and not libzl_0.5-1-1+salsaci.1_armhf.deb,
> libzl_0.5-1-1+salsaci.2_armhf.deb
>
> Is there anything I am missing here?

As I mentioned on the first email, the pipeline does not increment the
versions but only adds a +salsaci tag for the builds that happen on CI.

The source code for the tag bumping is here[0].

What you're trying to do would require changes on your packaging
workflow to bump the version on the debian/changelog when you want a
different version.

0_ https://salsa.debian.org/salsa-ci-team/pipeline/-/blob/master/salsa-ci.yml#L253

>
> On Wed, 26 Oct 2022 at 14:03, Iñaki Malerba <ina at malerba.space> wrote:
>
> > On Wed, Oct 26, 2022 at 01:54:18PM +0530, probal basak wrote:
> > > Hello,
> > >
> > > I want the package name to be something similar to this:
> > > libzl_1.1-1+git2022092711571_armhf.deb
> > >
> > > But currently the package that gets generated via salsa looks like this:
> > > libzl_0.5-1-1+salsaci_armhf.deb
> > >
> > > I want to replace the salsaci with something similar as above.
> >
> > Salsa CI uses the version stated in the `debian/changelog`. If you want
> > a different versioning schema on your packageto happen, you need to change
> > the version on the changelog and that will be reflected on the package
> > name.
> >
> > https://www.debian.org/doc/manuals/maint-guide/dreq.en.html (section
> > 4.3)
> >
> > https://www.debian.org/doc/debian-policy/ch-source.html#s-dpkgchangelog
> >
> > >
> > >
> > > On Wed, 26 Oct 2022 at 13:39, Iñaki Malerba <ina at malerba.space> wrote:
> > >
> > > > Hello !
> > > >
> > > > On Wed, Oct 26, 2022 at 01:30:47PM +0530, probal basak wrote:
> > > > > Hello Team,
> > > > >
> > > > > I am using salsa ci config for building deb packages for my project.
> > > > >
> > > > > However, I do not see any configuration or variable to update the
> > name of
> > > > > the generated deb package.
> > > > >
> > > > > Currently the default deb package name looks like this:
> > > > > zynthbox-qml_0.5-1-1+salsaci_armhf.deb
> > > > >
> > > > > I want it to have the git hash or timestamp in the file name to avoid
> > > > > conflicts.
> > > > >
> > > > > Please help here.
> > > >
> > > > Salsa CI uses standard dpkg-buildpackage for building, and the
> > > > versioning follows the convention for any Debian package.
> > > >
> > > > <name>_<version>-<debian-revision>_<architecture>.deb
> > > >
> > > > To avoid problems with released versions, Salsa CI bumps the version by
> > > > adding a +salsaci tag to the Debian revision. See [0].
> > > >
> > > > What kind of conflicts are you trying to avoid?
> > > >
> > > > Regards,
> > > >
> > > >
> > > > 0_ https://salsa.debian.org/salsa-ci-team/pipeline/-/issues/78
> > > >
> > > > >
> > > > > --
> > > > > 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
> > > >
> > > >
> > >
> > > --
> > > 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
> >
> >
>
> --
> 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




More information about the Debian-salsa-ci mailing list