Bug#887666: jh_linkjars: Invalid option: N

Niels Thykier niels at thykier.net
Sat Apr 7 18:55:00 BST 2018


On Thu, 18 Jan 2018 21:48:00 +0000 Niels Thykier <niels at thykier.net> wrote:
> Control: reassign -1 javahelper
> 
> On Thu, 18 Jan 2018 23:41:19 +0200 Adrian Bunk <bunk at debian.org> wrote:
> > Package: debhelper
> > Version: 11.1.2
> > Severity: serious
> > Control: affects -1 javahelper src:zabbix
> > 
> > https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/zabbix.html
> > 
> > ...
> >    jh_linkjars -O--max-parallel=4 -Nzabbix-frontend-php -Nzabbix-java-gateway
> > Invalid option: N
> > Usage: jh_linkjars [options] [target] 
> > Options:
> > 	-h --help: show this text
> > 	-V --version: show the version
> > 	-v --verbose: show more information while running
> > 	-t --transitive: transitively link jars
> > 	-n --no-act: don't actually do anything, just print the results
> > 	-u --unlink: remove the links instead of adding them
> > debian/rules:77: recipe for target 'binary' failed
> > make: *** [binary] Error 1
> > 
> > 
> > Works after downgrading to debhelper 11
> > 
> > 
> 
> 
> The -N option is a basic "shared" debhelper option required by any
> dh-like tool added to the debhelper sequence (similar to -p/-s/-i).  The
> solution here is to have javahelper support that option.
> 
> Thanks,
> ~Niels
> 
> 
> 

Hi,

I have written some patches to rewrite most of the javatools helpers
into perl using Debhelper's Dh_Lib[1].  This would fix this problem and
avoid future instances of it.

While the patches do include jh_linkjars, I doubt that the bug will be
fixed until jh_build and jh_depends have also been rewritten.
Therefore, I am not tagging this bug with "patch".

Thanks,
~Niels

[1] The 0001 patch is strictly unrelated but avoids relying (fake)root
when building the package.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-javatools-can-be-built-without-fake-root.patch
Type: text/x-patch
Size: 709 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20180407/87ccd42c/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Rewrite-jh_classpath-using-Debhelper-s-Dh_Lib.patch
Type: text/x-patch
Size: 9498 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20180407/87ccd42c/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Rewrite-jh_installjavadoc-using-Debhelper-s-Dh_Lib.patch
Type: text/x-patch
Size: 10375 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20180407/87ccd42c/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Rewrite-jh_exec-using-Debhelper-s-Dh_Lib.patch
Type: text/x-patch
Size: 6535 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20180407/87ccd42c/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Rewrite-jh_installibs-using-Debhelper-s-Dh_Lib.patch
Type: text/x-patch
Size: 11063 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20180407/87ccd42c/attachment-0010.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Rewrite-jh_linkjars-using-Debhelper-s-Dh_Lib.patch
Type: text/x-patch
Size: 9804 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20180407/87ccd42c/attachment-0011.bin>


More information about the pkg-java-maintainers mailing list