From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uPuONYM11GMA0wAAbAwnHQ (envelope-from ) for ; Fri, 27 Jan 2023 21:35:16 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IZ2TNIM11GMUtgAAG6o9tA (envelope-from ) for ; Fri, 27 Jan 2023 21:35:15 +0100 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 5074A11422 for ; Fri, 27 Jan 2023 21:35:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLVRD-0006ts-R0; Fri, 27 Jan 2023 15:35:07 -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 1pLVRA-0006sX-ET for guix-patches@gnu.org; Fri, 27 Jan 2023 15:35:04 -0500 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 1pLVRA-0004iF-6n for guix-patches@gnu.org; Fri, 27 Jan 2023 15:35:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pLVRA-0006P2-2z for guix-patches@gnu.org; Fri, 27 Jan 2023 15:35:04 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60695] [PATCH v2 3/9] gnu: Add sanitizers-cmake. Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 27 Jan 2023 20:35:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60695 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60695@debbugs.gnu.org Received: via spool by 60695-submit@debbugs.gnu.org id=B60695.167485169724539 (code B ref 60695); Fri, 27 Jan 2023 20:35:04 +0000 Received: (at 60695) by debbugs.gnu.org; 27 Jan 2023 20:34:57 +0000 Received: from localhost ([127.0.0.1]:38591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLVR2-0006Ni-Bc for submit@debbugs.gnu.org; Fri, 27 Jan 2023 15:34:56 -0500 Received: from mailout.easymail.ca ([64.68.200.34]:56712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLVQq-0006M0-2T for 60695@debbugs.gnu.org; Fri, 27 Jan 2023 15:34:46 -0500 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 11A2EE8512 for <60695@debbugs.gnu.org>; Fri, 27 Jan 2023 20:34:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo08-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo08-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id shnx5yhdFkH8 for <60695@debbugs.gnu.org>; Fri, 27 Jan 2023 20:34:37 +0000 (UTC) Received: from localhost.localdomain (23-233-96-72.cpe.pppoe.ca [23.233.96.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id B2B1EE8515 for <60695@debbugs.gnu.org>; Fri, 27 Jan 2023 20:34:36 +0000 (UTC) From: Simon South Date: Fri, 27 Jan 2023 15:34:28 -0500 Message-Id: X-Mailer: git-send-email 2.39.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674851715; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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; bh=j+a97/akQXOzZfm7gJFXdX1Xv4jegBHfZnPQCmx2b58=; b=EGw38Fd3zH7VBZbn5AljQzgZJafrDBSjCsPhbqOptPTPGf9AYo6yRjnwxUcWmJwMcOC1ct sqlvPGLiq6RLRKaqp4TuVizqn9LCk18q6tVLho6XOFOeDdskb+YsMns/PY0Z+rzgfUhXfY P+mGmo9PpzrN9zSIUNT+hav8hWKi+PqX9NcYwjJZ4ljUhEnvt3eDB2Z2ZilwQHZPUiPWEu n7fqjkRrrlGtO4Qz6HZ3GXs9ULpwAkSfaFvFDrA1W47BNad2b5x3zNeuyLlOofO74FkrmC tb/jBxESFr/dRbIgvCaHY8D0532qFljfVEBGFiqYM2/liUPalDPJArmnYTIEoQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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-Seal: i=1; s=key1; d=yhetil.org; t=1674851715; a=rsa-sha256; cv=none; b=RiMFmp/UyLwLmbCaQtEXBjnIlhP95zuYyV94NGHsBWzPPxqP4GhoOg0/RLdMnAzD2B8ib+ FfFDABwJ7atbcJTODCQAZLO09Ktg6L3JBnn+YTXI60fliVpkmPhn5un585l1gdb7hGMQYa ajdFZayTAnxi4936TLrlI0jYZCxof5TWo4/Ta9jj1Fnu+7w2+jZzWzjFWQwQ2nMetSrlbF I/EWUoL/7Bct/XxZT2/myILbdVJyXIZjTG8mNFZjAI69QzFQXWyLqUDhiffqDZ0u8vcAmQ 9rQxgoMa6v6YOhKl6XHI3oxkS+KI/wKKDfk21/RmRmi+/wJsxVXh6tgPpLrTZw== X-Spam-Score: -0.77 X-Migadu-Spam-Score: -0.77 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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-Queue-Id: 5074A11422 X-Migadu-Scanner: scn1.migadu.com X-TUID: PGTTntNgtKA4 * gnu/packages/cmake.scm (sanitizers-cmake): New variable. --- gnu/packages/cmake.scm | 45 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/cmake.scm b/gnu/packages/cmake.scm index 87fde01f63..f0d25b707d 100644 --- a/gnu/packages/cmake.scm +++ b/gnu/packages/cmake.scm @@ -12,6 +12,7 @@ ;;; Copyright © 2019 Pierre-Moana Levesque ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen ;;; Copyright © 2021 Ricardo Wurmus +;;; Copyright © 2023 Simon South ;;; ;;; This file is part of GNU Guix. ;;; @@ -32,6 +33,7 @@ (define-module (gnu packages cmake) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix utils) #:use-module (guix deprecation) @@ -422,3 +424,46 @@ (define-public emacs-cmake-mode (description "@code{cmakeos-mode} provides an Emacs major mode for editing Cmake files. It supports syntax highlighting, indenting and refilling of comments."))) + +(define-public sanitizers-cmake + (let ((commit "a6748f4f51273d86312e3d27ebe5277c9b1ff870") + (revision "0")) + (package + (name "sanitizers-cmake") + (version (git-version "0.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/arsenm/sanitizers-cmake") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0shja5qipcsxgj5v6aic9q3dik0cbahllriigwgpayv5ng3ki1ij")))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags + #~(list + ;; Enable the "new" behavior established by CMake policy CMP0077, + ;; which pertains to CMake's "option()" command. This is required + ;; for the package's test suite to complete successfully. + ;; Note this setting may become redundant with future versions of + ;; CMake (past 3.24.2). + "-DCMAKE_POLICY_DEFAULT_CMP0077=NEW") + #:phases + #~(modify-phases %standard-phases + ;; No install target provided; manually copy files to a suitable + ;; folder in the output. + (replace 'install + (lambda* (#:key source #:allow-other-keys) + (copy-recursively + (string-append source "/cmake") + (string-append #$output "/share/" #$name "/cmake"))))))) + (synopsis "CMake module to enable sanitizers for binary targets") + (description "@code{sanitizers-cmake} provides a module for the CMake +build system that can enable address, memory, thread and undefined-behavior +sanitizers for binary targets using flags appropriate for the compiler in +use.") + (home-page "https://github.com/arsenm/sanitizers-cmake") + (license license:expat)))) -- 2.38.1