From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id SHdvF8zf+GQlgAEAauVa8A:P1 (envelope-from ) for ; Wed, 06 Sep 2023 22:23:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SHdvF8zf+GQlgAEAauVa8A (envelope-from ) for ; Wed, 06 Sep 2023 22:23:40 +0200 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 2381738F74 for ; Wed, 6 Sep 2023 22:23:40 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=efficios.com header.s=smtpout1 header.b=RkCQzcj6; 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=fail reason="SPF not aligned (relaxed)" header.from=efficios.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694031820; h=from:from:sender:sender: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=DWMcDGf/dpfRM05/xAypiYdgI8JOxVYSqISNitD7Pec=; b=sMC7YFiSneCvNJPxi2KDcHaPnGuXXLWiSEyLJbhZiTrTYD8ZTjiz+PEtD4jE9UNjGPYCDD yvmImcf7IdNqSu4EyRHd3jvFQYBu9QDka4Ewc3NJecOecxvoY+YJx1MzIMJidMlPnn/Z+Y tmz1rnVxuOkWa9iaG/JJcLyP37aIdFizqHaL3Lt5rKIkI7emj8ZW8SdY/s2KMMglCf9V5k OT23DO4sKeywC4Ih9cX4tcdo51Lc1Y2CPxGho4s2UchzPLMUrgihZHWhHLRDWTfmakJSLV CyOtI+J1f5svUfbiiwK9nFXkIeZz6625Wx24AqBgS0CfIC+mOiQuSjhbOaz9nA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=efficios.com header.s=smtpout1 header.b=RkCQzcj6; 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=fail reason="SPF not aligned (relaxed)" header.from=efficios.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694031820; a=rsa-sha256; cv=none; b=mSBL/LnTGLv/dmU4JBNUW2EOSp/yXyNtiUnBDkblFP+V7Q3QT0AZPsu76UPegYVr28KrMx gZ/isQxZnfOhRMSLBMrBVaP78yAnFj0xYuqQjXaUJT+WSJCSroLEO5QbLxmFo8IbEWr6Wu yeTazz+v5Qe+oOHa+5gzG5J5QRKTDbmXDHbzYokpEZOu8pi/Ej4GY8uuKjKEg6X214Y1dw 6FjwnaPFkUx8iVT4M8c7nTh3HWxVqD1hHkki2jh0eLfs0D2PI4LuB2dmNAnjKiEUZ+pXzq Ttcn1S5ysJT7iho366VKEQZqEopjMSIWay1Y+HhCMipKakOS0OgjgzXjWB2x3Q== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdz3V-0007Wv-7p; Wed, 06 Sep 2023 16:23:17 -0400 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 1qdz3F-0007Vb-6p for guix-patches@gnu.org; Wed, 06 Sep 2023 16:23:03 -0400 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 1qdz3E-0006Vf-V3 for guix-patches@gnu.org; Wed, 06 Sep 2023 16:23:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qdz3G-00043a-5l for guix-patches@gnu.org; Wed, 06 Sep 2023 16:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65059] [PATCH v2] gnu: Add csmith. Resent-From: odion@efficios.com Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Sep 2023 20:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65059 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: moreinfo patch To: Maxim Cournoyer , Olivier Dion Cc: 65059@debbugs.gnu.org, Olivier Dion , Tobias Geerinckx-Rice , Leo Famulari Received: via spool by 65059-submit@debbugs.gnu.org id=B65059.169403174515522 (code B ref 65059); Wed, 06 Sep 2023 20:23:02 +0000 Received: (at 65059) by debbugs.gnu.org; 6 Sep 2023 20:22:25 +0000 Received: from localhost ([127.0.0.1]:37809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdz2f-00042I-3Y for submit@debbugs.gnu.org; Wed, 06 Sep 2023 16:22:25 -0400 Received: from [2607:5300:203:b2ee::31e5] (port=50666 helo=smtpout.efficios.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdz2b-000423-TZ for 65059@debbugs.gnu.org; Wed, 06 Sep 2023 16:22:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=efficios.com; s=smtpout1; t=1694031733; bh=vAOl1NawoVUSLfGR00DVAnaDtbxBCQGHKGWLuFoSCHU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RkCQzcj60fCL5u0e2cJ/2NyAGEARU37bFZW9Vl4lZ3sEAMy1itnu9VJgbfMRuqs6f yV4ZBg+ZJzkdu0R6peNs+I4pMPILgMq+9R3GxPaLF3dGSnkaRuZs8SVnhdoy1VHvDA qO6JShJ3imEKrZhJHF9rNHUGUq/0qwTIVk0o7Msqd/+0e4YqgNWCoou4f82pZPqjZB iQ4+dRgv1vOWsk7fdIwJbB9aOOGtKx8W5AN1CaU3W5VzJL142aGiwayfQ9/VARxLZ5 cpZBlJHFrhzTkzynFmU8HhmvV3kRTY6CfYU2Z1AFI389/qbABlQMvFI6tN1qj7w6gP MMZMN/8S7IVng== Received: from laura.hitronhub.home (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4Rgv1K5jndz1Np0; Wed, 6 Sep 2023 16:22:13 -0400 (EDT) From: odion@efficios.com Date: Wed, 6 Sep 2023 16:22:09 -0400 Message-ID: <757a92ff2b967614779df2f4c564b96520a2af5a.1694030940.git.olivier.dion@polymtl.ca> X-Mailer: git-send-email 2.41.0 In-Reply-To: <87h6o79a02.fsf@gmail.com> References: <87h6o79a02.fsf@gmail.com> 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: , 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: 2381738F74 X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: 4.77 X-Spam-Score: 4.77 X-TUID: Lz0jFQUsAvMT From: Olivier Dion * gnu/packages/linux.scm (csmith): New variable. --- gnu/packages/linux.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 2a3fd82891..121ea89fb5 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -141,6 +141,7 @@ (define-module (gnu packages linux) #:use-module (gnu packages llvm) #:use-module (gnu packages lsof) #:use-module (gnu packages lua) + #:use-module (gnu packages m4) #:use-module (gnu packages man) #:use-module (gnu packages maths) #:use-module (gnu packages multiprecision) @@ -10363,3 +10364,40 @@ (define-public spectre-meltdown-checker against the several transient execution CVEs that were published since early 2018, and gives guidance as to how to mitigate them.") (license license:gpl3))) + +(define-public csmith + (package + (name "csmith") + (version "2.3.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/csmith-project/csmith") + (commit (string-append "csmith-" version)))) + (sha256 + (base32 + "0nhrsnv6cny14xz68qb1h30fbwc05adkisk51p3x63mydm60ddl3")))) + (build-system gnu-build-system) + (native-inputs + (list autoconf automake libtool m4 perl)) + (arguments + (list + ;; There is no tests. + #:tests? #f + ;; Do not install headers under include/csmith-VERSION but in + ;; include/csmith + #:phases + `(modify-phases %standard-phases + (add-after 'unpack 'patch-includedir + (lambda _ + (substitute* "runtime/Makefile.am" + (("\\$\\(includedir\\)/\\$\\(PACKAGE\\)-\\$\\(VERSION\\)") + "$(includedir)/$(PACKAGE)")))) + (add-before 'bootstrap 'force-bootstrap + (lambda _ + (delete-file "configure")))))) + (home-page "https://github.com/csmith-project/csmith") + (synopsis "Random generator of C programs") + (description "Csmith's primary purpose is to find compiler bugs with +random programs using differential testing.") + (license license:bsd-4))) base-commit: 65dcfb3f3865d08467da747041263fd22460d393 -- 2.41.0