[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1107486: marked as done (gcc-defaults: multiple problems with the gfortran modversion)



Your message dated Thu, 04 Sep 2025 00:05:00 +0000
with message-id <E1utxTI-005JCS-0o@fasolo.debian.org>
and subject line Bug#1107486: fixed in gcc-defaults 1.226
has caused the Debian Bug report #1107486,
regarding gcc-defaults: multiple problems with the gfortran modversion
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 owner@bugs.debian.org
immediately.)


-- 
1107486: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1107486
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: gcc-defaults
Version: 1.224
Severity: important
Tags: patch
Justification: breaks architecture cross bootstrap
User: debian-cross@lists.debian.org
Usertags: cross-satisfiability
User: helmutg@debian.org
Usertags: rebootstrap
X-Debbugs-Cc: zeha@debian.org

Hi Matthias,

you recently fixed use of the apt cache in gcc-defaults #1104504.
Unfortunately, the new version poses several problems.

A relatively straight forward one is this message during build:

| dpkg-query: error in show format: may not be empty string

It originates from:

| MOD_VER := $(shell dpkg-query -W --showformat='${Provides}' gfortran-$(PV_GFORT) \
|                 | sed 's/.*\(gfortran-mod-[0-9]*\).*/\1/')

In this invocation, ${Provides} is evaluated as a makefile variable. As
it happens to be unset, the empty string is substituted. dpkg doesn't
like that and as a result, gfortran does not provide any gfortran-mod-*.

This is easily fixed by escaping the $ as '$${Provides}'. Fair enough.

The next problem is the additional gfortran-VER dependency. It's implied
as a host architecture dependency and it transitively depends on
binutils:HOST. This is in stark conflict with binutils:BUILD as depended
upon by build-essential. As a result, this dependency is always
cross-unsatisfiable.

If we assume that the modversion does not vary across architectures
(which seems like a valid assumption given that it is scraped from
$(srcdir)/gcc/fortran/module.cc), we may change that to
gfortran-VER:native. Do you agree?

Helmut
diff --minimal -Nru gcc-defaults-1.225/debian/changelog gcc-defaults-1.225+nmu1/debian/changelog
--- gcc-defaults-1.225/debian/changelog	2025-05-03 22:55:23.000000000 +0200
+++ gcc-defaults-1.225+nmu1/debian/changelog	2025-06-07 13:15:53.000000000 +0200
@@ -1,3 +1,11 @@
+gcc-defaults (1.225+nmu1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix mod-version computation.
+  * Depend on the native gfortran-N.
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sat, 07 Jun 2025 13:15:53 +0200
+
 gcc-defaults (1.225) experimental; urgency=medium
 
   * Fix ga68 cross dependencies.
diff --minimal -Nru gcc-defaults-1.225/debian/control gcc-defaults-1.225+nmu1/debian/control
--- gcc-defaults-1.225/debian/control	2025-05-03 16:36:44.000000000 +0200
+++ gcc-defaults-1.225+nmu1/debian/control	2025-06-07 13:15:53.000000000 +0200
@@ -5,7 +5,7 @@
 Uploaders: Matthias Klose <doko@debian.org>
 Standards-Version: 4.7.2
 Build-Depends: m4, debhelper-compat (= 13),
-  gcc-15-base (>= 15.1.0-2~), gfortran-15,
+  gcc-15-base (>= 15.1.0-2~), gfortran-15:native,
   lsb-release
 Vcs-Browser: https://salsa.debian.org/toolchain-team/gcc-defaults
 Vcs-Git: https://salsa.debian.org/toolchain-team/gcc-defaults.git
diff --minimal -Nru gcc-defaults-1.225/debian/rules gcc-defaults-1.225+nmu1/debian/rules
--- gcc-defaults-1.225/debian/rules	2025-05-03 16:30:14.000000000 +0200
+++ gcc-defaults-1.225+nmu1/debian/rules	2025-06-07 13:15:53.000000000 +0200
@@ -592,7 +592,7 @@
   ))
 endif
 
-MOD_VER := $(shell dpkg-query -W --showformat='${Provides}' gfortran-$(PV_GFORT) \
+MOD_VER := $(shell dpkg-query -W --showformat='$${Provides}' gfortran-$(PV_GFORT) \
 		| sed 's/.*\(gfortran-mod-[0-9]*\).*/\1/')
 
 README:
@@ -745,7 +745,7 @@
 ifeq ($(with_native),yes)
 	sed \
 	  -e "s/@SOURCE@/$(SOURCE)/g" \
-	  -e "s/@GFORTRAN@/gfortran-$(PV_GFORT)/g" \
+	  -e "s/@GFORTRAN@/gfortran-$(PV_GFORT):native/g" \
 	  debian/control.source  > debian/control
 	sed \
 	  -e "s/@multilib_archs@/$(multilib_archs)/g" \
@@ -755,7 +755,7 @@
 else
 	  sed \
 	    -e "s/@SOURCE@/$(SOURCE)/g" \
-	    -e "s/@GFORTRAN@/gfortran-$(PV_GFORT)/g" \
+	    -e "s/@GFORTRAN@/gfortran-$(PV_GFORT):native/g" \
 	    debian/control.source \
 	    | grep -v '^Build-Depends-Indep:' \
 	    > debian/control

--- End Message ---
--- Begin Message ---
Source: gcc-defaults
Source-Version: 1.226
Done: Matthias Klose <doko@debian.org>

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

Debian distribution maintenance software
pp.
Matthias Klose <doko@debian.org> (supplier of updated gcc-defaults 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)


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

Format: 1.8
Date: Thu, 04 Sep 2025 01:22:32 +0200
Source: gcc-defaults
Architecture: source
Version: 1.226
Distribution: unstable
Urgency: medium
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Closes: 1099449 1107486
Changes:
 gcc-defaults (1.226) unstable; urgency=medium
 .
   * Fix some man page issues (Bjarni Ingi Gislason). Closes: #1099449.
   * Fix mod-version computation (Helmut Grohne). Closes: #1107486.
   * Depend on the native gfortran-N (Helmut Grohne).
   * Build libgphobos-dev on ppc64el.
   * Bump versions to 15.2 and 14.3.
Checksums-Sha1:
 4079a9eb7ea2d863e2c84286474be7c6e722581d 37750 gcc-defaults_1.226.dsc
 b87d12157f9498e64082f35f105ec5d0d7ec0ba6 55392 gcc-defaults_1.226.tar.xz
 f1aa6f7fd25aaef326557fb5f41358eaf0c69182 6211 gcc-defaults_1.226_source.buildinfo
Checksums-Sha256:
 0fdb11463f9750a4519dc05e791723d09b06de6dfc7f9787b1eab6c4c5350a90 37750 gcc-defaults_1.226.dsc
 2823e8a1958a4b0f2a0ccccf5ae84cfc20d52001bc7410b3a504a979a132264a 55392 gcc-defaults_1.226.tar.xz
 cee315a995120e9e4aae523d633bdff97084c18a17672244bd28245d1f1b829d 6211 gcc-defaults_1.226_source.buildinfo
Files:
 427560eb4a02c8d68a06e3eab88b714f 37750 devel standard gcc-defaults_1.226.dsc
 a287c9985a93d1afad7cefdf792f11bb 55392 devel standard gcc-defaults_1.226.tar.xz
 5338235623a3e694cbee16911d822f36 6211 devel standard gcc-defaults_1.226_source.buildinfo

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

iQJEBAEBCgAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAmi40QAQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9QG/EADZt8IKY+/1cldgLQ7dOYVAtfRSxY2afHMA
WXQvjHuA3hm9RXIOUkU63wJMdSYRjFPA0yOxL3dZwvGM/Tqk6/VGDqauzKPAZJj7
8r2MVsff5gmQbsNcpk5IBxCVRdCptmk81Ivzqp+VvtPyct3oyHS7KrABH0+L4b4O
c7xdfavhc9AuYJcUi24OT4daG+HfuNWgVh/7UtoOV5YF53VzM6tuBxgFkdYnYWcu
Xy9jKPso2jQWtA2Mp/At6f5KecaT2Pz4JN/SBrW3gj5cY2ZMXKbT2PKni4ZbXEY/
icnJ88Z9eC2853Xqfd6GNZ5idpYnYzoXKtGxrKnFMwXHoJxWdXPwJjvz5nqrESLx
QMh+S6EUk/bjEfr8ED0965Frs2Fzbja63J7a9tAnb+k3pdB0WFyyeaYZJgcRc/8L
DG1UzS/9942jNgaoEnGAxf41nPg8J1HibVTNWpMTry9rV3R3whVjLFERzjuaWuTa
zn02kLHK2DDXJKnGUBbBYBkvRTPYfiIbj/d3TfwbMzYUdG1sx3EpwSdgv0TYHAq7
iow30zZ3I7wl9OGbSHbsWB5bjw4myVc0nhy6OhmzG+qxLi+KxE91oT2ud8F3vzWZ
ofMfqjZLYDcDRB6YdHD2fL7Vv66PmJiPLwFSHXdKvjLuiB9Vh9slSBZpdtJQQboS
SE3BWw6T2Q==
=yiND
-----END PGP SIGNATURE-----

Attachment: pgpz_lJxnoPtK.pgp
Description: PGP signature


--- End Message ---

Reply to: