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
@@ -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