Michael Homer wrote:
> On 5/10/08, Daniele Maccari <[EMAIL PROTECTED]> wrote:
>   
>> Ok, I finally solved the problem (if right or wrong, I don't know).
>> Attached you'll find the patch, please let me know.
>> This way files on which current user has no permissions should be
>> correctly managed, as well as  globbing (which sudo prevents from
>> working, since the command is first parsed by shell, and the permission
>> problem arises).
>>     
> If it's unpacking with bad permissions just fix them in the hook. The
> directories should be g+rx. I'm puzzled as to why it wouldn't compile
> as root then, though.
> -Michael
>   
Ok, playing a bit I found out that changing opt and usr directories' 
permission to a+rx apparently solved the problem.
In the recipe there was though a "chmod -R a+rX usr/share" command, 
which honestly I couldn't understand.
Now permissions look like these in the sources directory

drwxr-sr-x 2 macco sys 4096 2008-03-14 21:44 licenses
drwxr-sr-x 3 gobo  sys 4096 2008-05-10 10:03 opt
drwxr-sr-x 2 macco sys 4096 2008-03-14 21:44 readmes
-rwxr-xr-x 1 gobo  sys 7770 2008-05-10 10:05 rpmoffset
drwxr-sr-x 3 macco sys 4096 2008-03-14 21:44 RPMS
-rwxr-xr-x 1 macco sys 3925 2008-03-14 21:44 update
drwxr-sr-x 4 gobo  sys 4096 2008-05-10 10:04 usr

and Compile can easy install the program.

It remains the fact, as you pointed out, that in the previous case also 
compiling as root gave problems. Permissions was like these:

drwxr-sr-x 2 macco sys 4096 2008-03-14 21:44 licenses
drwx--S--- 3 gobo  sys 4096 2008-05-10 10:11 opt
drwxr-sr-x 2 macco sys 4096 2008-03-14 21:44 readmes
-rwxr-xr-x 1 gobo  sys 7770 2008-05-10 10:11 rpmoffset
drwxr-sr-x 3 macco sys 4096 2008-03-14 21:44 RPMS
-rwxr-xr-x 1 macco sys 3925 2008-03-14 21:44 update
drwx--S--- 4 gobo  sys 4096 2008-05-10 10:11 usr

Note the capitalized S for usr and opt group permissions. I can't really 
figure out the problem.
Anyway I think Lucas' observation is indeed valid.


_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to