Unverified Commit 9ec87a1e authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #307821 from NickCao/musicbranz

perl538Packages.MusicBrainzDiscID: fix cross compilation, drop outdat…
parents f53b45a9 5009a8a1
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -18175,9 +18175,11 @@ with self; {
      url = "mirror://cpan/authors/id/N/NJ/NJH/MusicBrainz-DiscID-0.06.tar.gz";
      hash = "sha256-ugtu0JiX/1Y7pZhy7pNxW+83FXUVsZt8bW8obmVI7Ks=";
    };
    perlPreHook = lib.optionalString stdenv.isi686 "export LD=$CC"; # fix undefined reference to `__stack_chk_fail_local'
    # Makefile.PL in this package uses which to find pkg-config -- make it use path instead
    patchPhase = ''sed -ie 's/`which pkg-config`/"pkg-config"/' Makefile.PL'';
    # Makefile.PL in this package uses which to find pkg-config -- make it use envvar instead
    postPatch = ''
      substituteInPlace Makefile.PL \
        --replace-fail '`which pkg-config`' "'$PKG_CONFIG'"
    '';
    doCheck = false; # The main test performs network access
    nativeBuildInputs = [ pkgs.pkg-config ];
    propagatedBuildInputs = [ pkgs.libdiscid ];