Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 202796
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: MATSUU Takuto <matsuu@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Rafał Mużyło <galtgendo@o2.pl>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 202796 depends on: Show dependency tree
Bug 202796 blocks: 174469
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-12-19 15:39 0000
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 From Mamoru KOMACHI (RETIRED) 2007-12-19 19:10:20 0000 -------
Sorry I retired from development; matsuu will take care of it.

------- Comment #2 From MATSUU Takuto 2007-12-20 00:23:43 0000 -------
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 From Rafał Mużyło 2007-12-20 03:08:13 0000 -------
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 From Jakub Moc (RETIRED) 2007-12-20 12:00:55 0000 -------
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 From Ulrich Müller 2007-12-20 13:44:57 0000 -------
(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 From MATSUU Takuto 2007-12-20 15:50:58 0000 -------
(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 From Rafał Mużyło 2007-12-20 20:19:14 0000 -------
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 From Ulrich Müller 2007-12-20 21:50:10 0000 -------
(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 From Ulrich Müller 2007-12-20 22:43:41 0000 -------
(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 From Rafał Mużyło 2007-12-21 00:09:17 0000 -------
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 From Ulrich Müller 2007-12-21 07:53:44 0000 -------
Fixed in -r3.
(I made another revbump because of the new site-init file.)

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug