[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: fakeroot && directory permissions



Darren/Torin/Who Ever... wrote:

> This is a bit of an odd deal.  Note the following:
> {2}[0]/usr/local/scratch/darren/perl perv:-) ls -l perl-5.005.03/debian/tmp-doc/usr/man
> total 7
> drwxr-xr-x   2 torin    staff        2048 Apr 14 02:30 man1/
> drwxr-xr-x   2 torin    staff        5120 Apr 14 02:30 man3/
> 
> Then in the perl-5.005-doc.deb:
> {2}[0]/usr/local/scratch/darren/perl perv:-) dpkg-deb --contents perl-5.005-doc_5.005.03-1_all.deb | grep 'man[13]/$' 
> drwxrwxrwx root/root         0 1999-04-14 02:30 usr/man/man1/
> drwxrwxrwx root/root         0 1999-04-14 02:30 usr/man/man3/
> 
> What's this?

Maybe umask 022 as root and umask 0 as user?

> I just added the line:
> find debian/{tmp,tmp-base,tmp-suid,tmp-debug,tmp-doc} -type d -print0 | xargs --null chmod u=rwx,go=rx
> and permissions are much happier now.  It's still mysterious though.

This is what dh_fixperms is for (a debhelper program).


  Ulf


Reply to: