From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id mN54H5GmSGc++wAAqHPOHw:P1 (envelope-from ) for ; Thu, 28 Nov 2024 17:21:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id mN54H5GmSGc++wAAqHPOHw (envelope-from ) for ; Thu, 28 Nov 2024 18:21:21 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=HxA1Y1Kb; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=PSIZr+T5; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1732814481; a=rsa-sha256; cv=none; b=R/a1Nc9FbFODMlkpWcbwWvVy+VM7DyM5tGUXqGu1h8sr69SbgUxY/gi6haPqsEul+71Zw0 THExViGvmjo/NBIdEv/KBThaYjkDm4BoJKIJRmgA9eZ78QW39fTJ0Pct96FlrPh6/kR85w +kLzMoTTxL7wn6pxBycY+rtXREV4Yuklqn/5p+DQBoFMHr2YvyluVq6kvijH6FuIgDAjIH 4EHHqCu2nNZ/oDyquanvjC8ruxQXvgloHa4BWTCUyDUw713py9c7JFJAzMn3NGAxgtP+/4 vQCAgOl4pn2MO7kHsz4xaoO75kipVv1wXQ4TIrzplkSdxf/d7kWi2QLHAF1vvg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=HxA1Y1Kb; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=PSIZr+T5; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1732814481; h=from:from:sender:sender:reply-to: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=5ldG/iCPnUbORx+XVYDCIzt1T+I+lSskqWZ/SnEFvls=; b=Z5OAJp7xlPYHboovHD/Y8ey4DWbOIjz/tpaugHjDDEKZImY1XvlOdxrWARp+KMzRmVj1mA J5nP3wIes22cIQ2prYcfYJYUEqx7imPx2MPWonxJPLoAhzRwtRdx9M/ETfNhJeRaccjH+h IKX46td9Z1aBIyaHAWelapGT1UUImt3woRbmbbys8wRRNiY/SktCo3KKbXgcqXOLgns5Mq CcrPjFmiUl/U08twvCnNpt9oWOY3eXi8CIGsxtQ5cgOWiKgz2bsrOBZczsMiMsIn84bJ7L DaDsi0G9RQbLYo7sr0/5UOjuPHnmYjvSST8RjiytsY0ADNd9nL2T/3xeDY50tg== 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 2B09159B13 for ; Thu, 28 Nov 2024 18:21:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGiCP-0001nj-GX; Thu, 28 Nov 2024 12:21:05 -0500 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 1tGiCO-0001n9-5P for guix-patches@gnu.org; Thu, 28 Nov 2024 12:21:04 -0500 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 1tGiCN-0006q6-Se for guix-patches@gnu.org; Thu, 28 Nov 2024 12:21:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=5ldG/iCPnUbORx+XVYDCIzt1T+I+lSskqWZ/SnEFvls=; b=HxA1Y1Kba7BWjgLM4WeQZaId25s0rBW54h3Zd0dL+Z7bPsmMZhIQprGA5tCy9rGNziscldkJYp1n3BjJIraIDq8gK4ZUW0q319BWvKHhis+/FYo0D2hyvtaWxUk7jiJX9bkeE9Qj3lZe5iP2kHsGSIGtLxE/cRAmIexdYTHh+lZtwmwpSVZEgxSVAg8aRUOJlOB1HyxgPoNay441QgQZH3IrziFs2d+7IA4DI+SPJHq0zSr9TbL8gqD1jMxyJNL6bu3oWv1fy8Yfs7In2mFEery05J//CZlCxL5xRECdgZbPvLFkuCRrV4ZdlccBlyQ5MOyML5J2nxINFGz51d5zLQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tGiCN-0006DN-N0 for guix-patches@gnu.org; Thu, 28 Nov 2024 12:21:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#66870] [PATCH v6 02/11] gnu: Add function2. Resent-From: Sughosha Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 28 Nov 2024 17:21:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66870 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Gabriel Wicki Cc: Sughosha , 66870@debbugs.gnu.org Received: via spool by 66870-submit@debbugs.gnu.org id=B66870.173281441823751 (code B ref 66870); Thu, 28 Nov 2024 17:21:03 +0000 Received: (at 66870) by debbugs.gnu.org; 28 Nov 2024 17:20:18 +0000 Received: from localhost ([127.0.0.1]:39577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGiBe-0006Aw-B3 for submit@debbugs.gnu.org; Thu, 28 Nov 2024 12:20:18 -0500 Received: from layka.disroot.org ([178.21.23.139]:53036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGiBM-00062Z-1O for 66870@debbugs.gnu.org; Thu, 28 Nov 2024 12:20:01 -0500 Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 9ADB524B90; Thu, 28 Nov 2024 18:19:59 +0100 (CET) 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]) (amavis, port 10024) with ESMTP id rpPMxqgZXEqQ; Thu, 28 Nov 2024 18:19:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1732814384; bh=GHD6Js3H2pK5UsJHqQggIDMwQgm+fHC5IrlVlp3WyUE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=PSIZr+T5cmA7LvoL30rLgs/J6baBZ1TWu83Gw4To72G4ZInjJ80sKU7yIjhrYEZMe 01oufrk/6S4sWv09Xj9paEEEVqslpeoRhVqyrzJxXvUZ2rQCncsg62QL0ED2yVuJQR RDYYCsnB374RnsyFYgS/hW9fZ8hsvBpJv3YAQczfWFgj0LbQVM3dmZ6+8uiBZ3Sj2t sal5uR6HO4xxo+i4zBTnAVlzMCgRttMpiR+tItzWPSlsOTe0SreEzlmp4dCGDaiBdM NiW3AXE43Qn2FLUVlXRvHjmKJmbP4u1oPhMZKPFQocJXu20E/Q5BSrB8X0BSHC2BHf hVa2OtAYtn13A== Date: Thu, 28 Nov 2024 22:45:05 +0530 Message-ID: <224340001752a08606aeff67e4f5ab0ba0a1fe76.1732814113.git.sughosha@disroot.org> In-Reply-To: References: 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: , Reply-to: Sughosha X-ACL-Warn: , Sughosha via Guix-patches From: Sughosha 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-Queue-Id: 2B09159B13 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -6.10 X-Spam-Score: -6.10 X-TUID: +RjS+kDLygIk * gnu/packages/cpp.scm (function2): New variable. Change-Id: Ida408b7746b3cb8828285b05fcc0abee4b1863ba --- gnu/packages/cpp.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 48fb323cd5..9f56779a40 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -2607,6 +2607,43 @@ (define-public bitsery (home-page "https://github.com/fraillt/bitsery") (license license:expat))) +(define-public function2 + (package + (name "function2") + (version "4.2.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Naios/function2") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0l4kn81lfi687mv2d2mkrrqgjp9v186jlfshrgcr5717lwqw39xg")) + (modules '((guix build utils))) + (snippet + ;; Unbundle googletest. + '(begin + (delete-file-recursively "test") + (substitute* "CMakeLists.txt" + (("add_subdirectory\\(test\\)") "")))))) + (build-system cmake-build-system) + ;; The test size_match_layout fails on i586/i686. For more info: + ;; https://github.com/Naios/function2/issues/57 + (arguments + (list #:tests? #f)) + (synopsis "Improved implementations of std::function") + (description "This package provides the following implementations of +std::function: +@itemize +@item copyable fu2::function +@item move-only fu2::unique_function (capable of holding move only types) +@item non-owning fu2::function_view (capable of referencing callables in a non +owning way) +@end itemize") + (home-page "https://naios.github.io/function2/") + (license license:boost1.0))) + (define-public cpp-mustache (package (name "cpp-mustache") -- 2.46.0