[Pkg-giraffe-discuss] debian/watch and debain version mangling

Guido Günther agx at sigxcpu.org
Mon Oct 2 16:11:48 UTC 2017


Hi,
On Mon, Oct 02, 2017 at 01:29:28PM +0200, Carsten Schoenert wrote:
> Hi,
> 
> while working on kopano-webapp again I imported the version 3.3.1 again
> using now a suffix '+dfsg1' where "1" would be incremented in case we
> have to re-import some modificated same source.
> 
> I've added a addition (dversionmangle) to debian/watch based on the
> article about watch from the Debian Wiki [1].
> 
> > $ git diff debian/watch
> > diff --git a/debian/watch b/debian/watch
> > index 719b9b5..83dce28 100644
> > --- a/debian/watch
> > +++ b/debian/watch
> > @@ -15,4 +15,5 @@
> >  version=3
> >  
> >  opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|.RC|.RC.|rc|.rc|.rc.|pre|dev|beta|alpha)\d*)$/$1~$2/ \
> > + dversionmangle=s/\+(debian|dfsg|ds|deb)(\.?\d+)?$//
> >   https://github.com/Kopano-mirror/kopano-webapp/tags
> > .*/v(\d\S+)\.tar\.gz

This seems to be lacking a comma (',') between the expressions. See
e.g. the libvirt watch file.
 -- Guido

> 
> But Lintian is not happy about this and also a local uscan call gives a
> hint about missing delimiters. So obviously there is something still wrong.
> 
> > $ uscan --no-download --verbose 
> > uscan info: uscan (version 2.17.10) See uscan(1) for help
> > uscan info: Scan watch files in .
> > uscan info: Check debian/watch and debian/changelog in ./.git/refs/tags
> > uscan info: Check debian/watch and debian/changelog in ./.git/refs/heads
> > uscan info: Check debian/watch and debian/changelog in ./.git/refs/heads/patch-queue
> > uscan info: Check debian/watch and debian/changelog in ./.git/refs/remotes/origin
> > uscan info: Check debian/watch and debian/changelog in ./.git/refs/remotes/alioth
> > uscan info: Check debian/watch and debian/changelog in ./.git/logs/refs/heads
> > uscan info: Check debian/watch and debian/changelog in ./.git/logs/refs/heads/patch-queue
> > uscan info: Check debian/watch and debian/changelog in ./.git/logs/refs/remotes/origin
> > uscan info: Check debian/watch and debian/changelog in ./.git/logs/refs/remotes/alioth
> > uscan info: Check debian/watch and debian/changelog in .
> > uscan info: package="kopano-webapp" version="3.3.1+dfsg1-1" (as seen in debian/changelog)
> > uscan info: package="kopano-webapp" version="3.3.1+dfsg1" (no epoch/revision)
> > uscan info: ./debian/changelog sets package="kopano-webapp" version="3.3.1+dfsg1"
> > uscan info: Process ./debian/watch (package=kopano-webapp version=3.3.1+dfsg1)
> > uscan info: opts: uversionmangle=s/(\d)[_\.\-\+]?((RC|.RC|.RC.|rc|.rc|.rc.|pre|dev|beta|alpha)\d*)$/$1~$2/
> > uscan info: line: dversionmangle=s/\+(debian|dfsg|ds|deb)(\.?\d+)?$//
> > uscan info: Parsing uversionmangle=s/(\d)[_\.\-\+]?((RC|.RC|.RC.|rc|.rc|.rc.|pre|dev|beta|alpha)\d*)$/$1~$2/
> > uscan info: line: dversionmangle=s/\+(debian|dfsg|ds|deb)(\.?\d+)?$//
> > Use of uninitialized value $filepattern in pattern match (m//) at /usr/bin/uscan line 2628, <WATCH> line 18.
> > uscan warn: Filename pattern missing version delimiters () without filenamemangle
> >   in debian/watch, skipping:                                                       <--------------
> >   dversionmangle=s/\+(debian|dfsg|ds|deb)(\.?\d+)?$//                              <--------------
> > uscan info: Last orig.tar.* tarball version (from debian/changelog): 3.3.1+dfsg1
> > uscan info: Last orig.tar.* tarball version (dversionmangled): 3.3.1+dfsg1
> > uscan info: Requesting URL:
> >    https://github.com/Kopano-mirror/kopano-webapp/tags
> > uscan info: Matching pattern:
> >    (?:(?:https://github.com)?\/Kopano\-mirror\/kopano\-webapp\/tags)?.*/v(\d\S+)\.tar\.gz
> > uscan info: Found the following matching hrefs on the web page (newest first):
> >    /Kopano-mirror/kopano-webapp/archive/v3.4.0-beta.1.tar.gz (3.4.0-beta.1) index=3.4.0-beta.1-1 
> >    /Kopano-mirror/kopano-webapp/archive/v3.3.1-rc.1.tar.gz (3.3.1-rc.1) index=3.3.1-rc.1-1 
> >    /Kopano-mirror/kopano-webapp/archive/v3.3.1.tar.gz (3.3.1) index=3.3.1-1 
> >    /Kopano-mirror/kopano-webapp/archive/v3.3.0-rc.1.tar.gz (3.3.0-rc.1) index=3.3.0-rc.1-1 
> >    /Kopano-mirror/kopano-webapp/archive/v3.3.0-beta.2.tar.gz (3.3.0-beta.2) index=3.3.0-beta.2-1 
> >    /Kopano-mirror/kopano-webapp/archive/v3.3.0-beta.1.tar.gz (3.3.0-beta.1) index=3.3.0-beta.1-1 
> >    /Kopano-mirror/kopano-webapp/archive/v3.3.0.tar.gz (3.3.0) index=3.3.0-1 
> >    /Kopano-mirror/kopano-webapp/archive/v3.2.0-beta.2.tar.gz (3.2.0-beta.2) index=3.2.0-beta.2-1 
> >    /Kopano-mirror/kopano-webapp/archive/v3.2.0-beta.1.tar.gz (3.2.0-beta.1) index=3.2.0-beta.1-1 
> >    /Kopano-mirror/kopano-webapp/archive/v3.2.0.tar.gz (3.2.0) index=3.2.0-1 
> > uscan info: Matching target for downloadurlmangle: https://github.com/Kopano-mirror/kopano-webapp/archive/v3.4.0-beta.1.tar.gz
> > uscan info: Upstream URL (downloadurlmangled):
> >    https://github.com/Kopano-mirror/kopano-webapp/archive/v3.4.0-beta.1.tar.gz
> > uscan info: Newest upstream tarball version selected for download (uversionmangled): 3.4.0-beta.1
> > uscan info: Download filename (filenamemangled): v3.4.0-beta.1.tar.gz
> > uscan: Newest version of kopano-webapp on remote site is 3.4.0-beta.1, local version is 3.3.1+dfsg1
> > uscan:    => Newer package available from
> >       https://github.com/Kopano-mirror/kopano-webapp/archive/v3.4.0-beta.1.tar.gz
> > uscan info: Scan finished
> 
> 
> Someone with more Perl experience can give some light in here?
> 
> 
> [1] https://wiki.debian.org/debian/watch
> 
> -- 
> Regards
> Carsten Schoenert
> 
> _______________________________________________
> Pkg-giraffe-discuss mailing list
> Pkg-giraffe-discuss at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-giraffe-discuss
> 



More information about the Pkg-giraffe-discuss mailing list