[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debs] Emacs + XFT



Hubert Chan <hubert@uhoreg.ca> writes:

> Looking at the emacs-snapshot-gtk package, it looks like the only
> reason the packages need to conflict is due to emacs-snapshot-gtk
> including:

>   /usr/share/emacs/22.0.50/etc/DOC-22.0.50.1 (shouldn't this be in
>     emacs-shapshot-common?)

The DOC file is strongly tied to the Emacs binary as dumped during the
build, so it's recommended to ship it with the binary itself.  But now
that I look into it, I see that the three files are identical:

$ find debian -name DOC-22.0.50.1 -exec sha1sum {} \;
3eaec2738316f10022b3ff14f3826728574bc9dc debian/emacs-snapshot/usr/share/emacs/22.0.50/etc/DOC-22.0.50.1
3eaec2738316f10022b3ff14f3826728574bc9dc debian/emacs-snapshot-gtk/usr/share/emacs/22.0.50/etc/DOC-22.0.50.1
3eaec2738316f10022b3ff14f3826728574bc9dc debian/emacs-snapshot-nox/usr/share/emacs/22.0.50/etc/DOC-22.0.50.1

... the file is just copied over from the -common directory when
installing the files in the packages, which is rather strange.
Unfortunately the reasons why the Emacs packages are laid out like
that are lost in the mists of time.

I guess I could move that to -common and save a few megs off the
combined size of the binary packages.

>   /usr/bin/emacs-snapshot

That would have to become (yet another) alternative instead of a plain
symlink.  Users would then have an 'emacs-snapshot' alternative as well
as the traditional 'emacs' alternative.

>   /usr/share/man/man1/emacs-snapshot.1.gz

Ditto, as a slave to the first alternative.

> Is this correct, or are there other reasons that they conflict?

Other small things: if both the -x and -gtk packages are installed then
the menus will have multiple 'Emacs Snapshot (X11)' entries; ditto for
the .desktop entries (which affect the GNOME/KDE menus). But to be
honest, I wouldn't mind redoing the menu handling from scratch, I
inherited it from the emacs21 package and didn't change things for
coherency, but I think it sucks.

And also, another reason is that the 'emacs' alternative would list -x,
-gtk and -nox as valid options, but that could be seen as a feature
rather than a bug.  (Right now it only lists one version from emacs21,
and one version from emacs-snapshot.)

So yeah, it involves some work... and now that it's halfway done, I
might as well just do it.  :-)

> P.S. Thanks for your work on the emacs-snapshot packages.

Thanks for using them,

-- 
  ,''`.
 : :' :        Romain Francoise <rfrancoise@debian.org>
 `. `'         http://people.debian.org/~rfrancoise/
   `-



Reply to: