[Git][haskell-team/haskell-devscripts][master] Canonicalize paths in dh_haskell_recommends_documentation_references

Ilias Tsitsimpis (@iliastsi) gitlab at salsa.debian.org
Sat Sep 23 11:43:57 BST 2023



Ilias Tsitsimpis pushed to branch master at Debian Haskell Group / haskell-devscripts


Commits:
395c71d7 by Ilias Tsitsimpis at 2023-09-23T10:00:50+03:00
Canonicalize paths in dh_haskell_recommends_documentation_references

GHC with the new Hadrian build system produces library configuration
files (package.conf) that contain '../' in them. Canonicalize them
so that dpkg-query can work.

- - - - -


2 changed files:

- debian/changelog
- dh_haskell_recommends_documentation_references


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+haskell-devscripts (0.16.32) unstable; urgency=medium
+
+  * Canonicalize paths in dh_haskell_recommends_documentation_references
+
+ -- Ilias Tsitsimpis <iliastsi at debian.org>  Sat, 23 Sep 2023 10:00:43 +0300
+
 haskell-devscripts (0.16.31) unstable; urgency=medium
 
   * Modify ghc_pkg_command() to work with the new Hadrian build system


=====================================
dh_haskell_recommends_documentation_references
=====================================
@@ -27,6 +27,7 @@ use List::SomeUtils qw(uniq);
 use IPC::Run3;
 use Path::Tiny;
 use Unicode::UTF8 qw(encode_utf8);
+use Cwd qw(abs_path);
 
 use Debian::Debhelper::Buildsystem::Haskell::Recipes qw(run_quiet);
 use Debian::Debhelper::Dh_Lib;
@@ -68,6 +69,7 @@ for my $installable (@{ $dh{DOPACKAGES} }) {
     }
 
     my @absolute = uniq +grep { m{^ / }x } @files;
+    @absolute = map { abs_path($_) } @absolute;
 
     # already in UTF-8
     my $input_bytes = $EMPTY;



View it on GitLab: https://salsa.debian.org/haskell-team/haskell-devscripts/-/commit/395c71d702ef6965a55e80e45d977a4961418b34

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/haskell-devscripts/-/commit/395c71d702ef6965a55e80e45d977a4961418b34
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/20230923/3e1ed3b1/attachment-0001.htm>


More information about the Pkg-haskell-commits mailing list