Package: emacsen-common Version: 2.0.8 Severity: normal The problem is these lines in /usr/lib/emacsen-common/packages/install/emacsen-common:
(cd /usr/share/${FLAVOR}/site-lisp ln -s ../../emacs/site-lisp/debian-startup.el .) The use of ../.. assumes that the Emacs installation is in /usr. There's a useful setup for installing Emacs from source but integrating it with Debian, which I maintain: https://github.com/rrthomas/src-emacs-on-debian This package assumes that Emacs is installed from source in /usr/local (as is only sensible, don't want it trampling over alternatives in /usr/bin etc.!). However, this causes the above code to make broken links. The obvious fix is to make the relative path absolute (refer to /usr/share...), but I don't know whether that would cause other problems (I tested it, and it didn't seem to!). This fix would involve replacing the above two lines with: ln -s /usr/share/emacs/site-lisp/debian-startup.el /usr/share/${FLAVOR}/site-lisp/ There's no problem with the other relative symlink, just above the one I quote, to /etc/${FLAVOR}/site-start.d, as emacs-snapshot ensures that /etc, not /usr/local/etc, is used. -- System Information: Debian Release: stretch/sid APT prefers xenial-updates APT policy: (500, 'xenial-updates'), (500, 'xenial-security'), (500, 'xenial'), (100, 'xenial-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.4.0-38-generic (SMP w/4 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) -- no debconf information