mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 02:05:02 +00:00
[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.
This commit is contained in:
@@ -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; #'
|
||||
|
||||
Reference in New Issue
Block a user