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

Bug 291013

Summary: slocate ebuild for prefix
Product: Gentoo/Alt Reporter: Stuart Shelton <srcshelton>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: IRIX   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 338380    
Bug Blocks:    
Attachments: slocate-2.7-r8 ebuild

Description Stuart Shelton 2009-10-29 13:54:25 UTC
Rationale:

IRIX doesn't include an (s)locate tool as standard, and the only in-tree options are masked due to being non-prefix aware.

Furthermore, the slocate-3.x releases all rely on GNU libc's fts implementation whereas the 2.7 release includes its own fts with the source.

For this reason, I fixed-up slocate-2.7-r8 to build on IRIX (and, presumably, all other prefix platforms).  I thought this was better than porting slocate-2.7's fts implementation to a 3.x release, potentially introducing any number of unknown vulnerabilities/bugs.

For your consideration, please find attached the slocate-2.7-r8 ebuild and patches.
Comment 1 Stuart Shelton 2009-10-29 13:56:15 UTC
Created attachment 208638 [details]
slocate-2.7-r8 ebuild


In root's crontab, I have:

[ -x /opt/gentoo/usr/bin/updatedb ] && /opt/gentoo/usr/bin/updatedb -c -u && chmod 660 /opt/gentoo/var/lib/slocate/slocate.db
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-12-18 17:15:00 UTC
slocate is out of tree, use mlocate