git.iko.soy/typeable/nixpkgs
on master help sign in
perlPackages: use ld-is-cc-hook to fix build

after #29396 removed `-L path/to/dir/of/libstdc++.so` from ld flags See https://github.com/NixOS/nixpkgs/pull/29396#issuecomment-352600129 Module::Build build helper works correctly when LD is unset (taking LD from Perl config to be `cc`). However, we can not unset LD because this goes contrary to the cross compilation effort, and we can not make it propagate ld-is-cc-hook because it breaks e.g. the build of `libguestfs`. However, #29396 makes LD=ld incompatible with just 3 perl packages; they are individually fixed by this commit.

commit69345ec37b8da3de94d4262b81bfa08000d35427 authorOrivej Desh <orivej@gmx.fr> dateTue 19 Dec 2017, 01:56 (9 years ago) parente2c8655
1 file changed+3
pkgs/top-level/perl-packages.nix+3
pkgs/top-level/perl-packages.nix+3
@@ -4849,6 +4849,7 @@ let self = _self // overrides; _self = with self; {
48494849 url = "mirror://cpan/authors/id/J/JG/JGMYERS/${name}.tar.gz";
48504850 sha256 = "834d893aa7db6ce3f158afbd0e432d6ed15a276e0940db0a74be13fd9c4bbbf1";
48514851 };
4852+ nativeBuildInputs = [ pkgs.ld-is-cc-hook ];
48524853 propagatedBuildInputs = [ ModuleBuild ];
48534854 meta = {
48544855 description = "An Encode::Encoding subclass that detects the encoding of data";
@@ -5162,6 +5163,7 @@ let self = _self // overrides; _self = with self; {
51625163 url = "mirror://cpan/modules/by-module/ExtUtils/${name}.tar.gz";
51635164 sha256 = "1a77hxf2pa8ia9na72rijv1yhpn2bjrdsybwk2dj2l938pl3xn0w";
51645165 };
5166+ nativeBuildInputs = [ pkgs.ld-is-cc-hook ];
51655167 propagatedBuildInputs = [ CaptureTiny ];
51665168 };
51675169
@@ -8488,6 +8490,7 @@ let self = _self // overrides; _self = with self; {
84888490 url = "mirror://cpan/modules/by-module/Math/${name}.tar.gz";
84898491 sha256 = "0i9wzvig7ayijc9nvh5x5rryk1jrcj1hcvfmlcj449rnnxx24dav";
84908492 };
8493+ nativeBuildInputs = [ pkgs.ld-is-cc-hook ];
84918494 propagatedBuildInputs = [ ModuleBuildWithXSpp ExtUtilsXSpp ExtUtilsTypemapsDefault TestDeep ];
84928495 };
84938496