[Git][haskell-team/DHG_packages][master] ghc: Do not pass --hash-unit-ids to hadrian
Ilias Tsitsimpis (@iliastsi)
gitlab at salsa.debian.org
Sat Jan 24 14:51:53 GMT 2026
Ilias Tsitsimpis pushed to branch master at Debian Haskell Group / DHG_packages
Commits:
22b0c672 by Ilias Tsitsimpis at 2026-01-24T14:53:35+02:00
ghc: Do not pass --hash-unit-ids to hadrian
When we pass --hash-unit-ids to hadrian, it will compute an inputs hash
and append it in the IDs of the packages. This is *not* the same as the
ABI of the package.
This means that we may end up with a package that has the same ABI but
different hash (and thus different ID). This causes us trouble for two
reasons:
1. Our tooling doesn't handle this
Our tooling currently generates virtual packages in the form of
"libghc-$name-dev-$version-$short_abi". If the ABI is the same but
the package ID is different, we end up with broken dependencies
(see #1126311).
2. Unnecessary changes/rebuilds even if ABI is the same
We end up with new package IDs, and we have to rebuild all rdepends even
though the ABI hasn't changed.
For the above reasons, remove the --hash-unit-ids flag and revert back
to the behavior GHC had before, where package IDs never change.
- - - - -
2 changed files:
- p/ghc/debian/changelog
- p/ghc/debian/rules
Changes:
=====================================
p/ghc/debian/changelog
=====================================
@@ -1,3 +1,9 @@
+ghc (9.10.3-3) unstable; urgency=medium
+
+ * Do not pass --hash-unit-ids to hadrian (Closes: #1126311)
+
+ -- Ilias Tsitsimpis <iliastsi at debian.org> Sat, 24 Jan 2026 14:41:42 +0200
+
ghc (9.10.3-2) unstable; urgency=medium
[ John Paul Adrian Glaubitz ]
=====================================
p/ghc/debian/rules
=====================================
@@ -180,7 +180,6 @@ ifeq (YES,$(BUILD_CROSS))
endif
hadrian/hadrian \
-V -j$(NUMJOBS) \
- --hash-unit-ids \
--flavour=release \
--docs=no-haddocks --docs=no-sphinx-html --docs=no-sphinx-pdfs \
binary-dist-dir \
@@ -207,7 +206,6 @@ ifeq (YES,$(BUILD_CROSS))
endif
hadrian/hadrian \
-V -j$(NUMJOBS) \
- --hash-unit-ids \
--flavour=release \
--docs=no-sphinx-pdfs \
binary-dist-dir \
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/22b0c672a643cfccd44182602c223b60bbd0ef33
--
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/22b0c672a643cfccd44182602c223b60bbd0ef33
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/20260124/a1cfd27d/attachment-0001.htm>
More information about the Pkg-haskell-commits
mailing list