[Git][haskell-team/DHG_packages][master] language-python: Fix FTBFS with newer happy
Scott Talbert (@swt2c)
gitlab at salsa.debian.org
Mon Feb 9 20:15:53 GMT 2026
Scott Talbert pushed to branch master at Debian Haskell Group / DHG_packages
Commits:
d2761320 by Scott Talbert at 2026-02-09T15:08:25-05:00
language-python: Fix FTBFS with newer happy
- - - - -
3 changed files:
- p/haskell-language-python/debian/changelog
- + p/haskell-language-python/debian/patches/fix-newer-happy.patch
- p/haskell-language-python/debian/patches/series
Changes:
=====================================
p/haskell-language-python/debian/changelog
=====================================
@@ -1,3 +1,9 @@
+haskell-language-python (0.5.8-6) unstable; urgency=medium
+
+ * Fix FTBFS with newer happy
+
+ -- Scott Talbert <swt at techie.net> Mon, 09 Feb 2026 15:06:43 -0500
+
haskell-language-python (0.5.8-5) unstable; urgency=medium
[ Scott Talbert ]
=====================================
p/haskell-language-python/debian/patches/fix-newer-happy.patch
=====================================
@@ -0,0 +1,45 @@
+From 58f62c9e09d5a239b2502469923c6d87a227d9de Mon Sep 17 00:00:00 2001
+From: Bram Vandenbogaerde <bram at vdb.space>
+Date: Tue, 24 Sep 2024 22:46:53 +0200
+Subject: [PATCH] fix: stop redefining the GHC version to fix incompatibilities
+ between Int# and Int32# in happy
+
+---
+ language-python/src/Language/Python/Version2/Parser/Parser.y | 5 ++++-
+ language-python/src/Language/Python/Version3/Parser/Parser.y | 4 ++++
+ 2 files changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/language-python/src/Language/Python/Version2/Parser/Parser.y b/language-python/src/Language/Python/Version2/Parser/Parser.y
+index b06d47e..b312349 100644
+--- a/src/Language/Python/Version2/Parser/Parser.y
++++ b/src/Language/Python/Version2/Parser/Parser.y
+@@ -1,8 +1,11 @@
+ {
+ {-# LANGUAGE CPP #-}
+
+-#undef __GLASGOW_HASKELL__
++-- For legacy reasons
++#if __GLASGOW_HASKELL__ < 901
++#undef __GLASGOW_HASKELL_
+ #define __GLASGOW_HASKELL__ 709
++#endif
+ -----------------------------------------------------------------------------
+ -- |
+ -- Module : Language.Python.Version2.Parser.Parser
+diff --git a/language-python/src/Language/Python/Version3/Parser/Parser.y b/language-python/src/Language/Python/Version3/Parser/Parser.y
+index 214faeb..d473be4 100644
+--- a/src/Language/Python/Version3/Parser/Parser.y
++++ b/src/Language/Python/Version3/Parser/Parser.y
+@@ -1,8 +1,12 @@
+ {
+ {-# LANGUAGE CPP #-}
+
++-- For legacy reasons
++#if __GLASGOW_HASKELL__ < 901
+ #undef __GLASGOW_HASKELL__
+ #define __GLASGOW_HASKELL__ 709
++#endif
++
+ -----------------------------------------------------------------------------
+ -- |
+ -- Module : Language.Python.Version3.Parser.Parser
=====================================
p/haskell-language-python/debian/patches/series
=====================================
@@ -1 +1,2 @@
newer-deps
+fix-newer-happy.patch
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/d2761320e149b198ad172731c1a4984745d64f51
--
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/d2761320e149b198ad172731c1a4984745d64f51
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20260209/8b2bc7dc/attachment-0001.htm>
More information about the Pkg-haskell-commits
mailing list