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 sNMKNSTezGWUUQEAqHPOHw:P1 (envelope-from ) for ; Wed, 14 Feb 2024 16:37:09 +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 sNMKNSTezGWUUQEAqHPOHw (envelope-from ) for ; Wed, 14 Feb 2024 16:37:08 +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="U4ok/w5y"; 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=1707925028; 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=RLiF9/D6FS/YOnaOWPX5xy3J1XGa6NLysLJ3ROd0a141c71EyQ4w8qnKpm6nJzdc0dmtMh //9qJiCqH0igS7vT0qCKzpvfvSP3ipGHeC/pYxKJTQumhharfWlc/y2Lrmmm5HSmg78Jln trO7EXHoPzwYU75bntjrlfCjQlMN+L69QjDJ8f9Rw1fBPb7CVQfe5p3ldgS9CasTM1UoKZ g5/C23ldh8LFIvzHyqUMWt1uYCcyz/wae61J4DxlZsrwrUym/wOU92glu1T4hUMlNnnFaD tLE3Snq9rb0+ZBPE7NgwiDx/4bG1ozt2/IydHOxcSPit0zicRxHNRyr9f5V9rw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=apatience.com header.s=protonmail2 header.b="U4ok/w5y"; 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=1707925028; a=rsa-sha256; cv=none; b=DTSCKnwgG020QKNrPgX34Kk7doT2nqZeDGzOsMerIgELPfbNNbYTSbV2lzmGsArjsp1dMI TYx46CA+Eq/bSyOZTRFJ18GbALIWEI+WZnVSFekbi8GxNuL976MhrpgEMLRZO5RQ6nF6eI TUTdzfFK49ys8qtNfZt9Y+BNwEM/IiS6C6BPbaplb/QR4MKWs1ZIK349hv1LTRF/Lf441w GaL0RKhO5QffcSqvS5uSJv3bmT1VI2tXIeTAl/BpaxzzHq43FQJgvsVDpQThLeUZKPVdTa OpXnd2/uVx7F6cf7ewGhpTc4qQkcffUrGxS79WKyAQcRKIm+GUoWX5woQvVroA== 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 A5CE0251F2 for ; Wed, 14 Feb 2024 16:37:08 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raHJa-0006m1-Ly; Wed, 14 Feb 2024 10:36:50 -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 1raHJU-0006jV-80 for guix-patches@gnu.org; Wed, 14 Feb 2024 10:36:45 -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 1raHJU-00057f-02 for guix-patches@gnu.org; Wed, 14 Feb 2024 10:36:44 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1raHJm-0003Mn-2Y for guix-patches@gnu.org; Wed, 14 Feb 2024 10:37:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69126] [PATCH 1/2] gnu: Add debug-assert. Resent-From: "Paul A. Patience" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 14 Feb 2024 15:37: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.170792500812908 (code B ref 69126); Wed, 14 Feb 2024 15:37:02 +0000 Received: (at 69126) by debbugs.gnu.org; 14 Feb 2024 15:36:48 +0000 Received: from localhost ([127.0.0.1]:52818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raHJX-0003M7-Oo for submit@debbugs.gnu.org; Wed, 14 Feb 2024 10:36:48 -0500 Received: from mail-4323.proton.ch ([185.70.43.23]:50919) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1raHJV-0003Lt-2j for 69126@debbugs.gnu.org; Wed, 14 Feb 2024 10:36:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apatience.com; s=protonmail2; t=1707924980; x=1708184180; 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=U4ok/w5y7dLkYL1Rt/mjsBd4CFuWUzj+TUti+y/HOoCds5wafCNTgYWV5PwtJIl3t jLnKlrC4rRjgTzGhwu5l8GiVAHTHUpiMdcJBPJp9Kx+u+UJiodWTIjg3vQ1GqACoCf MC6AMKW6xlRL0KKrk50Bk9v+hvCZM31YpSRT4iAfuDMso3aKxF1PkHZn620TMvKg2J U+vlbwiMRtCJn8GEP8dHy40d/++xe6KBdM9MzUKSdOJIaW1+iMdf+8nigmP5TQFyuS f9YDTHDqSfJcEV36JFqrtEM4nV8mKxCyh6RjwxEp6hzHy7HHzHp7BaC5XIz+o6MvCx Nxsa9ytfLQFOw== Date: Wed, 14 Feb 2024 15:36:15 +0000 From: "Paul A. Patience" Message-ID: <0191a95edf076b5cd24326d49e54ce13f2bdb0d4.1707924715.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: -1.11 X-Spam-Score: -1.11 X-Migadu-Queue-Id: A5CE0251F2 X-TUID: VFn00kDiUTFu * 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