summaryrefslogtreecommitdiff
path: root/dev-ada
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-12-04 19:21:03 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-12-04 19:21:03 +0000
commit5b0d50e44ce76b6fcdfe51032737d7da5e1cf19b (patch)
treeede63d7bcf2f21ebd1963700e420f015971f4ac1 /dev-ada
parent09bccdf31f9e770e33261ed1706b6146ead0aa78 (diff)
downloadbaldeagleos-repo-5b0d50e44ce76b6fcdfe51032737d7da5e1cf19b.tar.gz
baldeagleos-repo-5b0d50e44ce76b6fcdfe51032737d7da5e1cf19b.tar.xz
baldeagleos-repo-5b0d50e44ce76b6fcdfe51032737d7da5e1cf19b.zip
Adding metadata
Diffstat (limited to 'dev-ada')
-rw-r--r--dev-ada/ada_libfswatch/ada_libfswatch-2024.07.09-r1.ebuild2
-rw-r--r--dev-ada/gnatcoll-core/files/gnatcoll-core-25.0.0-gcc16.patch129
-rw-r--r--dev-ada/gnatcoll-core/gnatcoll-core-25.0.0-r2.ebuild7
3 files changed, 135 insertions, 3 deletions
diff --git a/dev-ada/ada_libfswatch/ada_libfswatch-2024.07.09-r1.ebuild b/dev-ada/ada_libfswatch/ada_libfswatch-2024.07.09-r1.ebuild
index 0a3b91da03fb..94b8fd5bd53e 100644
--- a/dev-ada/ada_libfswatch/ada_libfswatch-2024.07.09-r1.ebuild
+++ b/dev-ada/ada_libfswatch/ada_libfswatch-2024.07.09-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-ADA_COMPAT=( gcc_{13..15} )
+ADA_COMPAT=( gcc_{13..16} )
inherit ada
commitId=838480d8fca344d9f8a78341113ceb4ed5cf2222
diff --git a/dev-ada/gnatcoll-core/files/gnatcoll-core-25.0.0-gcc16.patch b/dev-ada/gnatcoll-core/files/gnatcoll-core-25.0.0-gcc16.patch
new file mode 100644
index 000000000000..e7415138c832
--- /dev/null
+++ b/dev-ada/gnatcoll-core/files/gnatcoll-core-25.0.0-gcc16.patch
@@ -0,0 +1,129 @@
+From b266466e0a05b30615ec43d72782c345470455b9 Mon Sep 17 00:00:00 2001
+From: Pierre-Marie de Rodat <derodat@adacore.com>
+Date: Thu, 17 Jul 2025 07:38:41 +0000
+Subject: [PATCH] Opt_Parse: refactor to avoid a new accessibility check
+ failure
+
+Use cursor types rather than reference types for return types when the
+referenced vector element come from a function formal. This is necessary
+to avoid the failure of a new accessibility check that was just
+implemented in GNAT. It will also be necessary once reference types are
+made limited (as per AI22-0082).
+---
+ core/src/gnatcoll-opt_parse.adb | 39 ++++++++++++++++-----------------
+ 1 file changed, 19 insertions(+), 20 deletions(-)
+
+diff --git a/core/src/gnatcoll-opt_parse.adb b/core/src/gnatcoll-opt_parse.adb
+index 5e52684c..09ae755b 100644
+--- a/core/src/gnatcoll-opt_parse.adb
++++ b/core/src/gnatcoll-opt_parse.adb
+@@ -77,11 +77,10 @@ package body GNATCOLL.Opt_Parse is
+ -- to Col, and set the next start column to `Col`, so that text on
+ -- subsequent lines starts at `Col`.
+
+- subtype XString_Ref is XString_Vectors.Reference_Type;
+- -- Shortcut for a reference to a XString
++ subtype XString_Cur is XString_Vectors.Cursor;
++ -- Shortcut for a XString vector cursor
+
+- function Append_Line
+- (Self : aliased in out Text_Wrapper) return XString_Ref;
++ function Append_Line (Self : in out Text_Wrapper) return XString_Cur;
+ -- Append a new line to Self
+
+ procedure Append_Line
+@@ -92,11 +91,10 @@ package body GNATCOLL.Opt_Parse is
+ -- `Col_After` is not `No_Col`, then set the next start column to
+ -- `Col_After`.
+
+- function Current_Line
+- (Self : aliased in out Text_Wrapper) return XString_Ref
++ function Current_Line (Self : in out Text_Wrapper) return XString_Cur
+ is
+ (if Self.Lines.Is_Empty
+- then Self.Append_Line else Self.Lines.Reference (Self.Lines.Last_Index));
++ then Self.Append_Line else Self.Lines.Last);
+ -- Return a reference to the current line.
+
+ function Render (Self : Text_Wrapper) return String;
+@@ -191,7 +189,7 @@ package body GNATCOLL.Opt_Parse is
+ end if;
+
+ declare
+- Dummy : XString_Ref := Self.Append_Line;
++ Dummy : XString_Cur := Self.Append_Line;
+ begin
+ null;
+ end;
+@@ -204,14 +202,15 @@ package body GNATCOLL.Opt_Parse is
+ procedure Set_Column
+ (Self : in out Text_Wrapper; Col : Col_Type)
+ is
++ Current_Line_Length : constant Natural :=
++ Self.Lines.Reference (Self.Current_Line).Length;
+ begin
+ Self.Set_Next_Start_Column (Col);
+
+- if Self.Current_Line.Length > Col then
++ if Current_Line_Length > Col then
+ Self.Append_Line;
+ else
+- Self.Append_Text
+- ((1 .. Col - Self.Current_Line.Length => ' '), False);
++ Self.Append_Text ((1 .. Col - Current_Line_Length => ' '), False);
+ end if;
+ end Set_Column;
+
+@@ -233,19 +232,16 @@ package body GNATCOLL.Opt_Parse is
+ -- Append_Line --
+ -----------------
+
+- function Append_Line
+- (Self : aliased in out Text_Wrapper) return XString_Vectors.Reference_Type
+- is
++ function Append_Line (Self : in out Text_Wrapper) return XString_Cur is
+ Ret : XString;
+ begin
+ Self.Lines.Append (Ret);
+
+ declare
+- L : constant XString_Ref := Self.Current_Line;
++ L : constant XString_Cur := Self.Current_Line;
+ begin
+ if Self.Start_Col > 0 then
+-
+- L.Append ((1 .. Self.Start_Col => ' '));
++ Self.Lines.Reference (L).Append ((1 .. Self.Start_Col => ' '));
+ end if;
+
+ return L;
+@@ -276,7 +272,8 @@ package body GNATCOLL.Opt_Parse is
+ end;
+ else
+ declare
+- Cur_Line : constant XString_Ref := Self.Current_Line;
++ Cur_Line : XString renames
++ Self.Lines.Reference (Self.Current_Line);
+ begin
+ if Cur_Line.Length + Text'Length <= Self.Wrap_Col then
+ Cur_Line.Append (Text);
+@@ -285,7 +282,8 @@ package body GNATCOLL.Opt_Parse is
+ end;
+
+ declare
+- Cur_Line : constant XString_Ref := Append_Line (Self);
++ Cur_Line : XString renames
++ Self.Lines.Reference (Append_Line (Self));
+ begin
+ Cur_Line.Append (Text);
+ end;
+@@ -301,7 +299,8 @@ package body GNATCOLL.Opt_Parse is
+ (Self : in out Text_Wrapper; Col : Col_Type := 0) is
+ begin
+ if Col = Current_Col then
+- Self.Start_Col := Col_Type (Self.Current_Line.Length);
++ Self.Start_Col :=
++ Col_Type (Self.Lines.Reference (Self.Current_Line).Length);
+ else
+ Self.Start_Col := Col;
+ end if;
diff --git a/dev-ada/gnatcoll-core/gnatcoll-core-25.0.0-r2.ebuild b/dev-ada/gnatcoll-core/gnatcoll-core-25.0.0-r2.ebuild
index 9e281474fc38..6b97fce45000 100644
--- a/dev-ada/gnatcoll-core/gnatcoll-core-25.0.0-r2.ebuild
+++ b/dev-ada/gnatcoll-core/gnatcoll-core-25.0.0-r2.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-ADA_COMPAT=( gcc_{13..15} )
+ADA_COMPAT=( gcc_{13..16} )
PYTHON_COMPAT=( python3_{10..14} )
inherit ada python-any-r1 multiprocessing
@@ -35,7 +35,10 @@ BDEPEND="${RDEPEND}
)
')"
-PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${P}-gcc16.patch
+)
python_check_deps() {
if use doc && use test ; then