Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#8592 - rlocate needs a "rlocate" group.

Attached to Project: Community Packages
Opened by Alessio Bolognino (mOLOk) - Saturday, 10 November 2007, 02:43 GMT
Last edited by Roman Kyrylych (Romashka) - Sunday, 11 November 2007, 13:36 GMT
Task Type Bug Report
Category
Status Closed
Assigned To Roman Kyrylych (Romashka)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Looks like rlocate needs a rlocate group. Actually it installs a "locate" group.

$> locate foocrap
locate: warning: Could not find the group: rlocate in the /etc/group file.
locate: fatal error: This is a result of the group missing or a corrupted group file.

Moreover, shouldn't rlocate stay in community/modules instead of community/daemons ? Not really important anyway...
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Sunday, 11 November 2007, 13:36 GMT
Reason for closing:  Fixed
Comment by Attila (attila) - Saturday, 10 November 2007, 09:39 GMT
The other possibility is to append this "--with-rlocate-group=locate" to the "./configure" string. If we will choose rlocate for the group name than i suggest to take the same id as for locate which have 21.
Comment by DaNiMoTh (DaNiMoTh) - Saturday, 10 November 2007, 10:29 GMT
I see that in rlocate-utils there is a patch called nogrp_nomod. At line 20 I see:

- chown $(root_uid):$(rlocate_group) $(DESTDIR)$(bindir)/$(rlocate)
- chown $(root_uid):$(rlocate_group) $(RLOCATE_DB_DIR)

Maybe that this patch isn't working ?

IMHO the best solution is remove this patch and add --with-rlocate-group=locate, as Attila said.
But we need to wait Romashka :D
Comment by Attila (attila) - Saturday, 10 November 2007, 12:57 GMT
I'm not the dev but i would say that this patch is only there for doing the same in the "rlocate.install" file because "chown root:" do not work as normal user in an fakeroot environment. If we want that the name locate has to be used i think we have to do both and to change rlocate.install. If this all is necessary is another question and the only advantage what i see is that i will be easier to switch between mlocate and rlocate without the necessary to add your users to the custom groups. If this all is necessary is another question.-)
Comment by Roman Kyrylych (Romashka) - Saturday, 10 November 2007, 14:18 GMT
Added --with-rlocate-group=locate
Comment by Alessio Bolognino (mOLOk) - Saturday, 10 November 2007, 16:52 GMT
$> ls -l /var/lib/rlocate/

-rw------- 1 root root 183 2007-11-10 17:35 module.cfg
-rw-r----- 1 root locate 17439426 2007-11-10 17:35 rlocate.db
-rw-r----- 1 root root 1603 2007-11-10 17:44 rlocate.db.diff

shouldn't rlocate.db.diff owned by root:locate ?

Typical issue:

$> touch ~/foocrap
$> sudo locate foocrap
/home/my_user/foocrap
$> locate foocrap
$>

as you can see this works for root only.


Comment by Attila (attila) - Saturday, 10 November 2007, 18:17 GMT
@Alesio Try this and take a second look at the directory
$ sudo updatedb
$ sudo rm /var/lib/rlocate/rlocate.db.diff
$ sudo updatedb
Comment by Alessio Bolognino (mOLOk) - Saturday, 10 November 2007, 18:23 GMT
OK, now it's fine :)
Probably it was an old file with old permissions.
So, you can ignore my last comment. Thanks Attila for pointing that out.
Comment by Alessio Bolognino (mOLOk) - Saturday, 10 November 2007, 18:27 GMT
$> ls -l /var/lib/rlocate/

-rw------- 1 root root 183 2007-11-10 17:35 module.cfg
-rw-r----- 1 root locate 17439426 2007-11-10 17:35 rlocate.db
-rw-r----- 1 root root 1603 2007-11-10 17:44 rlocate.db.diff

shouldn't rlocate.db.diff owned by root:locate ?

Typical issue:

$> touch ~/foocrap
$> sudo locate foocrap
/home/my_user/foocrap
$> locate foocrap
$>

as you can see this works for root only.


Comment by Alessio Bolognino (mOLOk) - Saturday, 10 November 2007, 18:30 GMT
wtf? I swear I didn't write it!
I refreshed the page and the new comment came out.
Ignore it ( - Saturday, 10 November 2007, 18:27 GMT )
Comment by Roman Kyrylych (Romashka) - Sunday, 11 November 2007, 10:53 GMT
I assume I can close it as "Fixed" now?

Loading...