Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270190 - app-arch/libarchive-2.7.0-r1 (and others?) fails one test when timezone is not UTC
Summary: app-arch/libarchive-2.7.0-r1 (and others?) fails one test when timezone is no...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-17 13:28 UTC by Harald van Dijk (RETIRED)
Modified: 2009-12-28 10:53 UTC (History)
2 users (show)

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 Harald van Dijk (RETIRED) gentoo-dev 2009-05-17 13:28:54 UTC
[...]
Running tests on: /var/tmp/portage/app-arch/libarchive-2.7.0-r1/work/libarchive-2.7.0/bsdtar
[...]
3: test_getdate
tar/test/test_getdate.c:65: Assertion failed: Ints not equal
      get_date(now, "tomorrow 5:16am UTC")=1231132560
      now + 24 * 60 * 60 + 5 * 60 * 60 + 16 * 60=1231218960
tar/test/test_getdate.c:67: Assertion failed: Ints not equal
      get_date(now, "UTC 5:16am tomorrow")=1231132560
      now + 24 * 60 * 60 + 5 * 60 * 60 + 16 * 60=1231218960
tar/test/test_getdate.c:70: Assertion failed: Ints not equal
      get_date(now, "monday UTC")=1231200000
      now=1231113600
tar/test/test_getdate.c:71: Assertion failed: Ints not equal
      get_date(now, "sunday UTC")=1231113600
      now + 6 * 24 * 60 * 60=1231632000
tar/test/test_getdate.c:72: Assertion failed: Ints not equal
      get_date(now, "tuesday UTC")=1231286400
      now + 24 * 60 * 60=1231200000
tar/test/test_getdate.c:75: Assertion failed: Ints not equal
      get_date(now, "UTC next tuesday")=1231891200
      now + 8 * 24 * 60 * 60=1231804800
tar/test/test_getdate.c:78: Assertion failed: Ints not equal
      get_date(now, "last tuesday UTC")=1230681600
      now - 6 * 24 * 60 * 60=1230595200
[...]
FAIL: bsdtar_test
[...]
=====================================
1 of 3 tests failed
Please report to kientzle@freebsd.org
=====================================
make[2]: *** [check-TESTS] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-arch/libarchive-2.7.0-r1/work/libarchive-2.7.0'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/app-arch/libarchive-2.7.0-r1/work/libarchive-2.7.0'
make: *** [check] Error 2
 * 
 * ERROR: app-arch/libarchive-2.7.0-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_test
 *             environment, line 3072:  Called _eapi0_src_test
 *               ebuild.sh, line  607:  Called die
 * The specific snippet of code:
 *                      hasq test $FEATURES && die "Make check failed. See above for details."
 *  The die message:
 *   Make check failed. See above for details.
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-arch/libarchive-2.7.0-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-arch/libarchive-2.7.0-r1/temp/environment'.
 * 

When moving /etc/localtime out of the way, no test failures are reported.

Do you want to bring this upstream, or shall I?

Portage 2.2_rc33 (default/linux/x86/2008.0/developer/multilib, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r3 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r3-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-gentoo-2.0.0
Timestamp of tree: Sun, 17 May 2009 09:30:14 +0000
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 2.1.7
dev-lang/python:     2.6.2
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -g"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -g"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--noconfmem --verbose"
FEATURES="assume-digests autopatch cvs fixpackages installsources multilib-strict notitles preserve-libs protect-owned sandbox sfperms sign splitdebug strict test unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Xlinker -O1 -Xlinker --as-needed"
LINGUAS="*"
MAKEOPTS="-j1"
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="/etc/portage/layman/java-overlay /etc/portage/layman/sunrise /etc/portage/overlay /var/cvs/gentoo-x86"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acl acpi ada alsa aspell async bidi bindist bzip2 cairo cdda cdparanoia cdr chm cjk cli cracklib crypt cups curl custom-cflags custom-cxxflags custom-optimization cvs dbus demo dhcp dia divx docbook dot dri dvd dvdr dvdread eds emacs emboss encode esd evo expat fam ffmpeg flac ftp gcc64 gdbm gif git gnome gnome-keyring gstreamer gtk hal html htmlhandbook iconv icu idn inotify ipv6 isdnlog ithreads jadetex java java5 java6 javascript jit jpeg kde latex ldap libffi libnotify mad mbox midi mikmod mmx mmxext mng mozdevelop mp3 mpeg multilib ncurses nls nocxx normalize nptl nptlonly nsplugin ntfs objc objc++ ogg opengl openmp oss pam pango pch pcre pdf perl phonon pic png ppds pppd preview-latex qt3support qt4 quicktime readline realmedia reflection rtf samba sdl session snmp spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg swat sysfs tcl tcpd theora threads tiff timidity tk toolkit-scroll-bars tordns truetype unicode urandom usb v4l v4l2 vim-syntax vorbis webkit wmp x86 xcb xcomposite xml xorg xscreensaver xslt xulrunner 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="*" USERLAND="GNU" VIDEO_CARDS="vesa"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-05-17 13:42:23 UTC
Given it works here with both Linux and FreeBSD in CEST you should probably contact upstream...
Comment 2 Harald van Dijk (RETIRED) gentoo-dev 2009-05-17 13:53:16 UTC
That's odd. I will look a little deeper into why it might work for you and fail for me, and then send a mail.
Comment 3 Harald van Dijk (RETIRED) gentoo-dev 2009-05-17 14:34:00 UTC
With /etc/localtime -> /usr/share/zoneinfo/Europe/Amsterdam, the test pass.
With /etc/localtime -> /usr/share/zoneinfo/right/Europe/Amsterdam, the tests don't pass, but the time differences reported are exact multiples of 86400.

I'm about to send a mail, and I'll re-open this if there's anything to fix. Thanks for looking.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-05-17 14:37:58 UTC
Uhm what should be the difference between the two versions?
Comment 5 Harald van Dijk (RETIRED) gentoo-dev 2009-05-17 14:44:29 UTC
right/Europe/Amsterdam expects the time to increase by one every second, while Europe/Amsterdam expects the time to increase by 86400 every day. They are different because there are a few days with 86401 seconds.