Package: yasnippet
Version: 0.9.0~beta1-4
Severity: grave
Tags: patch
Dear Maintainer,
while upgrading emacs24 from 24.5+1-1 to 24.5+1-2, I got the following
error:
,----
| [...]
| Install yasnippet for emacs24
| install/yasnippet: Handling install of emacsen flavor emacs24
| install/yasnippet: byte-compiling for emacs24
| cp: cannot create symbolic link ‘./yasnippet.el’ to
| ‘../../../emacs/site-lisp/yasnippet/yasnippet.el’: File exists
| ERROR: install script from yasnippet package failed
| dpkg: error while cleaning up:
| subprocess installed post-installation script returned error exit status 1
| Errors were encountered while processing:
| /var/cache/apt/archives/emacs24_24.5+1-2_amd64.deb
`----
After fixing this by adding -f to the cp call, I noticed that gzip asks
stupid questions about overwriting the Install.log if it already exists,
so I fixed that too.
Cheers,
-Hilko
--- yasnippet-0.9.0~beta1/debian/emacsen-install.orig
+++ yasnippet-0.9.0~beta1/debian/emacsen-install
@@ -27,12 +27,11 @@
# Create symlinks to the .el files (see section 6E in debian-emacs
# polcy). This makes complation easy, and also allows find-function
# and find-library to work properly.
-(cd ${elc_dir} && cp -s ../../../emacs/site-lisp/yasnippet/*.el .)
+(cd ${elc_dir} && cp -sf ../../../emacs/site-lisp/yasnippet/*.el .)
# Byte compile them
(cd ${elc_dir}
set +e
+ rm -f Install.log
${FLAVOR} ${byte_compile_options} *.el > Install.log 2>&1
if test $? -ne 0
then
Diff finished. Mon Sep 21 13:50:21 2015