FS#7764 - namcap wrongly complains about missing dependencies

Attached to Project: Arch Linux
Opened by Truls Becken (bogomipz) - Wednesday, 08 August 2007, 20:32 GMT
Last edited by Allan McRae (Allan) - Friday, 27 March 2009, 06:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jason Chu (jason)
Hugo Doria (hdoria)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08 Don't Panic
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

There are two scenarios where namcap 1.6.1 wrongly complains about missing dependencies:

1) A package has a dependency which namcap doesn't recognize. This makes it print a warning about an unnecessarily included dep, which is fine. This dep again depends on a package that is needed for the original package as well. Namcap prints an error about the indirectly included depend not being included. In other words, a situation that should lead to a warning, gives the warning *plus* an error.

Example where gnustep-back depends on gnustep-gui;

backbone-cvs E: Dependency detected and not included (gnustep-gui) from files ['opt/GNUstep/Library/Bundles/Colors.prefs/Colors', 'opt/GNUstep/Tools/open', 'opt/GNUstep/Tools/Terminal', 'opt/GNUstep/Library/Bundles/Defaults.prefs/Defaults', 'opt/GNUstep/Tools/TextEdit', 'opt/GNUstep/Library/Bundles/Font.prefs/Font', 'opt/GNUstep/Applications/Preferences.app/Preferences', 'opt/GNUstep/Applications/Terminal.app/Terminal', 'opt/GNUstep/Applications/TextEdit.app/TextEdit', 'opt/GNUstep/Tools/Preferences', 'opt/GNUstep/Library/Bundles/Keyboard.prefs/Keyboard', 'opt/GNUstep/Library/Bundles/Time.prefs/Time']
backbone-cvs W: Dependency included and not needed (gnustep-back)

2) A package depends on something listed in the provides array of another package. Namcap does not recognize that the dependency is met.

Example where gnustep-back depends on libgl, which is provided by nvidia-utils;

gnustep-back E: Dependency detected and not included (nvidia-utils) from files ['opt/GNUstep/Library/Bundles/libgnustep-cairo-012.bundle/libgnustep-cairo-012', 'opt/GNUstep/Library/Bundles/libgnustep-xlib-012.bundle/libgnustep-xlib-012', 'opt/GNUstep/Library/Bundles/libgnustep-art-012.bundle/libgnustep-art-012', 'opt/GNUstep/Tools/gpbs', 'opt/GNUstep/Tools/font_cacher']
This task depends upon

Closed by  Allan McRae (Allan)
Friday, 27 March 2009, 06:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  in git
Comment by Roman Kyrylych (Romashka) - Thursday, 09 August 2007, 06:58 GMT
This may be fixed in namcap 2.0 (http://projects.archlinux.org/git/namcap.git/)
Comment by Allan McRae (Allan) - Saturday, 15 December 2007, 07:59 GMT
Was it?
Comment by Roman Kyrylych (Romashka) - Saturday, 15 December 2007, 13:50 GMT
I think it was, but namcap 2.0 is not yet released.
Comment by Jason Chu (jason) - Wednesday, 19 December 2007, 18:54 GMT
Namcap 2.0 was released a while ago, it's in extra. I don't know that this has been fixed, but give it a shot.
Comment by Truls Becken (bogomipz) - Wednesday, 19 December 2007, 19:48 GMT
I just checked, and namcap 2.0 still has both problems.
Comment by Greg (dolby) - Sunday, 04 May 2008, 16:33 GMT
is this still an issue with namcap 2.1?
Comment by Truls Becken (bogomipz) - Sunday, 04 May 2008, 17:54 GMT
The 'provides' issue is gone :)
namcap no longer complains about a missing nvidia-utils dep when libgl is listed.

The 'indirection' issue still remains, though.
Comment by tuxce (tuxce) - Thursday, 27 November 2008, 21:58 GMT
Patch to include covered packages to the list of checked dependencies.
Comment by Allan McRae (Allan) - Friday, 27 March 2009, 06:46 GMT

Loading...