You are not logged in.

#1 2007-10-26 17:02:15

matersci
Member
From: Hellas
Registered: 2006-01-19
Posts: 167

Problem (bug?) with makepkg and python

I am having some problems with a pkgbuild which have to use a python script.

When I makepkg the pkgbuild, I am entering fakeroot environment and the pkgbuild starts making the directories under $startdir/pkg/. After some steps, the pkgbuild executes a python script that creates a folder in /usr/lib/ and put some files in there. The problem is that the script tries to put the files in /usr/lib/ and not in $startdir/pkg/usr/lib/, although it is in fakeroot environment.


Is this a makepkg bug?
If not, how can I execute the script under fakeroot environment?

Offline

#2 2007-10-27 05:42:41

gradgrind
Member
From: Germany
Registered: 2005-10-06
Posts: 921

Re: Problem (bug?) with makepkg and python

fakeroot is not the same as - or even similar to - chroot. The only thing fakeroot does is to pretend (as far as it can) that you are running as the 'root' user. If you want the python script to put files in $startdir/pkg/blah/blah you must tell it to do so (somehow). The problem is with the script and not with makepkg.

Offline

Board footer

Powered by FluxBB