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.