11class Libfaketime < Formula
22 desc "Report faked system time to programs"
33 homepage "https://github.com/wolfcw/libfaketime"
4- url "https://github.com/wolfcw/libfaketime/archive/refs/tags/v0.9.10 .tar.gz"
5- sha256 "729ad33b9c750a50d9c68e97b90499680a74afd1568d859c574c0fe56fe7947f "
4+ url "https://github.com/wolfcw/libfaketime/archive/refs/tags/v0.9.12 .tar.gz"
5+ sha256 "4fc32218697c052adcdc5ee395581f2554ca56d086ac817ced2be0d6f1f8a9fa "
66 license "GPL-2.0-only"
77 head "https://github.com/wolfcw/libfaketime.git" , branch : "master"
88
9- no_autobump! because : :requires_manual_review
10-
119 bottle do
12- sha256 arm64_sequoia : "bfd710155f5264eb161cb1b25858b737bca3981693b1dbbe0cebfc7f75edd1c7"
13- sha256 arm64_sonoma : "1f61121e94582fee4405d79d0cea2216f9cc1f148b3b8a4b0a030eb23ee24c4b"
14- sha256 arm64_ventura : "7f785f03ad7e595192943ab0857be128021577226f265f59f1427812a844d160"
15- sha256 arm64_monterey : "5e1401f985723d43a90e1789f6e765832245d1c9a70de598a978f0a4d06b4ea8"
16- sha256 arm64_big_sur : "8f8f919d1e7fcce1610432468d8b5a73209b863df199ea6c2faf3a541e526ade"
17- sha256 sonoma : "f96cbea8d4f2254f1a6aaed12b48a18c39a16b0da947380799b363ee161d5841"
18- sha256 ventura : "c0a4c19fab989e38a1dfefa0caef9ebf3a6f75d038b6f725aca7800482337857"
19- sha256 monterey : "0ec1aa518fba8d2e20ff358fdeac7ab640488eeb47dcbdf7900601d53c79b7ce"
20- sha256 big_sur : "d852f9c059965fb8750e5202c6b59ed6806dbc19d0aac339dfec71cca3856dbc"
21- sha256 catalina : "c826fdd7a0b8b1be7a8957665ddf3403bbc9e12f9da052a616e714c80c429602"
22- sha256 arm64_linux : "12776ac58f5b2a9c124452dda8c7eb796dace45efff485921461264f2b5d62c0"
23- sha256 x86_64_linux : "a30d8e38cbe2d90d06ceb803a766750c07c5b2034931db350b6eca7879343eae"
10+ sha256 arm64_sequoia : "c030c10a9d07fc14da42e60bcc11d8a376439b7bffd59e419bbb76abd82727f9"
11+ sha256 arm64_sonoma : "6e77335420fdca3480dbe4a8d8c208700d098986d2a1919b090d18e894ee1f68"
12+ sha256 arm64_ventura : "ce35c8e69155c44bb30e3966ad6f61d4f8b6e6d4d75205f9d243cf1fea4b92f1"
13+ sha256 sonoma : "73638e62bae905cfe0e2484f8c8a0a01ad064cdd68c5c55b8708a2ee8ebe9720"
14+ sha256 ventura : "fb1d11b731aaf10df060a0a3b1376f55cd1e37924494ff20732bd62db0a3ff7d"
15+ sha256 arm64_linux : "600785347f8e59a106e286b38c4fd82a2ba422be0fd6d453baf8d71179f56da4"
16+ sha256 x86_64_linux : "feb25281dd8aec835459b0381734f5a2cd877738c23da58d636d2b7d95bc9a0f"
2417 end
2518
2619 on_macos do
@@ -31,6 +24,9 @@ class Libfaketime < Formula
3124 depends_on macos : :sierra
3225 end
3326
27+ # upstream bug report, https://github.com/wolfcw/libfaketime/issues/506
28+ patch :DATA
29+
3430 def install
3531 system "make" , "PREFIX=#{ prefix } " , "install"
3632 end
@@ -49,3 +45,19 @@ def install
4945 assert_match "1230106542" , shell_output ( "TZ=UTC #{ bin } /faketime -f '2008-12-24 08:15:42' ./test" ) . strip
5046 end
5147end
48+
49+ __END__
50+ diff --git a/src/Makefile.OSX b/src/Makefile.OSX
51+ index 405c021..dae9880 100644
52+ --- a/src/Makefile.OSX
53+ +++ b/src/Makefile.OSX
54+ @@ -72,8 +72,7 @@ LIB_LDFLAGS += -dynamiclib -current_version 0.9.12 -compatibility_version 0.7
55+ ARCH := $(shell uname -m)
56+
57+ ifeq ($(ARCH),arm64)
58+ - CFLAGS += -arch arm64e -arch arm64
59+ - CFLAGS += -fptrauth-calls -fptrauth-returns
60+ + CFLAGS += -arch arm64
61+ endif
62+
63+ SONAME = 1
0 commit comments