[Git][haskell-team/haskell-devscripts][master] Exclude all local libraries in dh_haskell_depends_cabal
Scott Talbert (@swt2c)
gitlab at salsa.debian.org
Thu Feb 5 01:05:35 GMT 2026
Scott Talbert pushed to branch master at Debian Haskell Group / haskell-devscripts
Commits:
fa0c21a2 by Scott Talbert at 2026-02-04T19:59:51-05:00
Exclude all local libraries in dh_haskell_depends_cabal
Previously, we were only excluding local packages that were not
exposed, but we need to exclude all locals because we don't want
external Depends for the external library either.
- - - - -
2 changed files:
- debian/changelog
- dh_haskell_depends_cabal
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+haskell-devscripts (0.16.47) unstable; urgency=medium
+
+ * Exclude all local libraries in dh_haskell_depends_cabal
+ (Closes: #1126942)
+
+ -- Scott Talbert <swt at techie.net> Wed, 04 Feb 2026 19:59:17 -0500
+
haskell-devscripts (0.16.46) unstable; urgency=medium
[ Clint Adams ]
=====================================
dh_haskell_depends_cabal
=====================================
@@ -39,7 +39,6 @@ use Debian::Debhelper::Buildsystem::Haskell::Recipes qw(
load_ghc_database
hashed_id_to_virtual_installable
config_to_package_id
- is_package_exposed
);
use Debian::Debhelper::Dh_Lib;
@@ -183,14 +182,10 @@ sub cabal_depends {
next
if any { $prerequisite =~ m{\Q$_\E} } @exclude_patterns;
- # Exclude packages that are local and are not exposed (hidden).
- # These are usually internal libraries so we don't want external deps
- # for them.
- if (grep(/^$prerequisite$/, @local_pkgs)) {
- my $exposed = is_package_exposed($prerequisite, $ghc_pkg, $tmp_db);
- next
- if !$exposed;
- }
+ # Exclude libraries that are local (ie, part of this package).
+ # We don't want external deps for them.
+ next
+ if (grep(/^$prerequisite$/, @local_pkgs));
push(@retained, $prerequisite);
}
View it on GitLab: https://salsa.debian.org/haskell-team/haskell-devscripts/-/commit/fa0c21a2138bffe65a5c4be9fe804a259e618538
--
View it on GitLab: https://salsa.debian.org/haskell-team/haskell-devscripts/-/commit/fa0c21a2138bffe65a5c4be9fe804a259e618538
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/20260205/16c892bc/attachment-0001.htm>
More information about the Pkg-haskell-commits
mailing list