From 536f37f77364a2a932f60e80780342b838c049be Mon Sep 17 00:00:00 2001 From: Tupone Alfredo Date: Tue, 26 Dec 2017 20:54:50 +0100 Subject: dev-ada/langkit: Fix constraint error on hash Package-Manager: Portage-2.3.13, Repoman-2.3.3 --- dev-ada/langkit/files/langkit-2017-gentoo.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'dev-ada/langkit/files') diff --git a/dev-ada/langkit/files/langkit-2017-gentoo.patch b/dev-ada/langkit/files/langkit-2017-gentoo.patch index 0260d44c8885..e6609236b6cd 100644 --- a/dev-ada/langkit/files/langkit-2017-gentoo.patch +++ b/dev-ada/langkit/files/langkit-2017-gentoo.patch @@ -34,3 +34,14 @@ quex_file, "-o", "quex_lexer", "--buffer-element-size", "4", +--- langkit-gps-src/langkit/templates/pkg_analysis_body_ada.mako.old 2017-12-26 20:47:28.461617512 +0100 ++++ langkit-gps-src/langkit/templates/pkg_analysis_body_ada.mako 2017-12-26 20:47:58.912060490 +0100 +@@ -2196,7 +2196,7 @@ + -- printing them. + + function Hash (S : Lexical_Env) return Hash_Type is +- (Hash_Type (To_Integer (S.all'Address))); ++ (Hash_Type'Mod (To_Integer (S.all'Address))); + + package Address_To_Id_Maps is new Ada.Containers.Hashed_Maps + (Lexical_Env, Integer, Hash, "="); -- cgit v1.2.3-65-gdbad