From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6PN+DrdqvGPEXwAAbAwnHQ (envelope-from ) for ; Mon, 09 Jan 2023 20:27:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EKJTDrdqvGM/JgEAauVa8A (envelope-from ) for ; Mon, 09 Jan 2023 20:27:51 +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 133D0A06A for ; Mon, 9 Jan 2023 20:27:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pExne-0007EZ-IJ; Mon, 09 Jan 2023 14:27:14 -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 1pExnW-0007AJ-Rf for guix-patches@gnu.org; Mon, 09 Jan 2023 14:27:08 -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 1pExnT-0003CB-90 for guix-patches@gnu.org; Mon, 09 Jan 2023 14:27:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pExnT-0007G5-4z for guix-patches@gnu.org; Mon, 09 Jan 2023 14:27:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60695] [PATCH 3/9] gnu: Add sanitizers-cmake. Resent-From: Simon South Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 09 Jan 2023 19:27:03 +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.167329237627754 (code B ref 60695); Mon, 09 Jan 2023 19:27:03 +0000 Received: (at 60695) by debbugs.gnu.org; 9 Jan 2023 19:26:16 +0000 Received: from localhost ([127.0.0.1]:38212 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pExmh-0007DU-Gc for submit@debbugs.gnu.org; Mon, 09 Jan 2023 14:26:15 -0500 Received: from mailout.easymail.ca ([64.68.200.34]:33194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pExme-0007CY-8a for 60695@debbugs.gnu.org; Mon, 09 Jan 2023 14:26:13 -0500 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 22AAFE7D2B for <60695@debbugs.gnu.org>; Mon, 9 Jan 2023 19:26:07 +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 39-Ft1XXjsDY for <60695@debbugs.gnu.org>; Mon, 9 Jan 2023 19:26:06 +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 ABAE1E6BE2 for <60695@debbugs.gnu.org>; Mon, 9 Jan 2023 19:26:06 +0000 (UTC) From: Simon South Date: Mon, 9 Jan 2023 14:25:57 -0500 Message-Id: X-Mailer: git-send-email 2.38.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-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673292471; a=rsa-sha256; cv=none; b=caQPiYiUfkzIh46RgyTrS4xPkhWrHc5NxV/t9j+kH0ZrGFgX3D5hETFgjpYN6HMXYmWgrq q6KJ9xw8/dzFnmJO9LGdFfP9vBFSjAvWIXrahTw+hWxTjUfBFKiQSy3tdPfK3OFHAAZwfP cVr9e26dPRHYRkbb8Qb0yjZOtCgJUk6tWw037OtdHSo1IXL/7CqbDPG4CAmlu7khYFQlxn WARhX7N7IEtHh18g8/WR7VovL1PUArMONPuXkIzhNUeR0XNWRd0Nr+6bcaFV6ZaD//OX/t jYUEmgqnQph0h/Q2LumsSWWSFucS391+gPjvkzjaa555zGIW/Ymo4LS7OawxCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673292471; 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=fS/2gctX8MOnozNk7umzSQx+uwcKd7avinzR4ImVRqiM07MQJeCUwLw/WDWs93vWuRMTKy RXmws8JGxwH2fl4QlW3hz1w+XeelF4U/S0S6FQyDg3ZrIaQOVP4Hp2OHfNkC++2NZO2LWW dEPFvLQrHNBWgD7xzdtde9xFZvNKnb3/1qwmq7C7WzPW9CcDcQy0aWeJ0fVIiIFZ64FxPJ igJ49M9eYsO4ZaMQZI2wTp2DmQ0BuBZc/OoAUXIMZY7h5hhvjKYrJYayDKx1DumEd+vrWo pDZWvbgiuykzIcr2uC7gic/7y5fnH651qXABE5n5LncRtCubVXNee8zGQhw2/Q== X-Migadu-Queue-Id: 133D0A06A X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=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"; dmarc=none X-Migadu-Spam-Score: -2.78 X-Spam-Score: -2.78 X-TUID: s35EAEY6drll * 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