Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 922870

Summary: mate-base/mate-applets-1.26.1 unconditionally depends on net-wireless/wireless-tools
Product: Gentoo Linux Reporter: rajas <rajas>
Component: Current packagesAssignee: immolo <immoloism>
Status: CONFIRMED ---    
Severity: normal CC: immoloism, oz.tiram, proxy-maint, rajas
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: mate-applets-1.26.1-r1-wireless-tools-conditionally.patch

Description rajas 2024-01-24 20:53:44 UTC
The package mate-base/mate-applets-1.26.1 unconditionally depends on >=net-wireless/wireless-tools-28_pre9:0 even if the use flag "netlink" is set.

According to `configure.ac` the package either uses libnl OR iwlib/wireless-tools. So the dependency on net-wireless/wireless-tools should be depend on the "netlink" use flag.

Reproducible: Always

Steps to Reproduce:
1. USE='netlink' emerge -vp mate-applets
Actual Results:  
2. dependency "net-wireless/wireless-tools" gets pulled in
3. :-(

Expected Results:  
The package can be built without "net-wireless/wireless-tools" when using the "netlink" use flag.

https://github.com/mate-desktop/mate-applets/blob/d7165dfbde04c06b1c9c4040d1db7ac9db544118/configure.ac#L417

The line in the upstream source code stating there can only be libnl OR iwlib/wireless-tools.
Comment 1 rajas 2024-01-24 20:59:19 UTC
Created attachment 883061 [details, diff]
mate-applets-1.26.1-r1-wireless-tools-conditionally.patch

Patch to conditionally depend on net-wireless/wireless-tools
Comment 2 OzTiram 2024-01-25 18:45:42 UTC
I think this report and the patch make sense.
Thanks for suggesting the fix.
Comment 3 rajas 2024-01-26 17:51:43 UTC
Thank you! You are welcome.