Commit ea648ee3 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

binutils: use a no-op for makeinfo

This way, we don't have to touch every file generated from one we
patch.  It also makes it possible to do an out-of-tree build —
otherwise, the source files would be copied into the build directory
during Make, so there'd be no opportunity to touch some of them.

This same hack is already used by the minimal-bootstrap binutils.
parent d4f11e2f
Loading
Loading
Loading
Loading
+7 −14
Original line number Diff line number Diff line
@@ -147,20 +147,6 @@ stdenv.mkDerivation (finalAttrs: {
      for i in binutils/Makefile.in gas/Makefile.in ld/Makefile.in gold/Makefile.in; do
          sed -i "$i" -e 's|ln |ln -s |'
      done

      # autoreconfHook is not included for all targets.
      # Call it here explicitly as well.
      ${finalAttrs.postAutoreconf}
    '';

  postAutoreconf = ''
    # As we regenerated configure build system tries hard to use
    # texinfo to regenerate manuals. Let's avoid the dependency
    # on texinfo in bootstrap path and keep manuals unmodified.
    touch gas/doc/.dirstamp
    touch gas/doc/asconfig.texi
    touch gas/doc/as.1
    touch gas/doc/as.info
    '';

  # As binutils takes part in the stdenv building, we don't want references
@@ -247,6 +233,13 @@ stdenv.mkDerivation (finalAttrs: {
      ]
    );

  makeFlags = [
    # As we regenerated configure build system tries hard to use
    # texinfo to regenerate manuals. Let's avoid the dependency
    # on texinfo in bootstrap path and keep manuals unmodified.
    "MAKEINFO=true"
  ];

  # Fails
  doCheck = false;