From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 5DLLGXURmGRaJAEASxT56A (envelope-from ) for ; Sun, 25 Jun 2023 12:05:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8Gx7GHURmGRDugAAauVa8A (envelope-from ) for ; Sun, 25 Jun 2023 12:05:41 +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 42D0046D3C for ; Sun, 25 Jun 2023 12:05:41 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDMcE-0002t2-RZ; Sun, 25 Jun 2023 06:05:06 -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 1qDMcC-0002pg-3r for guix-patches@gnu.org; Sun, 25 Jun 2023 06:05:04 -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 1qDMcB-0008Rw-Ij for guix-patches@gnu.org; Sun, 25 Jun 2023 06:05:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qDMcB-0000LC-EB for guix-patches@gnu.org; Sun, 25 Jun 2023 06:05:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64137] [PATCH v3 3/7] gnu: Add tsl-sparse-map. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Jun 2023 10:05:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64137 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64137@debbugs.gnu.org Cc: David Elsing Received: via spool by 64137-submit@debbugs.gnu.org id=B64137.16876874711198 (code B ref 64137); Sun, 25 Jun 2023 10:05:03 +0000 Received: (at 64137) by debbugs.gnu.org; 25 Jun 2023 10:04:31 +0000 Received: from localhost ([127.0.0.1]:42039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDMbf-0000JG-EG for submit@debbugs.gnu.org; Sun, 25 Jun 2023 06:04:31 -0400 Received: from mout02.posteo.de ([185.67.36.66]:45289) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDMbc-0000In-KB for 64137@debbugs.gnu.org; Sun, 25 Jun 2023 06:04:28 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 221DA240103 for <64137@debbugs.gnu.org>; Sun, 25 Jun 2023 12:04:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1687687463; bh=ZZIfd5QegtS9+VSqiD80JKMuHNdyyeF3Gn2llwkA+qk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=JB4E5eIxrBtv5BYVOXcIQ6FtU3maJj5bVlixvSbLgWJ9K/xxNye2EuIjr+E+l1kdo 5Qn5yD3G03+RIcDRUwWv62d1M8ZjPg0tPJb0IogSWPm3gOMYcUeA4aaAlyp5Yz19MK 4+X4pMSYexX2REJbk3YerNL+RuEY88I4GHa71f1RmsTFBqdZxkosfp6zzoEVIoyJmf xtK4eTVqrN+Fxy/VhDHX54Sy+DgANkesyN9C4DTp0AKR4H1ttZSg2jz93dWQMKYCjl BP1Tdzluj6LwtBBfDKXNK+/Cz1qgNWGWP2ZKshG2mO27AZHqsHQhbqve2CUmXFSzRE UOHboM4QFry8Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qpmm61433z6tw4; Sun, 25 Jun 2023 12:04:21 +0200 (CEST) From: David Elsing Date: Sun, 25 Jun 2023 10:03:55 +0000 Message-Id: <7574236a116179f9ceadc7a1b5bbac20d2dfd849.1687687428.git.david.elsing@posteo.net> In-Reply-To: <7yo7l3x3ll.fsf@posteo.net> References: <7yo7l3x3ll.fsf@posteo.net> MIME-Version: 1.0 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=1687687541; a=rsa-sha256; cv=none; b=lnSHC3Tl6Ncm2K3xTYj5R9NMOeiSIK6ybLzpcGN47XXsATxy9z1uc3mDRcrskZOy6x0h23 SPCTM/UFIMK1xi3RkjimwO7BQvMup3l9sPedCSfpwuBztzVpRPTLBfuQ8JUmQgZvIdgXS0 ZdNEq/REUcL1koiw7fuUM+FyubImx1+/59W8aYbKszCK+HqH6/7j3qd9P9iQxE0YiWILd8 EbTog/mtm2ddyfe7EGc5gr5Px5k5ZbmHwwvJXI7VZae2XVrS5Vorx2F7/jyk2I7BNFu/1Y DsO23nr911LCkKjSz+avFtU4lgNq15K8XWC4jDAsJWfx6BM0Ymet/XirhHF0ug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=JB4E5eIx; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=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=1687687541; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=sQTp1Aw26n6PaRIfND4P4XS9Q3nvIg8E2BNeQt8/EB0=; b=pHvpvDPTnlCVohz9VKuooluOBv/otnGgz4BurqFsTuYRsv9gQAU6rlj6DuwT9HAXBJvOSs MYWBzvx5MqFoKkwSB11/9B1334wFIXSMPRKLBni1nrmFbjhWtqiaMpUJHS1powBBNnZRNW y60u5/Y4ZRKb53DlGz0kdmbvZ/9EHajaHp7QQZw1jPE2D92t8Te8jZDqZ/c5hwc/2HhhlP il2s8fJGB/Wtm6I6/eRqQOQor27yqDfrqNo3dMGdGB+zArucjX4igyqXwegYnu8uQriRc2 rJ12jBO+MLcp1hjg8+pmLWj+C3/XrOdIC986PdVwY64ZTeqS69W/HjQ0+eEhVA== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=JB4E5eIx; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=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.35 X-Spam-Score: 0.35 X-Migadu-Queue-Id: 42D0046D3C X-TUID: Y7MsuYtc9zJ3 * gnu/packages/cpp.scm (tsl-sparse-map): New variable. --- gnu/packages/cpp.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index afa0878bb7..adf9e5b2f0 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -2624,3 +2624,39 @@ (define-public tsl-hopscotch-map resolve collisions. It is intended to be fast and provides additional features, such as heterogeneous lookups and different growth policies.") (license license:expat))) + +(define-public tsl-sparse-map + (package + (name "tsl-sparse-map") + (version "0.6.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Tessil/sparse-map") + (commit (string-append "v" version)))) + (sha256 + (base32 + "0rb7w0hzsj4qbm0dff1niaf75aag9lj0xqhgb3vg5h9hfic62ic2")) + (file-name (git-file-name name version)))) + (build-system cmake-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-cmake-test + (lambda _ + (let ((file (open-file "CMakeLists.txt" "a"))) + (display "\nenable_testing()\nadd_subdirectory(tests)" file) + (close-port file)) + (substitute* "tests/CMakeLists.txt" + (("set\\(Boost_USE_STATIC_LIBS.*") "") + (("add_subdirectory\\(\\.\\..*") + "add_test(tsl_sparse_map_tests tsl_sparse_map_tests)\n"))))))) + (native-inputs (list boost)) + (home-page "https://github.com/Tessil/sparse-map") + (synopsis "Memory efficient hash map and hash set in C++") + (description "This package provides a C++ implementation of a hash map and +a hash set with open addressing and sparse quadratic probing. It is intended +to be memory efficient and provides additional features, such as heterogeneous +lookups and different growth policies.") + (license license:expat))) -- 2.40.1