Unverified Commit 4b1e5046 authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

gnu-config: enable strictDeps (#483771)

parents a35fc772 44b893a9
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchurl,
  runtimeShell,
}:

# Note: this package is used for bootstrapping fetchurl, and thus
@@ -53,6 +54,19 @@ stdenv.mkDerivation {
    runHook postInstall
  '';

  fixupPhase = ''
    runHook preFixup
    if [[ -z "''${dontPatchShebangs-}" ]]; then
      substituteInPlace $out/config.guess \
        --replace-fail '#! /bin/sh' '#!${runtimeShell}'
      substituteInPlace $out/config.sub \
        --replace-fail '#! /bin/sh' '#!${runtimeShell}'
    fi
    runHook postFixup
  '';

  strictDeps = true;

  meta = {
    description = "Attempt to guess a canonical system name";
    homepage = "https://savannah.gnu.org/projects/config";
+1 −1
Original line number Diff line number Diff line
@@ -1069,7 +1069,7 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check
          )
          ++ lib.optionals localSystem.isAarch64 [
            prevStage.updateAutotoolsGnuConfigScriptsHook
            prevStage.gnu-config
            prevStage.updateAutotoolsGnuConfigScriptsHook.gnu_config
          ]
          ++ lib.optionals localSystem.isx86_64 [ prevStage.darwin.Csu ]
          ++ (with prevStage.darwin; [
+1 −1
Original line number Diff line number Diff line
@@ -875,7 +875,7 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check
          ++ lib.optionals (localSystem.libc == "musl") [ fortify-headers ]
          ++ [
            prevStage.updateAutotoolsGnuConfigScriptsHook
            prevStage.gnu-config
            prevStage.updateAutotoolsGnuConfigScriptsHook.gnu_config
          ]
          ++ [
            gcc-unwrapped.gmp
+3 −1
Original line number Diff line number Diff line
@@ -287,7 +287,9 @@ with pkgs;
  updateAutotoolsGnuConfigScriptsHook = makeSetupHook {
    name = "update-autotools-gnu-config-scripts-hook";
    substitutions = {
      gnu_config = gnu-config;
      gnu_config = gnu-config.override {
        runtimeShell = targetPackages.stdenv.shell;
      };
    };
  } ../build-support/setup-hooks/update-autotools-gnu-config-scripts.sh;