From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iOZhJf36i2RttQAASxT56A (envelope-from ) for ; Fri, 16 Jun 2023 08:02:37 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QE+XJP36i2QEIAEAG6o9tA (envelope-from ) for ; Fri, 16 Jun 2023 08:02:37 +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 52AF88DA4 for ; Fri, 16 Jun 2023 08:02:37 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qA2XA-0003kv-Ml; Fri, 16 Jun 2023 02:02:08 -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 1qA2X4-0003kC-VS for guix-patches@gnu.org; Fri, 16 Jun 2023 02:02: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 1qA2X4-0000Fm-Ls for guix-patches@gnu.org; Fri, 16 Jun 2023 02:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qA2X4-0006yi-GO for guix-patches@gnu.org; Fri, 16 Jun 2023 02:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56202] [PATCH v4] gnu: Add nsync. References: <20220624183946.23595-1-antero@mailbox.org> In-Reply-To: <20220624183946.23595-1-antero@mailbox.org> Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 16 Jun 2023 06:02:02 +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 Cc: Andy Tai Received: via spool by 56202-submit@debbugs.gnu.org id=B56202.168689528526777 (code B ref 56202); Fri, 16 Jun 2023 06:02:02 +0000 Received: (at 56202) by debbugs.gnu.org; 16 Jun 2023 06:01:25 +0000 Received: from localhost ([127.0.0.1]:48496 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qA2WS-0006xo-UM for submit@debbugs.gnu.org; Fri, 16 Jun 2023 02:01:25 -0400 Received: from mail-pj1-f50.google.com ([209.85.216.50]:53347) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qA2WQ-0006xW-6x for 56202@debbugs.gnu.org; Fri, 16 Jun 2023 02:01:23 -0400 Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-25e7fe2fb51so286962a91.2 for <56202@debbugs.gnu.org>; Thu, 15 Jun 2023 23:01:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686895276; x=1689487276; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=R8HcXrqqD0na7WQLQAT8XIGCSI8HkXe85fizvvqCcHg=; b=fsPlrrxXl0C1AqA6Myf8tUT0Wp3Vlt9GkyQNPnXbYxtWMEi8QJjYTdemIB4oP/Htua LI+i8kzQoAJn0YpQz+8Oewtuk3E2RYSFXftnaLAxyaSHtMB1L8HSKcd8uvfIverR1BLS 4D9L3FWm4c8ueJzZoDHJjIN3TAMbOHwjfCpjNYLEhMBq7eQ4/WZVWDJ66RtWGY9nilzX gf6GAVvSUJAoiyYPXE+iXkwlpfiUjJnyhl/d3OhnYUpI6IGsl4ppQXtHTVCvoLgAikh+ qB2VczrSNTMW+XCapigv496BY85GbseY/dGZ9uQt/67jJeNmpLueLv/yWuzQIQv/BBL4 VEfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686895276; x=1689487276; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=R8HcXrqqD0na7WQLQAT8XIGCSI8HkXe85fizvvqCcHg=; b=kacxmTu4s6yz3byLDT4BKmy2rH34wrP+qE8XZ2gb/kbsIaYwCd6+JYbKr/X83mrmv7 JFJyXy3LnV8ta/LillvB0dv6L/TP8/uo9eW7Q6PS938+D7vqFnSBptc0D2VsQRNAJ9v/ NRD897hqS9VkCTZPyA1UpuHyGpBkm0K+n3kJ6G9rv4xadzZDDzgn4Qhku7w3ddLv0pv9 O4/vUSYDXE6C6ylcxDRlQyzIwsigQOymDcnxqn8k178WWuCsLwscgztEPSl8Ju0iX2WF A/pXy+nNkF+1th+rZp5IbgxBM5BI4XxXPrXT5xiJZbo8mq/q3xnPETV38OD3nFLTUKhJ FjpQ== X-Gm-Message-State: AC+VfDwOc4vJu186bnOgl/VONBfXgKkpSUwfMJRGKpSuAOe1mbH8uts/ HAzsVOaW7PfxOx1XNxLT4vEoh5adCCY= X-Google-Smtp-Source: ACHHUZ4pPw8awTRkIoUY/qh4vak6uzqXEA+wZSNgncRfkCYh75Wz+H0007t1HSkIl6sLZ6J5RqQitA== X-Received: by 2002:a17:90b:d81:b0:25c:2928:4a78 with SMTP id bg1-20020a17090b0d8100b0025c29284a78mr597176pjb.49.1686895275721; Thu, 15 Jun 2023 23:01:15 -0700 (PDT) Received: from localhost.localdomain ([98.37.226.98]) by smtp.googlemail.com with ESMTPSA id s9-20020a170902a50900b001a505f04a06sm14875617plq.190.2023.06.15.23.01.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Jun 2023 23:01:15 -0700 (PDT) From: Andy Tai Date: Thu, 15 Jun 2023 23:01:11 -0700 Message-Id: X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686895357; a=rsa-sha256; cv=none; b=cQWUmvSP8Es9NI7Kvcy1LqhjaWZvzKNKYO8/xktZJUK2nT7iLOB5BAzz9KpR9czpQQq6O7 2VDUSv00vjiBYIjeQcqJA+5QNsurk9dqXGIsGsN13SLXu2msjeYm+W1gw677Pp7WTurB97 4qXrXB7yp5WZEYeb77h2TdzZp6419CBNFK0lhBaRNhI6jPDCnKgEwERQYldJ0vPFMhMUxO COlhWZv5iusTxBPmy2XNmxFWESdoKStGO4MRIts1GM/iRyiD4mfZlBmh6hRMpk5CYfugd4 Sk+JEu6/aJFdR7cYqM8ctqvAx8a0Q4gsZBfKfQnCnYRZqOz4bwg7EKaRf/swhw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=fsPlrrxX; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686895357; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=R8HcXrqqD0na7WQLQAT8XIGCSI8HkXe85fizvvqCcHg=; b=YfsCQBjeVyqv4JIMIM7iJlh21IcfRuQqn7br9IQ52NB86Zk6iNAoqt54FKu8lp+dROwRo+ mXfcwTw1SAsiQTYmbJPh2/LoOU0mWOy7pBwzpbqDMqtrPZWN3a4ChjEoMBHot9vayPd5kj KqiEcOaRsokmhv1mhI0JFZ2pyZj/5Tl7R7hTXj6B17t78aCWC3LhHnpkpUqWY49csPJ2uA W+UvTv935+cRpIj8EfUXWoKjIuvVdUyH+ReERqoncojPIqaYaZWt4KDHBf8yqgvxeE4Bxt 2hXTFUvRkGfXeUjY+TrfJzRQgsAetY2ZnxG8OvHy3I7+3sFBS0/mnpqy/6gwAQ== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=fsPlrrxX; dmarc=none; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -0.33 X-Spam-Score: -0.33 X-Migadu-Queue-Id: 52AF88DA4 X-TUID: P33gcVNEHHUO * gnu/packages/c.scm (nsync): New variable. --- gnu/packages/c.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm index e8bde0133d..0b8cf20c6e 100644 --- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -18,6 +18,7 @@ ;;; Copyright © 2022 Ekaitz Zarraga ;;; Copyright © 2022 ( ;;; Copyright © 2023 zamfofex +;;; Copyright © 2022 Antero Mejr ;;; ;;; This file is part of GNU Guix. ;;; @@ -1453,6 +1454,35 @@ (define-public utest-h "This package provides a header-only unit testing library for C/C++.") (license license:unlicense)))) + +(define-public nsync + (package + (name "nsync") + (version "1.26.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 + "0qg58kkcbm4zqkql8j5yvrb7fpx09qsf7j93dwqb9s1y69l70kx4")))) + (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))) + (define-public ispc (package (name "ispc") base-commit: 31336e9f5d68512a9c1c6826bce9f17c892a2125 -- 2.40.1