Your message dated Sun, 28 Apr 2024 18:04:45 +0000
with message-id <e1s18tj-000gjn...@fasolo.debian.org>
and subject line Bug#1069921: fixed in libusb-java 0.8+ztex20090101-10
has caused the Debian Bug report #1069921,
regarding libusb-java FTCBFS: uses the build architecture compiler
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 ow...@bugs.debian.org
immediately.)


-- 
1069921: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1069921
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: libusb-java
Version: 0.8+ztex20090101-9
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

libusb-java fails to cross build from source, because the upstream
Makefile uses a non-standard variable (GCC) for the C compiler and
because debian/rules does not pass cross tools to make. I propose
renaming the variable to the usual CC variable and using dh_auto_build.
Please find a patch attached.

Helmut
diff --minimal -Nru libusb-java-0.8+ztex20090101/debian/changelog 
libusb-java-0.8+ztex20090101/debian/changelog
--- libusb-java-0.8+ztex20090101/debian/changelog       2021-02-07 
23:29:30.000000000 +0100
+++ libusb-java-0.8+ztex20090101/debian/changelog       2024-04-26 
11:25:31.000000000 +0200
@@ -1,3 +1,10 @@
+libusb-java (0.8+ztex20090101-9.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use cross tools for build. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 26 Apr 2024 11:25:31 +0200
+
 libusb-java (0.8+ztex20090101-9) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru libusb-java-0.8+ztex20090101/debian/patches/cross.patch 
libusb-java-0.8+ztex20090101/debian/patches/cross.patch
--- libusb-java-0.8+ztex20090101/debian/patches/cross.patch     1970-01-01 
01:00:00.000000000 +0100
+++ libusb-java-0.8+ztex20090101/debian/patches/cross.patch     2024-04-26 
11:25:31.000000000 +0200
@@ -0,0 +1,50 @@
+--- libusb-java-0.8+ztex20090101.orig/Makefile
++++ libusb-java-0.8+ztex20090101/Makefile
+@@ -21,7 +21,7 @@
+ ###############################
+ # this should not be modified #
+ ###############################
+-GCC=gcc
++CC?=gcc
+ STRIP=strip
+ CHMOD=chmod -x
+ JAVAC=javac -source 7 -target 7 -encoding ISO-8859-1
+@@ -51,7 +51,7 @@
+ libs: $(LIBTARGET_SH)
+ 
+ %.o: %.c LibusbJava.h
+-      $(GCC) -fPIC -g -c -std=c99 -Wall -Wno-pointer-to-int-cast $(LIBINCS) 
$< -o$@
++      $(CC) -fPIC -g -c -std=c99 -Wall -Wno-pointer-to-int-cast $(LIBINCS) $< 
-o$@
+ 
+ $(LIBTARGET_ST): $(LIBSRCS)
+ 
+@@ -64,25 +64,25 @@
+ 
+ 
+ $(LIBTARGET_ST)$(VERSIONSUFFIX): $(LIBSRCS)
+-      $(GCC) -shared -Wl,-soname,$(LIBTARGET_ST),-static $(LIBINCS) 
$(LIBSRCS) -static -o $(LIBTARGET_ST)$(VERSIONSUFFIX) $(LIBLIBS)
++      $(CC) -shared -Wl,-soname,$(LIBTARGET_ST),-static $(LIBINCS) $(LIBSRCS) 
-static -o $(LIBTARGET_ST)$(VERSIONSUFFIX) $(LIBLIBS)
+       [ -r $(LIBTARGET_ST) ] || ln -s $(LIBTARGET_ST)$(VERSIONSUFFIX) 
$(LIBTARGET_ST)
+       $(STRIP) $(LIBTARGET_ST)
+       $(CHMOD) $(LIBTARGET_ST)
+ 
+ $(LIBTARGET_SH)$(VERSIONSUFFIX): $(LIBSRCS)
+-      $(GCC) -fPIC -shared -Wl,-soname,$(LIBTARGET_SH) $(LIBINCS) $(LIBSRCS) 
-o $(LIBTARGET_SH)$(VERSIONSUFFIX) $(LIBLIBS)
++      $(CC) -fPIC -shared -Wl,-soname,$(LIBTARGET_SH) $(LIBINCS) $(LIBSRCS) 
-o $(LIBTARGET_SH)$(VERSIONSUFFIX) $(LIBLIBS)
+       [ -r $(LIBTARGET_SH) ] || ln -s $(LIBTARGET_SH)$(VERSIONSUFFIX) 
$(LIBTARGET_SH)
+       $(STRIP) $(LIBTARGET_SH)
+       $(CHMOD) $(LIBTARGET_SH)
+ 
+ $(LIBTARGET)$(VERSIONSUFFIX): $(LIBSRCS)
+-      $(GCC) -fPIC -shared -Wl,-soname,$(LIBTARGET) $(LIBINCS) $(LIBSRCS) -o 
$(LIBTARGET)$(VERSIONSUFFIX) $(LIBLIBS)
++      $(CC) -fPIC -shared -Wl,-soname,$(LIBTARGET) $(LIBINCS) $(LIBSRCS) -o 
$(LIBTARGET)$(VERSIONSUFFIX) $(LIBLIBS)
+       [ -r $(LIBTARGET) ] || ln -s $(LIBTARGET)$(VERSIONSUFFIX) $(LIBTARGET)
+       $(STRIP) $(LIBTARGET)
+       $(CHMOD) $(LIBTARGET)
+ 
+ $(LIBTARGET_64)$(VERSIONSUFFIX): $(LIBSRCS64)
+-      $(GCC) -fPIC -m64 -shared -std=c99 -Wall -Wno-pointer-to-int-cast 
-Wl,-soname,$(LIBTARGET_64) $(LIBINCS) $(LIBSRCS64) $(LIBLIBS) -o 
$(LIBTARGET_64)$(VERSIONSUFFIX)
++      $(CC) -fPIC -m64 -shared -std=c99 -Wall -Wno-pointer-to-int-cast 
-Wl,-soname,$(LIBTARGET_64) $(LIBINCS) $(LIBSRCS64) $(LIBLIBS) -o 
$(LIBTARGET_64)$(VERSIONSUFFIX)
+       [ -r $(LIBTARGET_64) ] || ln -s $(LIBTARGET_64)$(VERSIONSUFFIX) 
$(LIBTARGET_64)
+       $(STRIP) $(LIBTARGET_64)
+       $(CHMOD) $(LIBTARGET_64)
diff --minimal -Nru libusb-java-0.8+ztex20090101/debian/patches/series 
libusb-java-0.8+ztex20090101/debian/patches/series
--- libusb-java-0.8+ztex20090101/debian/patches/series  2020-09-05 
14:43:49.000000000 +0200
+++ libusb-java-0.8+ztex20090101/debian/patches/series  2024-04-26 
11:25:31.000000000 +0200
@@ -1,3 +1,4 @@
 jniInclude.patch
 sharedLibraries.patch
 java-compat.patch
+cross.patch
diff --minimal -Nru libusb-java-0.8+ztex20090101/debian/rules 
libusb-java-0.8+ztex20090101/debian/rules
--- libusb-java-0.8+ztex20090101/debian/rules   2021-02-07 23:27:55.000000000 
+0100
+++ libusb-java-0.8+ztex20090101/debian/rules   2024-04-26 11:25:27.000000000 
+0200
@@ -15,7 +15,7 @@
 
 DOCPATH=doc/html
 override_dh_auto_build-arch:
-       $(MAKE) STRIP="# not stripping: " libs
+       dh_auto_build -- STRIP="# not stripping: " libs
        touch build-arch-stamp
 
 override_dh_auto_build-indep:

--- End Message ---
--- Begin Message ---
Source: libusb-java
Source-Version: 0.8+ztex20090101-10
Done: tony mancill <tmanc...@debian.org>

We believe that the bug you reported is fixed in the latest version of
libusb-java, 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 1069...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
tony mancill <tmanc...@debian.org> (supplier of updated libusb-java 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 ftpmas...@ftp-master.debian.org)


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

Format: 1.8
Date: Sun, 28 Apr 2024 10:27:45 -0700
Source: libusb-java
Architecture: source
Version: 0.8+ztex20090101-10
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers 
<pkg-java-maintain...@lists.alioth.debian.org>
Changed-By: tony mancill <tmanc...@debian.org>
Closes: 1057523 1069921
Changes:
 libusb-java (0.8+ztex20090101-10) unstable; urgency=medium
 .
   * Team upload
 .
   [ Vladimir Petko ]
   * d/rules, d/p/java-compat.patch: use java_compat_level variable provided
     by java-common to adjust -source/-target level to the minimum required
     by the default Java (Closes: #1057523).
 .
   [ Helmut Grohne ]
   * Fix FTCBFS: Use cross tools for build. (Closes: #1069921)
 .
   [ Debian Janitor ]
   * Trim trailing whitespace.
   * Use versioned copyright format URI.
 .
   [ tony mancill ]
   * Bump Standards-Version to 4.7.0
   * Set Rules-Requires-Root: no in debian/control
Checksums-Sha1:
 af3b056d0f6c70fd9259e6c2249c8e826dac5250 2192 
libusb-java_0.8+ztex20090101-10.dsc
 f73d61d156b99290f8585e984d80e17fabf327ec 5700 
libusb-java_0.8+ztex20090101-10.debian.tar.xz
 cd98005eea728e01e3ba6957def9d6592a101141 10811 
libusb-java_0.8+ztex20090101-10_amd64.buildinfo
Checksums-Sha256:
 9580b0147aa6468ba5d764bf4585ecae24c9a98906e3795560152621f9035001 2192 
libusb-java_0.8+ztex20090101-10.dsc
 9df418e878add3952d40b552afa39c591714b4842199ca6cc45085bef643fdef 5700 
libusb-java_0.8+ztex20090101-10.debian.tar.xz
 40f491fe5c93511cd3eabb7d2496a1780d7526ac1adb3e1a4307558f9edfd0d0 10811 
libusb-java_0.8+ztex20090101-10_amd64.buildinfo
Files:
 faa620a36e01fd3c6f625c6eb7d153dc 2192 java optional 
libusb-java_0.8+ztex20090101-10.dsc
 2ddb0d81c847fde59d97b5f4428202e9 5700 java optional 
libusb-java_0.8+ztex20090101-10.debian.tar.xz
 b3964174d266b4c50885b8978b01f5b7 10811 java optional 
libusb-java_0.8+ztex20090101-10_amd64.buildinfo

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

iQJIBAEBCgAyFiEE5Qr9Va3SequXFjqLIdIFiZdLPpYFAmYuikYUHHRtYW5jaWxs
QGRlYmlhbi5vcmcACgkQIdIFiZdLPpa6bg//UQbgaOfcYsGE0gFBUkUSrutPKD/E
BEFZjxWGeiwm5AomM7E8VK8DTwKMCR0AP1O5Kn6Hg6pT1FJ8Ru7faghMFjnVMhSX
kxGVS3LSaIF3EXR7rGkNamVBiDaNBWF/QEsG0uM2ox6eYwgzse3bcyqjrtuBl50N
TUOoSlc8ftJIGoE3XYBRNMnCB6nPM9DTk+R0r21aAMDZPDANRKN4KLdIIa80SEu9
j4eh46F7m23DKhHhfajl6veaNE0gM13Qhe/FWlmH8D/9pfI2OzVyBYnTU6nkEi9a
Rj7IpfgQIB4Ef5EYJxSZfoaEzACWHg+7GN/28B9N725pZ+Cq1J6Xe82iSe9KNLWD
l9qPAODjE6iKykbubBfmfwql49PMvhir/64O8MUqU5q1ZrvUPFbili3mYemRY9N1
ZXoNhSM3MtL+nlIvj6wMWrsCHQH53vibxKE/yDf1GLSDpoNRjx/7PRoomhO8NRuW
/pLvQWbfor6pdJ8hapbHvrG06jQa7GkNVyep2p728+2Wjt6X0Yis1Ka280EFsOQ0
OcYuJ5rs2YW5TIhVhCf02X0HDgO9n1o7yBy6cnKv4XZ8nKOBj1m4ImVWHLD9k6Iq
x9JQ/I0fFCHePy/CpgOhc5f5pCsj5922QJkX+L6HtAqmgTTsdnZk1/v6bhesMtGn
apPo+6rkovWsrds=
=w1CX
-----END PGP SIGNATURE-----

Attachment: pgpxMnbtSJwF7.pgp
Description: PGP signature


--- End Message ---
__
This is the maintainer address of Debian's Java team
<https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-maintainers>.
 Please use
debian-j...@lists.debian.org for discussions and questions.

Reply via email to