Merge pull request #106413 from r-burns/cdparanoia

[staging] cdparanoia: cleanup, fix build on powerpc
This commit is contained in:
Martin Weinelt 2021-06-16 22:13:43 +02:00 committed by GitHub
commit ee31040021
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, autoreconfHook, gnu-config, IOKit, Carbon }:
{ lib, stdenv, fetchurl, gnu-config, IOKit, Carbon }:
stdenv.mkDerivation rec {
name = "cdparanoia-III-10.2";
@ -20,8 +20,6 @@ stdenv.mkDerivation rec {
] ++ lib.optional stdenv.hostPlatform.isMusl ./utils.patch
++ [./fix_private_keyword.patch];
nativeBuildInputs = lib.optional stdenv.isAarch64 autoreconfHook;
propagatedBuildInputs = lib.optionals stdenv.isDarwin [
Carbon
IOKit
@ -29,7 +27,9 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ];
preConfigure = "unset CC" + lib.optionalString stdenv.isAarch64 '';
preConfigure = ''
unset CC
'' + lib.optionalString (!stdenv.hostPlatform.isx86) ''
cp ${gnu-config}/config.sub configure.sub
cp ${gnu-config}/config.guess configure.guess
'';