Skip to content

Commit

Permalink
aarch64-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeycherepanov committed Sep 28, 2024
1 parent ae7bcc1 commit 873919d
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Formula/a/acl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Acl < Formula
url "https://download.savannah.nongnu.org/releases/acl/acl-2.3.2.tar.gz"
sha256 "5f2bdbad629707aa7d85c623f994aa8a1d2dec55a73de5205bac0bf6058a2f7c"
license all_of: ["GPL-2.0-or-later", "LGPL-2.1-or-later"]
head "https://git.savannah.nongnu.org/git/acl.git", branch: "next"

livecheck do
url "https://download.savannah.nongnu.org/releases/acl/"
Expand All @@ -17,8 +18,12 @@ class Acl < Formula

depends_on "attr" => :build
depends_on :linux
depends_on 'autoconf'
depends_on 'gettext'
depends_on 'libtool'

def install
system "./autogen.sh"
system "./configure", *std_configure_args, "--disable-silent-rules"
system "make", "install"
end
Expand Down
1 change: 1 addition & 0 deletions Formula/b/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def install
end

args = %W[
--disable-mutexsupport
--disable-static
--prefix=#{prefix}
--mandir=#{man}
Expand Down
2 changes: 2 additions & 0 deletions Formula/c/cyrus-sasl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class CyrusSasl < Formula
uses_from_macos "libxcrypt"

def install
ENV.append "CFLAGS", "-Wno-incompatible-pointer-types"
ENV.append "CFLAGS", "-Wno-implicit-function-declaration"
system "./configure",
"--disable-macos-framework",
"--disable-dependency-tracking",
Expand Down
4 changes: 4 additions & 0 deletions Formula/g/ghostscript.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ def install
libs = %w[expat freetype jbig2dec jpeg lcms2mt leptonica libpng openjpeg tesseract tiff zlib]
libs.each { |l| rm_r(buildpath/l) }

ENV.append "CFLAGS", "-Wno-incompatible-pointer-types"
ENV.append "CFLAGS", "-Wno-int-conversion"

configure = build.head? ? "./autogen.sh" : "./configure"

args = %w[--disable-compile-inits
Expand All @@ -72,6 +75,7 @@ def install
--with-system-libtiff
--without-x]

args.delete("--with-system-libtiff") # aarch64 linux temporary workaround
# Set the correct library install names so that `brew` doesn't need to fix them up later.
ENV["DARWIN_LDFLAGS_SO_PREFIX"] = "#{opt_lib}/"
system configure, *std_configure_args, *args
Expand Down
1 change: 1 addition & 0 deletions Formula/r/rtmpdump.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class Rtmpdump < Formula

def install
ENV.deparallelize
ENV.append "CFLAGS", "-Wno-incompatible-pointer-types"

os = if OS.mac?
"darwin"
Expand Down
2 changes: 2 additions & 0 deletions Formula/x/xmlto.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def install
ENV["GETOPT"] = Formula["gnu-getopt"].opt_bin/"getopt" if OS.mac?
# Find our docbook catalog
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"

ENV.append "CFLAGS", "-Wno-implicit-int"

ENV.deparallelize
system "autoreconf", "--install"
Expand Down

0 comments on commit 873919d

Please sign in to comment.