Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#516487: deborphan: --guess-section shouldn't list libpam-unix2

12 views
Skip to first unread message

Mark Sheppard

unread,
Feb 21, 2009, 3:50:09 PM2/21/09
to
Package: deborphan
Version: 1.7.27
Severity: normal

If you run "deborphan --guess-section" it lists "libpam-unix2". If
you then remove that package Bad Things happen and no-one can log in,
as I just discovered on a remote server! So please can deborphan be
made to not list that particular package?

Cheers,
Mark.

-- System Information:
Debian Release: 5.0
Architecture: i386 (i686)

Kernel: Linux 2.6.18-6-686-bigmem (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/bash

Versions of packages deborphan depends on:
ii libc6 2.7-18 GNU C Library: Shared libraries

Versions of packages deborphan recommends:
ii apt 0.7.20.2 Advanced front-end for dpkg
ii dialog 1.1-20080316-1 Displays user-friendly dialog boxe
ii gettext-base 0.17-4 GNU Internationalization utilities

deborphan suggests no packages.

-- no debconf information

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Carsten Hey

unread,
Feb 21, 2009, 5:50:09 PM2/21/09
to
Hi,

thank you for your bug report.

On Sat, Feb 21, 2009 at 08:35:26PM +0000, Mark Sheppard wrote:
> If you run "deborphan --guess-section" it lists "libpam-unix2". If
> you then remove that package Bad Things happen and no-one can log in,
> as I just discovered on a remote server! So please can deborphan be
> made to not list that particular package?

I'm sorry to hear that but I don't think this will be changed.

deborphan(1):
| This method is in no way perfect or even reliable, so beware when
| using this!

This part of the man page is very clear.

People who use --guess-* should be aware that it might find packages
which are important for them, this is why it is called "guess" and not
activated by default. Especially --guess-sections is correct when it
shows you a possible library packages from a different section since
that is what you asked for when you used --guess-sections.

If I would exclude libpam* from --guess-section and add an option
--guess-pam then --guess-all (which I expect to be used more often than
--guess-section) would still show libpam*. Even when I would not add
--guess-pam, which would be wrong, at least --all-packages would still
show libpam*.

I could also exclude libpam* from being displayed at all, but then
people would complain that deborphan --weired-option does not list old,
unused pam modules anymore. Even when I would implement such
a hardcoded keep list, where should I draw the line? On my router
"deborphan -a -n" detects amongst other packages vlan, ifupdown,
dhcp-client, openssh-server, wireless-tools and udev (it would also
report the kernel if it wouldn't be in the firmware instead of the file
system). Should all these packages be part of this hardcoded keep list
since removing any of them can lead to "bad things"?

To summarize this: You got what you asked for and I don't think this is
a bug nor do I think that there is a sane way to prevent displaying
possible important packages (at least unless you remove all --guess
options).

Feel free to suggest a sane solution to fix this issue. :)

I currently don't think this is a bug at all, thus I will close this
report when I do not receive an answer to this mail.


Regards
Carsten

Carsten Hey

unread,
Feb 22, 2009, 10:50:08 AM2/22/09
to
On Sat, Feb 21, 2009 at 11:39:27PM +0100, Carsten Hey wrote:
> Especially --guess-sections is correct when it shows you a possible
> library packages from a different section since that is what you asked
> for when you used --guess-sections.

What could be done, is removing --guess-section from --guess-all and
maybe document that --guess-section is likely to show false positives.
Then --guess-dev would need to imply --libdevel since --guess-section is
the reason why --guess-all without using --libdevel finds development
libraries although they are not in section libs. This could also be
a way to deprecate --libdevel and get rid of this option in the
longterm. I need to think about this.

Still not a non-wishlist bug, thus setting severity to wishlist.

Mark Sheppard

unread,
Feb 22, 2009, 4:10:09 PM2/22/09
to
On 2009-02-22 (Sunday) at 16:38:39 +0100, Carsten Hey wrote:
> On Sat, Feb 21, 2009 at 11:39:27PM +0100, Carsten Hey wrote:
> What could be done, is removing --guess-section from --guess-all and
> maybe document that --guess-section is likely to show false positives.
> Then --guess-dev would need to imply --libdevel since --guess-section is
> the reason why --guess-all without using --libdevel finds development
> libraries although they are not in section libs. This could also be
> a way to deprecate --libdevel and get rid of this option in the
> longterm. I need to think about this.

That sounds good to me. I was actually using --guess-all when this
happened, but afterwards discovered that it was --guess-section which
was causing libpam-unix2 to be listed.

Cheers,
Mark.

0 new messages