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

Re: [Polyorb] Some troubles while compiling with pbuilder



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ludovic Brenta a écrit :
> xavier grave writes:
>> Ludovic Brenta a écrit :
>>> I have never used pbuilder and never encountered your problems
>>> but the obvious difference I can see between pbuilder and schroot
>>> is that pbuilder builds in /tmp; perhaps it is simply running out
>>> of space in that filesystem? (On my machine, /tmp is a tmpfs
>>> limited to half the amount of physical memory in the system and
>>> I think this is the default in Debian.)
>>>
>> I think you are right, building music123 don't need a lot of disk space,
>> but polyorb is another story.
>>
>> I was trying a second build and this time I get a warning (from gnome)
>> that /var was running out of space.
>>
>> I will extends /var from 2G to 4G (thanks to LVM) and do a new try.
> 
> Whoa, careful here. If you use the default settings, /tmp is a symlink
> to /var/tmp which is a tmpfs filesystem on its own and is not on a
> disk, and hence not under control of LVM; growing /var will not grow
> /var/tmp.  In other words, pbuilder does not use the disk.

The build take place in /var/cache/pbuilder/build (Table 8.1 of [1])
So the var extension did the trick.

> Also I read the doc on pbuilder and I am concerned that it builds the
> package using the root account.  Is there a way to configure pbuilder
> to avoid that? i.e. use the root account only to update the packages
> in the chroot but then use schroot and a normal user account for the
> actual build?
> 

I usually do two builds :
  - using a chrooted environment with a non root account
    the schroot env is build using [2]
  - do the build with pdebuild that use a sudo

I will try to improve the build command using 6. of [1] (BUILDUSERID and
BUILDUSERNAME)

[1]http://www.netfort.gr.jp/~dancer/software/pbuilder-doc/pbuilder-doc.html
[2]http://lists.debian.org/debian-ada/2010/02/msg00003.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkuXrjIACgkQVIZi0A5BZF7IMwCdFIrmX4Oi8JRG1usXaID1xbZ2
r1QAniM3r90iDqBLttxnGnxlSjxcoFZY
=ZghB
-----END PGP SIGNATURE-----


Reply to: