From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18607 invoked from network); 27 Jan 2023 23:16:49 -0000 Received: from lists.zx2c4.com (165.227.139.114) by inbox.vuxu.org with ESMTPUTF8; 27 Jan 2023 23:16:49 -0000 Received: by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTP id b3795057; Fri, 27 Jan 2023 23:16:27 +0000 (UTC) Return-Path: Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [2607:f8b0:4864:20::102f]) by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTPS id 28deda5e (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Fri, 27 Jan 2023 23:16:25 +0000 (UTC) Received: by mail-pj1-x102f.google.com with SMTP id lp10so6021822pjb.4 for ; Fri, 27 Jan 2023 15:16:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mmayer-net.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=bnpNEp0nxiNbbap2gmNb7i5bqP7I8cH/f1R4XsPf2DY=; b=1/vcQGBTHnJtTSc95vWS5NzYXbfNLKm6x3M6SyiOGz+eFuYP12Si8xjYxxpgZGC+R9 as0k7fz4P7lJALUbC12toUjuGQ73w3FxGHIXunMkt+dmmbZhvzRty96647HYOfS090U6 VoEGPSERedhil2yvE93IMClddrf6pi9iLBwXRQAdIeugQhxWIkiuKG9l83gwex+YAcBw ySdo+s4A4VWxE3fzpk/p7T3Ko8EZNUyoRPaFkvhDmQ6uSQXPZObLdZyj2WZmCqQrU0mx yEwyS8j5THLR8csOLNEDtTtxMGO2QJhlSI5OKtL4NwpFJ+mKLAfMSgZ+zstPEgve23wJ SwgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bnpNEp0nxiNbbap2gmNb7i5bqP7I8cH/f1R4XsPf2DY=; b=vOioZXLWNwRFc/vjCSTpWcXmbCLVoVslR/++w/Y4TQs5s3GF1BpdIhf+HjoZZU4Aax sUHTXOgqFvJ8uXGBDi5PpxmRi78rJb8wegO0effFbpyPnBQzao5Z0J2cgRi/EvZWsZtF RECM4IK0kslj6ZxZ/dBqAnakZDNbJjw5HhqKzi04SDs4WJnpHSY/sQj05irRCEfDd2bT d9ORPxYbhazvonL47M4WSIw/EufIytTRINgrGC6GU3+I6w6af3edGvxdoUj8QxyHkZsW Vgg2Oox2kwxdDrGIUw7L4CHAvH79NKOqye2kp9fqOVGnuq4fEe88fUAsl7QxBNcLkUr6 D/kQ== X-Gm-Message-State: AO0yUKWYQC+HepQ7RLg1aRX6No7+jfz1llQLW/qI0peH2nA1XAvgNk5z yfcAjUIRK1AwR9P0ZgVD3plJ0CzabHu+tPAIxpa+Jw== X-Google-Smtp-Source: AK7set+GEDJrh9UO+7Dl0efSPf+VGAEDf23Ig33OUMzJYp+jwR2HnVCjTJ+Nd5QQSpJEh6uIonlYUQ== X-Received: by 2002:a17:902:c411:b0:196:6599:3538 with SMTP id k17-20020a170902c41100b0019665993538mr35432plk.22.1674861383275; Fri, 27 Jan 2023 15:16:23 -0800 (PST) Return-Path: Received: from tethys.home.lan (S010600e0671fdc60.vs.shawcable.net. [70.71.78.140]) by smtp.gmail.com with ESMTPSA id g12-20020a170902fe0c00b00189f2fdc178sm3347412plj.177.2023.01.27.15.16.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Jan 2023 15:16:22 -0800 (PST) From: Markus Mayer To: CGIT List Cc: Markus Mayer Subject: [PATCH 0/1] cgit for macOS Date: Fri, 27 Jan 2023 15:15:42 -0800 Message-Id: <20230127231543.17977-1-code@mmayer.net> X-Mailer: git-send-email 2.37.1 (Apple Git-137.1) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: cgit@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: List for cgit developers and users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cgit-bounces@lists.zx2c4.com Sender: "CGit" 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