From patchwork Sun Feb 12 00:40:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andy Tai X-Patchwork-Id: 46866 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 42B2316625; Sun, 12 Feb 2023 00:41:11 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 915091661B for ; Sun, 12 Feb 2023 00:41:07 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pR0QT-0005sN-8r; Sat, 11 Feb 2023 19:41:05 -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 1pR0QR-0005ry-27 for guix-patches@gnu.org; Sat, 11 Feb 2023 19:41:03 -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 1pR0QQ-0005x5-PE for guix-patches@gnu.org; Sat, 11 Feb 2023 19:41:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pR0QQ-00011f-Hr for guix-patches@gnu.org; Sat, 11 Feb 2023 19:41:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61442] [PATCH] gnu: Add ddd Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 12 Feb 2023 00:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61442 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61442@debbugs.gnu.org Cc: Andy Tai X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16761624363902 (code B ref -1); Sun, 12 Feb 2023 00:41:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Feb 2023 00:40:36 +0000 Received: from localhost ([127.0.0.1]:43568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pR0Pz-00010r-V0 for submit@debbugs.gnu.org; Sat, 11 Feb 2023 19:40:36 -0500 Received: from lists.gnu.org ([209.51.188.17]:34544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pR0Pw-00010i-4K for submit@debbugs.gnu.org; Sat, 11 Feb 2023 19:40:34 -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 1pR0Pv-0005jn-Ut for guix-patches@gnu.org; Sat, 11 Feb 2023 19:40:31 -0500 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pR0Pt-0005uK-U6 for guix-patches@gnu.org; Sat, 11 Feb 2023 19:40:31 -0500 Received: by mail-pl1-x630.google.com with SMTP id ja21so2679267plb.13 for ; Sat, 11 Feb 2023 16:40:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=Ww6wwRZy0nabXXD0PQcvv/Ej9XKwaUBQmZF2ql6Yd9o=; b=P+ojP0Q7iyiEZFvNj7VfH2Q472u3r0fc8q/Dj6dDv4v4zoKFdGVQQ4OyeE9amyOwSm lEM3t4yUGseHcpOuSarQvmkh9LBfAon4Ffzcsog5C2bpKES8kX0h1l3tJ8JaEGMpOAy7 6K+ijaSXzGAZ6/Q1bV9A8BKg5dohUnMkjLiyefNFT+NCHapDtbDzuCYqLgF/Psgjz7zG MnXs/wn3eJ446XrRJhfkQgsUrESFMruEK8GUn7dogyyQhPRWz//ayD4Vs8lmFRsk60M2 7za3h3XbFf+njPMod/VAn22hfd++OrNBdonbSv2xLn+VpxLKcz2y3SoJiAvK8ZKuBaGp utlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Ww6wwRZy0nabXXD0PQcvv/Ej9XKwaUBQmZF2ql6Yd9o=; b=j5dmKjn91Qq/wOM6sITRCbmIdCNo28LBebh7iKUkIfqeo4Tg3zLjYF6hWsAelWAqxJ GGszwwubaPGaA67gVHMLKLyd+nPEcppr7cfluKdPYjealQ1WI0VB3TSIwjN0fi8DH2da mKWp+fKQXh0kdugFHjCr0jt4jYp4sLvcvjtPGLSrkpGbRzAzucNY6/26IofB4Wc4D9U5 YeDVosQF+nV/pIHoP7MeH30mcZJhNbUB4tKetMx88Az7yYpR9PevSN1WRit/rp85MEXb m2u261hz6BQvK25tyPlfkChI6atdImo49QG9Xg6a7lN9mPVFTzoQl94Mty5zXYpqCRVw aaNA== X-Gm-Message-State: AO0yUKXD7WUDzL77kLLvwr8dbnLL9UMA5T4ctia7TvCLXY+YMJD0zTsK OQEG9zdZrrliLwag6y0ctrTFBluPWr4= X-Google-Smtp-Source: AK7set+/MIGlEx5YpAyIaPCJLYGpo+/u4WVdWCHxfFQVFEncC/rOQmwdgnFsYBxUK9swvF1InssKJg== X-Received: by 2002:a17:903:41c3:b0:196:519d:8655 with SMTP id u3-20020a17090341c300b00196519d8655mr20233376ple.5.1676162428158; Sat, 11 Feb 2023 16:40:28 -0800 (PST) Received: from localhost.localdomain ([98.37.226.98]) by smtp.googlemail.com with ESMTPSA id g8-20020a170902868800b001994a7a662esm5535349plo.201.2023.02.11.16.40.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Feb 2023 16:40:27 -0800 (PST) From: Andy Tai Date: Sat, 11 Feb 2023 16:40:23 -0800 Message-Id: <20230212004023.2459-1-atai@atai.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=lichengtai@gmail.com; helo=mail-pl1-x630.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/debug.scm (ddd): New variable --- gnu/packages/debug.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm index 22b3cd862d..e91d798a3b 100644 --- a/gnu/packages/debug.scm +++ b/gnu/packages/debug.scm @@ -11,6 +11,7 @@ ;;; Copyright © 2021 Foo Chuan Wei ;;; Copyright © 2022 Michael Rohleder ;;; Copyright © 2022 Matthew James Kraai +;;; Copyright © 2023 Andy Tai ;;; ;;; This file is part of GNU Guix. ;;; @@ -53,6 +54,7 @@ (define-module (gnu packages debug) #:use-module (gnu packages gtk) #:use-module (gnu packages golang) #:use-module (gnu packages image) + #:use-module (gnu packages lesstif) ; motif #:use-module (gnu packages libusb) #:use-module (gnu packages linux) #:use-module (gnu packages llvm) @@ -70,6 +72,7 @@ (define-module (gnu packages debug) #:use-module (gnu packages texinfo) #:use-module (gnu packages virtualization) #:use-module (gnu packages xdisorg) + #:use-module (gnu packages xorg) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) @@ -860,6 +863,44 @@ (define-public seer-gdb ;; Note: Some icons in src/resources are creative commons 3.0 and/or 4.0. (license license:gpl3+))) +(define-public ddd + (package + (name "ddd") + (version "3.3.12") + (source (origin + (method url-fetch) + (uri (string-append "mirror://gnu/ddd/ddd-" version ".tar.gz")) + (sha256 + (base32 + "0p5nx387857w3v2jbgvps2p6mlm0chajcdw5sfrddcglsxkwvmis")))) + (build-system gnu-build-system) + (inputs (list motif ncurses gdb)) + (native-inputs (list pkg-config xorg-server-for-tests)) + (arguments + (list #:tests? #f ;Those are manual + ;; avoid "friend declaration specifies default arguments and isn’t a definition" errors. + #:configure-flags #~(list "CXXFLAGS=-fpermissive") + #:phases #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda* (#:key native-inputs inputs + #:allow-other-keys) + (setenv "HOME" "/tmp") + (let ((xvfb (search-input-file (or native-inputs + inputs) + "bin/Xvfb")) + (display ":1")) + (setenv "DISPLAY" display) + (system (string-append xvfb " " display " &")))))))) + (synopsis "graphical front end for the command-line debugger GDB") + (description + "GNU Data Display Debugger (GNU DDD) is a graphical user interface ] +(using the Motif toolkit) for command-line debuggers such as GDB, +DBX, JDB, HP Wildebeest Debugger, XDB, the Perl debugger, the Bash +debugger, the Python debugger, and the GNU Make debugger.") + (home-page "https://www.gnu.org/software/ddd/") + (license license:gpl3+))) + + (define-public delve (package (name "delve")