Package: open-iscsi
Version: 2.1.3-3
Severity: serious
Tags: d-i ftbfs patch
Justification: fails to build from source (but built successfully in the past)

open-iscsi fails to build on mips64el:

| dh_missing --fail-missing
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
|    dh_strip -a
|    debian/rules override_dh_makeshlibs
| make[1]: Entering directory '/<<PKGBUILDDIR>>'
| dh_makeshlibs --add-udeb=open-iscsi-udeb
| dh_makeshlibs: error: The udeb open-iscsi-udeb does not contain any shared 
libraries but --add-udeb=open-iscsi-udeb was passed!?
| make[1]: *** [debian/rules:104: override_dh_makeshlibs] Error 25
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| make: *** [debian/rules:13: binary-arch] Error 2
| dpkg-buildpackage: error: debian/rules binary-arch subprocess returned exit 
status 2

A full build-log is available here:
https://buildd.debian.org/status/fetch.php?pkg=open-iscsi&arch=mips64el&ver=2.1.3-3&stamp=1619796879&raw=0

This happens as the open-iscsi-udeb package is not build on this
architecture. The reason for that is indicated in the debian/control
file:

| Package: open-iscsi-udeb
| # Note: the (virtual) udeb package scsi-modules (provided by different
| #       linux kernel udebs) must exist for these architectures - so
| #       check that before adding them to this list; the other
| #       scsi-(core|common|...)-modules are NOT sufficient!
| Architecture: amd64 arm64 armhf i386 ia64 mips mipsel powerpc ppc64 ppc64el 
s390x

However it happens that mips64el do have such scsi-module packages
containing the iscsi and libiscsi modules:
- 
https://packages.debian.org/search?suite=sid&arch=mips64el&keywords=scsi-modules
 

At least the following architectures also have this package:
- alpha: 
https://packages.debian.org/search?suite=sid&arch=alpha&keywords=scsi-modules
- hppa: 
https://packages.debian.org/search?suite=sid&arch=hppa&keywords=scsi-modules
- m68k: 
https://packages.debian.org/search?suite=sid&arch=m68k&keywords=scsi-modules
- riscv64: 
https://packages.debian.org/search?suite=sid&arch=riscv64&keywords=scsi-modules 
- sparc64: 
https://packages.debian.org/search?suite=sid&arch=sparc64&keywords=scsi-modules

The patch below therefore updates the debian/control file so that
open-iscsi builds correctly on those architecture:

--- open-iscsi-2.1.3/debian/control
+++ open-iscsi-2.1.3/debian/control
@@ -139,7 +139,7 @@
 #       linux kernel udebs) must exist for these architectures - so
 #       check that before adding them to this list; the other
 #       scsi-(core|common|...)-modules are NOT sufficient!
-Architecture: amd64 arm64 armhf i386 ia64 mips mipsel powerpc ppc64 ppc64el 
s390x
+Architecture: alpha amd64 arm64 armhf hppa i386 ia64 m68k mips mipsel mips64el 
powerpc ppc64 ppc64el riscv64 s390x sparc64
 Section: debian-installer
 Package-Type: udeb
 Depends: ${misc:Depends},


Regards,
Aurelien

Reply via email to