From patchwork Thu Apr 6 20:16:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 49004 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id CFDB9173FE; Thu, 6 Apr 2023 21:18:32 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id B0E15173E1 for ; Thu, 6 Apr 2023 21:18:31 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pkW3d-0006hQ-BG; Thu, 06 Apr 2023 16:18:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pkW3W-0006ga-Mu for guix-patches@gnu.org; Thu, 06 Apr 2023 16:18:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pkW3W-0005YR-E8 for guix-patches@gnu.org; Thu, 06 Apr 2023 16:18:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pkW3V-0003L5-Pm for guix-patches@gnu.org; Thu, 06 Apr 2023 16:18:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56202] [PATCH v3] gnu: Add nsync. References: <20220624183946.23595-1-antero@mailbox.org> In-Reply-To: <20220624183946.23595-1-antero@mailbox.org> Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 06 Apr 2023 20:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56202 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56202@debbugs.gnu.org Received: via spool by 56202-submit@debbugs.gnu.org id=B56202.168081223512737 (code B ref 56202); Thu, 06 Apr 2023 20:18:01 +0000 Received: (at 56202) by debbugs.gnu.org; 6 Apr 2023 20:17:15 +0000 Received: from localhost ([127.0.0.1]:55259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkW2k-0003JM-GM for submit@debbugs.gnu.org; Thu, 06 Apr 2023 16:17:14 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:34308) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkW2i-0003J6-5r for 56202@debbugs.gnu.org; Thu, 06 Apr 2023 16:17:13 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4Pst8018b2z9sjR for <56202@debbugs.gnu.org>; Thu, 6 Apr 2023 22:17:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1680812224; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=VfYz0o2LgDq6Gl+oVZIvDAInRojwLRixbT9PNDo4mMM=; b=eXlVCqz57PNDnOfu3f7ENJz6hlYkijILonPiDZS9aKzMqSWZb5bks3j9rWcTLvT90M0DWZ /6Yt+Q7ZeoZYUaAUFJ/+FMzUcr3Bi410uMi1M7wQf4qdxt1bBG92Wgt1pbwTXDNbxLvAq0 FRiQqQahZzVS31YFc3wGAg8yFYfhLrCnQRePj7LyaZLLMV10dNWZKHpuKVGX3lLZAPPTSR kSfAq7StWRQlEgITqCcsQDl7L7gd4vsJsy4D+0Wg/Z2Ik+bLe43DDU+43oCoMpvuvxucQs Uk9eW9LCYSTv463YJM4DsAA5JE1LENwKnOS18tlPOJFUlFOa5blQy5N7ED8UfQ== Date: Thu, 6 Apr 2023 20:16:49 +0000 Message-Id: <20230406201649.8364-1-antero@mailbox.org> MIME-Version: 1.0 X-MBO-RS-META: qbdzyjqpt6dohyg5m4ditpx7otu5ubqg X-MBO-RS-ID: 5e3683965d1d0cf830c X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches X-Patchwork-Original-From: Antero Mejr via Guix-patches via From: Antero Mejr Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/c.scm (nsync): New variable. --- gnu/packages/c.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm index b2f16613dd..c7d3fb258c 100644 --- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -1375,3 +1375,32 @@ (define-public utest-h (description "This package provides a header-only unit testing library for C/C++.") (license license:unlicense)))) + +(define-public nsync + (package + (name "nsync") + (version "1.25.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/google/nsync") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1nnavsm5m0yl65r9nyxzzg0y1z1dr0r9933b5329k7n1r6ndinbd")))) + (build-system cmake-build-system) + (arguments + (list #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON"))) + (home-page "https://github.com/google/nsync") + (synopsis "C library for synchronization primitives") + (description + "nsync is a C library that exports various synchronization primitives: +@itemize +@item locks +@item condition variables +@item run-once initialization +@item waitable counter (useful for barriers) +@item waitable bit (useful for cancellation, or other conditions) +@end itemize") + (license license:asl2.0)))