#888037 scsitools FTCBFS: does not use cross tools

#888037#5
Date:
2018-01-22 20:15:52 UTC
From:
To:
scsitools fails to cross build from source, because it generally uses
build architecture tools. In most cases deferring to dh_auto_* fixes.
The explicit gcc invocations can be fixed with buildtools.mk. After
doing so, scsitools cross builds successfully. Please consider applying
the attached patch.

Helmut

#888037#10
Date:
2025-09-26 23:50:23 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
scsitools, 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 888037@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Chris Hofstaedtler <zeha@debian.org> (supplier of updated scsitools 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 ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 27 Sep 2025 01:36:11 +0200
Source: scsitools
Architecture: source
Version: 0.14
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Chris Hofstaedtler <zeha@debian.org>
Closes: 888037
Changes:
 scsitools (0.14) unstable; urgency=medium
 .
   * QA upload.
 .
   [ Chris Hofstaedtler ]
   * Complete sraw removal
   * Complete scsifmt removal
   * Complete scsistop removal
   * Remove patch for kernel 2.2.14
   * Remove unnecessary dirs from debian/dirs
 .
   [ Helmut Grohne ]
   * Fix FTCBFS.
     Let dh_auto_* pass cross flags along.
     Use host CC from buildtools.mk. (Closes: #888037)
Checksums-Sha1:
 db3e4106289d293b4d011cc8493f03075b55bff2 1525 scsitools_0.14.dsc
 bf0ea63faab1081ea42d0319da5728fe71939acc 62840 scsitools_0.14.tar.xz
 9f935b87f87677f4a5cbacd2a063af7bbf6def01 6473 scsitools_0.14_arm64.buildinfo
Checksums-Sha256:
 be6497a2c1b000b58be8912766393aef1d4973f396ca39d51298f68e9d72d920 1525 scsitools_0.14.dsc
 67fb21d6c3dab2126f528146cc24c6ca49c85ef461e603dfb73a1828c62e75c2 62840 scsitools_0.14.tar.xz
 4e750c4013b3f27ac35de8e7883713f0319fa56bb087cb251443f0b52bbe777c 6473 scsitools_0.14_arm64.buildinfo
Files:
 ccc5c385653eed7f2c1600512b13c1bd 1525 utils optional scsitools_0.14.dsc
 da1dd019651670e307001c10ea6bb2f7 62840 utils optional scsitools_0.14.tar.xz
 d659e3eb6941d9e040485b6a094ab2cc 6473 utils optional scsitools_0.14_arm64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEfRrP+tnggGycTNOSXBPW25MFLgMFAmjXI8YACgkQXBPW25MF
LgNqxQ//b96hcSjTlPp42ngDPVknHvWZQ78JVOxSQhbJWIJXHRNUPV9PcT/sBZhJ
BbYspFbCgd3ExwHquTfhsED4ug4yOhcsHtHOdo3sb7h2zNnViQIwi6E33gmT7wby
3TxBQUG0LGWLvY0ATbGgv0fBek4vg4h6L2vn9bQHdMn0j/ONQM+BT/qvOT1NWfhE
GeHT2ZHGLgZRY0sLdXnISmCSIVgYwT/n45zTTYcitOMubIhHAL+oUIBNJZ3qKJst
eNWkKDbRAHNjX5PdGht0HjF/7G7aRwMZLxtgoJBDRMb8eo3b1FVojp1Vot8CvhUh
qFPQWi476rR46H2Sv35V+RbUYPHbhzdw+9wvjvTPk1LClFzdn3g/yJ+YadV5oUVZ
GBf2RngJj0nU7hBT2QYE0V7HwrWqYscCHjfo7k78oDh8WQidNc5yhe4AFIcLZK0K
THCR8Vijp85WRN52Bdp/tvVoFPmTnGzeKlfJiSSqZRD/SULN4UW0rbpmKjuIXj04
h2PbdG6DHQUziHVAYu2Pjp3mYiLAry6cJtlkZGflxkT6FTSgXF31iCOV64hOT1tE
mvxuRf3V+3/SAJxHzi0ssiUz/SvyYFQd3Uey9Lax4FNXhl49uiYkgMu4g9rPn7+y
OUePFt3bl7NdgXyKgjrT1Oq/pMTmcb6kHNHHmx1AlrQ13SqM7Nk=
=wjrT
-----END PGP SIGNATURE-----

#888037#15
Date:
2025-10-02 08:15:01 UTC
From:
To:
Control: reopen -1

Thank you for mostly uploading my patch.

Note that buildtools.mk is not implied in default.mk unless depending on
dpkg-build-api (= 1) or later. Hence the use of $(CC) for scsi-spin
still ends up using the build architecture compiler. As a result
dh_strip fails.

Please either include buildtools.mk (as the patch proposes) or bump the
dpkg-build-api to 1.

Helmut

#888037#24
Date:
2025-10-03 08:34:23 UTC
From:
To:
Hi,

* Helmut Grohne <helmut@subdivi.de> [251002 10:15]:

Maybe you can check if this works correctly for cross-building.

I somewhat regret spending more time on this package than filing an
RM: bug. Maybe for duke then.

Best,
Chris