[pacman-dev] [PATCH] check if enough free space if available
hi http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=pacman;a=plain_commitdif...; example: $ sudo pacman -S openoffice.org looking for inter-conflicts... done. error: failed to prepare transaction (not enough space) :: 313.8 MB required, have 178.2 MB the real code is in util.c, there are two hooks in sync.c and add.c plus the error handling in pacman's sync.c udv / greetings, VMiklos -- Developer of Frugalware Linux, to make things frugal - http://frugalware.org
On Sun, Jul 09, 2006 at 12:44:33PM +0200, VMiklos <vmiklos@frugalware.org> wrote:
example: $ sudo pacman -S openoffice.org looking for inter-conflicts... done. error: failed to prepare transaction (not enough space) :: 313.8 MB required, have 178.2 MB
a few fixes to work properly with pacman -A/-U: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=pacman;a=plain_commitdif...; udv / greetings, VMiklos -- Developer of Frugalware Linux, to make things frugal - http://frugalware.org
On Sun, Jul 09, 2006 at 12:44:33PM +0200, VMiklos wrote:
hi
http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=pacman;a=plain_commitdif...;
example: $ sudo pacman -S openoffice.org looking for inter-conflicts... done. error: failed to prepare transaction (not enough space) :: 313.8 MB required, have 178.2 MB
the real code is in util.c, there are two hooks in sync.c and add.c plus the error handling in pacman's sync.c
udv / greetings, VMiklos
Hello, This made a little problem for me, I discoverd it while building a package in a chroot, If pacman was executing in a chroot, and this chroot is on a seperate partition, pacman will see free space as 0MB, I use a seperate partition to speed up a bit coz my root/home are encrypted... --- CUT (0)[root@nasreddine ../phoenix/core/pacman]# mr ==> Starting makepkg... ==> Attempting to mount chroot directories... ==> Successfully mounted chroot directories. ==> Updating the chroot environment :: Synchronizing package databases... phoenix [################] 100% 44K 569.9K/s 00:00:00 extra [################] 100% 166K 2182K/s 00:00:00 :: Starting local database upgrade... :: Starting local database upgrade... ==> Copying config files to chroot ==> Copying pacman's buildscript to chroot ==> Entering chroot environment ==> Making package: pacman 4.0.0-1-i686 (Tue Jul 18 08:17:06 CEST 2006) ==> Checking Runtime Dependencies... ==> Checking Buildtime Dependencies... ==> Missing Dependencies: ==> requires: doxygen requires: po4a ==> ==> Installing missing dependencies... resolving dependencies... done. looking for inter-conflicts... done. error: failed to prepare transaction (not enough space) :: 123.6 MB required, have 0.0 MB ==> ERROR: Failed to install missing dependencies. ==> Attempting to umount chroot directories... ==> Successfully umounted chroot directories. Makepkg exited with an error. (1)[root@nasreddine ../phoenix/core/pacman]# chroot /chroot/current/ [root@nasreddine /]# pacman -S doxygen resolving dependencies... done. looking for inter-conflicts... done. error: failed to prepare transaction (not enough space) :: 122.0 MB required, have 0.0 MB ---CUT Cheers, -- Wael Nasreddine http://wael.nasreddine.com PGP: 1024D/C8DD18A2 06F6 1622 4BC8 4CEB D724 DE12 5565 3945 C8DD 18A2 .: An infinite number of monkeys typing into GNU emacs, would never make a good program. (L. Torvalds 1995) :.
On Tue, Jul 18, 2006 at 08:28:20AM +0200, Wael Nasreddine wrote:
On Sun, Jul 09, 2006 at 12:44:33PM +0200, VMiklos wrote:
hi
http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=pacman;a=plain_commitdif...;
example: $ sudo pacman -S openoffice.org looking for inter-conflicts... done. error: failed to prepare transaction (not enough space) :: 313.8 MB required, have 178.2 MB
the real code is in util.c, there are two hooks in sync.c and add.c plus the error handling in pacman's sync.c
udv / greetings, VMiklos
Hello,
This made a little problem for me, I discoverd it while building a package in a chroot, If pacman was executing in a chroot, and this chroot is on a seperate partition, pacman will see free space as 0MB, I use a seperate partition to speed up a bit coz my root/home are encrypted...
--- CUT (0)[root@nasreddine ../phoenix/core/pacman]# mr ==> Starting makepkg... ==> Attempting to mount chroot directories... ==> Successfully mounted chroot directories. ==> Updating the chroot environment :: Synchronizing package databases... phoenix [################] 100% 44K 569.9K/s 00:00:00 extra [################] 100% 166K 2182K/s 00:00:00 :: Starting local database upgrade... :: Starting local database upgrade... ==> Copying config files to chroot ==> Copying pacman's buildscript to chroot ==> Entering chroot environment ==> Making package: pacman 4.0.0-1-i686 (Tue Jul 18 08:17:06 CEST 2006) ==> Checking Runtime Dependencies... ==> Checking Buildtime Dependencies...
==> Missing Dependencies: ==> requires: doxygen requires: po4a ==> ==> Installing missing dependencies... resolving dependencies... done. looking for inter-conflicts... done. error: failed to prepare transaction (not enough space) :: 123.6 MB required, have 0.0 MB
==> ERROR: Failed to install missing dependencies. ==> Attempting to umount chroot directories... ==> Successfully umounted chroot directories. Makepkg exited with an error. (1)[root@nasreddine ../phoenix/core/pacman]# chroot /chroot/current/ [root@nasreddine /]# pacman -S doxygen resolving dependencies... done. looking for inter-conflicts... done. error: failed to prepare transaction (not enough space) :: 122.0 MB required, have 0.0 MB
---CUT
Cheers,
The only way it doesn't fail is by copying /etc/fstab and /etc/mtab to the chroot, so in my case above, "cp /etc/{fstab,mtab} /chroot/current/etc" makes it work... -- Wael Nasreddine http://wael.nasreddine.com PGP: 1024D/C8DD18A2 06F6 1622 4BC8 4CEB D724 DE12 5565 3945 C8DD 18A2 .: An infinite number of monkeys typing into GNU emacs, would never make a good program. (L. Torvalds 1995) :.
On Fri, Jul 21, 2006 at 12:32:42PM +0200, Wael Nasreddine <wael@siemens-mobiles.org> wrote:
The only way it doesn't fail is by copying /etc/fstab and /etc/mtab to the chroot, so in my case above, "cp /etc/{fstab,mtab} /chroot/current/etc" makes it work...
thanks for the report, fixed in darcs: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=pacman;a=commit;h=200607... udv / greetings, VMiklos -- Developer of Frugalware Linux, to make things frugal - http://frugalware.org
participants (2)
-
VMiklos
-
Wael Nasreddine