debfoster asks about non-orphaned package

Bug #2824 reported by Chris Moore
4
Affects Status Importance Assigned to Milestone
debfoster (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

debfoster asks about 'anjuta' before asking about 'gnome-devel', even though 'gnome-devel' depends on 'anjuta'.

I recently installed the meta-package "gnome-devel". That brought in a lot of other packages, include "anjuta", upon which it explicitly depends.

I ran "sudo debfoster" afterwards expected to be asked whether I wanted to keep "gnome-devel", since it was a new orphan package, but instead it asked me whether to keep "anjuta".

Usually debfoster only asks about 'orphaned' packages, ie. packages which are not required by any installed packages.

Here's a log of the session. Note that even though I told it to keep gnome-devel, it is trying to remove it, so it is clearly confused. It shouldn't have asked about anjuta at all. It should have asked about gnome-devel first, and when I said "y" to that, it would have known that anjuta had to be kept, since it is required by gnome-devel.

chris@chrislap:~$ sudo debfoster

anjuta is keeping the following 33 packages installed:
  anjuta-common devhelp devhelp-common doc-gnome-hig glade-common-2 glade-gnome-2 gnome-core-devel gnome-devel gtranslator
  libart-2.0-dev libaspell15c2 libatspi-dev libbonoboui2-dev libbz2-dev libcroco3-dev libdevhelp-1-0 libeel2-dev
  libgail-dev libgail-gnome-module libgamin-dev libgnome-desktop-dev libgnome-menu-dev libgnomecanvas2-dev
  libgnomeprint2.2-dev libgnomeprintui2.2-dev libgnomeui-dev libgsf-1-dev libgtksourceview-dev libnautilus-extension-dev
  libpanel-applet2-dev librsvg2-dev libstartup-notification0-dev libxslt1-dev
Keep anjuta? [Ynpsiuqx?], [H]elp: N

gnome-devel is keeping the following 31 packages installed:
  devhelp devhelp-common doc-gnome-hig glade-common-2 glade-gnome-2 gnome-core-devel gtranslator libart-2.0-dev
  libaspell15c2 libatspi-dev libbonoboui2-dev libbz2-dev libcroco3-dev libdevhelp-1-0 libeel2-dev libgail-dev
  libgail-gnome-module libgamin-dev libgnome-desktop-dev libgnome-menu-dev libgnomecanvas2-dev libgnomeprint2.2-dev
  libgnomeprintui2.2-dev libgnomeui-dev libgsf-1-dev libgtksourceview-dev libnautilus-extension-dev libpanel-applet2-dev
  librsvg2-dev libstartup-notification0-dev libxslt1-dev
Keep gnome-devel? [Ynpsiuqx?], [H]elp: Y
Keep anjuta-common? [Ynpsiuqx?], [H]elp: Y
Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  anjuta* gnome-devel*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 2195kB disk space will be freed.
Do you want to continue [Y/n]?

description: updated
summary: + debfoster asks about 'anjuta' before asking about 'gnome-devel', even
+ though 'gnome-devel' depends on 'anjuta'.
Changed in debfoster:
assignee: nobody → motu
Revision history for this message
Chris Moore (dooglus) wrote :

I also discovered that the behaviour depends on whether I tell it to keep anjuta or not. Here are 2 sessions. In the first I say N to anjuta. It goes on to ask about gnome-devel. In the second I (S)kip anjuta. It then doesn't ask about gnome-devel at all:

chris@chrislap:~$ sudo debfoster

anjuta is keeping the following 83 packages installed:
  anjuta-common autoconf automake1.7 autotools-dev cvs devhelp devhelp-common doc-gnome-hig docbook docbook-dsssl [...]
  libxrender-dev libxslt1-dev m4 sp x11proto-fixes-dev x11proto-render-dev x11proto-xinerama-dev
Keep anjuta? [Ynpsiuqx?], [H]elp: N

gnome-devel is keeping the following 80 packages installed:
  autoconf automake1.7 autotools-dev devhelp devhelp-common doc-gnome-hig docbook docbook-dsssl docbook-to-man docbook-xsl [...]
  x11proto-xinerama-dev
Keep gnome-devel? [Ynpsiuqx?], [H]elp: Interrupted

chris@chrislap:~$ sudo debfoster

anjuta is keeping the following 83 packages installed:
  anjuta-common autoconf automake1.7 autotools-dev cvs devhelp devhelp-common doc-gnome-hig docbook docbook-dsssl [...]
  libxrender-dev libxslt1-dev m4 sp x11proto-fixes-dev x11proto-render-dev x11proto-xinerama-dev
Keep anjuta? [Ynpsiuqx?], [H]elp: S
chris@chrislap:~$

Revision history for this message
Chris Moore (dooglus) wrote :

I think I see what's going on now.

gnome-devel and anjuta have a mutual dependancy:

  $ apt-cache show gnome-devel | grep anjuta
  Depends: [...], anjuta (>= 1.2.0) | diasce2, [...]

  $ apt-cache show anjuta | grep gnome-devel
  Recommends: [...], gnome-devel, [...]

Is that a bad thing to have?

Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

You can specify that debfoster should ignore Recommends:lines
sudo debfoster -o UseRecommends=no

This is not a bug, closing.

Changed in debfoster:
assignee: motu → nobody
status: New → Rejected
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.