From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4E/rDGMFtmJt3QAAbAwnHQ (envelope-from ) for ; Fri, 24 Jun 2022 20:41:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sPPRDGMFtmI+SAEAauVa8A (envelope-from ) for ; Fri, 24 Jun 2022 20:41:39 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B622DFF9B for ; Fri, 24 Jun 2022 20:41:38 +0200 (CEST) Received: from localhost ([::1]:58218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o4oFM-0003Po-NK for larch@yhetil.org; Fri, 24 Jun 2022 14:41:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51526) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4oEr-0003Np-GZ for guix-patches@gnu.org; Fri, 24 Jun 2022 14:41:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49636) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o4oEo-0003lF-0d for guix-patches@gnu.org; Fri, 24 Jun 2022 14:41:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o4oEn-0000JH-Uj for guix-patches@gnu.org; Fri, 24 Jun 2022 14:41:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56202] [PATCH] gnu: Add nsync. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 24 Jun 2022 18:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56202 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56202@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16560960041101 (code B ref -1); Fri, 24 Jun 2022 18:41:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Jun 2022 18:40:04 +0000 Received: from localhost ([127.0.0.1]:43533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4oDs-0000Hh-1B for submit@debbugs.gnu.org; Fri, 24 Jun 2022 14:40:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:37052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o4oDp-0000HB-4X for submit@debbugs.gnu.org; Fri, 24 Jun 2022 14:40:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o4oDo-00032e-SZ for guix-patches@gnu.org; Fri, 24 Jun 2022 14:40:00 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:48654) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1o4oDm-0003L2-NN for guix-patches@gnu.org; Fri, 24 Jun 2022 14:40:00 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (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-201.mailbox.org (Postfix) with ESMTPS id 4LV5Wr2Mg0z9sT3 for ; Fri, 24 Jun 2022 20:39:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1656095992; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=bepJlf+g9tq/xQNgsaH0S7eMhq+Qrf4QfbWR/Whsgts=; b=Pe7SWygs7QtxTCGu2GRLTfKDnlb5pNxh2IupM/+B2iImoh1BEe6/T9dSNaIz3HmysHAoam BHINYuNDEpPki+DqOufV+wGwUIkqbv7rSbQa6jgABHiwgsPmcuhzOg0ke2Ey6C7pp4v0Nk gYpjzl/tHnIY4o9MfScyegv+DqHv/S36aa2lbyqefSIB151cgONANgGrWXo/UcYUdIfolm Izhnh9CswtnrNg7SiScoupnNxIIaL2tkFK2nYDleuY7qlzpR9baBIQnTK1qjZHuOCRNMKR iqZfpbNLW8KvHH2j7GaEb+Vc/v035+JtbIIxmGAa6Cr5tSsqI0uKtzWQhNyw7g== Date: Fri, 24 Jun 2022 18:39:46 +0000 Message-Id: <20220624183946.23595-1-antero@mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MBO-RS-ID: 68675f993dfa8970647 X-MBO-RS-META: s1w9yrtwxxg1e7mbcng8558gedkqr8an X-Rspamd-Queue-Id: 4LV5Wr2Mg0z9sT3 Received-SPF: pass client-ip=80.241.56.171; envelope-from=antero@mailbox.org; helo=mout-p-201.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches From: Antero Mejr via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1656096098; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=bepJlf+g9tq/xQNgsaH0S7eMhq+Qrf4QfbWR/Whsgts=; b=g8sIurXc6DVUiGA5P9XUHd635lMabAVK6EWt04kweyRmeylcf06RRWtBUkNuNcuXapEDsH eisfm4zmff/pzSDhz4M7oltKE7pfcUuCRKdwE1mLYJjKNylHWVbKnyVJT+HWHXEliDUKsY 4W3j7AuOblnWYA6L9JLtFaWvfs4jd81DAKYvCubSy53z0mKiPCKYxhNVySG7pnut0nKV8A 7id812ZMnsbs8mhXPkPPYnNve/BmKysfwYRCW+O3bi3vAtQEdTK4eiXYB++/pwbdQjnKR/ AciHQ6uqxQ1k/c6pTBRDynN4hEe37s7McQzRCmqise8KL6t3eFVvs7Gcyzxrkg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1656096098; a=rsa-sha256; cv=none; b=P//ZynaBE6UfeT61OT5t6uMZ8TPP9B5CohifTx5dYWb1ZMrugifHh1DYgkOvC2Q0DezFzy U+5PYiB6rkmLbO5vblTyGpZ9oHTEiBiyVXjU1dgAcgM9fiLwo4ZGN+LUzpJrcxBFoJsnT/ f/iphARuUmG9FsQRZ7TRrWSX/95TpZ8K8KTFpPgyS9vPOwWx5XcR2xHdYd+b/GlkdUpXwn +/kIbAYF4ot9e69IpbVolhFcoucI7cxMiyD/xjO828TYpsVrD7I30H3ONACRa+8s9hsIt/ mtznhTW7GhZehz/2JMXJbDd6WvAnpkC3ykebEkJBSxexOnKYXp656g04f3P7PQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=Pe7SWygs; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailbox.org header.s=mail20150812 header.b=Pe7SWygs; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B622DFF9B X-Spam-Score: -3.86 X-Migadu-Scanner: scn1.migadu.com X-TUID: eoFvMzIPMjNz * 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 3e49539473..9f7e6891b9 100644 --- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -14,6 +14,7 @@ ;;; Copyright © 2021 David Dashyan ;;; Copyright © 2021 Foo Chuan Wei ;;; Copyright © 2022 (unmatched parenthesis +;;; Copyright © 2022 Antero Mejr ;;; ;;; This file is part of GNU Guix. ;;; @@ -1134,3 +1135,31 @@ (define-public utf8-h C and C++. The functions it provides are like those from the C header string.h, but with a utf8* prefix instead of the str* prefix.") (license license:unlicense)))) + +(define-public nsync + (package + (name "nsync") + (version "1.24.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 + "0737jcjw5nxv34zs7ppp6hqimb79k51kjiavgg0ygsfi22a6s0ld")))) + (build-system cmake-build-system) + (home-page "https://github.com/google/nsync") + (synopsis "C library for synchronization primitives") + (description + "nsync is a C library that exports various synchronization primitives: +@enumerate +@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 enumerate +") + (license license:asl2.0))) -- 2.36.1