gdb: don't install subdirectories shared with binutils

Rather than removing conflicting items (and bystanders) afterwards,
avoid installing them in the first place. (Patching Makefile needs to
happen after './configure' but before 'make install'.) Fixes #10179.

Closes #10407.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
John Marshall 2017-02-26 17:54:56 +00:00 committed by FX Coudert
parent 8d28cb8a86
commit cadde11636

View file

@ -69,13 +69,11 @@ class Gdb < Formula
system "./configure", *args
system "make"
system "make", "install"
# Remove conflicting items with binutils
rm_rf include
rm_rf lib
rm_rf share/"locale"
rm_rf share/"info"
# Don't install bfd or opcodes, as they are provided by binutils
inreplace ["bfd/Makefile", "opcodes/Makefile"], /^install:/, "dontinstall:"
system "make", "install"
end
def caveats; <<-EOS.undent