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
1210 sha256 arm64_sequoia : "bfd710155f5264eb161cb1b25858b737bca3981693b1dbbe0cebfc7f75edd1c7"
1311 sha256 arm64_sonoma : "1f61121e94582fee4405d79d0cea2216f9cc1f148b3b8a4b0a030eb23ee24c4b"
@@ -31,6 +29,9 @@ class Libfaketime < Formula
3129 depends_on macos : :sierra
3230 end
3331
32+ # upstream bug report, https://github.com/wolfcw/libfaketime/issues/506
33+ patch :DATA
34+
3435 def install
3536 system "make" , "PREFIX=#{ prefix } " , "install"
3637 end
@@ -49,3 +50,19 @@ def install
4950 assert_match "1230106542" , shell_output ( "TZ=UTC #{ bin } /faketime -f '2008-12-24 08:15:42' ./test" ) . strip
5051 end
5152end
53+
54+ __END__
55+ diff --git a/src/Makefile.OSX b/src/Makefile.OSX
56+ index 405c021..dae9880 100644
57+ --- a/src/Makefile.OSX
58+ +++ b/src/Makefile.OSX
59+ @@ -72,8 +72,7 @@ LIB_LDFLAGS += -dynamiclib -current_version 0.9.12 -compatibility_version 0.7
60+ ARCH := $(shell uname -m)
61+
62+ ifeq ($(ARCH),arm64)
63+ - CFLAGS += -arch arm64e -arch arm64
64+ - CFLAGS += -fptrauth-calls -fptrauth-returns
65+ + CFLAGS += -arch arm64
66+ endif
67+
68+ SONAME = 1
0 commit comments