Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 202796 - app-text/migemo: make emacs dependency optional
Summary: app-text/migemo: make emacs dependency optional
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: MATSUU Takuto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 174469
  Show dependency tree
 
Reported: 2007-12-19 15:39 UTC by Rafał Mużyło
Modified: 2007-12-21 07:53 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafał Mużyło 2007-12-19 15:39:33 UTC
I don't know if it's possible, but could emacs be made an useflag-controlled dependency ?
I know nothing about ruby, but it seems that this script should work without emacs. I would probably require some work with the Makefile, but I think it would not loose any functionality outside of emacs.
Correct me, if I'm wrong.
Comment 1 Mamoru KOMACHI (RETIRED) gentoo-dev 2007-12-19 19:10:20 UTC
Sorry I retired from development; matsuu will take care of it.
Comment 2 MATSUU Takuto (RETIRED) gentoo-dev 2007-12-20 00:23:43 UTC
its not optional. migemo depends on emacs.

$ tar zxvf migemo-0.40.tar.gz
$ cd migemo-0.40
$ ./configure --help | grep emacs
  --with-emacs=EMACS      compile with EMACS [EMACS=emacs, xemacs...]
  --with-lispdir=DIR      emacs lisp files go to DIR [guessed]
$ ./configure --without-emacs
(snip)
configure: error: emacs is not available

if you want not to use emacs, try app-text/cmigemo.

Comment 3 Rafał Mużyło 2007-12-20 03:08:13 UTC
I was not asking "does it build with current Makefile without emacs ?".
I was just saying: "it looks like the program (meaning ruby scripts) doesn't need emacs, it's only needed for the .el file, that adds extra functionality in emacs"
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-12-20 12:00:55 UTC
Erm, the -r2 ebuild completely doesn't fix the issue here, since it:

1/ still inherits elisp, which depends on virtual/emacs unconditionally
2/ still DEPENDs on app-emacs/apel unconditionally, which, erm guess what, pulls in virtual/emacs once again
3/ does nothing with the Makefile, so it will fail without emacs anyway

Either WONTFIX this bug or fix it properly please.
Comment 5 Ulrich Müller gentoo-dev 2007-12-20 13:44:57 UTC
(In reply to comment #4)
> Erm, the -r2 ebuild completely doesn't fix the issue here, since it:
> 
> 1/ still inherits elisp, which depends on virtual/emacs unconditionally
> 2/ still DEPENDs on app-emacs/apel unconditionally, which, erm guess what,
> pulls in virtual/emacs once again
> 3/ does nothing with the Makefile, so it will fail without emacs anyway

I couldn't have said this better. ;)

@matsuu: If you don't mind, then the Emacs team will prepare a patch.

We have migemo on our to-do list anyway, since it does nasty things to Emacs' search functions.
See: <http://overlays.gentoo.org/proj/emacs/wiki/sitefile%20problems>
Comment 6 MATSUU Takuto (RETIRED) gentoo-dev 2007-12-20 15:50:58 UTC
(In reply to comment #5)
> I couldn't have said this better. ;)
> 
> @matsuu: If you don't mind, then the Emacs team will prepare a patch.

thanks, please.
Comment 7 Rafał Mużyło 2007-12-20 20:19:14 UTC
I have a semi-related question. Well, it more a case for the forum, but maybe somebody answers it here.
One of the reasons I've got migemo installed is w3m. For me it's in many aspects superior to lynx (at least it was last time I checked).
I've got a little problem with w3m, though.
When in line-editing mode (i.e. when entering URL), only Backspace key works like expected, Home, End, Delete do not. Is it supposed to be this way or is there a setting in w3m/bash/whatever that I'm missing ?
Comment 8 Ulrich Müller gentoo-dev 2007-12-20 21:50:10 UTC
(In reply to comment #7)
> I have a semi-related question. Well, it more a case for the forum, but
> maybe somebody answers it here.

Indeed, please take such questions to the forums. Bugzilla is not a helpdesk. I'm answering it now, exceptionally.

> When in line-editing mode (i.e. when entering URL), only Backspace key works
> like expected, Home, End, Delete do not. Is it supposed to be this way or is
> there a setting in w3m/bash/whatever that I'm missing ?

It works for me, i.e. Home and End are bound to move-{beginning,end}-of-line, Delete is delete-backward-char.
Comment 9 Ulrich Müller gentoo-dev 2007-12-20 22:43:41 UTC
(In reply to comment #6)
> > @matsuu: If you don't mind, then the Emacs team will prepare a patch.
> 
> thanks, please.

Yeah, I should not make such promises without having looked at the build system of the package before. ;-)

Emacs is deeply entwined there and pulling it is probably not so easy. It would require patching of acinclude.m4 and Makefile.am at least. This looks more like an issue for upstream to me.

Can we please remove -r2 again? IMHO, we don't gain anything by not having Emacs in RDEPEND if it is needed in DEPEND anyway.
Comment 10 Rafał Mużyło 2007-12-21 00:09:17 UTC
Regarding comment #8:
I don't have .inputrc, so that's probably the reason it does not work for me.
Maybe a note should be put on that in w3m ebuild ?
Back on topic:
as far as I can tell emacs is required only for .el file, the rest are ruby scripts (and a shell script) that don't seem to need emacs.
In Makefile.am only direct reference to lisp file is 
lisp_LISP    =  migemo.el
the rest of that file are _DATA and _SCRIPTS sections.
In configure.in
AM_PATH_LISPDIR
unless there's some direct emacs reference in the scripts, removing those two should allow to drop both emacs and apel.
Comment 11 Ulrich Müller gentoo-dev 2007-12-21 07:53:44 UTC
Fixed in -r3.
(I made another revbump because of the new site-init file.)