Shyamal Prasad <[email protected]> writes:
> Well, I can totally reproduce it now. Start with a wheezy (stable)
> system with emacs (23) installed, upgrade to jessie (testing), and then
> install the haskell-mode. It will not byte compile to the emacs23
> flavor.
>
> Now, if I remove emacsen-common and reinstall, everything works.
>
> I still don't understand what is going on, given that emacsen-common is
> the same version in wheezy and jessie. I'll keep poking around as I find
> time...
Something odd is definitely happening.
I don't know if it's related, but I noticed that notmuch-emacs wasn't
installing correctly on my system, and figured out it was because
/var/lib/emacsen-common/state/package/installed/emacsen-common was
missing. If you get a chance to check, I wonder if that might be the
case for you too.
So far I haven't figured out how that could happen, and still leave dpkg
thinking everything's fine. If you look in the emacsen-common postinst,
you'll see that it does this right at the end:
/usr/lib/emacsen-common/emacs-package-install --postinst emacsen-common
And then in the --postinst case, emacs-package-install does this
unconditionally, right at the end:
ex('touch', "$::installed_package_state_dir/$pkg");
Another mystery -- on my system at that time
/var/lib/emacsen-common/installed-flavors still existed, but was empty.
Assuming the postinst fired at all, I don't know how that file could
still exist (and dpkg be happy).
>From the top of the postinst (right before the call mentioned above):
# Convert installed-flavors to flavor/installed/*.
if test -e /var/lib/emacsen-common/installed-flavors
then
for flavor in $(cat /var/lib/emacsen-common/installed-flavors)
do
touch "/var/lib/emacsen-common/state/flavor/installed/$flavor"
done
rm -f /var/lib/emacsen-common/installed-flavors
fi
If something went wrong there, preventing the rm, I'd expect dpkg to
think that emacsen-common wasn't fully installed.
Thanks for the help
--
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]