Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/lang/asis/files/patch-asis_a4g-gnat__int.adb
16149 views
1
--- asis/a4g-gnat_int.adb.orig 2016-05-16 09:17:27 UTC
2
+++ asis/a4g-gnat_int.adb
3
@@ -231,46 +231,10 @@ package body A4G.GNAT_Int is
4
Opt.Tree_Read;
5
6
if Strong_Version_Check then
7
- -- We check only the dates here!
8
- First_A_Idx :=
9
- Index (Source => ASIS_GNAT_V,
10
- Pattern => "(") + 1;
11
-
12
- First_T_Idx :=
13
- Index (Source => Tree_Version_String.all,
14
- Pattern => "(") + 1;
15
-
16
- Last_A_Idx := Index (Source => ASIS_GNAT_V,
17
- Pattern => ")") - 1;
18
-
19
- if Index
20
- (Source => ASIS_GNAT_V (First_A_Idx .. Last_A_Idx),
21
- Pattern => "-") /= 0
22
- then
23
- Last_A_Idx :=
24
- Index (Source => ASIS_GNAT_V (First_A_Idx .. Last_A_Idx),
25
- Pattern => "-") - 1;
26
- end if;
27
-
28
- Last_T_Idx := Index (Source => Tree_Version_String.all,
29
- Pattern => ")") - 1;
30
-
31
- if Index
32
- (Source => Tree_Version_String.all (First_T_Idx .. Last_T_Idx),
33
- Pattern => "-") /= 0
34
- then
35
- Last_T_Idx :=
36
- Index (Source =>
37
- Tree_Version_String.all (First_T_Idx .. Last_T_Idx),
38
- Pattern => "-") - 1;
39
- end if;
40
-
41
- if ASIS_GNAT_V (First_A_Idx .. Last_A_Idx) /=
42
- Tree_Version_String (First_T_Idx .. Last_T_Idx)
43
- then
44
- Note_Version_Mismatch;
45
- end if;
46
-
47
+ -- No need for any version check at all
48
+ -- FreeBSD Ports system ensures gnat_util is from same sources
49
+ -- as compiler building ASIS
50
+ null;
51
end if;
52
53
-- GNAT/ASIS version check
54
55