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

Bug 134299

Summary: x11-misc/gtkdialog needs sometimes locate (sys-apps/slocate)
Product: Gentoo Linux Reporter: Sebastian Noack <sebastian.noack>
Component: New packagesAssignee: Desktop Misc. Team <desktop-misc>
Status: RESOLVED UPSTREAM    
Severity: trivial    
Priority: Low    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sebastian Noack 2006-05-25 02:55:43 UTC
Hi,

that you can do something like below in your gtkdialog program you need sys-apps/slocate. Please don't make gtkdialog dependent on slocate but add an einfo to the pkg_postinst procedure that you need it for certain purposes.

<button>
       <input file>/usr/share/GUIcompletion/button_save.xpm</input>
</button>

Btw, I don't see actually a reason why gtkdialog should need slocate but it complains if the locate-binary isn't there, if you refer to external files like above. Maybe someone could patch gtkdialog to not use locate or better; to is only if a corresponding useflag is set.

Regards
Sebastian Noack
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-05-27 05:08:22 UTC
Acording to the code (see src/stringman.c) gtkdialog needs locate to find a pixmap when not specified by full path (it first tries with access() call, if that fails, it tries to find the pixmap in /usr/share/icons/Bluecurve/16x16/stock/ and finally with locate). It's up to gtkdialog devs to fix that function. And yes: locate is optional.
Comment 2 Sebastian Noack 2006-05-28 04:37:05 UTC
Ok, I see. But could we implement nevertheless an slocate-useflag and patch gtkdialog this way that it use find instead of locate if it is enabled?

Best Regards
Sebastian Noack