Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18729 - findutils overwrites files from slocate
Summary: findutils overwrites files from slocate
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Aron Griffis (RETIRED)
URL:
Whiteboard:
Keywords:
: 18898 201346 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-04-04 01:10 UTC by Andreas Simon
Modified: 2007-12-05 12:34 UTC (History)
2 users (show)

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


Attachments
patch to remove locate and updatedb from findutils.ebuild (findutils.patch,429 bytes, patch)
2003-04-10 20:44 UTC, Mr. Bones. (RETIRED)
Details | Diff
attempt to exclude 'locate' only if USE=slang (findutils-4.1.7-r4.ebuild.patch,1.18 KB, patch)
2003-04-26 15:42 UTC, nega
Details | Diff
attempt to exclude 'locate' only if USE=slang #2 (findutils-4.1.7-r4.ebuild.patch,1.87 KB, patch)
2003-04-26 16:07 UTC, nega
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Simon 2003-04-04 01:10:36 UTC
The file /usr/bin/updatedb gets installed from both 
sys-apps/findutils-4.1.7-r3 and sys-apps/slocate-2.7. 
 
# qpkg -f `which updatedb` 
sys-apps/findutils * 
sys-apps/slocate * 
 
The same is true for locate and the manpages: 
# qpkg -f /usr/share/man/man1/updatedb.1.gz 
sys-apps/findutils * 
sys-apps/slocate * 
 
# qpkg -f /usr/bin/locate 
sys-apps/findutils * 
sys-apps/slocate * 
 
# qpkg -f /usr/share/man/man1/locate.1.gz 
sys-apps/findutils * 
sys-apps/slocate * 
 
Problems because of this: 
Unfortunately the two updatedb versions are not compatible. 
If the findutils overwrites updatedb from slocate then 
the cron script from slocate fails because findutils' updatedb 
doesn't understand the -f option (which is used in the cron script). 
Thus installing findutils after slocate breaks slocate. 
 
I just took a look. Mandrake and Red Hat's findutils doesn't install 
it's own updatedb and locate at all.
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-04-08 14:37:39 UTC
*** Bug 18898 has been marked as a duplicate of this bug. ***
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2003-04-10 20:44:41 UTC
Created attachment 10491 [details, diff]
patch to remove locate and updatedb from findutils.ebuild

Here's a patch to remove locate and updatedb from the findutils ebuild.

I'm not sure if this is the recommended way of doing this.  I was shooting for
the least amount of change to the package as delivered from upstream.
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2003-04-11 17:35:41 UTC
I've just committed findutils-4.1.7-r4 to fix this problem.  It's ~-masked at the moment because I'm paranoid, but it should be right.  Please give it a try.
Comment 4 Aron Griffis (RETIRED) gentoo-dev 2003-04-11 23:09:23 UTC
Marked stable on x86 and alpha in cvs, closing this bug.
Comment 5 nega 2003-04-26 15:42:13 UTC
Created attachment 11194 [details, diff]
attempt to exclude 'locate' only if USE=slang
Comment 6 nega 2003-04-26 15:44:45 UTC
Oops... about Attachment #11194 [details, diff]

I prefer this patch, as I dont want to be forced to use slang and slocate (and have them commented out of my /etc/make.profile)

Unfortunatly there will be confilcts when:
1.) USE has -slang
2.) slocate is active in /etc/make.profile

This could be solved by removing slocate from the profile and/or getting portage to understand USE when building the 'system' (ie: emerge system)
Comment 7 nega 2003-04-26 16:07:37 UTC
Created attachment 11195 [details, diff]
attempt to exclude 'locate' only if USE=slang #2

Oops... folded back in to the patch what was removed from
findutils-4.1.7-r3.ebuild
Comment 8 Aron Griffis (RETIRED) gentoo-dev 2003-04-27 15:52:04 UTC
I don't see what slang and slocate have to do with each other.  Could you please elaborate?
Comment 9 Mr. Bones. (RETIRED) gentoo-dev 2003-05-12 22:33:37 UTC
No comments for almost two weeks so I'm going to close this one again.

nega, you may re-open is you still think slang and slocate a related.
Comment 10 Michael Haubenwallner (RETIRED) gentoo-dev 2005-04-12 00:50:29 UTC
why not add a new (auto-)USE-Flag "slocate" ?
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-12-05 12:34:08 UTC
*** Bug 201346 has been marked as a duplicate of this bug. ***