Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144754 - tbz2tool unable to handle files bigger than 2 gigs
Summary: tbz2tool unable to handle files bigger than 2 gigs
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2006-08-22 07:55 UTC by thelinuxpulse
Modified: 2006-08-23 10:58 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thelinuxpulse 2006-08-22 07:55:11 UTC
When using quickpkg on quake4-data and ut2004-data quickpkg fails.  quickpkg is able to build the bin.tar.bz2 file to sizes above 2 gigs but when the final package is about to be made quickpkg errors out: 

Tue Aug 22 [10:17 AM] # quickpkg quake4-data
 * Building package for quake4-data-1.0.2147.12 ...
 ./opt/quake4/q4base/pak010.pk4
 ./opt/quake4/q4base/pak011.pk4
 ./opt/quake4/q4base/pak012.pk4
 ./opt/quake4/q4base/zpak_english.pk4
 ./opt/quake4/q4base/zpak_french.pk4
 ./opt/quake4/q4base/zpak_italian.pk4
 ./opt/quake4/q4base/zpak_spanish.pk4
 ./opt/quake4/q4base/pak001.pk4
 ./opt/quake4/q4base/pak002.pk4
 ./opt/quake4/q4base/pak003.pk4
 ./opt/quake4/q4base/pak004.pk4
 ./opt/quake4/q4base/pak005.pk4
 ./opt/quake4/q4base/pak006.pk4
 ./opt/quake4/q4base/pak007.pk4
 ./opt/quake4/q4base/pak008.pk4
 ./opt/quake4/q4base/pak009.pk4
tbz2tool: /var/tmp/binpkgs/quake4-data-1.0.2147.12/bin.tar.bz2 doesn't exist

mv cannot stat `/var/tmp/binpkgs/quake4-data-1.0.2147.12/quake4-data-1.0.2147.12.tbz2': No such file or directory [!!]

  * Packages now in /usr/portage/packages:
  * quake4-data-1.0.2147.12: not created

This is not an error referring just to data game files because doom3-data which is 1.5 gigs completes fine. 

I am able to move files larger than 2 gigs without any problems. Freespace on the partition is 10 gigs. I am using portage-utils 1.20, kernel 2.6.17.7, xfs filesystem, arch x86
Comment 1 SpanKY gentoo-dev 2006-08-22 19:54:02 UTC
should be easy to fix ... in portage ebuild, inherit flag-o-matic and run append-lfs-flags before compiling tbz2tool.c
Comment 2 thelinuxpulse 2006-08-23 09:51:01 UTC
(In reply to comment #1)
> should be easy to fix ... in portage ebuild, inherit flag-o-matic and run
> append-lfs-flags before compiling tbz2tool.c
> 

cd /usr/portage/sys-apps/portage

vi portage-2.1-r2.ebuild

inherit toolchain-funcs eutils flag-o-matic

......

src_compile() {
        cd "${S}"/src
        $(append-lfs-flags) $(tc-getCC) ${CFLAGS} ${LDFLAGS} -o tbz2tool tbz2too
l.c || \
                die "Failed to build tbz2tool"

        if use elibc_FreeBSD; then
                cd "${S}"/src/bsd-flags
                chmod +x setup.py
                ./setup.py build || die "Failed to install bsd-chflags module"
        fi
}


I am unsure if I did this right.  I was able to emerge portage without any problems.  But when executing the quickpkg it still errors out on tbz2tool.
Comment 3 Zac Medico gentoo-dev 2006-08-23 10:30:08 UTC
append-lfs-flags works on the global CFLAGS and CXXFLAGS variables, so you'd just run the function once at the beginning of src_compile and it would affect all compiles that occur thereafter.  I'll make this change now and commit it to CVS...
Comment 4 Zac Medico gentoo-dev 2006-08-23 10:58:17 UTC
It's fixed in cvs now.