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

Re: Preferred way to do a chown on package's dirs ?



Olivier Berger <olivier.berger@it-sudparis.eu> writes:

> May it also be done in the debian/rules ?
> For instance something like :
> install: build
> 	dh_testdir
> 	dh_testroot
> 	dh_clean -k
> 	dh_installdirs
> 	dh_install
> 	install -m 750 -o www-data -g www-data -d debian/whatever_package/var/lib/mypackage/somedir
> or
> 	chown -R www-data:www-data debian/whatever_package/var/lib/mypackage/somedir

> When doing so, it seems that dpk-buildpackage -rfakeroot won't respect
> that user definition (btw, that user may not exist on the machine the
> package is build from, right ?).

I'm surprised that this doesn't work.  Shouldn't fakeroot handle this case
and do the right thing?  Or am I confused about what fakeroot is capable
of?

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>


Reply to: