From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iBNGHhtK6mRlXgAA9RJhRA:P1 (envelope-from ) for ; Sat, 26 Aug 2023 20:53:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iBNGHhtK6mRlXgAA9RJhRA (envelope-from ) for ; Sat, 26 Aug 2023 20:53:15 +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 5BC165986D for ; Sat, 26 Aug 2023 20:53:15 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=CD3ckWbB; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693075995; a=rsa-sha256; cv=none; b=lAv7y6jEchj14qU9UHGFy2jr4a5pet3NIWclcjR/W08r7yGIUPv+nvrEw7bohK2UMjkM3g QqlLPKb89TI2nng3ItNBVws2pVasFnxuVTdgw9iehaTlqnfSjfvL2K9BTWxtpP/js24EIH nxmXPnrou5d/AT1UNo0z/RCXuDZpq1yv+tzM+qVJZAXQbAZ3OD7my4qob8hlrJyoljyp6m 3u7qI+poQje87LK+Zd8YI7dsYIoAhGU5CHs9mefsNeXBN6U9bTjrvpP5bDLTb8bHw4FTbr Unscl7+7AboyUB4LgxtqD0wadDpgqWWlPv7QcFzLHpR4LaCrQqcU/I1JYW1syg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=CD3ckWbB; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693075995; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=fJddFAwg8KYzgNMAmXkt+pfAxI2bHsfBi4OqPJ3tnRY=; b=dXSHGqrBa46dJKvyIe2x3kGj7PIR+eSgfLg18Ht4O0rYsokUQ+c0+gD/u4B3kvrvfUb1zE aYs+g5UlAzCZ6N/DkrX2cb3QUwoXCowY3wd42T1l24YYqDBLiyKQ9xiLi9ikHWPEj5rhsx 1OjhGC+3G49k6bW5qlx6vPVmgs5ObjF3UtgyQtcNf5xgirt9TJjRKwjfJpBS9A7XpF4v+Y vvNPJ/IFVNIPcu4Y3TaDng4ys21n0xF2QUY8PFRyd/G1Zpc0UyAxnP8/gULyc287xpkFiQ 61hlDF5YDgU2i/2Qib+cza44lND5X3h1jRWp7THa6GRZWLaUn7dqapuRH4P7KQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZyPA-0002k1-BS; Sat, 26 Aug 2023 14:53:04 -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 1qZyP5-0002iV-2y for guix-patches@gnu.org; Sat, 26 Aug 2023 14:53:00 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZyP3-0006ZI-Bz for guix-patches@gnu.org; Sat, 26 Aug 2023 14:52:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZyP8-0007Ve-KS for guix-patches@gnu.org; Sat, 26 Aug 2023 14:53:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65553] [PATCH 3/6] gnu: Add arrayfire-threads. References: In-Reply-To: Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 26 Aug 2023 18:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65553 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65553@debbugs.gnu.org Received: via spool by 65553-submit@debbugs.gnu.org id=B65553.169307597228844 (code B ref 65553); Sat, 26 Aug 2023 18:53:02 +0000 Received: (at 65553) by debbugs.gnu.org; 26 Aug 2023 18:52:52 +0000 Received: from localhost ([127.0.0.1]:43411 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZyOy-0007V9-EH for submit@debbugs.gnu.org; Sat, 26 Aug 2023 14:52:52 -0400 Received: from layka.disroot.org ([178.21.23.139]:36050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZyOw-0007V1-Bd for 65553@debbugs.gnu.org; Sat, 26 Aug 2023 14:52:51 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 72536411EB for <65553@debbugs.gnu.org>; Sat, 26 Aug 2023 20:52:44 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D97ZcS8ec_nr for <65553@debbugs.gnu.org>; Sat, 26 Aug 2023 20:52:43 +0200 (CEST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1693075963; bh=QO1PSI6iYMVqMMR4YV5zLpI0Qdg0/j4S9b4q4etO4dU=; h=Date:To:From:Subject; b=CD3ckWbBmxkYRHUrOWLjC69p62AsjaaBNOfrcIy+uUXOq4btmIZgHjYXFZbnl1Lky n71EvciN1q/Z3GxweS4ZtKA2IGxBktXkVFLePTOzgDY4Fqk2iFE647C8QnxbmOtfmk Zo+sX2tKxbA3ypOTfgn0vXIa3+VJfAgsAZ3FEH3Epw8eY6qHphe8E73rsgEwUpXJLs 3cOHpmY3av1NACK7UDJcdW0FTGSlIEoqUSYcV2ax/zsxNqea265T1QcwhYIzGe3Ilw hG+ILjdG0cfYK1EtJxAZ2+HYpwv3j40VoPsjo/oqTWcv1CVeJkZCw4AwfLCV9NCEHn Fy2y1hW+T/P/A== Date: Sun, 27 Aug 2023 02:52:39 +0800 MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches From: Adam Faiz via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Spam-Score: -6.72 X-Migadu-Queue-Id: 5BC165986D X-Migadu-Spam-Score: -6.72 X-TUID: B9Su9PgNu54j >From 8eb098f8c795f0bfdc036fc53c94de6f7c29eeb1 Mon Sep 17 00:00:00 2001 Message-ID: <8eb098f8c795f0bfdc036fc53c94de6f7c29eeb1.1693075221.git.adam.faiz@disroot.org> In-Reply-To: References: From: AwesomeAdam54321 Date: Sun, 27 Aug 2023 02:06:31 +0800 Subject: [PATCH 3/6] gnu: Add arrayfire-threads. * gnu/packages/cpp.scm (arrayfire-threads): New variable. --- gnu/packages/cpp.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 6ab3710000..64147167c1 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -1554,6 +1554,46 @@ (define-public lager event loops it also provides lenses and cursors.") (license license:expat)))) +(define-public arrayfire-threads + (let ((commit "4d4a4f0384d1ac2f25b2c4fc1d57b9e25f4d6818") + (revision "0")) + (package + (name "arrayfire-threads") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/arrayfire/threads") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0zipmh6rlk9nzczqp0bj9jjbqvjyk1rxnxz5rqpx83h91bvi7axa")) + (modules '((guix build utils))) + (snippet + #~(begin + (substitute* "Makefile" + (("g\\+\\+-4.9") "g++") + (("-o test" all) + (string-append all "\n\n" + "install:\n\t" + "mkdir -p $(DESTDIR)$(PREFIX)/include\n\t" + "cp -r include $(DESTDIR)$(PREFIX)"))))))) + (build-system gnu-build-system) + (arguments + (list #:make-flags + #~(list (string-append "DESTDIR=" #$output)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) ; no configure + (delete 'build) ; building the headers fail to compile + (delete 'check)))) ; test.cpp is compiled in the `all` target + (synopsis "Threads headers for ArrayFire") + (description + "This package provides threads headers for ArrayFire.") + (home-page "https://github.com/arrayfire/threads") + (license license:bsd-3)))) + (define-public atomic-queue (package (name "atomic-queue") -- 2.41.0