From 069aa1ee27586abd18316ea40e1bf2d74ce11e3e Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Tue, 1 Feb 2022 15:18:04 +0800 Subject: [PATCH] libsmi: regenerate `configure` We need this to get rid of the bad `-flat_namespace` flag. None of our usual patches apply. This is needed for bottling on Monterey. See #94212. Also, update the `license`. Taken from Debian's copyright file. Closes #94234. Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> --- Formula/libsmi.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Formula/libsmi.rb b/Formula/libsmi.rb index 4eb13a8828cca..df88e1a628478 100644 --- a/Formula/libsmi.rb +++ b/Formula/libsmi.rb @@ -4,6 +4,7 @@ class Libsmi < Formula url "https://www.ibr.cs.tu-bs.de/projects/libsmi/download/libsmi-0.5.0.tar.gz" mirror "https://www.mirrorservice.org/sites/distfiles.macports.org/libsmi/libsmi-0.5.0.tar.gz" sha256 "f21accdadb1bb328ea3f8a13fc34d715baac6e2db66065898346322c725754d3" + license all_of: ["TCL", "BSD-3-Clause", "Beerware"] livecheck do url "https://www.ibr.cs.tu-bs.de/projects/libsmi/download/" @@ -20,7 +21,14 @@ class Libsmi < Formula sha256 x86_64_linux: "7c1d475b1062dec302c4022771cbed447f00923a404a1ea131b79796f44d07f5" end + # Regenerate `configure` to avoid `-flat_namespace` bug. + # None of our usual patches apply. + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build + def install + system "autoreconf", "--force", "--install", "--verbose" system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}" system "make", "install"