🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #6463

Bug#1155567: alire: please apply the attached changes for compatibility with gcc-16

#6463
From: Nicolas Boulenguez
Date: Fri, 27 Nov 2026 20:20
656 lines
23510 bytes
--cVbUCLyjog5iq0O6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Source: alire
Version: 1.2.1-2.1
Severity: normal
Tags: patch

Hello.

The last attached patch fixes the build with gnat-16.  Please review
and/or upload it to unstable.

The gnat-16 transition has other blockers for now but if this issue
eventually becomes the last one, I intend to include the patch in the
non maintainer reupload of all Ada packages from experimental to
unstable.

The other suggestions are trivial, low priority style changes.

Thanks for packaging alire.

--cVbUCLyjog5iq0O6
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
	filename="0001-Enable-continuous-integration-on-salsa.patch"

From 6d809ea30b55476248daf9f9f72ffd7acb6c7aa4 Mon Sep 17 00:00:00 2001
From: Nicolas Boulenguez <nicolas@debian.org>
Date: Thu, 19 Nov 2026 00:01:52 +0100
Subject: [PATCH 01/11] Enable continuous integration on salsa

---
 debian/salsa-ci.yml | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 debian/salsa-ci.yml

diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml
new file mode 100644
index 00000000..26871b96
--- /dev/null
+++ b/debian/salsa-ci.yml
@@ -0,0 +1,2 @@
+include:
+  - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/recipes/debian.yml
-- 
2.47.3


--cVbUCLyjog5iq0O6
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
	filename="0002-Update-watch-file-to-format-version-5.patch"

From 4ad7be05c12b329d2aecc947c339cec19f351a2c Mon Sep 17 00:00:00 2001
From: Nicolas Boulenguez <nicolas@debian.org>
Date: Thu, 19 Nov 2026 00:17:40 +0100
Subject: [PATCH 02/11] Update watch file to format version 5

---
 debian/watch | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/debian/watch b/debian/watch
index d0079703..04eacfd7 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,5 +1,7 @@
-version=4
+Version: 5
 
+Template: GitHub
+Owner: alire-project
+Project: alire
 # @ANY_VERSION@ would also match beta releases
-https://github.com/alire-project/alire/tags \
-  (?:.*?/)?v?(\d[\.\d]*)@ARCHIVE_EXT@
+Custom-Version: v(\d+(?:[.]\d+)*)
-- 
2.47.3


--cVbUCLyjog5iq0O6
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
	filename="0003-Drop-obsolete-Rules-Requires-Root-no.patch"

From 82a167427b44d36b799230e1bae753aff8cca675 Mon Sep 17 00:00:00 2001
From: Nicolas Boulenguez <nicolas@debian.org>
Date: Thu, 19 Nov 2026 00:17:43 +0100
Subject: [PATCH 03/11] Drop obsolete Rules-Requires-Root: no

---
 debian/control | 1 -
 1 file changed, 1 deletion(-)

diff --git a/debian/control b/debian/control
index e2eb5065..0eef2088 100644
--- a/debian/control
+++ b/debian/control
@@ -17,7 +17,6 @@ Build-Depends:
  libxmlezout-dev,
  python3,
 Standards-Version: 4.6.2
-Rules-Requires-Root: no
 Homepage: https://github.com/alire-project
 Vcs-Browser: https://salsa.debian.org/debian/alire
 Vcs-Git: https://salsa.debian.org/debian/alire.git
-- 
2.47.3


--cVbUCLyjog5iq0O6
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
	filename="0004-Drop-obsolete-Priority-optional.patch"

From eff41f6471dad2edfb52da49de55190ef749ab5a Mon Sep 17 00:00:00 2001
From: Nicolas Boulenguez <nicolas@debian.org>
Date: Thu, 19 Nov 2026 00:17:45 +0100
Subject: [PATCH 04/11] Drop obsolete Priority: optional

---
 debian/control | 1 -
 1 file changed, 1 deletion(-)

diff --git a/debian/control b/debian/control
index 0eef2088..45251b3e 100644
--- a/debian/control
+++ b/debian/control
@@ -1,6 +1,5 @@
 Source: alire
 Section: devel
-Priority: optional
 Maintainer: Stephane Carrez <Stephane.Carrez@gmail.com>
 Uploaders: Ludovic Brenta <lbrenta@debian.org>
 Build-Depends:
-- 
2.47.3


--cVbUCLyjog5iq0O6
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
	filename="0005-Update-Standards-Version-to-4.7.4.patch"

From 3a8a85fb23808cb91e1a514cfa03bf6845a52b84 Mon Sep 17 00:00:00 2001
From: Nicolas Boulenguez <nicolas@debian.org>
Date: Thu, 19 Nov 2026 00:18:56 +0100
Subject: [PATCH 05/11] Update Standards-Version to 4.7.4

---
 debian/control | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 45251b3e..3eb948e8 100644
--- a/debian/control
+++ b/debian/control
@@ -15,7 +15,7 @@ Build-Depends:
  libxmlada-unicode-dev,
  libxmlezout-dev,
  python3,
-Standards-Version: 4.6.2
+Standards-Version: 4.7.4
 Homepage: https://github.com/alire-project
 Vcs-Browser: https://salsa.debian.org/debian/alire
 Vcs-Git: https://salsa.debian.org/debian/alire.git
-- 
2.47.3


--cVbUCLyjog5iq0O6
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
	filename="0006-Update-debhelper-to-compat-14.patch"

From cd8e270a2ebff64f51a5d31f84a5d131c8c39cea Mon Sep 17 00:00:00 2001
From: Nicolas Boulenguez <nicolas@debian.org>
Date: Thu, 19 Nov 2026 00:24:35 +0100
Subject: [PATCH 06/11] Update debhelper to compat 14

---
 debian/control | 3 +--
 debian/rules   | 6 +-----
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/debian/control b/debian/control
index 3eb948e8..ea6a4d16 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: devel
 Maintainer: Stephane Carrez <Stephane.Carrez@gmail.com>
 Uploaders: Ludovic Brenta <lbrenta@debian.org>
 Build-Depends:
- debhelper-compat (= 13),
+ debhelper-compat (= 14),
  dh-ada-library,
  gnat,
  gprbuild (>= 2015-2),
@@ -22,7 +22,6 @@ Vcs-Git: https://salsa.debian.org/debian/alire.git
 
 Package: alire
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
 Suggests: gnat, gprbuild
 Description: Ada package manager
  A catalog of ready-to-use Ada libraries plus a command-line tool
diff --git a/debian/rules b/debian/rules
index 953ad658..b24858ad 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,7 +16,7 @@ include /usr/share/dpkg/buildflags.mk
 include /usr/share/ada/packaging.mk
 
 %:
-	dh $@
+	dh $@ --without single-binary
 
 # For now, DPKG_EXPORT_BUILDFLAGS above has no effect and we use the
 # -cargs -largs gprbuild options.  This is better than nothing, but
@@ -36,7 +36,3 @@ override_dh_auto_build:
   # bin/alr crashes if it cannot create HOME/.config/.
 	HOME='$(CURDIR)/debian/man1' \
 	python3 debian/generate-man.py
-
-# Skip dwz.  Failure with gcc-13:
-# dwz: ./dwz.c:12035: adjust_exprloc: Assertion `refd != NULL && !refd->die_remove' failed.
-override_dh_dwz:
-- 
2.47.3


--cVbUCLyjog5iq0O6
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
	filename="0007-Update-copyright-years.patch"

From 714c6199f8ca34d551e58b6d63580b6fa32ec30e Mon Sep 17 00:00:00 2001
From: Nicolas Boulenguez <nicolas@debian.org>
Date: Thu, 19 Nov 2026 00:25:16 +0100
Subject: [PATCH 07/11] Update copyright years

---
 debian/copyright | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/copyright b/debian/copyright
index 9a017d29..d0d58823 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -9,7 +9,7 @@ License: GPL-3+
 
 Files: debian/*
 Copyright: 2023 Stephane Carrez <Stephane.Carrez@gmail.com>
-           2024 Nicolas Boulenguez <nicolas@debian.org>
+           2024-2026 Nicolas Boulenguez <nicolas@debian.org>
 License: GPL-3+
 
 Files: testsuite/fixtures/crates/libhello_git/*
-- 
2.47.3


--cVbUCLyjog5iq0O6
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
	filename="0008-Remove-Build-Depends-version-restrictions-older-than.patch"

From 3a9689a63562e4f54b461e927173f153296b2908 Mon Sep 17 00:00:00 2001
From: Nicolas Boulenguez <nicolas@debian.org>
Date: Thu, 19 Nov 2026 00:25:56 +0100
Subject: [PATCH 08/11] Remove Build-Depends version restrictions older than
 oldoldstable

---
 debian/control | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index ea6a4d16..725046bf 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,7 @@ Build-Depends:
  debhelper-compat (= 14),
  dh-ada-library,
  gnat,
- gprbuild (>= 2015-2),
+ gprbuild,
  libgnatcoll-dev,
  libgnatprj-dev,
  libxmlada-dom-dev,
-- 
2.47.3


--cVbUCLyjog5iq0O6
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="0009-Add-upstream-metadata.patch"

From 9a88542f0a556753922e9733332ab7819aabe759 Mon Sep 17 00:00:00 2001
From: Nicolas Boulenguez <nicolas@debian.org>
Date: Thu, 19 Nov 2026 18:20:10 +0100
Subject: [PATCH 09/11] Add upstream/metadata

---
 debian/upstream/metadata | 4 ++++
 1 file changed, 4 insertions(+)
 create mode 100644 debian/upstream/metadata

diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 00000000..18d154af
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,4 @@
+Bug-Database: https://github.com/alire-project/alire/issues
+Bug-Submit: https://github.com/alire-project/alire/issues/new
+Repository: https://github.com/alire-project/alire.git
+Repository-Browse: https://github.com/alire-project/alire.git
-- 
2.47.3


--cVbUCLyjog5iq0O6
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
	filename="0010-Tell-gbp-to-clone-and-merge-upstream-history.patch"

From a93583ec6e1069f619c7604bec2bf6f497805b84 Mon Sep 17 00:00:00 2001
From: Nicolas Boulenguez <nicolas@debian.org>
Date: Thu, 19 Nov 2026 18:19:03 +0100
Subject: [PATCH 10/11] Tell gbp to clone and merge upstream history

---
 debian/gbp.conf | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/debian/gbp.conf b/debian/gbp.conf
index accc13fc..1502cedf 100644
--- a/debian/gbp.conf
+++ b/debian/gbp.conf
@@ -1,3 +1,9 @@
 [DEFAULT]
 debian-branch = debian/master
 upstream-branch = upstream/master
+
+[clone]
+add-upstream-vcs = True
+
+[import-orig]
+upstream-vcs-tag = v%(version)s
-- 
2.47.3


--cVbUCLyjog5iq0O6
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment;
	filename="0011-Apply-a-patch-and-a-backport-preparing-a-build-with-.patch"

From c0885836e71ca4f4730236adb45189e08dc4656a Mon Sep 17 00:00:00 2001
From: Nicolas Boulenguez <nicolas@debian.org>
Date: Fri, 27 Nov 2026 20:52:47 +0100
Subject: [PATCH 11/11] Apply a patch and a backport preparing a build with
 gcc-16

---
 ...2-Explicitly-check-GCC-versions-1562.patch | 224 ++++++++++++++++++
 debian/patches/clic-inline-iterator.diff      |  30 +++
 debian/patches/series                         |   2 +
 3 files changed, 256 insertions(+)
 create mode 100644 debian/patches/0002-Explicitly-check-GCC-versions-1562.patch
 create mode 100644 debian/patches/clic-inline-iterator.diff

diff --git a/debian/patches/0002-Explicitly-check-GCC-versions-1562.patch b/debian/patches/0002-Explicitly-check-GCC-versions-1562.patch
new file mode 100644
index 00000000..9672f664
--- /dev/null
+++ b/debian/patches/0002-Explicitly-check-GCC-versions-1562.patch
@@ -0,0 +1,224 @@
+From: Alejandro R Mosteo <amosteo@unizar.es>
+Date: Thu, 15 Feb 2024 18:04:19 +0100
+Subject: Backport: Explicitly check GCC versions (#1562)
+Origin: backport, https://github.com/alire-project/alir/commit/4e1455e6e25701c5dcb1482b1109278c4991d8b4
+
+* Explicitly check all GCC versions we want
+
+* Remove unneeded `aliased`
+
+* Try to use safer reference
+
+* Workaround for GNAT 13 troubles with expr. funcs.
+
+* Fix test index to use deterministic external gnat version
+
+--- a/src/alire/alire-dependencies-states.adb
++++ b/src/alire/alire-dependencies-states.adb
+@@ -28,7 +28,7 @@
+                               Workspace : Any_Path)
+                               return Stored_Release
+    is
+-      Opt_Root : constant Roots.Optional.Root :=
++      Opt_Root : Roots.Optional.Root :=
+                    Roots.Optional.Detect_Root (Workspace);
+    begin
+       if Opt_Root.Is_Valid then
+--- a/src/alire/alire-publish.adb
++++ b/src/alire/alire-publish.adb
+@@ -327,7 +327,7 @@
+          --  Will have raised if the release is not loadable or incomplete
+       else
+          declare
+-            Root : constant Roots.Optional.Root := Alire.Root.Current;
++            Root : Roots.Optional.Root := Alire.Root.Current;
+          begin
+             case Root.Status is
+             when Outside =>
+@@ -427,7 +427,7 @@
+ 
+    procedure Generate_Index_Manifest (Context : in out Data) is
+       User_Manifest : constant Any_Path := Packaged_Manifest (Context);
+-      Workspace     : constant Roots.Optional.Root := Root.Current;
++      Workspace     :          Roots.Optional.Root := Root.Current;
+    begin
+       if not GNAT.OS_Lib.Is_Read_Accessible_File (User_Manifest) then
+          Raise_Checked_Error
+@@ -932,7 +932,7 @@
+                                Revision : String   := "HEAD";
+                                Options  : All_Options := New_Options)
+    is
+-      Root : constant Roots.Optional.Root := Roots.Optional.Search_Root (Path);
++      Root : Roots.Optional.Root   := Roots.Optional.Search_Root (Path);
+       Git  : constant VCSs.Git.VCS := VCSs.Git.Handler;
+       use all type Roots.Optional.States;
+ 
+--- a/src/alire/alire-root.adb
++++ b/src/alire/alire-root.adb
+@@ -14,6 +14,11 @@
+    -------------
+ 
+    function Current return Roots.Root
+-   is (Roots.Optional.Detect_Root (Directories.Detect_Root_Path).Value);
++   is
++      Optional_Root : Roots.Optional.Root :=
++                   Roots.Optional.Detect_Root (Directories.Detect_Root_Path);
++   begin
++      return Optional_Root.Value;
++   end Current;
+ 
+ end Alire.Root;
+--- a/src/alire/alire-roots-editable.adb
++++ b/src/alire/alire-roots-editable.adb
+@@ -228,7 +228,7 @@
+                                   Path  : Any_Path)
+                                   return Crate_Name
+    is
+-      Pin_Root : constant Optional.Root := Optional.Detect_Root (Path);
++      Pin_Root : Optional.Root := Optional.Detect_Root (Path);
+    begin
+       if Crate.Is_Empty and then not Pin_Root.Is_Valid then
+          Raise_Checked_Error
+@@ -256,12 +256,27 @@
+          --  dependency is in the closure but not in the root crate).
+ 
+          if not This.Solution.Depends_On (Crate) then
+-            This.Add_Dependency
+-              (Dependencies.New_Dependency
+-                 (Crate,
+-                  (if Pin_Root.Is_Valid
+-                   then Pin_Root.Updatable_Dependency.Versions
+-                   else Semver.Extended.Any)));
++            declare
++               --  This temporary is used to work around a bug in GNAT 13
++               Dep_Ver : Semver.Extended.Version_Set;
++            begin
++               if Pin_Root.Is_Valid then
++                  declare
++                     --  This temporary is used to work around a bug in GNAT 13
++                     Updatable_Dep : constant Dependencies.Dependency
++                       := Pin_Root.Updatable_Dependency;
++                  begin
++                     Dep_Ver := Updatable_Dep.Versions;
++                  end;
++               else
++                  Dep_Ver := Semver.Extended.Any;
++               end if;
++
++               This.Add_Dependency
++                 (Dependencies.New_Dependency (Crate, Dep_Ver));
++               --  Pins to local paths are more likely not to be indexed, so we
++               --  allow unknown dependencies here.
++            end;
+          end if;
+ 
+          --  Remove any previous pin for this crate
+--- a/src/alire/alire-roots-optional.adb
++++ b/src/alire/alire-roots-optional.adb
+@@ -125,13 +125,14 @@
+    -- Value --
+    -----------
+ 
+-   function Value (This : aliased Root) return Reference
++   function Value (This : in out Root) return Reference
+    is
+    begin
+       This.Assert;
+       --  The following Unrestricted_Access cannot fail as we just asserted
+       --  the value is stored.
+-      return Reference'(Ptr => This.Data.Value'Unrestricted_Access);
++      return Ref : constant Reference :=
++        Reference'(Ptr => This.Data.Value'Unrestricted_Access);
+    end Value;
+ 
+    ---------------------
+@@ -166,7 +167,7 @@
+    -- Updatable_Dependency --
+    --------------------------
+ 
+-   function Updatable_Dependency (This : Root)
++   function Updatable_Dependency (This : in out Root)
+                                   return Dependencies.Dependency
+    is (Dependencies.New_Dependency
+        (This.Value.Release.Element.Name,
+--- a/src/alire/alire-roots-optional.ads
++++ b/src/alire/alire-roots-optional.ads
+@@ -39,7 +39,7 @@
+    function Outside (This : Root) return Boolean;
+    --  True when there is no root at all, broken or valid
+ 
+-   function Value (This : aliased Root) return Reference with
++   function Value (This : in out Root) return Reference with
+      Pre => This.Is_Valid;
+ 
+    function Brokenness (This : Root) return String with
+@@ -55,7 +55,7 @@
+ 
+    --  UTILITIES
+ 
+-   function Updatable_Dependency (This : Root)
++   function Updatable_Dependency (This : in out Root)
+                                   return Dependencies.Dependency
+      with Pre => This.Is_Valid;
+    --  If This.Is_Valid, get the corresponding updatable
+--- a/src/alire/alire-roots.adb
++++ b/src/alire/alire-roots.adb
+@@ -570,7 +570,7 @@
+             declare
+                use Containers.Crate_Name_Sets;
+                use Semver.Extended;
+-               Target : constant Optional.Root :=
++               Target : Optional.Root :=
+                           Optional.Detect_Root (Pin.Path);
+             begin
+ 
+@@ -712,7 +712,11 @@
+    ---------------
+ 
+    function Load_Root (Path : Any_Path) return Root
+-   is (Roots.Optional.Detect_Root (Path).Value);
++   is
++      Optional_Root : Optional.Root := Optional.Detect_Root (Path);
++   begin
++      return Optional_Root.Value;
++   end Load_Root;
+ 
+    ------------------------------
+    -- Export_Build_Environment --
+--- a/src/alire/alire-user_pins.adb
++++ b/src/alire/alire-user_pins.adb
+@@ -259,7 +259,7 @@
+       --  At this point, we have the sources at Destination. Last checks ensue.
+ 
+       declare
+-         Root : constant Roots.Optional.Root :=
++         Root : Roots.Optional.Root :=
+                   Roots.Optional.Detect_Root (Destination);
+       begin
+ 
+--- a/src/alr/alr-commands-version.adb
++++ b/src/alr/alr-commands-version.adb
+@@ -33,7 +33,7 @@
+       Indexes : constant Alire.Index_On_Disk.Loading.Set :=
+                   Alire.Index_On_Disk.Loading.Find_All
+                     (Alire.Config.Edit.Indexes_Directory, Index_Outcome);
+-      Root : constant Alire.Roots.Optional.Root :=
++      Root : Alire.Roots.Optional.Root :=
+                Alire.Roots.Optional.Search_Root (Alire.Directories.Current);
+    begin
+       if Args.Count /= 0 then
+--- a/src/alr/alr-commands.adb
++++ b/src/alr/alr-commands.adb
+@@ -546,7 +546,11 @@
+          Cmd.Requires_Valid_Session;
+       end if;
+ 
+-      return Cmd.Optional_Root.Value;
++      return R : constant Alire.Roots.Optional.Reference :=
++        (Ptr => Cmd.Optional_Root.Value.Ptr.all'Unchecked_Access);
++      --  Workaround for bug (?) in GNAT 11 about dangling pointers. It should
++      --  simply be:
++      --  return Cmd.Optional_Root.Value;
+    end Root;
+ 
+    ---------
diff --git a/debian/patches/clic-inline-iterator.diff b/debian/patches/clic-inline-iterator.diff
new file mode 100644
index 00000000..b8f15e75
--- /dev/null
+++ b/debian/patches/clic-inline-iterator.diff
@@ -0,0 +1,30 @@
+From: Nicolas Boulenguez <nicolas@debian.org>
+Subject: in deps/clic, replace an iterator with basic function calls
+
+The alire build succeeds with gcc-14 but fails with
+gprbuild 2026.0.0-2
+gnat-16 gcc-16 16.2.0-4
+
+Summary of the link command:
+g++-16 [lots of .o] [lots of .a] -lgnatcoll -lgnatprj -lxmlada_schema -lxmlada_dom -lxmlada_sax -lxmlada_input -lxmlada_unicode deps/clic/lib/libClic.a deps/simple_logging/lib/libsimple_logging.a -lxmlezout deps/ada-toml/lib/static/dev/libada_toml.a deps/aaa/lib/libaaa.a -ldl -Wl,-z,relro -Wl,-z,now -lgnarl-16 -lgnat-16 -lrt -lpthread -ldl -Wl,-rpath-link,/usr/lib/gcc/x86_64-linux-gnu/16//adalib -shared-libgcc -o bin//alr
+
+Next two lines in the log:
+/usr/bin/x86_64-linux-gnu-ld.bfd: /build/reproducible-path/alire-1.2.1/obj/alr-commands.o: in function `alr__commands__sub_cmd__display_options':
+./obj/./deps/clic/src/clic-subcommand-instance.adb:891:(.text+0x415e8): undefined reference to `clic__subcommand__switch_info_vectors__implementation__reference_control_typeFD'
+
+This work-around is based on clic/185519d6, embedded in alire/1.2.1.
+
+--- a/deps/clic/src/clic-subcommand-instance.adb
++++ b/deps/clic/src/clic-subcommand-instance.adb
+@@ -887,8 +887,10 @@
+ 
+          Has_Printable_Rows := True;
+       end Print_Row;
++      Elt : Switch_Info;
+    begin
+-      for Elt of Config.Info loop
++      for I in Config.Info.First_Index .. Config.Info.Last_Index loop
++         Elt := Config.Info.Element (I);
+          Print_Row (To_String (Elt.Switch),
+                     To_String (Elt.Long_Switch),
+                     To_String (Elt.Argument),
diff --git a/debian/patches/series b/debian/patches/series
index c023f08b..44e146af 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,3 @@
 0001-Update-to-follow-Ada-Debian-policy.patch
+0002-Explicitly-check-GCC-versions-1562.patch
+clic-inline-iterator.diff
-- 
2.47.3


--cVbUCLyjog5iq0O6--
Technical Details
Message-ID: <O4aAi-exl2-13@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-fra.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Nicolas Boulenguez <nicolas@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1155567: alire: please apply the attached changes for compatibility with gcc-16
Date: Fri, 27 Nov 2026 21:20:02 +0100
Message-ID: <O4aAi-exl2-13@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Nov 27 20:19:18 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.9
Reply-To: Nicolas Boulenguez <nicolas@debian.org>, 1155567@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: Stephane.Carrez@gmail.com
X-Debian-Pr-Message: report 1155567
X-Debian-Pr-Package: src:alire
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: alire
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="cVbUCLyjog5iq0O6"
Content-Disposition: inline
X-Reportbug-Version: 13.2.0
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005445
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 656
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 27 Nov 2026 21:16:05 +0100
X-Original-Message-ID: <awnlBXuVAaUu2tL_@pegase>