Bug#910041: aether-ant-tasks FTBFS: error: Can't rename /usr/share/java/commons-lang3.jar as /usr/share/java/commons-lang3.zbk Permission denied

2018-10-09 Thread Stuart Prescott
> |jh_classpath -O--buildsystem=maven
> | 
> | error: Can't rename /usr/share/java/commons-lang3.jar as
> | /usr/share/java/commons-lang3.zbk Permission denied| 
> |  at /usr/share/perl5/Archive/Zip/Archive.pm line 471.
> |  
> | Archive::Zip::Archive::overwriteAs(Archive::Zip::Archive=HASH(0x55
> | ba51fd0bf8), "/usr/share/java/commons-lang3.jar") called at
> | /usr/share/perl5/Archive/Zip/Archive.pm line 439
> | Archive::Zip::Archive::overwrite(Archive::Zip::Archive=HASH(0x55b
> | a51fd0bf8)) called at /usr/bin/jh_manifest line 342
> | main::update_jar("/usr/share/java/commons-lang3.jar", undef)
> | called at /usr/bin/jh_manifest line 147| 
> | jh_manifest: Writing modified jar (/usr/share/java/commons-lang3.jar)
> | failed: Permission denied jh_classpath: jh_manifest
> | -plibaether-ant-tasks-java --classpath=\\
> | /usr/share/java/commons-lang3.jar returned exit code 13 make: ***

There are some subtle clues about stray whitespace being included in file 
paths there. The debian/libaether-ant-tasks-java.classpath was broken up 
across multiple lines with backslashes, however the newly rewritten 
jh_classpath doesn't seem to support this and so each line was being 
interpreted as a new jar that should have its classpath rewritten.

Is this a welcome behaviour change in javahelper?

(A suitable fix for this is package in git and builds OK now)

Cheers
Stuart

-- 
Stuart Prescotthttp://www.nanonanonano.net/   stu...@nanonanonano.net
Debian Developer   http://www.debian.org/ stu...@debian.org
GPG fingerprint90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7



Bug#910041: aether-ant-tasks FTBFS: error: Can't rename /usr/share/java/commons-lang3.jar as /usr/share/java/commons-lang3.zbk Permission denied

2018-10-09 Thread Andreas Tille
Hi Emmanuel,

since several Debian Med package depend from aether-ant-tasks I had a
look whether I can help.  I started with some polishing in Git (set Vcs
fields, Standards-Version, debhelper, cme) but for the real problem I
can only confirm that I can reproduce the issue.  However, since the
packaging looks pretty normal to me I suspect that the issue might be
rather caused by javahelper than by the package itself.

Unfortunately I can not be of more help here.

Kind regards

   Andreas.

-- 
http://fam-tille.de



Bug#910041: aether-ant-tasks FTBFS: error: Can't rename /usr/share/java/commons-lang3.jar as /usr/share/java/commons-lang3.zbk Permission denied

2018-10-01 Thread Helmut Grohne
Source: aether-ant-tasks
Version: 1.0.1-2
Severity: serious
Tags: ftbfs

A native build of aether-ant-tasks with sbuild in unstable on amd64 ends
with:

|jh_classpath -O--buildsystem=maven
| error: Can't rename /usr/share/java/commons-lang3.jar as 
/usr/share/java/commons-lang3.zbk Permission denied 
|  at /usr/share/perl5/Archive/Zip/Archive.pm line 471.
| 
Archive::Zip::Archive::overwriteAs(Archive::Zip::Archive=HASH(0x55ba51fd0bf8), 
"/usr/share/java/commons-lang3.jar") called at 
/usr/share/perl5/Archive/Zip/Archive.pm line 439
| 
Archive::Zip::Archive::overwrite(Archive::Zip::Archive=HASH(0x55ba51fd0bf8)) 
called at /usr/bin/jh_manifest line 342
| main::update_jar("/usr/share/java/commons-lang3.jar", undef) called 
at /usr/bin/jh_manifest line 147
| jh_manifest: Writing modified jar (/usr/share/java/commons-lang3.jar) failed: 
Permission denied
| jh_classpath: jh_manifest -plibaether-ant-tasks-java --classpath=\\ 
/usr/share/java/commons-lang3.jar returned exit code 13
| make: *** [debian/rules:4: binary] Error 2
| dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned 
exit status 2

Helmut