[Bug 798290] New: 'zypper wp' doesn't find always packages that provides a program
https://bugzilla.novell.com/show_bug.cgi?id=798290 https://bugzilla.novell.com/show_bug.cgi?id=798290#c0 Summary: 'zypper wp' doesn't find always packages that provides a program Classification: openSUSE Product: openSUSE Factory Version: 12.3 Milestone 1 Platform: All OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: panaqolus@ewetel.net QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 zypper-1.8.7 (Factory) zypper-1.7.3 (12.2) I've noticed some strange behaviour of the 'what-provides' command of zypper. Example: 'zypper wp '/usr/bin/mc' should find what rpm package provides the command 'mc'. which mc /usr/bin/mc zypper wp '/usr/bin/mc' Loading repository data... Reading installed packages... No providers of '/usr/bin/mc' found. Now I discovered that some programs that have a symlink from /usr/bin to /bin are found by 'zypper wp' and some not. I can't find any regularity for this behaviour. Also most programs in /usr/bin are not found by 'zypper wp'. An exception is /usr/bin/python2.7. I'm not sure from where zypper gets the info for 'wp'. I believe it is stored in some metadata retrieved from the repos. So maybe it is not a zypper bug. But I have no clue where the infos about provides come from, perhaps a failure of some package maintainers? Reproducible: Always Steps to Reproduce: 1.ls -l /bin/mount lrwxrwxrwx 1 root root 14 16. Nov 19:09 /bin/mount -> /usr/bin/mount zypper wp '/usr/bin/mount' zypper wp '/bin/mount' 2.zypper wp '/usr/bin/mc' 3. lrwxrwxrwx 1 root root 11 Nov 20 18:48 /bin/su -> /usr/bin/su zypper wp /usr/bin/su zypper wp /bin/su Actual Results: 1. zypper wp '/usr/bin/mount' Loading repository data... Reading installed packages... No providers of '/usr/bin/mount' found. zypper wp '/bin/mount' Loading repository data... Reading installed packages... S | Name | Type | Version | Arch | Repository --+------------+---------+--------------+--------+--------------------- i | util-linux | package | 2.21.2-4.5.1 | x86_64 | openSUSE-12.2-Update v | util-linux | package | 2.21.2-4.5.1 | i586 | openSUSE-12.2-Update v | util-linux | package | 2.21.2-4.2.3 | x86_64 | openSUSE-12.2-Oss v | util-linux | package | 2.21.2-4.2.3 | i586 | openSUSE-12.2-Oss 2. zypper wp '/usr/bin/mc' Loading repository data... Reading installed packages... No providers of '/usr/bin/mc' found. 3. zypper wp /usr/bin/su Loading repository data... Reading installed packages... No providers of '/usr/bin/su' found. zypper wp /bin/su Loading repository data... Reading installed packages... S | Name | Type | Version | Arch | Repository --+-----------+---------+------------+--------+--------------------- i | coreutils | package | 8.16-5.8.1 | x86_64 | openSUSE-12.2-Update v | coreutils | package | 8.16-5.4.1 | x86_64 | openSUSE-12.2-Update v | coreutils | package | 8.16-5.8.1 | i586 | openSUSE-12.2-Update v | coreutils | package | 8.16-5.4.1 | i586 | openSUSE-12.2-Update v | coreutils | package | 8.16-5.1.2 | x86_64 | openSUSE-12.2-Oss v | coreutils | package | 8.16-5.1.2 | i586 | openSUSE-12.2-Oss Expected Results: "zypper wp /usr/bin/foo" should always find the rpm package that provide the command '/bin/foo', not only sometimes. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=798290
https://bugzilla.novell.com/show_bug.cgi?id=798290#c1
Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=798290
https://bugzilla.novell.com/show_bug.cgi?id=798290#c2
Michael Andres
https://bugzilla.novell.com/show_bug.cgi?id=798290
https://bugzilla.novell.com/show_bug.cgi?id=798290#c3
--- Comment #3 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com