GNU bug report logs -
#61756
[PATCH 5/8] gnu: Add emacs-xcscope.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61756 in the body.
You can then email your comments to 61756 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#61756
; Package
guix-patches
.
(Fri, 24 Feb 2023 14:20:04 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Rostislav Svoboda <rostislav.svoboda <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Fri, 24 Feb 2023 14:20:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
---
gnu/packages/emacs-xyz.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index a024ddec6a..b444ab0da0 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -36086,6 +36086,26 @@ (define-public emacs-vertico-posframe
a vertical completion UI.")
(license license:gpl3+)))
+(define-public emacs-xcscope
+ (package
+ (name "emacs-xcscope")
+ (version "1.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dkogan/xcscope.el")
+ (commit "d228d7593d762e457340f678d14b663ef66d7cee")))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0pr85ywp585imjzswm04647nb4iqqvg8jgmbcs5210qmr9kh0z8d"))))
+ (build-system emacs-build-system)
+ (home-page "https://github.com/dkogan/xcscope.el")
+ (synopsis "cscope interface for (X)Emacs")
+ (description
+ "cscope interface for (X)Emacs")
+ (license license:gpl3+)))
+
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar
--
2.39.1
Information forwarded
to
guix-patches <at> gnu.org
:
bug#61756
; Package
guix-patches
.
(Wed, 08 Mar 2023 15:44:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 61756 <at> debbugs.gnu.org (full text, mbox):
Hello,
Rostislav Svoboda <rostislav.svoboda <at> gmail.com> writes:
> +(define-public emacs-xcscope
Thank you. Some comments follow.
> + (package
You need to let-bind commit and revision (set to "0" initially) around
here.
> + (name "emacs-xcscope")
> + (version "1.0")
Here, you should use
(git-version "1.0" revision commit)
> + (source
> + (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://github.com/dkogan/xcscope.el")
> + (commit "d228d7593d762e457340f678d14b663ef66d7cee")))
This should be
(commit commit)
> + (file-name (git-file-name name version))
> + (sha256
> + (base32 "0pr85ywp585imjzswm04647nb4iqqvg8jgmbcs5210qmr9kh0z8d"))))
> + (build-system emacs-build-system)
You also need to add `cscope' as an input, and patch "xscope.el" so
`cscope-program' point to the proper binary, using
`emacs-substitute-variables'. See, e.g., emacs-plz package for an
example.
> + (home-page "https://github.com/dkogan/xcscope.el")
> + (synopsis "cscope interface for (X)Emacs")
cscope -> Cscope. You can also drop (X) from (X)Emacs.
> + (description
> + "cscope interface for (X)Emacs")
This should be a full sentence (with proper capitalization).
> + (license license:gpl3+)))
License is actually license:gpl2+, per headers in xscope.el file.
> ;;; Avoid adding new packages to the end of this file. To reduce the chances
> ;;; of a merge conflict, place them above by existing packages with similar
^
Hmmmmm…
Could you send an updated patch, with another location for the package
definition, and a proper commit message?
Regards,
--
Nicolas Goaziou
Information forwarded
to
guix-patches <at> gnu.org
:
bug#61756
; Package
guix-patches
.
(Sat, 11 Mar 2023 12:00:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 61756 <at> debbugs.gnu.org (full text, mbox):
Hello Nicolas
> Could you send an updated patch, with another location for the package
> definition, and a proper commit message?
The patch is below. I hope I didn't miss any of your points. (And
thanks for reviewing my patches.)
Regards
Bost
From 95a4714eaa36608f5c3002d769516346b6df3d99 Mon Sep 17 00:00:00 2001
From: Rostislav Svoboda <Rostislav.Svoboda <at> gmail.com>
Date: Sat, 11 Mar 2023 12:50:08 +0100
Subject: [PATCH] gnu: Add emacs-xcscope.
* gnu/packages/emacs-xyz.scm (emacs-xcscope): New variable.
---
gnu/packages/emacs-xyz.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 13caf6e882..0c440def40 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -4176,6 +4176,39 @@ (define-public emacs-form-feed
into mode hooks and is intended to be used that way.")
(license license:gpl3+)))
+(define-public emacs-xcscope
+ (let ((commit "d228d7593d762e457340f678d14b663ef66d7cee")
+ (revision "1.0"))
+ (package
+ (name "emacs-xcscope")
+ (version (git-version "0.1" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dkogan/xcscope.el")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0pr85ywp585imjzswm04647nb4iqqvg8jgmbcs5210qmr9kh0z8d"))))
+ (build-system emacs-build-system)
+ (inputs
+ (list cscope))
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'substitute-cscope-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (emacs-substitute-variables "xcscope.el"
+ ("cscope-program" (search-input-file inputs
"/bin/cscope"))))))))
+ (home-page "https://github.com/dkogan/xcscope.el")
+ (synopsis "Interface to the source cross-referencing tool Cscope")
+ (description
+ "Xcscope is an Emacs interface to Cscope, the source
cross-referencing tool.
+ See https://cscope.sf.net")
+ (license license:gpl2+))))
+
(define-public emacs-ggtags
(package
(name "emacs-ggtags")
--
2.39.2
Information forwarded
to
guix-patches <at> gnu.org
:
bug#61756
; Package
guix-patches
.
(Sat, 11 Mar 2023 13:10:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 61756 <at> debbugs.gnu.org (full text, mbox):
Hello,
I'm resending the patch yet again. See below. I missed that
'(revision "0")' and didn't run `guix lint`. (Sorry, I'm learning)
> You also need to add `cscope' as an input, and patch "xscope.el" so
> `cscope-program' point to the proper binary, using
> `emacs-substitute-variables'. See, e.g., emacs-plz package for an
> example.
`guix style` makes this line too long. I guess I can ignore that, right?
Regards
Bost
From 57e30de01ab56f5917580e43f69ce558187432fb Mon Sep 17 00:00:00 2001
From: Rostislav Svoboda <Rostislav.Svoboda <at> gmail.com>
Date: Sat, 11 Mar 2023 12:50:08 +0100
Subject: [PATCH 1/3] gnu: Add emacs-xcscope.
* gnu/packages/emacs-xyz.scm (emacs-xcscope): New variable.
---
gnu/packages/emacs-xyz.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 13caf6e882..509c640b78 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -4176,6 +4176,39 @@ (define-public emacs-form-feed
into mode hooks and is intended to be used that way.")
(license license:gpl3+)))
+(define-public emacs-xcscope
+ (let ((commit "d228d7593d762e457340f678d14b663ef66d7cee")
+ (revision "0"))
+ (package
+ (name "emacs-xcscope")
+ (version (git-version "1.5" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/dkogan/xcscope.el")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0pr85ywp585imjzswm04647nb4iqqvg8jgmbcs5210qmr9kh0z8d"))))
+ (build-system emacs-build-system)
+ (inputs (list cscope))
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'substitute-cscope-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (emacs-substitute-variables "xcscope.el"
+ ("cscope-program" (search-input-file
+ inputs "/bin/cscope"))))))))
+ (home-page "https://github.com/dkogan/xcscope.el")
+ (synopsis "Interface to the source cross-referencing tool Cscope")
+ (description
+ "Xcscope is an Emacs interface to Cscope, the source cross-referencing
+tool. See https://cscope.sf.net")
+ (license license:gpl2+))))
+
(define-public emacs-ggtags
(package
(name "emacs-ggtags")
--
2.39.2
Reply sent
to
Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
:
You have taken responsibility.
(Wed, 15 Mar 2023 23:29:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Rostislav Svoboda <rostislav.svoboda <at> gmail.com>
:
bug acknowledged by developer.
(Wed, 15 Mar 2023 23:29:01 GMT)
Full text and
rfc822 format available.
Message #19 received at 61756-done <at> debbugs.gnu.org (full text, mbox):
Hello,
Rostislav Svoboda <rostislav.svoboda <at> gmail.com> writes:
> I'm resending the patch yet again. See below. I missed that
> '(revision "0")' and didn't run `guix lint`. (Sorry, I'm learning)
Applied. Thank you.
> `guix style` makes this line too long. I guess I can ignore that,
> right?
Indeed.
Regards,
--
Nicolas Goaziou
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 13 Apr 2023 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 30 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.