From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id mLVdNvT+1GV3bwAAqHPOHw:P1 (envelope-from ) for ; Tue, 20 Feb 2024 20:35:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id mLVdNvT+1GV3bwAAqHPOHw (envelope-from ) for ; Tue, 20 Feb 2024 20:35:16 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail2 header.b=UOOwHaDb; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708457716; 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=+/fvejRtlnpThsbW+RH0UD564o9BAb8gSeVfKxOCwN8=; b=V7F7zswOMUGP4HK1CprIxyDk/HecgC354KmAQ1WkSCEuk2msbNbJrg4NYLadUiJ+UyY45X zar+tge68Ot4HMdiH+C8z0QlyvyPM+lL5vnGyZZjtuJCGOfVSneDTsFotfDFvmmk7B3rsb lKqst+8vK5J2z7DmBl8p1nZQyVSQ9b/wepxCfxZsIENfiqUFAlodzBaHIELILtOHjT09WK xc4Gaxx+5z6t50lQLUuub4xJU3GOJeLvKL80GDl7Z/IIKuMmApRCW6CJRQWHmm3gE2cvYr 9YGzcmWK/e5dD2Zpcw1sSXWC93/ytRZhr4ziajjtFXdurrUFIE3GprOoehj99A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail2 header.b=UOOwHaDb; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708457716; a=rsa-sha256; cv=none; b=uEald7TweynJjpfM40hLxNBiJ724d3S23UuJ89htCriNO5LdxsByx5sG8InShh2R4DnscN Glxcls6fIGwT/XWs/yx4kXEIX8EhKoqtqT/n61lJymFFy3acXTjpz4wFrNhifsdX4EdP9E hbEyZrQskMXNhk+FlLqCZ00m5f38Ffnx9REFONpXscVGabh5JI0oBOGu9Vkx9D1iLVqXKS iqdCI7K2MajXDd6DC6kV4I3xCt9fyI5iVT9WItA3TF/lM+smV1749Br5iTlS5YHdYxtfpb zHkROqg9/tJeDYOKzBroXhnvrvvB9n0dgL92CCtnZTpMDGj8sJWfsv+WUPCS9Q== 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 A79D6218EA for ; Tue, 20 Feb 2024 20:35:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rcVtA-0007dC-Aw; Tue, 20 Feb 2024 14:34:48 -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 1rcVt5-0007Rs-46 for guix-patches@gnu.org; Tue, 20 Feb 2024 14:34:43 -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 1rcVt3-0007z0-6F for guix-patches@gnu.org; Tue, 20 Feb 2024 14:34:42 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rcVtP-0002KN-0M for guix-patches@gnu.org; Tue, 20 Feb 2024 14:35:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69126] [PATCH v3 1/2] gnu: Add debug-assert. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 20 Feb 2024 19:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69126 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69126@debbugs.gnu.org Cc: "Paul A. Patience" Received: via spool by 69126-submit@debbugs.gnu.org id=B69126.17084576558864 (code B ref 69126); Tue, 20 Feb 2024 19:35:02 +0000 Received: (at 69126) by debbugs.gnu.org; 20 Feb 2024 19:34:15 +0000 Received: from localhost ([127.0.0.1]:46596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcVsd-0002It-A0 for submit@debbugs.gnu.org; Tue, 20 Feb 2024 14:34:15 -0500 Received: from mail-4018.proton.ch ([185.70.40.18]:28203) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rcVsb-0002IS-0a for 69126@debbugs.gnu.org; Tue, 20 Feb 2024 14:34:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1708457624; x=1708716824; bh=+/fvejRtlnpThsbW+RH0UD564o9BAb8gSeVfKxOCwN8=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=UOOwHaDbJxI9xObVcYN1nUiM+K0gtYHr2hcZkG5/54LcSvH/cyPSFig4HCspmzrRN tMndVSOpTtgND8UOoiPumbJ1atZ+Ra14XOMwtZd84mMwo0WKst45vkXctcBv/2oCRx hr9/vEHoZzJGTaSv0MG4+FU3+Qci2f5YNywpIKPUxqdxqcbrIu1W5DhEMSBc09WDoU 8M/CnCIBLGQy4ZEr3ISxLLC4pDOmcOt6IaLpvCZaBVOvLolgBekuqo9yBX2KK7a2id GlUs6Nh0TJH8Osz2bk+fO45gs2x5QfRGcvPYNqKMMiT5n9RLjFzIrSQ0SyO/TVFvIq UOILkX4t0B/gA== Date: Tue, 20 Feb 2024 19:33:26 +0000 From: "Paul A. Patience" Message-ID: <0191a95edf076b5cd24326d49e54ce13f2bdb0d4.1708457406.git.paul@apatience.com> In-Reply-To: References: Feedback-ID: 19227857:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -2.61 X-Spam-Score: -2.61 X-Migadu-Queue-Id: A79D6218EA X-TUID: gHDyx8gKJRbG * gnu/packages/cpp.scm (debug-assert): New variable. Change-Id: I4cee49ea2f5b761ab72bb7b063c2ea8fd99b991c --- gnu/packages/cpp.scm | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm index 62a1923571..2456de5002 100644 --- a/gnu/packages/cpp.scm +++ b/gnu/packages/cpp.scm @@ -38,7 +38,7 @@ ;;; Copyright =C2=A9 2023 Liliana Marie Prikler ;;; Copyright =C2=A9 2023 Denis 'GNUtoo' Carikli ;;; Copyright =C2=A9 2023 Foundation Devices, Inc. -;;; Copyright =C2=A9 2023 Paul A. Patience +;;; Copyright =C2=A9 2023-2024 Paul A. Patience ;;; ;;; This file is part of GNU Guix. ;;; @@ -3048,3 +3048,29 @@ (define-public tl-optional the std::optional for C++11/14/17, with support for monadic operations add= ed in C++23.") (license license:cc0))) + +(define-public debug-assert + ;; Newer version than last release, which was in 2018, is required for + ;; type_safe. + (let ((commit "d33781479baccf52a28e5c3c5a6da5ac59b09179") + (revision "0")) + (package + (name "debug-assert") + (version (git-version "1.3.3" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/foonathan/debug_assert") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0njbzx767pndpl8hq5falr4c8m0xsr6njh0943xf8xkcqq6splpz"))= )) + (build-system cmake-build-system) + (arguments (list #:tests? #f)) ; no tests + (home-page "https://github.com/foonathan/debug_assert") + (synopsis "Assertion macro for C++") + (description "debug_assert is a C++11 header-only library which prov= ides the +@code{DEBUG_ASSERT()} macro, which among other features can be selectively +enabled in different parts of your code.") + (license license:zlib)))) --=20 2.41.0