Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 390849 - app-text/tree-1.6.0 doesn't list files over 2^32 bytes due to wrong compilation opts
Summary: app-text/tree-1.6.0 doesn't list files over 2^32 bytes due to wrong compilati...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-17 17:38 UTC by JK Laiho
Modified: 2011-12-07 15:59 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 JK Laiho 2011-11-17 17:38:47 UTC
The summary pretty much says it. The command runs without displaying any errors, but fails to list files that are larger than the upper bound of 32bit signed integers.

I contacted the developer initially, suspecting an upstream bug. He asked if Gentoo's version uses the following CFLAGS:

CFLAGS=-O4 -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64

Looking at the ebuild for version 1.6.0, those are not the CFLAGS used by Gentoo. I tried downloading the source from ftp://mama.indstate.edu/linux/tree/tree-1.6.0.tgz and rebuilding by hand with the aforementioned CFLAGS (those are also the default ones for Linux in the Makefile, but for some reason not used in the ebuild). The hand-built version listed the large file just fine, so this seems to be a Gentoo bug--in a stable ebuild, no less.


Reproducible: Always

Steps to Reproduce:
1. Create a test directory with some subdirectories and some files in those subdirectories.
2. Make one of the files in the subdirectories over 2147483648 (2^32) bytes
3. Run tree in the test directory
Actual Results:  
The file exceeding 2^32 bytes in size is not listed along with the other files in the subdirs.

Expected Results:  
The large file should have been listed normally.

emerge --info:

Portage 2.1.10.11 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.12.2-r0, 2.6.39-gentoo-r3 i686)
=================================================================
System uname: Linux-2.6.39-gentoo-r3-i686-Pentium_III_-Coppermine-with-gentoo-2.0.3
Timestamp of tree: Mon, 07 Nov 2011 11:45:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:          4.1_p9
dev-lang/python:          2.6.6-r1, 3.1.4-r3
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.1-r2
dev-util/pkgconfig:       0.23
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.65-r1
sys-devel/automake:       1.9.6-r3, 1.10.2, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.3.4, 4.4.5, 4.5.3-r1
sys-devel/gcc-config:     1.4.1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ http://mirror.gentoo.no/ http://ftp.du.se/pub/os/gentoo http://mirror.pudas.net/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="a52 aac acl acpi alsa apache2 bash-completion bluetooth branding bzip2 cairo cdda cdr cli cracklib crypt cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdu gif gpm iconv ipv6 jpeg lcms libnotify mad mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds pppd readline sdl session spell ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb utf8 vorbis x264 x86 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_default authn_file authz_default authz_host authz_user autoindex cache deflate dir env expires filter headers ident include info log_config logio mime mime_magic negotiation rewrite setenvif so status unique_id userdir vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 JK Laiho 2011-11-17 17:54:14 UTC
Ehh, I meant tree fails for files larger than 2^31 bytes, not 2^32.
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2011-11-17 18:21:05 UTC
fixed.  resync and re-emerge tree to get the fix.  thanks.