|
1 | 1 | class Rpm < Formula
|
2 | 2 | desc "Standard unix software packaging tool"
|
3 | 3 | 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" |
6 | 6 | license "GPL-2.0-only"
|
7 | 7 | version_scheme 1
|
8 | 8 | head "https://github.com/rpm-software-management/rpm.git", branch: "master"
|
@@ -51,14 +51,22 @@ class Rpm < Formula
|
51 | 51 | depends_on "libomp"
|
52 | 52 | end
|
53 | 53 |
|
| 54 | + on_linux do |
| 55 | + depends_on "elfutils" |
| 56 | + end |
| 57 | + |
54 | 58 | conflicts_with "rpm2cpio", because: "both install `rpm2cpio` binaries"
|
55 | 59 |
|
56 | 60 | def python3
|
57 | 61 | "python3.13"
|
58 | 62 | end
|
59 | 63 |
|
60 | 64 | 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 |
62 | 70 |
|
63 | 71 | # only rpm should go into HOMEBREW_CELLAR, not rpms built
|
64 | 72 | inreplace ["macros.in", "platform.in"], "@prefix@", HOMEBREW_PREFIX
|
@@ -87,7 +95,10 @@ def install
|
87 | 95 | -DENABLE_TESTSUITE=OFF
|
88 | 96 | -DWITH_ACL=OFF
|
89 | 97 | -DWITH_CAP=OFF
|
| 98 | + -DWITH_SEQUOIA=OFF |
90 | 99 | ]
|
| 100 | + args += ["-DWITH_LIBELF=OFF", "-DWITH_LIBDW=OFF"] if OS.mac? |
| 101 | + |
91 | 102 | system "cmake", "-S", ".", "-B", "_build", *args, *std_cmake_args
|
92 | 103 | system "cmake", "--build", "_build"
|
93 | 104 | system "cmake", "--install", "_build"
|
|
0 commit comments