Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509914 - app-admin/pass needs emacs support
Summary: app-admin/pass needs emacs support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: GNU Emacs project
URL: http://git.zx2c4.com/password-store/t...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-09 11:42 UTC by Jason A. Donenfeld
Modified: 2018-07-17 19:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
My best attempt at adding support to the ebuilds (pass-emacs.diff,3.01 KB, patch)
2014-05-09 11:44 UTC, Jason A. Donenfeld
Details | Diff
My best attempt at a site file (50pass-gentoo.el,491 bytes, text/plain)
2014-05-09 11:44 UTC, Jason A. Donenfeld
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jason A. Donenfeld gentoo-dev 2014-05-09 11:42:19 UTC
There is a nice emacs plugin in the contrib/ directory of pass.

password-store.el: http://git.zx2c4.com/password-store/tree/contrib/emacs/password-store.el
Cask: http://git.zx2c4.com/password-store/tree/contrib/emacs/Cask

I'm not sure the best way to go about incorporating this. It has dependencies, like "dash". But I don't know much about emacs.

Would somebody on the emacs team integrate this into my package?

Reproducible: Always
Comment 1 Jason A. Donenfeld gentoo-dev 2014-05-09 11:44:33 UTC
Created attachment 376618 [details, diff]
My best attempt at adding support to the ebuilds
Comment 2 Jason A. Donenfeld gentoo-dev 2014-05-09 11:44:55 UTC
Created attachment 376620 [details]
My best attempt at a site file
Comment 3 Jason A. Donenfeld gentoo-dev 2014-05-09 11:50:05 UTC
--- ./ChangeLog
+++ ./ChangeLog
@@ -4,0 +5,4 @@
+  09 May 2014; Jason A. Donenfeld <zx2c4@gentoo.org> +files/50pass-gentoo.el,
+  pass-1.6.1-r1.ebuild, pass-9999.ebuild:
+  Add initial emacs support.
+

Probably I did something wrong and should not have committed this. That was a mistake I'm guessing. Ah well, hm.
Comment 4 Ulrich Müller gentoo-dev 2014-05-09 19:46:34 UTC
(In reply to Jason A. Donenfeld from comment #1)
> Created attachment 376618 [details, diff] [details, diff]
> My best attempt at adding support to the ebuilds

Looks good.
(You could omit the "|| die" after elisp-install and elisp-site-file-install because these functions die by themselves. But that's very minor.)

(In reply to Jason A. Donenfeld from comment #2)
> Created attachment 376620 [details]
> My best attempt at a site file

Looks good, too.


However: I see that the ebuild that you've committed to the tree doesn't call elisp-compile any more. And if I add it to src_compile() then it will fail:

>>> Compiling source in /var/tmp/portage/app-admin/pass-1.6.1-r1/work/password-store-1.6.1 ...
 * Compiling GNU Emacs Elisp files ...

In toplevel form:
contrib/emacs/password-store.el:34:1:Error: Cannot open load file: f
 * elisp-compile: batch-byte-compile failed                              [ !! ]
 * ERROR: app-admin/pass-1.6.1-r1::gentoo failed (compile phase):
 *   (no error message)

Looks like it misses some dependencies called "f" and "s". Whatever that is.

So in summary, by omitting the elisp-compile step you've worked around the compile failure, but users will get the same errors now at runtime, when they first load password-store.el.

(In reply to Jason A. Donenfeld from comment #3)
> Probably I did something wrong and should not have committed this.

Yes, unfortunately. Your first versions of the ebuild and site file were close to perfect, but the problem is in password-store.el itself.
Comment 5 Jason A. Donenfeld gentoo-dev 2014-05-09 20:54:28 UTC
Hmm yea, I was afraid of that. On mine, it complained about the "dash" dependency. (Where does this come from? Googling reveals it's some kind of list library?) I've emailed Svend, the author, to chime in.
Comment 6 Larry the Git Cow gentoo-dev 2018-07-17 19:04:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d923862d3785cf08d5b2e6f5b67043f59e77ff1

commit 1d923862d3785cf08d5b2e6f5b67043f59e77ff1
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2018-07-17 19:04:05 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2018-07-17 19:04:05 +0000

    app-admin/pass: fix emacs dependencies
    
    Add dependencies for emacs and compile the emacs code.
    This drops arm x86 x86-macos keywords, see bug 661432
    
    Closes: https://bugs.gentoo.org/509914
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 app-admin/pass/pass-1.7.2-r1.ebuild | 78 +++++++++++++++++++++++++++++++++++++
 1 file changed, 78 insertions(+)