Re: Debian watch file and GitLab for Autotools projects?

2022-04-06 Thread Paul Wise
On Wed, 2022-04-06 at 16:26 +, Eivind Naess wrote:

> The project is using ./autogen.sh to generate the configure scripts,
> et al for the project. When I got to tag and create a release, I have
> to upload the resulting tarball with the resulting configure scripts
> embedded.

Personally I would suggest not using the tarballs containing autotools
files for the Debian orig.tar and instead using tarballs that are
identical to the upstream git repository. This ensures that on Debian
you are always building the ./configure and other autotools files from
source at `debian/rules build` time.

Also review the upstream git repository to ensure it doesn't contain
embedded copies of files maintained elsewhere (those should be packaged
in Debian and added to build-deps instead), or other generated files
(those should be removed and instead created at build time.

The only potential exception to this are the copies of the licenses.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise


signature.asc
Description: This is a digitally signed message part


Re: Debian watch file and GitLab for Autotools projects?

2022-04-06 Thread Ansgar
Hi,

On Wed, 2022-04-06 at 16:26 +, Eivind Naess wrote:
> Using watch with git tags yields the same thing (snapshot of the
> source code, not the release tarball). I could use the GitLab API and
> fetch a JSON file, but I can't figure out to make that work with the
> watch file.

I once suggested to use

opts="searchmode=plain,downloadurlmangle=s{/uploads}{/upower/upower/uploads}" \
https://gitlab.freedesktop.org/api/v4/projects/upower%2fupower/releases 
/uploads/[0-9a-z]+/upower-([0-9.]+)\.tar\.xz

on IRC for a Gitlab project.  I think that or something similar might
be what you are looking for.

Ansgar