11class 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.0.30 .tar.gz"
5- sha256 "732c0ac646be7cc59a51cdfdb2d0ff1a4d2501c28f900a2d447c77729fdfca22 "
4+ url "https://github.com/uutils/coreutils/archive/refs/tags/0.1.0 .tar.gz"
5+ sha256 "55c528f2b53c1b30cb704550131a806e84721c87b3707b588a961a6c97f110d8 "
66 license "MIT"
77 head "https://github.com/uutils/coreutils.git" , branch : "main"
88
@@ -12,13 +12,13 @@ class UutilsCoreutils < Formula
1212 end
1313
1414 bottle do
15- sha256 cellar : :any_skip_relocation , arm64_sequoia : "2411a79699ee2d457d9900f8f59c1ab0fa747dee24dfcf4f7d105aedce69fe66 "
16- sha256 cellar : :any_skip_relocation , arm64_sonoma : "d3964a0c2549b404f6ec0439cf948b8505cf9e2839ee4ed64e881570a247ff3d "
17- sha256 cellar : :any_skip_relocation , arm64_ventura : "5455d414d3adc4fb4dc54571fe451487adab71d71ace76e6476c1f8f235a3210 "
18- sha256 cellar : :any_skip_relocation , sonoma : "367bf4cac0c0c9042eef29604d1a19178b1a8ecddcb2d8a2f58069f06da99f03 "
19- sha256 cellar : :any_skip_relocation , ventura : "0db44149c4963e57a301d574a0027c76b0668a935ed7a93003ee0c06b8212d67 "
20- sha256 arm64_linux : "ceeb9ca9c70ab137505a4c6dc8e0ab69b5360cb76f4fba859d993de2298b46d1 "
21- sha256 x86_64_linux : "e18edcc1973ef26762cbeefe8d494b01190d886fe8e31ae0cb5fd2b6adcee0a0 "
15+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "efc20adfb97e84ed67eeddd69dfad9600b64d916a30b6ddb37ec1ec86e1b0d65 "
16+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "f8e49f4ecacb9a3ff50258bc2b33e04eb049b68149bf4bdd362590995ea9dc1a "
17+ sha256 cellar : :any_skip_relocation , arm64_ventura : "72b467ed6f6f15ec60a3cee34fa365bd1121364afb925999c00304b8a33fde62 "
18+ sha256 cellar : :any_skip_relocation , sonoma : "c8af817bc30896c6ee0a6d37f0f58345a0c5a9f81ddc1e4f479a9ab79ac5ecdd "
19+ sha256 cellar : :any_skip_relocation , ventura : "b695ba77c5d41cff1f0856d9287c72994b8d94d54de414b0447194675c8d37db "
20+ sha256 arm64_linux : "5f63af088aaf76c4349dd441b1423d5df8a6c722247c66d1663b8023d03d8feb "
21+ sha256 x86_64_linux : "a7b684d72256a852a02a9261707c51e1098033aa25bac60b08629d3ae879631a "
2222 end
2323
2424 depends_on "make" => :build
@@ -31,6 +31,10 @@ 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+
3438 def install
3539 man1 . mkpath
3640
@@ -97,3 +101,18 @@ def coreutils_filenames(dir)
97101 system bin /"uln" , "-f" , "test" , "test.sha1"
98102 end
99103end
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