List for cgit developers and users
 help / color / mirror / Atom feed
* [PATCH 0/1] cgit for macOS
@ 2023-01-27 23:15 Markus Mayer
  2023-01-27 23:15 ` [PATCH 1/1] global: provide memrchr implementation " Markus Mayer
  0 siblings, 1 reply; 4+ messages in thread
From: Markus Mayer @ 2023-01-27 23:15 UTC (permalink / raw)
  To: CGIT List; +Cc: Markus Mayer

Hi all,

I first proposed this change over two and a half years ago.[1]
Unfortunately, it never seemed to gain any traction. I figured I'd give
it another shot.

Adding this open-source implementation of memrchr() allows for CGIT to
be built on macOS. This can be very convenient, be it for CGIT
development or to have a local CGIT instance that'll work even without
network connection.

The change seems quite small and well contained (less than 60 lines of
code added; no other platform affected), and it enables an additional
platform/OS for CGIT.

Proof that it actually builds (x86 works too, of course):

$ file cgit
cgit: Mach-O 64-bit executable arm64

$ otool -L cgit
cgit:
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (...)
/usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
/usr/lib/libiconv.2.dylib (compatibility version 7.0.0, current version 7.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.0.0)

Regards,
-Markus

[1] https://www.mail-archive.com/cgit@lists.zx2c4.com/msg03014.html

Markus Mayer (1):
  global: provide memrchr implementation for macOS

 cgit.h    |  4 ++++
 cgit.mk   |  9 +++++++++
 memrchr.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 57 insertions(+)
 create mode 100644 memrchr.c

-- 
2.39.0

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-01-29 21:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-27 23:15 [PATCH 0/1] cgit for macOS Markus Mayer
2023-01-27 23:15 ` [PATCH 1/1] global: provide memrchr implementation " Markus Mayer
     [not found]   ` <fe46d404-8659-7260-63c1-38bbc9c1e5ad@gmail.com>
2023-01-28  0:35     ` Markus Mayer
     [not found]       ` <Y9R3X7bhwUAWofJ/@xps13>
2023-01-29 21:43         ` Markus Mayer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).