tags 679591 patch thank you I have been able to reproduce the problem while installing emacs24.
Updating the emacsen-install file from the current template shipped with dh-make fixes the issue. Cheers, -Hilko
diff --git a/debian/emacsen-install b/debian/emacsen-install old mode 100644 new mode 100755 index a63618f..d57c857 --- a/debian/emacsen-install +++ b/debian/emacsen-install @@ -27,6 +27,7 @@ FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} +ELRELDIR=../../../emacs/site-lisp/${PACKAGE} # Install-info-altdir does not actually exist. # Maybe somebody will write it. @@ -39,8 +40,8 @@ fi install -m 755 -d ${ELCDIR} cd ${ELDIR} FILES=`echo *.el` -cp ${FILES} ${ELCDIR} cd ${ELCDIR} +ln -sf ${ELRELDIR}/*.el . cat << EOF > path.el (setq load-path (cons "." load-path)) @@ -48,9 +49,6 @@ cat << EOF > path.el (setq byte-compile-warnings nil) EOF ${FLAVOR} ${FLAGS} ${FILES} -rm -f *.el path.el -# Add back a symlink to the source file so that it is present on -# load-path. Closes: #311382 -ln -s ${ELDIR}/python-mode.el +rm -f path.el exit 0