dev-lang/gnat-gpl: Fix gnat-gpl-2017 when using gnatmake-6.3.0
authorTupone Alfredo <tupone@gentoo.org>
Tue, 3 Oct 2017 20:40:34 +0000 (22:40 +0200)
committerTupone Alfredo <tupone@gentoo.org>
Tue, 3 Oct 2017 20:40:34 +0000 (22:40 +0200)
Package-Manager: Portage-2.3.8, Repoman-2.3.3

dev-lang/gnat-gpl/files/gnat-gpl-2017-gentoo.patch

index e3a68c8f5096398ae57f2a947449b070f77fde03..442e1ad76577682e6a55a909588a735baf37e47f 100644 (file)
  --- a/gcc/params.def  2016-03-30 09:47:40.000000000 +0200
  +++ b/gcc/params.def  2016-09-19 12:56:58.443179039 +0200
  @@ -673,7 +673,7 @@ DEFPARAM (PARAM_INTEGER_SHARE_LIMIT,
+--- gcc-6-gpl-2017-src/gcc/ada/osint.adb.old   2017-03-10 21:58:02.600710156 +0100
++++ gcc-6-gpl-2017-src/gcc/ada/osint.adb       2017-03-10 21:59:38.033983293 +0100
+@@ -2229,14 +2229,11 @@
+       for J in Start_Of_Prefix .. Name_Len - Prog'Length + 1 loop
+          if Name_Buffer (J .. J + Prog'Length - 1) = Prog then
+             End_Of_Prefix := J - 1;
++            Start_Of_Suffix := J + Prog'Length;
+             exit;
+          end if;
+       end loop;
+-      if End_Of_Prefix > 1 then
+-         Start_Of_Suffix := End_Of_Prefix + Prog'Length + 1;
+-      end if;
+-
+       --  Create the new program name
+       return new String'