summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2017-12-26 20:54:50 +0100
committerTupone Alfredo <tupone@gentoo.org>2017-12-26 20:54:50 +0100
commit536f37f77364a2a932f60e80780342b838c049be (patch)
tree31fdea0f03afa8d86d76551da7d875eba8f1d08a /dev-ada/langkit
parentdev-libs/mpfr: add preserve_old_lib, bug #642316 (diff)
downloadgentoo-536f37f77364a2a932f60e80780342b838c049be.tar.gz
gentoo-536f37f77364a2a932f60e80780342b838c049be.tar.bz2
gentoo-536f37f77364a2a932f60e80780342b838c049be.zip
dev-ada/langkit: Fix constraint error on hash
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'dev-ada/langkit')
-rw-r--r--dev-ada/langkit/files/langkit-2017-gentoo.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-ada/langkit/files/langkit-2017-gentoo.patch b/dev-ada/langkit/files/langkit-2017-gentoo.patch
index 0260d44c888..e6609236b6c 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, "=");