From fec315a167a1e308d3e1f4ccdea655b82d06334a Mon Sep 17 00:00:00 2001 From: Yureka Date: Tue, 13 Sep 2022 11:11:34 +0200 Subject: [PATCH] perlPackages.Po4a: disable tests on musl Void linux package have investigated the failure and tracked it down to differences in gettext behavior. They decided to disable tests. https://github.com/void-linux/void-packages/pull/34029#issuecomment-973267880 Alpine packagers have not worried about running the tests until now: https://git.alpinelinux.org/aports/tree/main/po4a/APKBUILD#n11 --- pkgs/development/perl-modules/Po4a/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/perl-modules/Po4a/default.nix b/pkgs/development/perl-modules/Po4a/default.nix index aabf897ac4c0..119414907856 100644 --- a/pkgs/development/perl-modules/Po4a/default.nix +++ b/pkgs/development/perl-modules/Po4a/default.nix @@ -19,6 +19,14 @@ buildPerlPackage rec { export PERL_MB_OPT="--install_base=$out --prefix=$out" ''; buildPhase = "perl Build.PL --install_base=$out --install_path=\"lib=$out/${perl.libPrefix}\"; ./Build build"; + + # Disabling tests on musl + # Void linux package have investigated the failure and tracked it down to differences in gettext behavior. They decided to disable tests. + # https://github.com/void-linux/void-packages/pull/34029#issuecomment-973267880 + # Alpine packagers have not worried about running the tests until now: + # https://git.alpinelinux.org/aports/tree/main/po4a/APKBUILD#n11 + doCheck = !stdenv.hostPlatform.isMusl; + checkPhase = '' export SGML_CATALOG_FILES=${docbook_sgml_dtd_41}/sgml/dtd/docbook-4.1/docbook.cat ./Build test