From 875fcd5940f9c2fcef310ef415071cd74631c325 Mon Sep 17 00:00:00 2001 From: Stig Palmquist Date: Sat, 23 Jul 2022 02:03:11 +0200 Subject: [PATCH] [22.05] perlPackages.LWP: keep HTTPDaemon in propagatedBuildInputs LWP was updated and changed to work around a cross compilation regression caused by a HTTPDaemon security update, this caused another regression where derivations expecting LWP to propagate HTTPDaemon failed. This commit keeps HTTPDaemon in propagatedBuildInputs for host builds as some derivations like SOAPLite, Tirex and possibly more expect LWP to propagate it. But not for cross builds since they are not able to build HTTPDaemon. --- pkgs/top-level/perl-packages.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index fce2bd80d072..8e5617344b42 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -12858,7 +12858,10 @@ let url = "mirror://cpan/authors/id/O/OA/OALDERS/libwww-perl-6.67.tar.gz"; sha256 = "sha256-lu7ECj/QqhvYNBF75eshxDj3MJTYYaGn5XdPCxImtyM="; }; - propagatedBuildInputs = [ FileListing HTMLParser HTTPCookies HTTPNegotiate NetHTTP TryTiny WWWRobotRules ]; + propagatedBuildInputs = [ FileListing HTMLParser HTTPCookies HTTPNegotiate NetHTTP TryTiny WWWRobotRules ] + # [22.05]: Propagate HTTPDaemon for non-cross builds + # to avoid changing behaviour from version 6.49 + ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ HTTPDaemon ]; # support cross-compilation by avoiding using `has_module` which does not work in miniperl (it requires B native module) postPatch = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) '' substituteInPlace Makefile.PL --replace 'if has_module' 'if 0; #'