[Git][haskell-team/haskell-devscripts][master] 2 commits: Only provide $haskell:ghc-package substvar for -dev pkgs (Closes: #1118032)

Scott Talbert (@swt2c) gitlab at salsa.debian.org
Thu Oct 16 05:08:22 BST 2025



Scott Talbert pushed to branch master at Debian Haskell Group / haskell-devscripts


Commits:
cfa56700 by Scott Talbert at 2025-10-15T23:55:19-04:00
Only provide $haskell:ghc-package substvar for -dev pkgs (Closes: #1118032)

This matches the behavior of the pre-Perl implementation and also fixes
the issue of the GHC-Package control field getting added to all
packages with dh-haskell.

- - - - -
60968e94 by Scott Talbert at 2025-10-16T00:05:57-04:00
haskell-devscripts (0.16.39) unstable; urgency=medium

- - - - -


2 changed files:

- debian/changelog
- dh_haskell_provides_ghc


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+haskell-devscripts (0.16.39) unstable; urgency=medium
+
+  * Only provide $haskell:ghc-package substvar for -dev pkgs (Closes: #1118032)
+
+ -- Scott Talbert <swt at techie.net>  Wed, 15 Oct 2025 23:59:41 -0400
+
 haskell-devscripts (0.16.38) unstable; urgency=medium
 
   * Log installed files in dh_haskell_install_* helpers


=====================================
dh_haskell_provides_ghc
=====================================
@@ -82,10 +82,12 @@ for my $installable (@{ $dh{DOPACKAGES} }) {
 
     my $substvars_path = "debian/$installable.substvars";
 
-    replace_line($substvars_path, "haskell:$compiler-package",
-        join($SPACE, @hashed_ids));
-
     my $type = installable_type($installable);
+    if ($type eq 'dev') {
+        replace_line($substvars_path, "haskell:$compiler-package",
+            join($SPACE, @hashed_ids));
+    }
+
     my @provides = map {
         hashed_id_to_virtual_installable($compiler, $_, $type,
             $ghc_pkg, '--package-db', $ENV{DEB_GHC_DATABASE})



View it on GitLab: https://salsa.debian.org/haskell-team/haskell-devscripts/-/compare/221b0ef6c1f886eee1da8ec90b2c7ceac01cc880...60968e94d84fcf15d308bcf437e0a59f6b3a5d4e

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/haskell-devscripts/-/compare/221b0ef6c1f886eee1da8ec90b2c7ceac01cc880...60968e94d84fcf15d308bcf437e0a59f6b3a5d4e
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/20251016/e7db6d20/attachment-0001.htm>


More information about the Pkg-haskell-commits mailing list