Bug#924653: jh_build: wrong path when 'jarfile' argument is given with no path

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#924653: jh_build: wrong path when 'jarfile' argument is given with no path

Gilles Filippini-2
Package: javahelper
Version: 0.72.5
Severity: serious
Justification: make other packages FTBFS

Hi,

Recent uploads of javahelper introduced a jh_build regression regarding
the handling of the 'jarfile' parameter.

See this [1] reproducibility build log for mac-widgets.

[1] https://tests.reproducible-builds.org/debian/rbuild/unstable/amd64/mac-widgets_0.10.0+svn416-dfsg1-3.rbuild.log.gz

jh_build is called from debian/rules with:
        jh_build mac_widgets.jar source demo

And the build fails with:
java.nio.file.NoSuchFileException: /tmp/mac_widgets.jar6488846790867776985.jar -> /build/1st/mac-widgets-0.10.0+svn416-dfsg1/mac_widgets.jar/mac_widgets.jar
                                                                                                                             ^^^^^^^^^^^^^^^

It seems jh_build computes a wrong path when the 'jarfile' argument is given with no path.

Any of these workarounds works, but mac-widgets might not be the only source package using jh_build this way:
        jh_build ./mac_widgets.jar source demo
        jh_build $(CURDIR)/mac_widgets.jar source demo

Thanks,

_g.

-- System Information:
Debian Release: buster/sid
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-2-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages javahelper depends on:
ii  bsdmainutils         11.1.2+b1
ii  dctrl-tools          2.24-3
ii  debhelper            12.1.1
ii  devscripts           2.19.3
ii  dpkg-dev             1.19.5
ii  libarchive-zip-perl  1.64-1
ii  perl                 5.28.1-4

javahelper recommends no packages.

Versions of packages javahelper suggests:
pn  cvs       <none>
ii  gawk      1:4.2.1+dfsg-1
ii  tofrodos  1.7.13+ds-4

-- no debconf information

Reply | Threaded
Open this post in threaded view
|

Bug#924653: marked as done (jh_build: wrong path when 'jarfile' argument is given with no path)

Debian Bug Tracking System
Your message dated Sun, 17 Mar 2019 09:49:06 +0000
with message-id <[hidden email]>
and subject line Bug#924653: fixed in javatools 0.72.6
has caused the Debian Bug report #924653,
regarding jh_build: wrong path when 'jarfile' argument is given with no path
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [hidden email]
immediately.)


--
924653: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=924653
Debian Bug Tracking System
Contact [hidden email] with problems

Package: javahelper
Version: 0.72.5
Severity: serious
Justification: make other packages FTBFS

Hi,

Recent uploads of javahelper introduced a jh_build regression regarding
the handling of the 'jarfile' parameter.

See this [1] reproducibility build log for mac-widgets.

[1] https://tests.reproducible-builds.org/debian/rbuild/unstable/amd64/mac-widgets_0.10.0+svn416-dfsg1-3.rbuild.log.gz

jh_build is called from debian/rules with:
        jh_build mac_widgets.jar source demo

And the build fails with:
java.nio.file.NoSuchFileException: /tmp/mac_widgets.jar6488846790867776985.jar -> /build/1st/mac-widgets-0.10.0+svn416-dfsg1/mac_widgets.jar/mac_widgets.jar
                                                                                                                             ^^^^^^^^^^^^^^^

It seems jh_build computes a wrong path when the 'jarfile' argument is given with no path.

Any of these workarounds works, but mac-widgets might not be the only source package using jh_build this way:
        jh_build ./mac_widgets.jar source demo
        jh_build $(CURDIR)/mac_widgets.jar source demo

Thanks,

_g.

-- System Information:
Debian Release: buster/sid
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-2-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages javahelper depends on:
ii  bsdmainutils         11.1.2+b1
ii  dctrl-tools          2.24-3
ii  debhelper            12.1.1
ii  devscripts           2.19.3
ii  dpkg-dev             1.19.5
ii  libarchive-zip-perl  1.64-1
ii  perl                 5.28.1-4

javahelper recommends no packages.

Versions of packages javahelper suggests:
pn  cvs       <none>
ii  gawk      1:4.2.1+dfsg-1
ii  tofrodos  1.7.13+ds-4

-- no debconf information

Source: javatools
Source-Version: 0.72.6

We believe that the bug you reported is fixed in the latest version of
javatools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [hidden email],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Niels Thykier <[hidden email]> (supplier of updated javatools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [hidden email])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 17 Mar 2019 09:20:20 +0000
Source: javatools
Architecture: source
Version: 0.72.6
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers <[hidden email]>
Changed-By: Niels Thykier <[hidden email]>
Closes: 924653
Changes:
 javatools (0.72.6) unstable; urgency=medium
 .
   * Team upload.
   * jh_build: Fix wrong path for jar command when the jar was path
     was specified without a slash.  Thanks to Gilles Filippini for
     reporting the bug.  (Closes: #924653)
Checksums-Sha1:
 e670f63dda4ed163924340ccd1510e8f6e114b62 1869 javatools_0.72.6.dsc
 004c2470dcc680b9843008e2d113a8ea811e6148 53652 javatools_0.72.6.tar.xz
 eb61793747a9f2abe72b5b134efb2beaa9759ef1 11169 javatools_0.72.6_source.buildinfo
Checksums-Sha256:
 a4ec7c876c8c1be2b1082d133c9295090b7bf3edb567014ac1c63a4ba3908ec6 1869 javatools_0.72.6.dsc
 8f05b3a83598164b3d60267bec81f6a0283090b5c84ba22a24d2d535bb65a082 53652 javatools_0.72.6.tar.xz
 5adbba67583528ad15815eb35827f1f5b1e0b7fc2681e9a7122c129d760f5f8c 11169 javatools_0.72.6_source.buildinfo
Files:
 48f6b9220f6cc357d5c07026bd3c1ba3 1869 java optional javatools_0.72.6.dsc
 4b539a81a7eed294dae60698c6081d71 53652 java optional javatools_0.72.6.tar.xz
 a1969b48cf8b53308b0a79a063cd8751 11169 java optional javatools_0.72.6_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE8f9dDX4ALfD+VfsMplt42+Z8eqwFAlyOFPYACgkQplt42+Z8
eqzzHw//a9K0WrPTtm+fY/egXyq5IU8T2k9gb0Iqj6JNZPjnz5o4mEf9MhE4CGgn
8rQlDYqey8XXMccX0k/Z2L8mmX3/zNHMp3P8Wscfb3ePUMfb0091vn6Urm4vMPBa
O4rCegw4YAkX2bPuB0YPz0UDnhKwNKr1mpmYJKzAgi3tZRD0oJngSFcvNVs8aYVO
bEMkQLu2uOux6GmBqKGZI7d4rv7PhfAKZeDPffktge35+nd7RS4SGom9Xi1Ll9j8
cLVWfPe/AZxfxONDVVeWMJb1p0qosGY3geqNo0MoxtoSurUD8OMMCyzf4MPjvSwO
tJcyERr0HAw+5H7sSIKY9YBlnqzokcxZpzBifmqs0/KBg9+MThNyGNQEjKAZ5J0l
fwBeEcrLucPFkbfgRuksy5t4hrj2XnjN21q3YBZHhaPwE/zTmFSyzzUWp9lvQDXz
7g8u28sb/5VxoqxPTSvRs/NvIilA0i+Ph4scfqyExSX1tclP+0r0zembBxFQ9juS
z5xWL3pQpTYPetXSzh6ZY4jiCLtaR5Z+UE45KkJYGbU6j6SY5H1/FG5h7YRppSGp
u9SB4LSy1tSt/qL6ItA1kbicdAo77GnmOz1CjvYiVNwrzglbqAHtSkrObtgIVk+g
WMeE9kCTAW9HeRWoM+25J9Hffqvs+vH4EOulJOeucIf9C8w0hVQ=
=qNgz
-----END PGP SIGNATURE-----