From 10ead2681239192330bce32330debe1f75c43c44 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 22 Oct 2021 10:41:40 +0100 Subject: [PATCH] cdparanoiaIII: disable parallel building Manually written makefile relies on inplace re-execution to build shared and static libraries. Then built in parallel it occasionally causes build failures when partially overwritten file gets used by linker. Let's disable parallel builds. --- pkgs/applications/audio/cdparanoia/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/applications/audio/cdparanoia/default.nix b/pkgs/applications/audio/cdparanoia/default.nix index 36686655f369..10ff66de77ed 100644 --- a/pkgs/applications/audio/cdparanoia/default.nix +++ b/pkgs/applications/audio/cdparanoia/default.nix @@ -35,6 +35,15 @@ stdenv.mkDerivation rec { cp ${gnu-config}/config.guess configure.guess ''; + # Build system reuses the same object file names for shared and static + # library. Occasionally fails in the middle: + # gcc -O2 -fsigned-char -g -O2 -c scan_devices.c + # rm -f *.o core *~ *.out + # gcc -O2 -fsigned-char -g -O2 -fpic -c scan_devices.c + # gcc -fpic -shared -o libcdda_interface.so.0.10.2 ... scan_devices.o ... + # scan_devices.o: file not recognized: file format not recognized + enableParallelBuilding = false; + meta = with lib; { homepage = "https://xiph.org/paranoia"; description = "A tool and library for reading digital audio from CDs";