RE:uscan of the tango package, mk-origtargz

2019-08-25 Thread PICCA Frederic-Emmanuel
> Can you reproduce the problem with:
> $ cat tango-9.3.3-rc2.tar | tar --delete  > \
>  tango-9.3.3-rc2-excluded.tar
> ?

here

:~/Debian/tango$ cat tango-9.3.3-rc2.tar | tar --delete 
tango-9.3.3/lib/java/RestServer-1.14.jar > tango-9.3.3-rc2-excluded.tar
tar: tango-9.3.3/lib/java/RestServer-1.14.jar : non trouvé dans l'archive
tar: Arrêt avec code d'échec à cause des erreurs précédentes

So it does not work this way


RE:uscan of the tango package, mk-origtargz

2019-08-25 Thread PICCA Frederic-Emmanuel
> Please confirm that
> > LANG=C tar --delete $(tar tf tango-9.3.3-rc2.tar | grep "lib/java/R.*jar") 
> > < tango-9.3.3-rc2.tar > tango.tar
> is inspired by `mk-origtargz`.

not at all, I found this in #869087, which is a tar bug with --delete.

It is not clear to me what is the cmd executed by mk-origtargz.
It would be nice to have a debug mode for this.

Cheers

Fred

> Karma bonus points for providing context.

I just try to make  gbp import-orig --uscan works with my package.

cheers



RE:uscan of the tango package

2019-08-25 Thread PICCA Frederic-Emmanuel
I tryed to reproduce the issue like this

LANG=C tar --delete $(tar tf tango-9.3.3-rc2.tar | grep "lib/java/R.*jar") < 
tango-9.3.3-rc2.tar > tango.tar
tar: tango-9.3.3/lib/java/RestServer-1.14.jar: Not found in archive
tar: Exiting with failure status due to previous errors

Is it the right way to use --delete ?


RE:uscan of the tango package

2019-08-25 Thread PICCA Frederic-Emmanuel
> mk-origtargz just calls tar --delete < file > newfile and as you can
> easily check this indeed gives the same error message.

the listed files are the right files as extracted by tar from the upstream 
tar.gz, so 
this is an issue with tar ?

Is it possible to display the exact tar command line generated by mk-origtargz ?



RE:uscan of the tango package

2019-08-25 Thread PICCA Frederic-Emmanuel
looking at the directroy, I find this
drwxr-xr-x 11 picca picca  4096 août  20 17:23 tango-9.3.3
-rw-r--r--  1 picca picca 282982400 août  25 08:37 
tango_9.3.3~rc2+dfsg1.orig.tar
-rw-r--r--  1 picca picca 232776497 août  25 08:36 tango-9.3.3-rc2.tar.gz

what is strange it that the extracted directory is

tango-9.3.3 and not tango-9.3.3-rc2 like the upstream version.

In fact, I just changed the uscan file in order to get an artefact from github

version=4 opts="dversionmangle=s/\+dfsg\d*$//,\
   repacksuffix=+dfsg1,\
   uversionmangle=s/-(rc|a|b|c)/~$1/" \
   https://github.com/tango-controls/TangoSourceDistribution/releases \
   .*/@PACKAGE@@ANY_VERSION@\.tar\.gz debian uupdate

Is there something wrong here ?


RE:uscan of the tango package

2019-08-25 Thread PICCA Frederic-Emmanuel
Hello

> Found jar deletion instruction
> at https://salsa.debian.org/science-team/tango/blob/master/debian/copyright#L5

yes I use
Files-Excluded: lib/java/*.jar

from DEP-5 (it was find until now)

> I assume that upstream has stopped shipping jars in there .tar.gz
> If so, then it is a good thing.

not at all, the files are right there and the version number of each jars are  
the one of the upstream tar.

so I do not understand the error.


did you tryed to do 

gbp import-orig --uscan

and look at the upstream tar.gz ?