Package: erlang-base-hipe
Version: 1:11.b.1.dfsg-1
Severity: normal

erlang-base(-hipe)'s post-installation and pre-removal scripts search
for services that depend on erlang by running dpkg -S individually on
each file in /etc/init.d.  While this is technically valid, it can
take a *very* long time on systems with many packages installed,
because it needs to check every package's contents against each
script; on my system, which has thousands of packages installed, it
takes almost half an hour per scan (210 /etc/init.d/* entries at 8
seconds apiece), so that a "simple" upgrade takes around an hour.

There are various ways to speed this up, but the simplest by far is to
scan for all the files in one go (which takes only about as long as scanning
for a single file):

    dpkg -S /etc/init.d/*

That still leaves you with a potentially large number of calls to
dpkg -s, but they don't take nearly so long (only about half a second
each on my system).

An even faster approaach would be to require all affected packages to
register their init scripts by, say, creating symlinks in some special
directory; you'd need to conflict with or special-case versions that
haven't been adjusted to do so yet, though.

At any rate, could you please speed up the search one way or another?

Thanks!

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages erlang-base-hipe depends on:
ii  libc6                        2.3.6.ds1-6 GNU C Library: Shared libraries
ii  libncurses5                  5.5-5       Shared libraries for terminal hand
ii  libssl0.9.8                  0.9.8c-3    SSL shared libraries
ii  unixodbc                     2.2.11-13   ODBC tools libraries

Versions of packages erlang-base-hipe recommends:
ii  erlang-nox               1:11.b.1.dfsg-1 Concurrent, real-time, distributed
ii  erlang-x11               1:11.b.1.dfsg-1 Concurrent, real-time, distributed

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to