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 CAojEeVmzWT5MAAASxT56A (envelope-from ) for ; Fri, 04 Aug 2023 23:00:21 +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 GJETEeVmzWQnwwAAauVa8A (envelope-from ) for ; Fri, 04 Aug 2023 23:00:21 +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 846815FBBF for ; Fri, 4 Aug 2023 23:00:20 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=polymtl.ca header.s=default header.b=ibARTBbR; 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=polymtl.ca (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691182821; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Iz+R3Ajj5xpc27sQt9iUsWhSiifBnU2Ne66y2f5ryDA=; b=SJ9z+ozh5Uh3f1VCpZcTn46nmgviez7EdRugFiyS9kXjtlUS84h6RbsfUFXFMl9cGNw3NT fKjzK5zHPMLzwFo80y7XlYBDFbjs1wePkD6hKQ9aHH8tSwzRQBbk/6aoD4LEFGLXQVrZ8x IQLrnsSyqIKonRq5gX1S7PSFqEFosx13FObj37haDRADEiOHvTRcl3uZkUv99eyj/Uqhsh h/oyei3S6fDtgtDZLWhjsBWJsE1tEK398/5+uV4XQz+INmetDcZlDF3LZsJAZqSyEiHgZy aUg+GIR3UnlSyqfaCUZoCH2Wzv8MGpTCHV3LEFgKkslGdTR/aa5ED+Wlj//a6w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=polymtl.ca header.s=default header.b=ibARTBbR; 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=polymtl.ca (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691182821; a=rsa-sha256; cv=none; b=rvEgKOeI5VqiGgSWDDWJr/ysW2S/qichArLrxs9pu/Q6OpZnpH/9DP1BA8TCOY07ZGH1nJ qgP4kGOX3k6v7qZgW9Gu/yjq5c16fdGPbpRbJX8f9R3tu4kW3bxjogPdEBjvHIUmt++XnA GmJv0/6Eg3M9w4kAAtYDd5LIYOs/Nm7WTBkic9/BtT6rp2XOyhTmmLMkzHRMdHLrjCPjeZ dg0LnIIm8nbDzVe48IBp2QS30d2hj7gztA70RgF8JynnKa3wgsNxBdhwQ5rYG4yMvdxCpH ird3aAIqkbUR/5tOlTvDNII6YQIS5P+x+L8DuDNIvVRgBUkGkSUj83sJHco6RQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qS1u2-0001FO-QT; Fri, 04 Aug 2023 17:00:06 -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 1qS1u1-0001EQ-Ac for guix-patches@gnu.org; Fri, 04 Aug 2023 17:00:05 -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 1qS1u1-0003N1-12 for guix-patches@gnu.org; Fri, 04 Aug 2023 17:00:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qS1ty-0000Jl-VD; Fri, 04 Aug 2023 17:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65059] [PATCH] gnu: Add csmith. Resent-From: Olivier Dion Original-Sender: "Debbugs-submit" Resent-CC: leo@famulari.name, me@tobias.gr, guix-patches@gnu.org Resent-Date: Fri, 04 Aug 2023 21:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65059 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65059@debbugs.gnu.org Cc: Olivier Dion , Leo Famulari , Tobias Geerinckx-Rice X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Leo Famulari , Tobias Geerinckx-Rice Received: via spool by submit@debbugs.gnu.org id=B.16911827751151 (code B ref -1); Fri, 04 Aug 2023 21:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Aug 2023 20:59:35 +0000 Received: from localhost ([127.0.0.1]:54968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qS1tW-0000IV-Rr for submit@debbugs.gnu.org; Fri, 04 Aug 2023 16:59:35 -0400 Received: from lists.gnu.org ([2001:470:142::17]:40860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qS1tT-0000IF-Tb for submit@debbugs.gnu.org; Fri, 04 Aug 2023 16:59:33 -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 1qS1tO-00018A-7H for guix-patches@gnu.org; Fri, 04 Aug 2023 16:59:26 -0400 Received: from smtp.polymtl.ca ([132.207.4.11]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qS1tI-00034k-Np for guix-patches@gnu.org; Fri, 04 Aug 2023 16:59:25 -0400 Received: from laura.hitronhub.home (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 374Kx44p014464 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 4 Aug 2023 16:59:11 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 374Kx44p014464 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1691182752; bh=Iz+R3Ajj5xpc27sQt9iUsWhSiifBnU2Ne66y2f5ryDA=; h=From:To:Cc:Subject:Date:From; b=ibARTBbRwo1zIEvLZR1/Te/MgdGscPkQdEb93NK8hB5AmZwKo2ioVTbg1uF6MYNMy aLWguHLHPWnoQDoPEDyfCqlIwbza3XyYel/47LTmfkOh9D/12QxczKfeCsr0EHxmsF K4hwrN38j9Lzu2Q44FnNcA1Q7GgkpAOgJtrmNFAQ= From: Olivier Dion Date: Fri, 4 Aug 2023 16:58:57 -0400 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (modemcable094.169-200-24.mc.videotron.ca [24.200.169.94]) at Fri, 4 Aug 2023 20:59:04 +0000 Received-SPF: pass client-ip=132.207.4.11; envelope-from=olivier.dion@polymtl.ca; helo=smtp.polymtl.ca X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: 846815FBBF X-Migadu-Scanner: mx1.migadu.com X-Spam-Score: 4.26 X-Migadu-Spam-Score: 4.26 X-TUID: 9RQXPkLu5ett From: Olivier Dion * gnu/packages/linux.scm (csmith): New variable. --- gnu/packages/linux.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 3aec03a3ec..84ccf5bb13 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -139,6 +139,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) @@ -10418,3 +10419,39 @@ (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)")))) + (replace 'bootstrap + (lambda _ + (invoke "autoreconf" "-vfi")))))) + (home-page "https://github.com/csmith-project/csmith") + (synopsis "Random generator of C programs") + (description "Csmith primary purpose is to find compiler bugs with random +programs using differential testing.") + (license license:bsd-4))) base-commit: 17fadbb5ea3b35f962ab1bcd5b8cf4e1d699eb7e -- 2.41.0