Skip to content

Commit fcee56a

Browse files
committed
rpm 4.20.1
1 parent f2014fc commit fcee56a

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

Formula/r/rpm.rb

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Rpm < Formula
22
desc "Standard unix software packaging tool"
33
homepage "https://rpm.org/"
4-
url "https://ftp.osuosl.org/pub/rpm/releases/rpm-4.19.x/rpm-4.19.1.1.tar.bz2"
5-
sha256 "874091b80efe66f9de8e3242ae2337162e2d7131e3aa4ac99ac22155e9c521e5"
4+
url "https://ftp.osuosl.org/pub/rpm/releases/rpm-4.20.x/rpm-4.20.1.tar.bz2"
5+
sha256 "52647e12638364533ab671cbc8e485c96f9f08889d93fe0ed104a6632661124f"
66
license "GPL-2.0-only"
77
version_scheme 1
88
head "https://github.com/rpm-software-management/rpm.git", branch: "master"
@@ -51,14 +51,22 @@ class Rpm < Formula
5151
depends_on "libomp"
5252
end
5353

54+
on_linux do
55+
depends_on "elfutils"
56+
end
57+
5458
conflicts_with "rpm2cpio", because: "both install `rpm2cpio` binaries"
5559

5660
def python3
5761
"python3.13"
5862
end
5963

6064
def install
61-
ENV.append "LDFLAGS", "-lomp" if OS.mac?
65+
if OS.mac?
66+
ENV.append "LDFLAGS", "-lomp"
67+
# Work around CMake check_c_compiler_flag not detecting some flags with Apple Clang
68+
inreplace "CMakeLists.txt", " -fhardened)", ")"
69+
end
6270

6371
# only rpm should go into HOMEBREW_CELLAR, not rpms built
6472
inreplace ["macros.in", "platform.in"], "@prefix@", HOMEBREW_PREFIX
@@ -87,7 +95,10 @@ def install
8795
-DENABLE_TESTSUITE=OFF
8896
-DWITH_ACL=OFF
8997
-DWITH_CAP=OFF
98+
-DWITH_SEQUOIA=OFF
9099
]
100+
args += ["-DWITH_LIBELF=OFF", "-DWITH_LIBDW=OFF"] if OS.mac?
101+
91102
system "cmake", "-S", ".", "-B", "_build", *args, *std_cmake_args
92103
system "cmake", "--build", "_build"
93104
system "cmake", "--install", "_build"

0 commit comments

Comments
 (0)