Skip to content

Commit a8d259d

Browse files
BrewTestBotdaeho-ro
authored andcommitted
uutils-coreutils 0.2.0
uutils-coreutils: remove build patch Signed-off-by: Rui Chen <[email protected]>
1 parent 217fd24 commit a8d259d

File tree

1 file changed

+9
-25
lines changed

1 file changed

+9
-25
lines changed

Formula/u/uutils-coreutils.rb

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class UutilsCoreutils < Formula
22
desc "Cross-platform Rust rewrite of the GNU coreutils"
33
homepage "https://uutils.github.io/coreutils/"
4-
url "https://github.com/uutils/coreutils/archive/refs/tags/0.1.0.tar.gz"
5-
sha256 "55c528f2b53c1b30cb704550131a806e84721c87b3707b588a961a6c97f110d8"
4+
url "https://github.com/uutils/coreutils/archive/refs/tags/0.2.0.tar.gz"
5+
sha256 "185be1670bb5091f48d29524c6f81326f12aef5e599fcdb122967a95d017f32a"
66
license "MIT"
77
head "https://github.com/uutils/coreutils.git", branch: "main"
88

@@ -31,18 +31,17 @@ class UutilsCoreutils < Formula
3131

3232
conflicts_with "unp", because: "both install `ucat` binaries"
3333

34-
# Temporary patch to fix the error; Failed to find 'selinux/selinux.h'
35-
# Issue ref: https://github.com/uutils/coreutils/issues/7996
36-
patch :DATA
37-
3834
def install
3935
man1.mkpath
4036

37+
args = %W[
38+
PROG_PREFIX=u
39+
PREFIX=#{prefix}
40+
SPHINXBUILD=#{Formula["sphinx-doc"].opt_bin}/sphinx-build
41+
SELINUX_ENABLED=0
42+
]
4143
# Call `make` as `gmake` to use Homebrew `make`.
42-
system "gmake", "install",
43-
"PROG_PREFIX=u",
44-
"PREFIX=#{prefix}",
45-
"SPHINXBUILD=#{Formula["sphinx-doc"].opt_bin}/sphinx-build"
44+
system "gmake", "install", *args
4645

4746
# Symlink all commands into libexec/uubin without the 'u' prefix
4847
coreutils_filenames(bin).each do |cmd|
@@ -101,18 +100,3 @@ def coreutils_filenames(dir)
101100
system bin/"uln", "-f", "test", "test.sha1"
102101
end
103102
end
104-
105-
__END__
106-
diff --git a/GNUmakefile b/GNUmakefile
107-
index f46126a82..58bf7fbdd 100644
108-
--- a/GNUmakefile
109-
+++ b/GNUmakefile
110-
@@ -181,8 +181,6 @@ SELINUX_PROGS := \
111-
112-
ifneq ($(OS),Windows_NT)
113-
PROGS := $(PROGS) $(UNIX_PROGS)
114-
-# Build the selinux command even if not on the system
115-
- PROGS := $(PROGS) $(SELINUX_PROGS)
116-
endif
117-
118-
UTILS ?= $(PROGS)

0 commit comments

Comments
 (0)