Bug#671676: emacsen-common: sample install file does not work properly

May 05th, 2012 - 03:50 pm ET by Santiago Vila | Report spam
Package: emacsen-common
Version: 1.4.23
Severity: important

While implementing the new emacs policy in gettext-el I noticed there
are at least two bugs in this line

ln -s ../../emacs/site-lisp/foo/$el .

from "sample-package-install-foo.gz".

One: If we are in ${elc_dir}, then we need "../../.." before entering
"emacs/site-lisp", not just "../..".

Second: Upgrading both an emacs flavour and foo-el results in such
"ln -s" trying to create a symlink where there is already one created,
making the package configure to fail. The simple fix is to use
"ln -sf" instead of "ln -s". See Bug#671353 for details.

To summarize, please change the above line to this:

ln -sf ../../../emacs/site-lisp/foo/$el .


Thanks.



To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Similar topics

Replies

#1 Rob Browning
May 14th, 2012 - 11:00 pm ET | Report spam
Santiago Vila writes:

While implementing the new emacs policy in gettext-el I noticed there
are at least two bugs in this line

ln -s ../../emacs/site-lisp/foo/$el .



Thanks for the report. Actually, I *finally* managed to release an
overhauled emacsen-common (2.0.0) that's intended to remove the
requirement that add-on packages depend on emacsen in some way, and it
should also fix the ../../ problem.

If you're willing, I'd be very interested to hear whether or not the new
policy and implementation will work for you.

Also note that another goal of the overhaul was to eliminate the need
for most, if not all, of the trivial foo-el packages. Since the
dependencies are no longer required, it should be possible to handle the
emacs-related bits for a larger package within the package itself.

See /usr/share/doc/emacsen-common/debian-emacs-policy.gz for the
details, ask me directly, or post to debian-emacsen.

Thanks
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search