FS#7578 - Large Packages won't install

Attached to Project: Pacman
Opened by Slash Bunny (Slash) - Saturday, 07 July 2007, 18:15 GMT
Last edited by Dan McGee (toofishes) - Tuesday, 10 July 2007, 15:08 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To Dan McGee (toofishes)
Architecture All
Severity High
Priority Normal
Reported Version 3.0.5
Due in Version 3.1.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hello,

I recently adopted the nwn-diamond package on the AUR to clean it up
and update it to the latest version of Neverwinter Nights. However,
I'm running into problems installing the built package (both built
from the original PKGBUILD and the updated version by myself). The
built package is 2.5G and I'm guessing that has something to do with
it.

* My system & pacman are fully up to date.
* I can query the package for information using pacman -Qliip <package-file>
* pacman -A and pacman -U yield the same results
* Filesystem is XFS
* I moved the built package to a NFS ext3 drive with the same results
* Packages that are 150M or 200M or 300M install fine, but there is nothing else I have right now that is anywhere near the size of the NWN package to test against.

[root@vidar nwn-diamond]# ls -lah nwn-diamond-1.68-1-i686.pkg.tar.gz
-rw-r--r-- 1 root root 2.5G 2007-07-01 20:14 nwn-diamond-1.68-1-i686.pkg.tar.gz

[root@vidar nwn-diamond]# pacman -U nwn-diamond-1.68-1-i686.pkg.tar.gz
loading package data...

error: failed to add target 'nwn-diamond-1.68-1-i686.pkg.tar.gz'
(could not find or read file)

[root@vidar nwn-diamond]# pacman -U --debug nwn-diamond-1.68-1-i686.pkg.tar.gz
debug: config: new section 'options'
debug: config: logfile: /var/log/pacman.log
debug: config: holdpkg: pacman
debug: config: holdpkg: glibc
debug: config: new section 'current'
debug: registering database 'current'
debug: opening database 'current'
debug: opening database from path '/var/lib/pacman/current/'
debug: config: including /etc/pacman.d/current
debug: attempt to re-register the 'current' database, using existing
debug: adding new server to database 'current': protocol 'http', server 'mirrors.easynews.com', path '/linux/archlinux/current/os/i686'
debug: adding new server to database 'current': protocol 'ftp', server 'ftp.archlinux.org', path '/current/os/i686'
debug: adding new server to database 'current': protocol 'ftp', server 'ftp.ibiblio.org', path '/pub/linux/distributions/archlinux/current/os/i686'
debug: adding new server to database 'current': protocol 'ftp', server 'locke.suu.edu', path '/linux/dist/archlinux/current/os/i686'
debug: adding new server to database 'current': protocol 'ftp', server 'ftp.nethat.com', path '/pub/linux/archlinux/current/os/i686'
debug: adding new server to database 'current': protocol 'ftp', server 'mirror.cs.vt.edu', path '/pub/ArchLinux/current/os/i686'
debug: adding new server to database 'current': protocol 'ftp', server 'ftp-linux.cc.gatech.edu', path '/pub/linux/distributions/archlinux/current/os/i686'
debug: config: new section 'extra'
debug: registering database 'extra'
debug: opening database 'extra'
debug: opening database from path '/var/lib/pacman/extra/'
debug: config: including /etc/pacman.d/extra
debug: attempt to re-register the 'extra' database, using existing
debug: adding new server to database 'extra': protocol 'ftp', server 'ftp.ibiblio.org', path '/pub/linux/distributions/archlinux/extra/os/i686'
debug: adding new server to database 'extra': protocol 'ftp', server 'locke.suu.edu', path '/linux/dist/archlinux/extra/os/i686'
debug: adding new server to database 'extra': protocol 'ftp', server 'ftp.archlinux.org', path '/extra/os/i686'
debug: adding new server to database 'extra': protocol 'http', server 'mirrors.easynews.com', path '/linux/archlinux/extra/os/i686'
debug: adding new server to database 'extra': protocol 'ftp', server 'ftp-linux.cc.gatech.edu', path '/pub/linux/distributions/archlinux/extra/os/i686'
debug: adding new server to database 'extra': protocol 'ftp', server 'mirror.cs.vt.edu', path '/pub/ArchLinux/extra/os/i686'
debug: adding new server to database 'extra': protocol 'ftp', server 'ftp.nethat.com', path '/pub/linux/archlinux/extra/os/i686'
debug: config: new section 'community'
debug: registering database 'community'
debug: opening database 'community'
debug: opening database from path '/var/lib/pacman/community/'
debug: config: including /etc/pacman.d/community
debug: attempt to re-register the 'community' database, using existing
debug: adding new server to database 'community': protocol 'http', server 'mirrors.easynews.com', path '/linux/archlinux/community/os/i686'
debug: adding new server to database 'community': protocol 'ftp', server 'ftp.archlinux.org', path '/community/os/i686'
debug: adding new server to database 'community': protocol 'ftp', server 'ftp.ibiblio.org', path '/pub/linux/distributions/archlinux/community/os/i686'
debug: adding new server to database 'community': protocol 'ftp', server 'locke.suu.edu', path '/linux/dist/archlinux/community/os/i686'
debug: adding new server to database 'community': protocol 'ftp', server 'ftp.nethat.com', path '/pub/linux/archlinux/community/os/i686'
debug: adding new server to database 'community': protocol 'ftp', server 'mirror.cs.vt.edu', path '/pub/ArchLinux/community/os/i686'
debug: adding new server to database 'community': protocol 'ftp', server 'ftp-linux.cc.gatech.edu', path '/pub/linux/distributions/archlinux/community/os/i686'
debug: config: new section 'unstable'
debug: registering database 'unstable'
debug: opening database 'unstable'
debug: opening database from path '/var/lib/pacman/unstable/'
debug: config: including /etc/pacman.d/unstable
debug: attempt to re-register the 'unstable' database, using existing
debug: adding new server to database 'unstable': protocol 'http', server 'mirrors.easynews.com', path '/linux/archlinux/unstable/os/i686'
debug: adding new server to database 'unstable': protocol 'ftp', server 'ftp.archlinux.org', path '/unstable/os/i686'
debug: adding new server to database 'unstable': protocol 'ftp', server 'ftp.ibiblio.org', path '/pub/linux/distributions/archlinux/unstable/os/i686'
debug: adding new server to database 'unstable': protocol 'ftp', server 'locke.suu.edu', path '/linux/dist/archlinux/unstable/os/i686'
debug: adding new server to database 'unstable': protocol 'ftp', server 'ftp.nethat.com', path '/pub/linux/archlinux/unstable/os/i686'
debug: adding new server to database 'unstable': protocol 'ftp', server 'mirror.cs.vt.edu', path '/pub/ArchLinux/unstable/os/i686'
debug: adding new server to database 'unstable': protocol 'ftp', server 'ftp-linux.cc.gatech.edu', path '/pub/linux/distributions/archlinux/unstable/os/i686'
debug: registering database 'local'
debug: opening database 'local'
debug: opening database from path '/var/lib/pacman/local/'
loading package data...
debug: loading target 'nwn-diamond-1.68-1-i686.pkg.tar.gz'

error: failed to add target 'nwn-diamond-1.68-1-i686.pkg.tar.gz' (could not find or read file)

debug: unregistering database 'local'
debug: closing database 'local'
debug: removing DB current, 4 remaining...
debug: unregistering database 'current'
debug: closing database 'current'
debug: removing DB extra, 3 remaining...
debug: unregistering database 'extra'
debug: closing database 'extra'
debug: removing DB community, 2 remaining...
debug: unregistering database 'community'
debug: closing database 'community'
debug: removing DB unstable, 1 remaining...
debug: unregistering database 'unstable'
debug: closing database 'unstable'
This task depends upon

Closed by  Dan McGee (toofishes)
Tuesday, 10 July 2007, 15:08 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in GIT and CVS
Comment by Andrew Fyfe (space-m0nkey) - Sunday, 08 July 2007, 15:10 GMT
pacman (and maybe libarchive) probably needs -D_FILE_OFFSET_BITS=64 added to it's CFLAGS.
Comment by Dan McGee (toofishes) - Monday, 09 July 2007, 20:16 GMT
Anyone want to try this out (Andrew's suggestion)? Or make some sort of test package to do it with?
Comment by Dan McGee (toofishes) - Monday, 09 July 2007, 20:22 GMT
It actually looks like libarchive is already compiled with this, so we just need to enable it for pacman.
Comment by Dan McGee (toofishes) - Monday, 09 July 2007, 20:33 GMT
Should be fixed in GIT with the inclusion of the AC_SYS_LARGEFILE line in configure.ac. Sorry for spamming the comments here. :)
Comment by Slash Bunny (Slash) - Tuesday, 10 July 2007, 02:52 GMT
Thanks for your efforts. I attached a PKGBUILD to build a ~2G package for testing. I built pacman from git, but that gives the same error as the stable version of pacman. So perhaps the error lies elsewhere... (or I'm a dummy with git :p )
   PKGBUILD (0.4 KiB)
Comment by Dan McGee (toofishes) - Tuesday, 10 July 2007, 15:01 GMT
I had no problems doing it, and I realize why now- I haven't pushed that patch to the master branch yet. Sorry about that. This should be fixed in pacman 3.1 whenever that is released, and it is easily backportable.

Loading...