Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417123 - Please include a check for disallowing dev-libs/libusb{,x,-compat} usage in favour of virtual/libusb.
Summary: Please include a check for disallowing dev-libs/libusb{,x,-compat} usage in f...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Repoman (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 431026
  Show dependency tree
 
Reported: 2012-05-22 16:57 UTC by Samuli Suominen (RETIRED)
Modified: 2012-08-11 23:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for the issue (repoman.patch,370 bytes, patch)
2012-08-05 17:56 UTC, Samuli Suominen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Samuli Suominen (RETIRED) gentoo-dev 2012-05-22 16:57:58 UTC
1. Both virtual/libusb:0 and virtual/libusb:1 has multiple providers. 
2. I've finished porting the entire gentoo-x86 tree to virtual/libusb.

Please include a repoman warning for disallowing direct usage of:

dev-libs/libusb
dev-libs/libusbx
dev-libs/libusb-compat

Print a warning like:

"Disallowed usage of $1 detected. Change to virtual/libusb with correct SLOT."

Where $1 is one of those 3 mentioned pkgs.

Otherwise they will just creep back into Portage and the current layout gets broken again.
Comment 1 Peter Stuge 2012-05-28 04:48:23 UTC
Hi, I'm the libusb maintainer, currently working with recruitment quizzes. I obviously prefer libusb, but Gentoo is about choice so yeah I guess libusbx warrants virtual/libusb:1, even if there are no real differences between libusb{,x}.

(In reply to comment #0)
> 1. Both virtual/libusb:0 and virtual/libusb:1 has multiple providers.
> 2. I've finished porting the entire gentoo-x86 tree to virtual/libusb.

I'd just ask that the virtual/libusb:1 providers are swapped, to make libusb the default, but I'll file a separate bug about that.
Comment 2 Zac Medico gentoo-dev 2012-06-18 06:13:03 UTC
We've got a similar check for virtual/pkgconfig now:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=4cd3da7f48b74abfc48d36cf2c700c4eebfcbb40
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2012-07-28 07:09:03 UTC
As expected, the breakage is sneaking into tree already, bug 428402
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-08-05 17:56:45 UTC
Created attachment 320468 [details, diff]
Patch for the issue
Comment 6 Zac Medico gentoo-dev 2012-08-11 23:47:01 UTC
This is fixed in 2.1.11.10 and 2.2.0_alpha121.