Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #47233 from oxij/tree/mass-rebuild-noop-cleanups

treewide: mass rebuild noop cleanups

authored by

John Ericson and committed by
GitHub
2b4b7d4e b1d51820

+21 -37
+4 -3
pkgs/build-support/bintools-wrapper/default.nix
··· 6 6 # compiler and the linker just "work". 7 7 8 8 { name ? "" 9 - , stdenvNoCC, nativeTools, propagateDoc ? !nativeTools, noLibc ? false, nativeLibc, nativePrefix ? "" 10 - , bintools ? null, libc ? null 11 - , coreutils ? null, shell ? stdenvNoCC.shell, gnugrep ? null 9 + , stdenvNoCC 10 + , bintools ? null, libc ? null, coreutils ? null, shell ? stdenvNoCC.shell, gnugrep ? null 11 + , nativeTools, noLibc ? false, nativeLibc, nativePrefix ? "" 12 + , propagateDoc ? bintools != null && bintools ? man 12 13 , extraPackages ? [], extraBuildCommands ? "" 13 14 , buildPackages ? {} 14 15 , useMacosReexportHack ? false
+3 -1
pkgs/build-support/cc-wrapper/default.nix
··· 6 6 # compiler and the linker just "work". 7 7 8 8 { name ? "" 9 - , stdenvNoCC, nativeTools, propagateDoc ? !nativeTools, noLibc ? false, nativeLibc, nativePrefix ? "" 9 + , stdenvNoCC 10 10 , cc ? null, libc ? null, bintools, coreutils ? null, shell ? stdenvNoCC.shell 11 + , nativeTools, noLibc ? false, nativeLibc, nativePrefix ? "" 12 + , propagateDoc ? cc != null && cc ? man 11 13 , extraPackages ? [], extraBuildCommands ? "" 12 14 , isGNU ? false, isClang ? cc.isClang or false, gnugrep ? null 13 15 , buildPackages ? {}
+1 -3
pkgs/development/compilers/gcc/7/default.nix
··· 217 217 ++ (optional hostPlatform.isDarwin targetPackages.stdenv.cc.bintools) 218 218 ; 219 219 220 - # TODO: Use optionalString with next rebuild. 221 - ${if (stdenv.cc.isClang && langFortran) then "NIX_CFLAGS_COMPILE" else null} = "-Wno-unused-command-line-argument"; 222 - 220 + NIX_CFLAGS_COMPILE = stdenv.lib.optionalString (stdenv.cc.isClang && langFortran) "-Wno-unused-command-line-argument"; 223 221 NIX_LDFLAGS = stdenv.lib.optionalString hostPlatform.isSunOS "-lm -ldl"; 224 222 225 223 preConfigure = stdenv.lib.optionalString (hostPlatform.isSunOS && hostPlatform.is64bit) ''
+2 -4
pkgs/development/compilers/llvm/5/libc++/default.nix
··· 10 10 export LIBCXXABI_INCLUDE_DIR="$PWD/$(ls -d libcxxabi-${version}*)/include" 11 11 ''; 12 12 13 - # on next rebuild, this can be replaced with optionals; for now set to null to avoid 14 - # patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [ 15 - patches = if stdenv.hostPlatform.isMusl then [ 13 + patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [ 16 14 ../../libcxx-0001-musl-hacks.patch 17 - ] else null; 15 + ]; 18 16 19 17 prePatch = '' 20 18 substituteInPlace lib/CMakeLists.txt --replace "/usr/lib/libc++" "\''${LIBCXX_LIBCXXABI_LIB_PATH}/libc++"
+2 -4
pkgs/development/compilers/llvm/6/libc++/default.nix
··· 10 10 export LIBCXXABI_INCLUDE_DIR="$PWD/$(ls -d libcxxabi-${version}*)/include" 11 11 ''; 12 12 13 - # on next rebuild, this can be replaced with optionals; for now set to null to avoid 14 - # patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [ 15 - patches = if stdenv.hostPlatform.isMusl then [ 13 + patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [ 16 14 ../../libcxx-0001-musl-hacks.patch 17 - ] else null; 15 + ]; 18 16 19 17 prePatch = '' 20 18 substituteInPlace lib/CMakeLists.txt --replace "/usr/lib/libc++" "\''${LIBCXX_LIBCXXABI_LIB_PATH}/libc++"
+4 -10
pkgs/development/libraries/libdaemon/default.nix
··· 1 1 {stdenv, fetchurl}: 2 2 3 - stdenv.mkDerivation (rec { 3 + stdenv.mkDerivation rec { 4 4 name = "libdaemon-0.14"; 5 5 6 6 src = fetchurl { 7 7 url = "${meta.homepage}/${name}.tar.gz"; 8 8 sha256 = "0d5qlq5ab95wh1xc87rqrh1vx6i8lddka1w3f1zcqvcqdxgyn8zx"; 9 9 }; 10 + 11 + patches = [ ./fix-includes.patch ]; 10 12 11 13 configureFlags = [ "--disable-lynx" ] 12 14 ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) ··· 16 18 17 19 meta = { 18 20 description = "Lightweight C library that eases the writing of UNIX daemons"; 19 - 20 21 homepage = http://0pointer.de/lennart/projects/libdaemon/; 21 - 22 22 license = stdenv.lib.licenses.lgpl2Plus; 23 - 24 23 platforms = stdenv.lib.platforms.unix; 25 - maintainers = [ ]; 26 24 }; 27 - } // stdenv.lib.optionalAttrs stdenv.hostPlatform.isMusl { 28 - # This patch should be applied unconditionally, but doing so will cause mass rebuild. 29 - patches = ./fix-includes.patch; 30 - }) 31 - 25 + }
+3 -4
pkgs/development/libraries/newt/default.nix
··· 22 22 unset CPP 23 23 ''; 24 24 25 - # Use `lib.optionalString` next mass rebuild. 26 - makeFlags = if stdenv.buildPlatform == stdenv.hostPlatform 27 - then null 28 - else "CROSS_COMPILE=${stdenv.cc.targetPrefix}"; 25 + makeFlags = stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ 26 + "CROSS_COMPILE=${stdenv.cc.targetPrefix}" 27 + ]; 29 28 30 29 meta = with stdenv.lib; { 31 30 homepage = https://fedorahosted.org/newt/;
-1
pkgs/development/tools/misc/pkgconfig/default.nix
··· 19 19 patches = optional (!vanilla) ./requires-private.patch 20 20 ++ optional stdenv.isCygwin ./2.36.3-not-win32.patch; 21 21 22 - preConfigure = ""; # TODO(@Ericson2314): Remove next mass rebuild 23 22 buildInputs = optional (stdenv.isCygwin || stdenv.isDarwin || stdenv.isSunOS) libiconv; 24 23 25 24 configureFlags = [ "--with-internal-glib" ]
+1 -2
pkgs/development/tools/misc/texinfo/common.nix
··· 17 17 inherit sha256; 18 18 }; 19 19 20 - # TODO: fix on mass rebuild 21 - ${if interactive then "patches" else null} = optional (version == "6.5") ./perl.patch; 20 + patches = optional (version == "6.5") ./perl.patch; 22 21 23 22 # We need a native compiler to build perl XS extensions 24 23 # when cross-compiling.
+1 -3
pkgs/os-specific/linux/kernel-headers/default.nix
··· 3 3 }: 4 4 5 5 let 6 - common = { version, sha256, patches ? null }: stdenvNoCC.mkDerivation { 6 + common = { version, sha256, patches ? [] }: stdenvNoCC.mkDerivation { 7 7 name = "linux-headers-${version}"; 8 8 9 9 src = fetchurl { ··· 20 20 21 21 extraIncludeDirs = lib.optional stdenvNoCC.hostPlatform.isPowerPC ["ppc"]; 22 22 23 - # "patches" array defaults to 'null' to avoid changing hash 24 - # and causing mass rebuild 25 23 inherit patches; 26 24 27 25 buildPhase = ''
-1
pkgs/stdenv/darwin/default.nix
··· 88 88 extraPackages = lib.optional (libcxx != null) libcxx; 89 89 90 90 nativeTools = false; 91 - propagateDoc = false; 92 91 nativeLibc = false; 93 92 inherit buildPackages coreutils gnugrep bintools; 94 93 libc = last.pkgs.darwin.Libsystem;
-1
pkgs/stdenv/linux/default.nix
··· 92 92 else lib.makeOverridable (import ../../build-support/cc-wrapper) { 93 93 name = "${name}-gcc-wrapper"; 94 94 nativeTools = false; 95 - propagateDoc = false; 96 95 nativeLibc = false; 97 96 buildPackages = lib.optionalAttrs (prevStage ? stdenv) { 98 97 inherit (prevStage) stdenv;