Bug#1073830: gcc-14: Missing build dependency on cargo on hurd-i386

2024-06-19 Thread Samuel Thibault
Hello,

John Paul Adrian Glaubitz, le mer. 19 juin 2024 13:22:52 +0200, a ecrit:
> gcc-14 needs to build-depend on cargo on hurd-i386 to be able to build gccrs 
> [1]:
> 
>configure: error: cargo is required to build rust

More precisely, rs_no_systems was not actually working. And conversely,
rust was actually ported to hurd, so we can enable rs on it.

The attached patch achieves both.

Samuel
diff --git a/debian/control b/debian/control
index 3ae16fd6..a7e40296 100644
--- a/debian/control
+++ b/debian/control
@@ -15,7 +15,7 @@ Build-Depends: debhelper (>= 11), dpkg-dev (>= 1.17.14), 
g++-multilib [amd64 i38
   gperf, bison, flex,
   gettext, nvptx-tools [amd64 arm64 ppc64el], amdgcn-tools-18 [amd64],
   texinfo, locales-all, sharutils,
-  procps, gnat-13:native [!sparc !loong64], g++-13:native [!loong64], 
gnat-13:native [loong64], g++-14:native [loong64], netbase, gdc-13:native [!arc 
!ia64 !m68k !sh4 !s390 !sparc64 !alpha !hurd-alpha !hurd-amd64 !hurd-i386], 
python3:any, cargo [!hppa !ia64 !m68k !sh4 !alpha !hurd-alpha !hurd-amd64 
!hurd-i386],
+  procps, gnat-13:native [!sparc !loong64], g++-13:native [!loong64], 
gnat-13:native [loong64], g++-14:native [loong64], netbase, gdc-13:native [!arc 
!ia64 !m68k !sh4 !s390 !sparc64 !alpha !hurd-alpha !hurd-amd64 !hurd-i386], 
python3:any, cargo [!hppa !ia64 !m68k !sh4 !alpha !hurd-alpha],
   libisl-dev (>= 0.20), libmpc-dev (>= 1.0), libmpfr-dev (>= 3.0.0-9~), 
libgmp-dev (>= 2:5.0.1~), lib32z1-dev [amd64], lib64z1-dev [i386], unzip 
,
   dejagnu , coreutils, chrpath, lsb-release, quilt, time,
   pkg-config, libgc-dev,
diff --git a/debian/rules.defs b/debian/rules.defs
index 57a4b8ec..dbaf7f0f 100644
--- a/debian/rules.defs
+++ b/debian/rules.defs
@@ -1235,7 +1235,7 @@ endif
 rs_no_cross := yes
 
 rs_no_cpus = alpha hppa ia64 m68k sh4
-rs_no_systems := gnu
+rs_no_systems := 
 
 ifneq ($(with_base_only),yes)
   ifneq ($(separate_lang),yes)
@@ -1245,6 +1245,9 @@ endif
 ifneq (,$(filter $(DEB_TARGET_ARCH_CPU),$(rs_no_cpus)))
 with_rs := disabled for arch $(DEB_TARGET_ARCH_CPU)
 endif
+ifneq (,$(findstring $(DEB_TARGET_GNU_SYSTEM),$(rs_no_systems)))
+  with_rs := disabled for system $(DEB_TARGET_GNU_SYSTEM)
+endif
 ifeq ($(rs_no_cross)-$(DEB_CROSS),yes-yes)
   with_rs := disabled for cross compiler package
 endif


Bug#1073830: gcc-14: Missing build dependency on cargo on hurd-i386

2024-06-19 Thread John Paul Adrian Glaubitz
Source: gcc-14
Version: 14.1.0-2
Severity: normal
User: debian-h...@lists.debian.org
Usertags: hurd-i386
X-Debbugs-Cc: debian-h...@lists.debian.org

Hi,

gcc-14 needs to build-depend on cargo on hurd-i386 to be able to build gccrs 
[1]:

   configure: error: cargo is required to build rust

Thanks,
Adrian

> [1] 
> https://buildd.debian.org/status/fetch.php?pkg=gcc-14=hurd-i386=14.1.0-2=1718795837=0

--
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913