GNU bug report logs - #51182
[PATCH] gnu: Add cscope

Previous Next

Package: guix-patches;

Reported by: Foo Chuan Wei <chuanwei.foo <at> hotmail.com>

Date: Wed, 13 Oct 2021 14:44:02 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 51182 in the body.
You can then email your comments to 51182 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#51182; Package guix-patches. (Wed, 13 Oct 2021 14:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Foo Chuan Wei <chuanwei.foo <at> hotmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 13 Oct 2021 14:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Foo Chuan Wei <chuanwei.foo <at> hotmail.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add cscope
Date: Wed, 13 Oct 2021 14:42:41 +0000
* gnu/packages/code.scm (cscope): New variable.
---
 gnu/packages/code.scm | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/code.scm b/gnu/packages/code.scm
index 7551b31e85..ce30946874 100644
--- a/gnu/packages/code.scm
+++ b/gnu/packages/code.scm
@@ -936,3 +936,43 @@ extensions over the standard utility.")
       (description "amalgamate.py aims to make it easy to use SQLite-style C
 source and header amalgamation in projects.")
       (license license:bsd-3))))
+
+(define-public cscope
+  (package
+    (name "cscope")
+    (version "15.9")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://sourceforge/cscope/cscope/"
+                                  "v" version "/cscope-" version ".tar.gz"))
+              (sha256
+                (base32
+                  "0ngiv4aj3rr35k3q3wjx0y19gh7i1ydqa0cqip6sjwd8fph5ll65"))))
+    (build-system gnu-build-system)
+    (inputs `(("ncurses" ,ncurses)))
+    (arguments `(#:configure-flags
+                 ;; Specify the correct ncurses directory to prevent incorrect
+                 ;; fallback on SysV curses.
+                 (list (string-append "--with-ncurses="
+                                      (assoc-ref %build-inputs "ncurses")))))
+    (home-page "http://cscope.sourceforge.net")
+    (synopsis "Tool for browsing source code")
+    (description
+      "Cscope is a text screen based source browsing tool. Although it is
+primarily designed to search C code (including lex and yacc files), it can also
+be used for C++ code.
+
+Using cscope, you can easily search for where symbols are used and defined.
+Cscope is designed to answer questions like:
+
+@itemize
+@item Where is this variable used?
+@item What is the value of this preprocessor symbol?
+@item Where is this function in the source files?
+@item What functions call this function?
+@item What functions are called by this function?
+@item Where does the message \"out of space\" come from?
+@item Where is this source file in the directory structure?
+@item What files include this header file?
+@end itemize")
+    (license license:bsd-3)))

base-commit: ac60f71215dbb327d3581b2a31b88de5a87abd06
-- 
2.25.1





Reply sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
You have taken responsibility. (Wed, 13 Oct 2021 14:57:02 GMT) Full text and rfc822 format available.

Notification sent to Foo Chuan Wei <chuanwei.foo <at> hotmail.com>:
bug acknowledged by developer. (Wed, 13 Oct 2021 14:57:02 GMT) Full text and rfc822 format available.

Message #10 received at 51182-done <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: 51182-done <at> debbugs.gnu.org
Subject: Re: [bug#51182] [PATCH] gnu: Add cscope
Date: Wed, 13 Oct 2021 16:56:39 +0200
Hello,

Foo Chuan Wei <chuanwei.foo <at> hotmail.com> writes:

> * gnu/packages/code.scm (cscope): New variable.

I shortened the description, added a copyright line for you, and applied
the patch.

Thank you.

Regards,
-- 
Nicolas Goaziou




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 11 Nov 2021 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 137 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.