GNU bug report logs - #31036
[PATCH] gnu: Add Emacs dumb-jump

Previous Next

Package: guix-patches;

Reported by: Sohom Bhattacharjee <soham.bhattacharjee15 <at> gmail.com>

Date: Tue, 3 Apr 2018 02:35:01 UTC

Severity: normal

Tags: patch

Done: Arun Isaac <arunisaac <at> systemreboot.net>

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 31036 in the body.
You can then email your comments to 31036 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#31036; Package guix-patches. (Tue, 03 Apr 2018 02:35:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sohom Bhattacharjee <soham.bhattacharjee15 <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 03 Apr 2018 02:35:02 GMT) Full text and rfc822 format available.

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

From: Sohom Bhattacharjee <soham.bhattacharjee15 <at> gmail.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add Emacs dumb-jump
Date: Tue, 3 Apr 2018 08:04:03 +0530
I added the comment because it makes it clear as to why the "v" is needed in the version. 
* gnu/packages/emacs.scm (emacs-dumb-jump): New variable.
---
 gnu/packages/emacs.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/emacs.scm b/gnu/packages/emacs.scm
index 7a203ef6e..b4744cfc9 100644
--- a/gnu/packages/emacs.scm
+++ b/gnu/packages/emacs.scm
@@ -7436,3 +7436,37 @@ directories of plain text notes, inspired by Notational Velocity.")
 matches\" in the mode line in various search modes.  This is an Emacs port of
 Anzu.zim.")
     (license license:gpl3+)))
+
+;; the version needs to have a v in it because of how the github releases are maintained.
+(define-public emacs-dumb-jump
+(package
+  (name "emacs-dumb-jump")
+  (version "v0.5.2")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (string-append
+            "https://github.com/jacktasia/dumb-jump/archive/"
+             version ".tar.gz"))
+      (file-name (string-append name "-" version ".tar.gz"))
+      (sha256
+        (base32
+          "07n0xjgpxjpf3vp9gxchkjpydyj0zm166930as0kwiwkhjlsirsf"))))
+  (build-system emacs-build-system)
+  (propagated-inputs
+    `(("emacs-f" ,emacs-f)
+      ("emacs-s" ,emacs-s)
+      ("emacs-dash" ,emacs-dash)
+      ("emacs-popup" ,emacs-popup)))
+  (home-page "https://github.com/jacktasia/dumb-jump")
+  (synopsis
+    "Jump to definition for multiple languages without configuration")
+  (description
+    "Dumb Jump is an Emacs \"jump to definition\" package with support for
+multiple programming languages that favors \"just working\" over speed or
+accuracy.  This means minimal -- and ideally zero -- configuration with
+absolutely no stored indexes (TAGS) or persistent background processes.  Dumb
+Jump performs best with The Silver Searcher `ag` or ripgrep `rg` installed.
+Dumb Jump requires at least GNU Emacs 24.3.
+")
+  (license license:gpl3+)))
-- 
2.16.2





Information forwarded to guix-patches <at> gnu.org:
bug#31036; Package guix-patches. (Tue, 03 Apr 2018 17:35:02 GMT) Full text and rfc822 format available.

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

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: Sohom Bhattacharjee <soham.bhattacharjee15 <at> gmail.com>,
 31036 <at> debbugs.gnu.org
Subject: Re: [bug#31036] [PATCH] gnu: Add Emacs dumb-jump
Date: Tue, 03 Apr 2018 23:04:29 +0530
Thank you for contributing to Guix! The following are some changes.

> +;; the version needs to have a v in it because of how the github releases are maintained.
> +(define-public emacs-dumb-jump
> +(package
> +  (name "emacs-dumb-jump")
> +  (version "v0.5.2")
> +  (source
> +    (origin
> +      (method url-fetch)
> +      (uri (string-append
> +            "https://github.com/jacktasia/dumb-jump/archive/"
> +             version ".tar.gz"))

We normally include the "v" in the source URI itself, not in the
version. So, you'd end up with the following uri.

(string-append "https://github.com/jacktasia/dumb-jump/archive/v" version ".tar.gz")

> +  (synopsis
> +    "Jump to definition for multiple languages without configuration")
> +  (description
> +    "Dumb Jump is an Emacs \"jump to definition\" package with support for
> +multiple programming languages that favors \"just working\" over speed or
> +accuracy.  This means minimal -- and ideally zero -- configuration with
> +absolutely no stored indexes (TAGS) or persistent background processes.  Dumb

Downcase TAGS to tags.

> +Jump performs best with The Silver Searcher `ag` or ripgrep `rg` installed.

Please put ag and rg within @command{} -- @command{ag} and @command{rg}.

This package appears to have tests. Could you add a check phase for
running them?

Also, the first line of the commit message should read

gnu: Add emacs-dumb-jump.

not

gnu: Add Emacs dumb-jump.

Could you send an updated patch?

Thanks!




Information forwarded to guix-patches <at> gnu.org:
bug#31036; Package guix-patches. (Mon, 09 Apr 2018 15:01:01 GMT) Full text and rfc822 format available.

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

From: Sohom Bhattacharjee <soham.bhattacharjee15 <at> gmail.com>
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 31036 <at> debbugs.gnu.org
Subject: Re: [bug#31036] [PATCH] gnu: Add Emacs dumb-jump
Date: Mon, 9 Apr 2018 20:30:08 +0530
[Message part 1 (text/plain, inline)]
I made the changes as suggested. However i can not get the tests working. 

I need some help with the tests. 

whenever i compile this package i get these errors

phase `unpack' succeeded after 0.0 seconds
starting phase `patch-usr-bin-file'
phase `patch-usr-bin-file' succeeded after 0.0 seconds
starting phase `patch-source-shebangs'
phase `patch-source-shebangs' succeeded after 0.0 seconds
starting phase `patch-generated-file-shebangs'
phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
starting phase `check'
test suite not run
phase `check' succeeded after 0.0 seconds
starting phase `install'
`/tmp/guix-build-emacs-dumb-jump-0.5.2.drv-0/dumb-jump-0.5.2/dumb-jump.el' -> 
`/gnu/store/7rwqglwmjf6dbgfq87n642acp14agwsr-emacs-dumb-jump-0.5.2/share/emacs/site-lisp/guix.d/dumb-jump-0.5.2/dumb-jump.el'
phase `install' succeeded after 0.0 seconds
starting phase `check'
Cannot open load file: No such file or directory, undercover
phase `check' failed after 0.1 seconds
builder for `/gnu/store/sx8j4pi37d8i32m9hraahkbn1m0ckks6-emacs-dumb-jump-0.5.2.drv' failed with exit code 1
@ build-failed /gnu/store/sx8j4pi37d8i32m9hraahkbn1m0ckks6-emacs-dumb-jump-0.5.2.drv - 1 builder for 
`/gnu/store/sx8j4pi37d8i32m9hraahkbn1m0ckks6-emacs-dumb-jump-0.5.2.drv' failed with exit code 1
guix build: error: build failed: build of `/gnu/store/sx8j4pi37d8i32m9hraahkbn1m0ckks6-emacs-dumb-jump-0.5.2.drv' failed



[0001-gnu-Add-emacs-dumb-jump.patch (text/plain, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#31036; Package guix-patches. (Mon, 09 Apr 2018 16:13:02 GMT) Full text and rfc822 format available.

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

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: guix-patches <at> gnu.org, Sohom Bhattacharjee <soham.bhattacharjee15 <at> gmail.com>,
 Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 31036 <at> debbugs.gnu.org
Subject: Re: [bug#31036] [PATCH] gnu: Add Emacs dumb-jump
Date: Mon, 09 Apr 2018 16:12:07 +0000
On April 9, 2018 3:00:08 PM UTC, Sohom Bhattacharjee es<soham.bhattacharjee15 <at> gmail.com> wrote:
>I made the changes as suggested. However i can not get the tests
>working. 
>
>I need some help with the tests. 
>
>whenever i compile this package i get these errors
>
>phase `unpack' succeeded after 0.0 seconds
>starting phase `patch-usr-bin-file'
>phase `patch-usr-bin-file' succeeded after 0.0 seconds
>starting phase `patch-source-shebangs'
>phase `patch-source-shebangs' succeeded after 0.0 seconds
>starting phase `patch-generated-file-shebangs'
>phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
>starting phase `check'
>test suite not run
>phase `check' succeeded after 0.0 seconds
>starting phase `install'
>`/tmp/guix-build-emacs-dumb-jump-0.5.2.drv-0/dumb-jump-0.5.2/dumb-jump.el'
>-> 
>`/gnu/store/7rwqglwmjf6dbgfq87n642acp14agwsr-emacs-dumb-jump-0.5.2/share/emacs/site-lisp/guix.d/dumb-jump-0.5.2/dumb-jump.el'
>phase `install' succeeded after 0.0 seconds
>starting phase `check'
>Cannot open load file: No such file or directory, undercover
>phase `check' failed after 0.1 seconds
>builder for
>`/gnu/store/sx8j4pi37d8i32m9hraahkbn1m0ckks6-emacs-dumb-jump-0.5.2.drv'
>failed with exit code 1
>@ build-failed
>/gnu/store/sx8j4pi37d8i32m9hraahkbn1m0ckks6-emacs-dumb-jump-0.5.2.drv -
>1 builder for 
>`/gnu/store/sx8j4pi37d8i32m9hraahkbn1m0ckks6-emacs-dumb-jump-0.5.2.drv'
>failed with exit code 1
>guix build: error: build failed: build of
>`/gnu/store/sx8j4pi37d8i32m9hraahkbn1m0ckks6-emacs-dumb-jump-0.5.2.drv'
>failed

I believe this is because the ert-runner wrapper script completely overrides the EMACSLOADPATH env. variable used to make the different dependencies visible to Emacs in our emacs-build-system.

The fix to this particular bug is included in patch 0003 of a patch series waiting to be reviewed here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31018.

You might want to retry your test after applying that specific patch.

HTH,

Maxim
Hello!




Information forwarded to guix-patches <at> gnu.org:
bug#31036; Package guix-patches. (Mon, 09 Apr 2018 16:13:03 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#31036; Package guix-patches. (Wed, 11 Apr 2018 02:52:02 GMT) Full text and rfc822 format available.

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

From: Sohom Bhattacharjee <soham.bhattacharjee15 <at> gmail.com>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 31036 <at> debbugs.gnu.org, Arun Isaac <arunisaac <at> systemreboot.net>,
 guix-patches <at> gnu.org
Subject: Re: [bug#31036] [PATCH] gnu: Add Emacs dumb-jump
Date: Wed, 11 Apr 2018 08:20:55 +0530
On Mon, Apr 09, 2018 at 04:12:07PM +0000, Maxim Cournoyer wrote:
> On April 9, 2018 3:00:08 PM UTC, Sohom Bhattacharjee es<soham.bhattacharjee15 <at> gmail.com> wrote:
> >I made the changes as suggested. However i can not get the tests
> >working. 
> >
> >I need some help with the tests. 
> >
> >whenever i compile this package i get these errors
> >
> >phase `unpack' succeeded after 0.0 seconds
> >starting phase `patch-usr-bin-file'
> >phase `patch-usr-bin-file' succeeded after 0.0 seconds
> >starting phase `patch-source-shebangs'
> >phase `patch-source-shebangs' succeeded after 0.0 seconds
> >starting phase `patch-generated-file-shebangs'
> >phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
> >starting phase `check'
> >test suite not run
> >phase `check' succeeded after 0.0 seconds
> >starting phase `install'
> >`/tmp/guix-build-emacs-dumb-jump-0.5.2.drv-0/dumb-jump-0.5.2/dumb-jump.el'
> >-> 
> >`/gnu/store/7rwqglwmjf6dbgfq87n642acp14agwsr-emacs-dumb-jump-0.5.2/share/emacs/site-lisp/guix.d/dumb-jump-0.5.2/dumb-jump.el'
> >phase `install' succeeded after 0.0 seconds
> >starting phase `check'
> >Cannot open load file: No such file or directory, undercover
> >phase `check' failed after 0.1 seconds
> >builder for
> >`/gnu/store/sx8j4pi37d8i32m9hraahkbn1m0ckks6-emacs-dumb-jump-0.5.2.drv'
> >failed with exit code 1
> >@ build-failed
> >/gnu/store/sx8j4pi37d8i32m9hraahkbn1m0ckks6-emacs-dumb-jump-0.5.2.drv -
> >1 builder for 
> >`/gnu/store/sx8j4pi37d8i32m9hraahkbn1m0ckks6-emacs-dumb-jump-0.5.2.drv'
> >failed with exit code 1
> >guix build: error: build failed: build of
> >`/gnu/store/sx8j4pi37d8i32m9hraahkbn1m0ckks6-emacs-dumb-jump-0.5.2.drv'
> >failed
> 
> I believe this is because the ert-runner wrapper script completely overrides the EMACSLOADPATH env. variable used to make the different dependencies visible to Emacs in our emacs-build-system.
> 
> The fix to this particular bug is included in patch 0003 of a patch series waiting to be reviewed here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31018.
>  
> You might want to retry your test after applying that specific patch.
> 
> HTH,
> 
> Maxim
> Hello!

I applied the said patch and build guix. Then I tried to build dumb-jump. This led to the following error.

I think that the patch worked because this error says something about "noflet". (i might be wrong..)

Here is the error.

phase `unpack' succeeded after 0.0 seconds
starting phase `patch-usr-bin-file'
phase `patch-usr-bin-file' succeeded after 0.0 seconds
starting phase `patch-source-shebangs'
phase `patch-source-shebangs' succeeded after 0.0 seconds
starting phase `patch-generated-file-shebangs'
phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
starting phase `check'
test suite not run
phase `check' succeeded after 0.0 seconds
starting phase `install'
`/tmp/guix-build-emacs-dumb-jump-0.5.2.drv-0/dumb-jump-0.5.2/dumb-jump.el' -> 
`/gnu/store/vvfvxp79ngf8a88saskp62aqqnfsmyav-emacs-dumb-jump-0.5.2/share/emacs/site-lisp/guix.d/dumb-jump-0.5.2/dumb-jump.el'
phase `install' succeeded after 0.0 seconds
starting phase `check'
Cannot open load file: No such file or directory, noflet
phase `check' failed after 0.2 seconds
builder for `/gnu/store/3n35rfqwsw3dl8y4zkfb4zh957diw3ax-emacs-dumb-jump-0.5.2.drv' failed with exit code 1
@ build-failed /gnu/store/3n35rfqwsw3dl8y4zkfb4zh957diw3ax-emacs-dumb-jump-0.5.2.drv - 1 builder for 
`/gnu/store/3n35rfqwsw3dl8y4zkfb4zh957diw3ax-emacs-dumb-jump-0.5.2.drv' failed with exit code 1
guix build: error: build failed: build of `/gnu/store/3n35rfqwsw3dl8y4zkfb4zh957diw3ax-emacs-dumb-jump-0.5.2.drv' failed


Thanks,

Sohom!




Information forwarded to guix-patches <at> gnu.org:
bug#31036; Package guix-patches. (Wed, 11 Apr 2018 02:52:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#31036; Package guix-patches. (Wed, 11 Apr 2018 05:19:01 GMT) Full text and rfc822 format available.

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

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: Sohom Bhattacharjee <soham.bhattacharjee15 <at> gmail.com>,
 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 31036 <at> debbugs.gnu.org
Subject: Re: [bug#31036] [PATCH] gnu: Add Emacs dumb-jump
Date: Wed, 11 Apr 2018 10:48:44 +0530
Sohom Bhattacharjee <soham.bhattacharjee15 <at> gmail.com> writes:

> I applied the said patch and build guix. Then I tried to build
> dumb-jump. This led to the following error.
>
> I think that the patch worked because this error says something about
> "noflet". (i might be wrong..)

You are getting this error because noflet is a test dependency. See
https://github.com/jacktasia/dumb-jump/blob/master/Cask . Therefore,
noflet (and the others mentioned in Cask) should be in native-inputs.




Information forwarded to guix-patches <at> gnu.org:
bug#31036; Package guix-patches. (Thu, 12 Apr 2018 06:51:02 GMT) Full text and rfc822 format available.

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

From: Sohom Bhattacharjee <soham.bhattacharjee15 <at> gmail.com>
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 31036 <at> debbugs.gnu.org, Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Subject: Re: [bug#31036] [PATCH] gnu: Add Emacs dumb-jump
Date: Thu, 12 Apr 2018 12:20:09 +0530
[Message part 1 (text/plain, inline)]
On Wed, Apr 11, 2018 at 10:48:44AM +0530, Arun Isaac wrote:
> Sohom Bhattacharjee <soham.bhattacharjee15 <at> gmail.com> writes:
> 
> > I applied the said patch and build guix. Then I tried to build
> > dumb-jump. This led to the following error.
> >
> > I think that the patch worked because this error says something about
> > "noflet". (i might be wrong..)
> 
> You are getting this error because noflet is a test dependency. See
> https://github.com/jacktasia/dumb-jump/blob/master/Cask . Therefore,
> noflet (and the others mentioned in Cask) should be in native-inputs.

I am sending 2 patches. In the first one I have added the package emacs-noflet package (patch 0001) which is a test dependency for the 
emacs-dumb-jump package.

In the second patch I have made the neccesary changes to the emacs-dumb-jump package. 

Even then it is not building properly. I am getting these errors

phase `unpack' succeeded after 0.0 seconds
starting phase `patch-usr-bin-file'
phase `patch-usr-bin-file' succeeded after 0.0 seconds
starting phase `patch-source-shebangs'
phase `patch-source-shebangs' succeeded after 0.0 seconds
starting phase `patch-generated-file-shebangs'
phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
starting phase `check'
test suite not run
phase `check' succeeded after 0.0 seconds
starting phase `install'
`/tmp/guix-build-emacs-dumb-jump-0.5.2.drv-0/dumb-jump-0.5.2/dumb-jump.el' -> 
`/gnu/store/k19qy6b8kbl59xfh6d9ji064mj6qjmbz-emacs-dumb-jump-0.5.2/share/emacs/site-lisp/guix.d/dumb-jump-0.5.2/dumb-jump.el'
phase `install' succeeded after 0.0 seconds
starting phase `check'
Searching for program: No such file or directory, /bin/sh
phase `check' failed after 0.3 seconds
builder for `/gnu/store/9qp5nygvablrjzxk3ps46rps5rmx4k38-emacs-dumb-jump-0.5.2.drv' failed with exit code 1
@ build-failed /gnu/store/9qp5nygvablrjzxk3ps46rps5rmx4k38-emacs-dumb-jump-0.5.2.drv - 1 builder for 
`/gnu/store/9qp5nygvablrjzxk3ps46rps5rmx4k38-emacs-dumb-jump-0.5.2.drv' failed with exit code 1
guix build: error: build failed: build of `/gnu/store/9qp5nygvablrjzxk3ps46rps5rmx4k38-emacs-dumb-jump-0.5.2.drv' failed



NOTE: this is after applying [0003] patch in this series. 
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31018

Thank You!! 
[0001-gnu-Add-emacs-noflet.patch (text/plain, attachment)]
[0002-gnu-Add-emacs-dumb-jump.patch (text/plain, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#31036; Package guix-patches. (Fri, 13 Apr 2018 03:53:01 GMT) Full text and rfc822 format available.

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

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Sohom Bhattacharjee <soham.bhattacharjee15 <at> gmail.com>
Cc: 31036 <at> debbugs.gnu.org, Arun Isaac <arunisaac <at> systemreboot.net>
Subject: Re: [bug#31036] [PATCH] gnu: Add Emacs dumb-jump
Date: Thu, 12 Apr 2018 23:52:05 -0400
Hello Sohom!

Sohom Bhattacharjee <soham.bhattacharjee15 <at> gmail.com> writes:

[...]

> In the second patch I have made the neccesary changes to the emacs-dumb-jump package. 
>
> Even then it is not building properly. I am getting these errors
>
> phase `unpack' succeeded after 0.0 seconds
> starting phase `patch-usr-bin-file'
> phase `patch-usr-bin-file' succeeded after 0.0 seconds
> starting phase `patch-source-shebangs'
> phase `patch-source-shebangs' succeeded after 0.0 seconds
> starting phase `patch-generated-file-shebangs'
> phase `patch-generated-file-shebangs' succeeded after 0.0 seconds
> starting phase `check'
> test suite not run
> phase `check' succeeded after 0.0 seconds
> starting phase `install'
> `/tmp/guix-build-emacs-dumb-jump-0.5.2.drv-0/dumb-jump-0.5.2/dumb-jump.el' -> 
> `/gnu/store/k19qy6b8kbl59xfh6d9ji064mj6qjmbz-emacs-dumb-jump-0.5.2/share/emacs/site-lisp/guix.d/dumb-jump-0.5.2/dumb-jump.el'
> phase `install' succeeded after 0.0 seconds
> starting phase `check'
> Searching for program: No such file or directory, /bin/sh
> phase `check' failed after 0.3 seconds
> builder for `/gnu/store/9qp5nygvablrjzxk3ps46rps5rmx4k38-emacs-dumb-jump-0.5.2.drv' failed with exit code 1
> @ build-failed /gnu/store/9qp5nygvablrjzxk3ps46rps5rmx4k38-emacs-dumb-jump-0.5.2.drv - 1 builder for 
> `/gnu/store/9qp5nygvablrjzxk3ps46rps5rmx4k38-emacs-dumb-jump-0.5.2.drv' failed with exit code 1
> guix build: error: build failed: build of `/gnu/store/9qp5nygvablrjzxk3ps46rps5rmx4k38-emacs-dumb-jump-0.5.2.drv' failed
>
> NOTE: this is after applying [0003] patch in this series. 
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31018

I applied your changes and gave it a try. I ran in the same problem as you
did. Interestingly I didn't get the same error when ran directly from a
contained environment (with "./pre-inst-env guix environment -C
emacs-dumb-jump", then

--8<---------------cut here---------------start------------->8---
for p in $GUIX_ENVIRONMENT/share/emacs/site-lisp/guix.d/*; do e=":$p:$e"; done
export EMACSLOADPATH=$e"
--8<---------------cut here---------------end--------------->8---

There, the tests just hang after the 3rd test:

--8<---------------cut here---------------start------------->8---
$ ert-runner
Running 143 tests (2018-04-12 23:29:52-0400)

   passed    1/143  data-dir-exists-test
   passed    2/143  data-dir-proj2-exists-test
   passed    3/143  dumb-jump--result-follow-test
--8<---------------cut here---------------end--------------->8---

The tests are potentially broken or tied to a very specific
environment?. I've tried running those on my system (not in a controlled
environment) and it failed the same as in the Guix build container
(hang). Maybe you could ping upstream about it, and disable the tests
for now.

> Thank You!! 
>
>>From 41bce34d0bbed656f3d4bcdc65b20e8a9a6c554e Mon Sep 17 00:00:00 2001
> From: Sohom Bhattacharjee <soham.bhattacharjee15 <at> gmail.com>
> Date: Thu, 12 Apr 2018 12:11:03 +0530
> Subject: [PATCH 3/3] gnu: Add emacs-noflet

[...]

> +(define-public emacs-noflet
> +  (package
> +  (name "emacs-noflet")
> +  (version "20141102.654")
> +  (source
> +    (origin
> +      (method url-fetch)
> +      (uri (string-append "https://melpa.org/packages/noflet-"
> +             version ".el"))
> +      (sha256
> +        (base32
> +          "1a1wxb9zhrhj2iv1abjqpggyh5gwg13gwyz1052dqq4fbpbrwa0y"))))
> +  (build-system emacs-build-system)
> +  (home-page "https://github.com/nicferrier/emacs-noflet")
> +  (synopsis "locally override functions")

The "guix lint" command has a small complaint: unknown location>:
emacs-noflet <at> 20141102.654: synopsis should start with an upper-case
letter or digit.

> +(define-public emacs-dumb-jump
> +  (package
> +    (name "emacs-dumb-jump")
> +    (version "0.5.2")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append
> +             "https://github.com/jacktasia/dumb-jump/archive/v"
> +             version ".tar.gz"))
> +       (file-name (string-append name "-" version ".tar.gz"))

We've had issues with Github mutating their tarballs (these are
dynamically generated) before (breaking the hash). For this reason, I
now prefer to use git directly. I encourage others to do the same.

> +       (sha256
> +        (base32
> +         "07n0xjgpxjpf3vp9gxchkjpydyj0zm166930as0kwiwkhjlsirsf"))))
> +    (build-system emacs-build-system)
> +    (native-inputs
> +     `(("ert-runner" ,ert-runner)
> +       ("emacs-undercover" ,emacs-undercover)
> +       ("emacs-el-mock" ,emacs-el-mock)
> +       ("emacs-f" ,emacs-f)
> +       ("emacs-s" ,emacs-s)
> +       ("emacs-dash" ,emacs-dash)
> +       ("emacs-popup" ,emacs-popup)
> +       ("emacs-noflet" ,emacs-noflet)))
> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +         (add-after 'install 'check

Instead of "add-after 'install 'check", use "replace 'check"
instead. There is already a check phase for the emacs-build-system
(currently the same as for the gnu-build-system, but improved in the
patch set you picked the ert-runner fix from).

> +           (lambda _
> +             (zero? (system* "ert-runner")))))))
> +    (home-page "https://github.com/jacktasia/dumb-jump")
> +    (synopsis
> +     "Jump to definition for multiple languages without configuration")
> +    (description
> +     "Dumb Jump is an Emacs \"jump to definition\" package with support for
> +multiple programming languages that favors \"just working\" over speed or
> +accuracy.  This means minimal -- and ideally zero -- configuration with
> +absolutely no stored indexes (tags) or persistent background processes.  Dumb
> +Jump performs best with The Silver Searcher @command{ag} or ripgrep
> @comand{rg} installed.
     ^
The above typo caused the linter to say: "<unknown
location>: emacs-dumb-jump <at> 0.5.2: Texinfo markup in description is
invalid".

[...]

Thank you,

Maxim




Information forwarded to guix-patches <at> gnu.org:
bug#31036; Package guix-patches. (Sat, 14 Apr 2018 16:59:01 GMT) Full text and rfc822 format available.

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

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>,
 Sohom Bhattacharjee <soham.bhattacharjee15 <at> gmail.com>
Cc: 31036 <at> debbugs.gnu.org
Subject: Re: [bug#31036] [PATCH] gnu: Add Emacs dumb-jump
Date: Sat, 14 Apr 2018 22:27:58 +0530
Hello Sohom,

> I believe this is because the ert-runner wrapper script completely
> overrides the EMACSLOADPATH env. variable used to make the different
> dependencies visible to Emacs in our emacs-build-system.
>
> The fix to this particular bug is included in patch 0003 of a patch
> series waiting to be reviewed here:
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31018.

Let's revisit this patch after bug 31018 is done. I'm reviewing Maxim's
patches on bug 31018 now. So, hopefully, this won't be long.

Thanks.




Reply sent to Arun Isaac <arunisaac <at> systemreboot.net>:
You have taken responsibility. (Thu, 03 May 2018 18:05:02 GMT) Full text and rfc822 format available.

Notification sent to Sohom Bhattacharjee <soham.bhattacharjee15 <at> gmail.com>:
bug acknowledged by developer. (Thu, 03 May 2018 18:05:02 GMT) Full text and rfc822 format available.

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

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: Sohom Bhattacharjee <soham.bhattacharjee15 <at> gmail.com>
Cc: 31036-done <at> debbugs.gnu.org, Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Subject: Re: [bug#31036] [PATCH] gnu: Add Emacs dumb-jump
Date: Thu, 03 May 2018 23:34:04 +0530
I have pushed both packages emacs-noflet and emacs-dumb-jump.

You had used the MELPA tarball for emacs-noflet. I replaced that with
the upstream git repo.

As Maxim noted, emacs-dumb-jump tests freeze. I pushed for now, without
the tests. The missing "/bin/sh" problem was solved by setting the SHELL
environment variable.

I made many other small changes. Please look at the pushed commits in
master for more information.

Thanks!




Information forwarded to guix-patches <at> gnu.org:
bug#31036; Package guix-patches. (Sat, 05 May 2018 18:44:02 GMT) Full text and rfc822 format available.

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

From: Oleg Pykhalov <go.wigust <at> gmail.com>
To: 31036 <at> debbugs.gnu.org
Cc: soham.bhattacharjee15 <at> gmail.com, arunisaac <at> systemreboot.net
Subject: Re: bug#31036: [PATCH] gnu: Add Emacs dumb-jump
Date: Sat, 05 May 2018 21:42:57 +0300
[Message part 1 (text/plain, inline)]
Hello Arun,

Arun Isaac <arunisaac <at> systemreboot.net> writes:

> I have pushed both packages emacs-noflet and emacs-dumb-jump.

Apologies for not finding this bug report before.  We have duplicates of
‘emacs-dumb-jump’ in Guix package collection, because I've pushed 88
Emacs related patches 3 days ago including ‘emacs-dumb-jump’.

I probably should remove my ‘emacs-dumb-jump’.  Is it OK for you?

[…]

Oleg.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#31036; Package guix-patches. (Sun, 06 May 2018 09:09:01 GMT) Full text and rfc822 format available.

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

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: Oleg Pykhalov <go.wigust <at> gmail.com>
Cc: soham.bhattacharjee15 <at> gmail.com, 31036 <at> debbugs.gnu.org
Subject: Re: bug#31036: [PATCH] gnu: Add Emacs dumb-jump
Date: Sun, 06 May 2018 14:37:57 +0530
Oleg Pykhalov <go.wigust <at> gmail.com> writes:

>> I have pushed both packages emacs-noflet and emacs-dumb-jump.
>
> Apologies for not finding this bug report before.  We have duplicates of
> ‘emacs-dumb-jump’ in Guix package collection, because I've pushed 88
> Emacs related patches 3 days ago including ‘emacs-dumb-jump’.

Sorry for the collision too. But, it's not a big deal. This can be fixed
easily.

> I probably should remove my ‘emacs-dumb-jump’.  Is it OK for you?

Sure, please go ahead and remove one of the duplicate packages. I
believe the version I pushed is a little more complete with
native-inputs and tests (though I couldn't get them working properly).




Information forwarded to guix-patches <at> gnu.org:
bug#31036; Package guix-patches. (Mon, 07 May 2018 16:34:02 GMT) Full text and rfc822 format available.

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

From: Oleg Pykhalov <go.wigust <at> gmail.com>
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 31036 <at> debbugs.gnu.org, soham.bhattacharjee15 <at> gmail.com
Subject: Re: [bug#31036] [PATCH] gnu: Add Emacs dumb-jump
Date: Mon, 07 May 2018 19:33:42 +0300
[Message part 1 (text/plain, inline)]
Arun Isaac <arunisaac <at> systemreboot.net> writes:

> Oleg Pykhalov <go.wigust <at> gmail.com> writes:

[…]

>> I probably should remove my ‘emacs-dumb-jump’.  Is it OK for you?
>
> Sure, please go ahead and remove one of the duplicate packages. I
> believe the version I pushed is a little more complete with
> native-inputs and tests (though I couldn't get them working properly).

OK, I've reverted an older package recipe in
8c58640d179a26a1a4cde3d8920bd928edb84d1c

Oleg.
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 05 Jun 2018 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 320 days ago.

Previous Next


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