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 MHQDA14RmGTdcwAASxT56A (envelope-from ) for ; Sun, 25 Jun 2023 12:05:18 +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 2At+Al4RmGRJegAAauVa8A (envelope-from ) for ; Sun, 25 Jun 2023 12:05:18 +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 DDD7D46CC7 for ; Sun, 25 Jun 2023 12:05:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qDMcC-0002q1-NT; Sun, 25 Jun 2023 06:05: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 1qDMcB-0002pZ-Ej for guix-patches@gnu.org; Sun, 25 Jun 2023 06:05: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 1qDMcB-0008Ou-3A 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 1qDMcA-0000L5-Ut for guix-patches@gnu.org; Sun, 25 Jun 2023 06:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64137] [PATCH v3 2/7] gnu: Add tsl-hopscotch-map. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Jun 2023 10:05:02 +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.16876874681182 (code B ref 64137); Sun, 25 Jun 2023 10:05:02 +0000 Received: (at 64137) by debbugs.gnu.org; 25 Jun 2023 10:04:28 +0000 Received: from localhost ([127.0.0.1]:42035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDMbb-0000Iz-Qb for submit@debbugs.gnu.org; Sun, 25 Jun 2023 06:04:28 -0400 Received: from mout02.posteo.de ([185.67.36.66]:36629) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDMbZ-0000IW-1q for 64137@debbugs.gnu.org; Sun, 25 Jun 2023 06:04:25 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 182FB240103 for <64137@debbugs.gnu.org>; Sun, 25 Jun 2023 12:04:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1687687459; bh=wn58dTcyqNMBY481D0FIVUd392q/gYh7Ec0DRZmM2OA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=hjID1sbZAbhSangTKKVTH7V4DcG51HbxUdKWZ3ipNyAchxOxsRPCkbpw6JjsPGdvn IXGHXomvIK0PmZI5F5/wbYv1zkcJF12ks2PKe1JJFOXbRAGlCiZe5gtMhghmi6jmYd V62tIeb52nqxOZ+JTVPa3jJ2AIfBu46cgoJrlj7RxGQ7GnnJ2s/SIxAtzP8QaJhIvB GDnfi/uKVGkPbEymXQtXiauMM6yRWEmR2Jbxnc8FbmtSMRicqqFCZcnd+pND29ZcAl iYnyAukQVoEOqjQlcmtRFMsWkJbOE9jenQUPLcvq/E3h/9y/WVaKWGgMG3/Z/umUaD Cu8iyzCI/KrdA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Qpmm06KKHz9rxS; Sun, 25 Jun 2023 12:04:16 +0200 (CEST) From: David Elsing Date: Sun, 25 Jun 2023 10:03:54 +0000 Message-Id: <90131ea6f8f2f4781a4c36721b8248bbe1764e9f.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=1687687517; a=rsa-sha256; cv=none; b=JDORXYmobiHLzAHM8Yo62Fymh/AflpceTwp9biepuOf0ZGqT5RnBR/MJFbYjSduaonPsH4 FG4ZcNa6yQM70orucJ2YKbs7LkHGWdnsjg00GFFREjIIm/QKuuMryFaurkyVgnHxIWcq8j OlbLnpgdHrxEnL+Qp5AlLYAvMOe+XuZj97rzLrmqKT/3fJcwgcUUUy8dX4wfxufH7PuGej I2bRetoZwRCe+3xVEH9XKOKeAjJDSK+RLL5KwVf/xY8y41q6/tJW2zIiXw7cOAfTeOVA2P O4Iizdae/Q65ZS+YOuqWJs6gPjorjGedyR0C/jZn98HMrTpkN0Lx8wzYCKj7SQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=hjID1sbZ; 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=1687687517; 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=kMvQON7OMojFlW8a+WCS2g0OioWMNk/YX0rTaBeon9M=; b=NfEWpnqs483Rsq243mKr7oZf9aA+XV3rrdzzvR0UB1D/0ZRfSmtzZSzhhU+tQ+1hrTayKi Dex2eiMQTMdh217WRYfIUlQtgkR0UIWx/yJyD8pc23q8lTuJumQUSNuKL52ud5erY2kRbc sSeGS0Sc1RlKfGsuAnnhHmJD2GLUsQrnF0eT+4xShxG1DOaq1caxAJUtH8WVnnbtCh/Eqz 7TIt3e7NmqbEweqCMM3FvLnKhbwI1e/Sxu6t6ljqgSL3ZmLK+NzSZuVGeykgl/ooUZsNmV +O8KX0oliSed8nNeb6wXQCc8xF2tDcAAGutkvVtsw+/d2oHbP4zb0QThm2qXog== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=hjID1sbZ; 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: DDD7D46CC7 X-TUID: bOpm7q0CbgT7 * gnu/packages/cpp.scm (tsl-hopscotch-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 8139a9d083..afa0878bb7 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -2588,3 +2588,39 @@ (define-public mpark-variant "MPark.Variant provides the C++17 std::variant for C++11/14/17. It is based on the implementation of std::variant in libc++.") (license license:boost1.0))) + +(define-public tsl-hopscotch-map + (package + (name "tsl-hopscotch-map") + (version "2.3.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Tessil/hopscotch-map") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "012pw37w000pdxdvps0wsqrw6597cm6i6kr5rpl303qmiwqicb2p")))) + (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_hopscotch_map_tests tsl_hopscotch_map_tests)\n"))))))) + (native-inputs (list boost)) + (home-page "https://github.com/Tessil/hopscotch-map") + (synopsis "Hash maps and hash sets using hopscotch hashing in C++") + (description "This package provides a C++ implementation of several hash +map and a hash set variants using open addressing and hopscotch hashing to +resolve collisions. It is intended to be fast and provides additional +features, such as heterogeneous lookups and different growth policies.") + (license license:expat))) -- 2.40.1