From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Sohom Bhattacharjee <soham.bhattacharjee15@gmail.com>
Cc: 31036@debbugs.gnu.org
Subject: [bug#31036] [PATCH] gnu: Add Emacs dumb-jump
Date: Thu, 12 Apr 2018 23:52:05 -0400 [thread overview]
Message-ID: <87vacvoja2.fsf@gmail.com> (raw)
In-Reply-To: <20180412065009.GA7920@sam> (Sohom Bhattacharjee's message of "Thu, 12 Apr 2018 12:20:09 +0530")
Hello Sohom!
Sohom Bhattacharjee <soham.bhattacharjee15@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@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@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@0.5.2: Texinfo markup in description is
invalid".
[...]
Thank you,
Maxim
next prev parent reply other threads:[~2018-04-13 3:53 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-03 2:34 [bug#31036] [PATCH] gnu: Add Emacs dumb-jump Sohom Bhattacharjee
2018-04-03 17:34 ` Arun Isaac
[not found] ` <29a411b7.AL4AAAOBQdEAAAAAAAAAAAO0oB8AAAACwQwAAAAAAAW9WABaw7s5@mailjet.com>
2018-04-09 15:00 ` Sohom Bhattacharjee
2018-04-09 16:12 ` Maxim Cournoyer
2018-04-11 2:50 ` Sohom Bhattacharjee
2018-04-11 5:18 ` Arun Isaac
[not found] ` <f25b8830.AMUAAARKSBwAAAAAAAAAAAO0oB8AAAACwQwAAAAAAAW9WABazZq-@mailjet.com>
2018-04-12 6:50 ` Sohom Bhattacharjee
2018-04-13 3:52 ` Maxim Cournoyer [this message]
2018-05-03 18:04 ` bug#31036: " Arun Isaac
2018-05-05 18:42 ` [bug#31036] " Oleg Pykhalov
2018-05-06 9:07 ` Arun Isaac
2018-05-07 16:33 ` Oleg Pykhalov
2018-04-14 16:57 ` Arun Isaac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vacvoja2.fsf@gmail.com \
--to=maxim.cournoyer@gmail.com \
--cc=31036@debbugs.gnu.org \
--cc=soham.bhattacharjee15@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.