Rob Browning <r...@defaultvalue.org> writes:

> Sébastien Villemot <sebast...@debian.org> writes:
>
>> - devscripts-el/wheezy is configured: it crashes, because it cannot find
>>   mcharset.elc (which belongs to apel)
>
> So this fails in the devscripts-el postinst, perhaps?

Oh, and if you want to poke around yourself, here's what (iirc) is
supposed to happen.  The emacs-package-install script, called from
devscripts-el's postinst, is supposed to build a list of all of
devscript-el's dependencies, and then run their emacsen install scripts
first, in the "correct" order.

You can see that in emacs-package-install, around line 70:

  if(!$invoked_by_old_pkg)
  {
    foreach my $pkg (@pkgs_to_handle)
    {
      foreach my $flavor (@installed_flavors)
      {
        print "Install $pkg for $flavor\n";
        if(-e $script && (system($script, $flavor) != 0))
        {
          print STDERR "ERROR: install script from $pkg package failed\n";
          exit(1);
        }
      }
    }
  }

Of course if devscripts-el is an "old pkg", then this isn't the correct
block (haven't checked).

If it's easy, you could probably add some print STDERR statements in
there, to see if it's actually running apel's install script.

(again, iirc) emacs-package-install should be building a candidate pool
of "installed" packages from (roughly) these bits:

  all_packages: /usr/lib/emacsen-common/packages/install/*
  new_format_packages: /usr/lib/emacsen-common/packages/compat/*
  installed_new_format_packages: /var/lib/emacsen-common/state/installed/*

and its final candidate pool is:

  (all_packages - new_format_packages) + new_format_installed

apel should be in that pool (when running devscripts-el's postinst).

That pool is then sorted (via tsort unfortunately, b/c dpkg doesn't
(yet) let you hand it a package list to sort) to provide an ordered list
of packages for the "Install $pkg for $flavor\n" step above.

I think that's roughly right, but I may not be remembering everything
precisely.

Also note that this code is quite new (at least in emacsen-common time),
and I may well have made mistakes.

Thanks again.
-- 
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 debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to