[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Weird behaviour from uscan



Paul Wise schreef op wo 15-04-2015 om 14:58 [+0800]:
> These two mean that upstream removed, moved or renamed these files.
> You'll need to update the paths in Files-Excluded in debian/copyright.

Ah yep. I never actually knew that debian/copyright could be used for
that (though it makes sense in hindsight.)

> > The larger one passes a tar -t, but the smaller one doesn't.
> 
> That would be because of the error you posted above.

Which error? The missing files surely shouldn't cause a corrupt archive.

If I fix up the debian/copyright file, I get:

pkg-perl/packages/libmojolicious-perl$ LANG=C uscan --verbose
-- Scanning for watchfiles in .
-- Found watchfile in ./debian
-- In debian/watch, processing watchfile line:
   opts=dversionmangle=s/\+dfsg\d*//,repacksuffix=+dfsg https://metacpan.org/release/Mojolicious   .*/Mojolicious-v?(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz|zip)$
-- Found the following matching hrefs:
     https://cpan.metacpan.org/authors/id/S/SR/SRI/Mojolicious-6.08.tar.gz (6.08)
Newest version on remote site is 6.08, local version is 5.54+dfsg
 (mangled local version number 5.54)
 => Newer version available from
    https://cpan.metacpan.org/authors/id/S/SR/SRI/Mojolicious-6.08.tar.gz
-- Downloading updated package Mojolicious-6.08.tar.gz
-- Checking for common possible upstream OpenPGP signatures
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
mk-origtargz: error: tar --list --auto-compress --file ../libmojolicious-perl_6.08+dfsg.orig.tar.gz gave error exit status 2
uscan: error: mk-origtargz --package libmojolicious-perl --version 6.08 --repack-suffix +dfsg --compression gzip --directory .. --copyright-file debian/copyright ../Mojolicious-6.08.tar.gz gave error exit status 2

So it's still happening even though there are no missing bits.

> Find out what file format the two files are.

.tar.gz

> If they are both compressed tar files, compare them with:
> 
> debbindiff --text - Mojolicious-6.08.tar.gz
> libmojolicious-perl_6.08+dfsg.orig.tar.gz

$ debbindiff --text - Mojolicious-6.08.tar.gz libmojolicious-perl_6.08+dfsg.orig.tar.gz 
--- Mojolicious-6.08.tar.gz
+++ libmojolicious-perl_6.08+dfsg.orig.tar.gz
├── metadata
│ @@ -1 +1 @@
│ -gzip compressed data, was "Mojolicious-6.08.tar", last modified: Fri Apr 10 10:02:53 2015, max compression, from Unix
│ +gzip compressed data, max compression, from Unix
│   --- Mojolicious-6.08.tar
├── +++ libmojolicious-perl_6.08+dfsg.orig.tar
│   ├── metadata
│   │ @@ -265,16 +265,14 @@
│   │  -rw-r--r-- sri/staff      10488 2015-02-21 19:08:18 Mojolicious-6.08/lib/Mojolicious/public/mojo/notfound.png
│   │  -rw-r--r-- sri/staff       1257 2015-02-21 19:08:18 Mojolicious-6.08/lib/Mojolicious/public/mojo/pinstripe-dark.png
│   │  -rw-r--r-- sri/staff       3047 2015-02-21 19:08:18 Mojolicious-6.08/lib/Mojolicious/public/mojo/pinstripe-light.png
│   │  -rwxr-xr-x sri/staff          0 2015-04-10 10:02:52 Mojolicious-6.08/lib/Mojolicious/public/mojo/prettify/
│   │  -rw-r--r-- sri/staff       1184 2015-02-21 19:08:18 Mojolicious-6.08/lib/Mojolicious/public/mojo/stripes.png
│   │  -rw-r--r-- sri/staff        230 2015-02-21 19:08:18 Mojolicious-6.08/lib/Mojolicious/public/mojo/prettify/prettify-mojo-dark.css
│   │  -rw-r--r-- sri/staff        241 2015-02-21 19:08:18 Mojolicious-6.08/lib/Mojolicious/public/mojo/prettify/prettify-mojo-light.css
│   │ --rw-r--r-- sri/staff      16682 2015-02-21 19:08:18 Mojolicious-6.08/lib/Mojolicious/public/mojo/prettify/run_prettify.js
│   │ --rw-r--r-- sri/staff      84320 2015-02-21 19:08:18 Mojolicious-6.08/lib/Mojolicious/public/mojo/jquery/jquery.js
│   │  -rw-r--r-- sri/staff       1524 2015-02-21 19:08:18 Mojolicious-6.08/lib/Mojolicious/Plugin/Charset.pm
│   │  -rw-r--r-- sri/staff       4811 2015-04-07 12:24:40 Mojolicious-6.08/lib/Mojolicious/Plugin/Config.pm
│   │  -rw-r--r-- sri/staff      12988 2015-03-15 04:54:47 Mojolicious-6.08/lib/Mojolicious/Plugin/DefaultHelpers.pm
│   │  -rw-r--r-- sri/staff       2577 2015-03-10 08:00:21 Mojolicious-6.08/lib/Mojolicious/Plugin/EPLRenderer.pm
│   │  -rw-r--r-- sri/staff       3856 2015-03-10 08:03:32 Mojolicious-6.08/lib/Mojolicious/Plugin/EPRenderer.pm
│   │  -rw-r--r-- sri/staff       2357 2015-03-28 11:55:00 Mojolicious-6.08/lib/Mojolicious/Plugin/HeaderCondition.pm
│   │  -rw-r--r-- sri/staff       3718 2015-03-20 10:42:49 Mojolicious-6.08/lib/Mojolicious/Plugin/JSONConfig.pm
│   │ @@ -374,13 +372,7 @@
│   │  -rw-r--r-- sri/staff       1421 2015-02-21 19:08:18 Mojolicious-6.08/lib/Mojo/Cookie/Request.pm
│   │  -rw-r--r-- sri/staff       3362 2015-04-08 12:27:15 Mojolicious-6.08/lib/Mojo/Cookie/Response.pm
│   │  -rw-r--r-- sri/staff       7417 2015-02-22 16:26:26 Mojolicious-6.08/lib/Mojo/Content/MultiPart.pm
│   │  -rw-r--r-- sri/staff       3953 2015-02-25 11:51:13 Mojolicious-6.08/lib/Mojo/Content/Single.pm
│   │  -rw-r--r-- sri/staff       5569 2015-02-25 11:50:22 Mojolicious-6.08/lib/Mojo/Asset/File.pm
│   │  -rw-r--r-- sri/staff       3711 2015-02-25 11:50:33 Mojolicious-6.08/lib/Mojo/Asset/Memory.pm
│   │  -rw-r--r-- sri/staff        966 2015-03-31 16:19:30 Mojolicious-6.08/examples/chat.pl
│   │ --rw-r--r-- sri/staff       2485 2015-03-31 16:31:59 Mojolicious-6.08/examples/connect-proxy.pl
│   │ --rw-r--r-- sri/staff        416 2015-03-31 16:43:36 Mojolicious-6.08/examples/entities.pl
│   │ --rw-r--r-- sri/staff        211 2015-02-22 18:25:32 Mojolicious-6.08/examples/fast.pl
│   │ --rw-r--r-- sri/staff        155 2015-02-21 19:08:18 Mojolicious-6.08/examples/hello-template.pl
│   │ --rw-r--r-- sri/staff        124 2015-03-08 11:02:05 Mojolicious-6.08/examples/hello.pl
│   │ --rw-r--r-- sri/staff       1181 2015-04-01 06:49:57 Mojolicious-6.08/examples/microhttpd.pl
│   ╵
╵

The two around the prettify are the ones that are still being removed by
debian/copyright, and the ones at the bottom are (I think) falling out
due to corruption of the archive.

> Fix the debian/copyright file.

I now have:

Files-Excluded: 
 lib/Mojolicious/public/mojo/jquery/jquery.js
 lib/Mojolicious/public/mojo/prettify/run_prettify.js

which causes no warnings about missing things.

Thanks, 
-- 
Robin Sheat
Catalyst IT Ltd.
✆ +64 4 803 2204
GPG: 5FA7 4B49 1E4D CAA4 4C38  8505 77F5 B724 F871 3BDF

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


Reply to: