Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98802 - bzip2 1.03-r4 doesn't support files >2GB anymore
Summary: bzip2 1.03-r4 doesn't support files >2GB anymore
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-12 12:02 UTC by Jochen Schug
Modified: 2005-07-13 03:15 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 Jochen Schug 2005-07-12 12:02:57 UTC
I recently wanted to compress my webserver log files (which are over 2 GB in 
size). bzip2 1.03-r4 gave me an 

bzip2: Input file access_log.2005-03 is not a normal file.

and refused to compress the file. I downgraded to 1.03 (which I knew was working 
before), and this version works again.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-
r1, 2.6.11-gentoo-r9 i686)
=================================================================
System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/
etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks fixpackages sandbox sfperms strict 
userpriv"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://mirrors.sec.
informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/
gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 apache2 apm arts avi berkdb bitmap-fonts crypt curl emboss encode 
foomaticdb fortran gd gdbm gif gpm gtk2 imagemagick imap imlib jpeg libg++ 
libwww mad maildir mikmod motif mp3 mysql ncurses nls oggvorbis opengl oss pam 
pdflib perl png python quicktime readline sdl slang spell ssl tcpd tiff truetype 
truetype-fonts type1-fonts xml2 xmms xv zlib userland_GNU kernel_linux 
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 SpanKY gentoo-dev 2005-07-12 20:11:57 UTC
odd considering the only diff is the security chown patch ...

just to verify, could you edit the bzip-1.0.3-r4 patch and remove this line:
    epatch "${FILESDIR}"/${PN}-1.0.2-chmod.patch

and then emerge 1.0.3-r4 again ?
Comment 2 Jochen Schug 2005-07-13 00:42:22 UTC
I commented out the epatch and ran emerge --digest bzip2. The resulting binary 
still can't handle files >2GB.

It seems to be related to this part of the ebuild:

  if ! use static ; then
    newbin bzip2-shared bzip2 || die "dobin shared"
  fi


If I put "static" into my USE flags, the resulting binary works. The above also 
seems to be the only major difference (except the patch I've commented out) 
between the two ebuilds.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2005-07-13 03:15:54 UTC
The shared makefile did not add large file support .. fixed in -r5.