Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532296 - =dev-libs/libical-1.0.1 fails tests recur testvcal
Summary: =dev-libs/libical-1.0.1 fails tests recur testvcal
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Andreas Sturmlechner
URL:
Whiteboard: fixed in 2.0.0-r2
Keywords: TESTFAILURE
Depends on: 620842
Blocks:
  Show dependency tree
 
Reported: 2014-12-11 17:53 UTC by eroen
Modified: 2018-02-12 20:48 UTC (History)
5 users (show)

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


Attachments
dev-libs:libical-1.0.1:20141211-172751.log (dev-libs:libical-1.0.1:20141211-172751.log,116.84 KB, text/plain)
2014-12-11 17:53 UTC, eroen
Details
libical-1.0.1_build/Testing/Temporary/LastTest.log (LastTest.log,123.34 KB, text/plain)
2014-12-11 18:16 UTC, eroen
Details
libical-1.0.1-tests.patch (libical-1.0.1-tests.patch,677 bytes, patch)
2016-01-21 16:13 UTC, David Leverton
Details | Diff
libical-1.0.1-tests.patch take 2 (libical-1.0.1-tests.patch,609 bytes, patch)
2016-02-13 13:16 UTC, René Rhéaume
Details | Diff
libical-1.0.1.ebuild.patch (libical-1.0.1.ebuild.patch,996 bytes, patch)
2016-02-13 13:20 UTC, René Rhéaume
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description eroen 2014-12-11 17:53:43 UTC
Created attachment 391452 [details]
dev-libs:libical-1.0.1:20141211-172751.log

>>> Test phase: dev-libs/libical-1.0.1
>>> Working in BUILD_DIR: "/var/tmp/portage/dev-libs/libical-1.0.1/work/libical-1.0.1_build"
Test project /var/tmp/portage/dev-libs/libical-1.0.1/work/libical-1.0.1_build
    Start 1: regression
1/7 Test #1: regression .......................   Passed    0.18 sec
    Start 2: recur
2/7 Test #2: recur ............................***Failed    0.00 sec
    Start 3: icalrecurtest
3/7 Test #3: icalrecurtest ....................   Passed    0.02 sec
    Start 4: testmime
4/7 Test #4: testmime .........................   Passed    0.00 sec
    Start 5: testvcal
5/7 Test #5: testvcal .........................***Exception: SegFault  0.00 sec
    Start 6: process
6/7 Test #6: process ..........................   Passed    0.01 sec
    Start 7: timezones
7/7 Test #7: timezones ........................   Passed    1.89 sec

71% tests passed, 2 tests failed out of 7

Total Test time (real) =   2.12 sec

The following tests FAILED:
	  2 - recur (Failed)
	  5 - testvcal (SEGFAULT)
Errors while running CTest
 * ERROR: dev-libs/libical-1.0.1::gentoo failed (test phase):
 *   Tests failed. When you file a bug, please attach the following file: 
 * 	/var/tmp/portage/dev-libs/libical-1.0.1/work/libical-1.0.1_build/Testing/Temporary/LastTest.log
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_test
 *   environment, line 2666:  Called cmake-utils_src_test
 *   environment, line  699:  Called _execute_optionally 'src_test'
 *   environment, line  242:  Called enable_cmake-utils_src_test
 *   environment, line 1041:  Called die
 * The specific snippet of code:
 *               die "Tests failed. When you file a bug, please attach the following file: 
 * 	${BUILD_DIR}/Testing/Temporary/LastTest.log";
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/libical-1.0.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libical-1.0.1::gentoo'`.
Comment 1 eroen 2014-12-11 18:07:43 UTC
eroen@falcon ~ $ emerge --info '=dev-libs/libical-1.0.1::gentoo'
Portage 2.2.15 (python 2.7.8-final-0, default/linux/amd64/13.0, gcc-4.9.1, glibc-2.20, 3.16.3.e0-falcon1+ x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.16.3.e0-falcon1+-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:     4043320 total,    684024 free
KiB Swap:    8388604 total,   8052104 free
Timestamp of tree: Thu, 11 Dec 2014 09:45:01 +0000
sh bash 4.3_p30-r1
ld GNU ld (GNU Binutils) 2.24
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2 [disabled]
app-shells/bash:          4.3_p30-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r3
dev-lang/python:          2.7.8, 3.2.5-r6, 3.3.5-r1, 3.4.2
dev-util/ccache:          3.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r4, 1.11.6-r1, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.5.4, 4.6.4, 4.7.4, 4.8.3, 4.9.1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers)
sys-libs/glibc:           2.20
Repositories: gentoo crossdev gamerlay eroen
ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /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"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/var/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 3 --nospinner --quiet-build --verbose-conflicts --with-bdeps=y --binpkg-respect-use y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=""
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4 -l6"
PKGDIR="/var/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/gamerlay /var/lib/layman/eroen"
USE="X a52 aac acl alsa amd64 ao berkdb bluray bs2b bzip2 cairo calendar caps cdda cdio cli cracklib crypt cups curl cxx dbus djvu dri dts dvd exif fam ffmpeg fftw fits flac fontconfig fortran fuse gcrypt gd gdbm gif gimp git gmp gnutls gstreamer highlight iconv icu id3tag idn imagemagick ipv6 jpeg jpeg2k kde ladspa lcms libass libcaca libnotify lzma lzo mad midi mikmod mms mmx mmxext mng modplug modules mp3 mp4 mpeg mplayer mtp multilib musepack ncurses netlink nls nptl offensive ogg openal opencl openexr opengl openmp opus pam pango pcre pdf png pnm portaudio postscript qalculate qt3support qt4 rar raw readline rtmp samba scanner session sndfile speex sse sse2 sse3 ssl ssse3 svg tcpd theora threads tiff truetype udev unicode usb v4l vdpau vnc vorbis wavpack webp wmf x264 xattr xcb xft xine xinerama xrandr xv xvid zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" 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 ublox ubx" GRUB_PLATFORMS="efi-64 pc qemu" INPUT_DEVICES="evdev keyboard mouse synaptics wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LINGUAS="en en_US en_GB nb no nb_NO" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python3_3 python3_4" QEMU_SOFTMMU_TARGETS="m68k ppc x86_64" RUBY_TARGETS="ruby20" SANE_BACKENDS="net plustek pnm" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia vesa" XFCE_PLUGINS="clock trash" 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"
USE_PYTHON="2.7 3.2 3.3 3.4"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC

eroen@falcon ~ $ emerge -pqv '=dev-libs/libical-1.0.1::gentoo'
[ebuild     U ] dev-libs/libical-1.0.1 [1.0-r2] USE="-doc -examples -introspection -static-libs" 

!!! The following installed packages are masked:
- dev-db/mysql-5.5.37-r1::gentoo (masked by: package.mask)
/usr/portage/profiles/package.mask:
# Sergey Popov <pinkbyte@gentoo.org> (04 Sep 2014)
# Security mask, wrt bugs #488212, #498164, #500260,
# #507802 and #518718

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Comment 2 eroen 2014-12-11 18:16:11 UTC
Created attachment 391454 [details]
libical-1.0.1_build/Testing/Temporary/LastTest.log

2/7 Testing: recur
2/7 Test: recur
Command: "/var/tmp/portage/dev-libs/libical-1.0.1/work/libical-1.0.1_build/src/test/recur"
Directory: /var/tmp/portage/dev-libs/libical-1.0.1/work/libical-1.0.1_build/bin
"recur" start time: Dec 11 18:28 CET
Output:
----------------------------------------------------------
recur: can't open file ../../test-data/recur.txt
<end of output>
Test time =   0.00 sec
----------------------------------------------------------
Test Failed.
"recur" end time: Dec 11 18:28 CET
"recur" time elapsed: 00:00:00
----------------------------------------------------------


5/7 Testing: testvcal
5/7 Test: testvcal
Command: "/var/tmp/portage/dev-libs/libical-1.0.1/work/libical-1.0.1_build/src/test/testvcal"
Directory: /var/tmp/portage/dev-libs/libical-1.0.1/work/libical-1.0.1_build/bin
"testvcal" start time: Dec 11 18:28 CET
Output:
----------------------------------------------------------
<end of output>
Test time =   0.00 sec
----------------------------------------------------------
Test Failed.
"testvcal" end time: Dec 11 18:28 CET
"testvcal" time elapsed: 00:00:00
----------------------------------------------------------
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2015-06-30 04:40:55 UTC
(In reply to eroen from comment #2)
> Created attachment 391454 [details]
> libical-1.0.1_build/Testing/Temporary/LastTest.log
> 
> 2/7 Testing: recur
> 2/7 Test: recur
> Command:
> "/var/tmp/portage/dev-libs/libical-1.0.1/work/libical-1.0.1_build/src/test/
> recur"
> Directory:
> /var/tmp/portage/dev-libs/libical-1.0.1/work/libical-1.0.1_build/bin
> "recur" start time: Dec 11 18:28 CET
> Output:
> ----------------------------------------------------------
> recur: can't open file ../../test-data/recur.txt

Workaround:

cd src/test; ../../../libical-1.0.1_build/src/test/recur; echo $?
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2015-06-30 04:44:34 UTC
testvcal has the same problem (and workaround) but fails to check whether opening the path ../../test-data/user-cal.vcf is usable before using it, hence the segmentation fault.
Comment 5 David Leverton 2016-01-21 16:13:52 UTC
Created attachment 423532 [details, diff]
libical-1.0.1-tests.patch

Patch based on above diagnosis
Comment 6 Jonathan Lovelace 2016-01-23 03:00:10 UTC
That patch didn't apply cleanly for me (the bodies of the if statements in recur.c were indented with tabs in the source file and spaces in the patch), but once I fixed that and applied the patch all tests passed.
Comment 7 René Rhéaume 2016-02-13 13:16:16 UTC
Created attachment 425396 [details, diff]
libical-1.0.1-tests.patch take 2

Please check if it applies cleanly for you
Comment 8 René Rhéaume 2016-02-13 13:20:51 UTC
Created attachment 425398 [details, diff]
libical-1.0.1.ebuild.patch

This patch calls epatch to apply the test suite patch and also adds a configuration option for uclibc to use the bundled zonedata because uclibc does not support zoneinfo.

Status on uclibc:
 * Without libical-1.0.1-tests.patch : 1 test succeeds
 * With libical-1.0.1-tests.patch : 2 tests succeed
 * With libical-1.0.1-tests.patch and the config option : all but the regression tests succeed.
Comment 9 Jonathan Lovelace 2016-02-13 18:04:00 UTC
Yes, that patch applied cleanly.
Comment 10 Joakim Tjernlund 2016-03-24 21:24:03 UTC
This patch has been committed upstream now and will be in next
next release(2.0.1 or so)
Comment 11 Larry the Git Cow gentoo-dev 2018-01-06 21:31:56 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80e884d2a91e5e3a83def06a41c44bb312f0a45e

commit 80e884d2a91e5e3a83def06a41c44bb312f0a45e
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-01-06 21:06:03 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-01-06 21:31:42 +0000

    dev-libs/libical: Fix tests
    
    Reported-by: eroen <gentoo@eroen.eu>
    Bug: https://bugs.gentoo.org/532296
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 dev-libs/libical/files/libical-2.0.0-tests.patch | 38 ++++++++++++++++++++++++
 dev-libs/libical/libical-2.0.0-r2.ebuild         |  5 +++-
 dev-libs/libical/libical-2.0.0-r3.ebuild         |  1 +
 3 files changed, 43 insertions(+), 1 deletion(-)}
Comment 12 Larry the Git Cow gentoo-dev 2018-02-12 20:48:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19bc309950bdbc88eada2e69fb53d8a1925f3f17

commit 19bc309950bdbc88eada2e69fb53d8a1925f3f17
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-02-12 20:18:19 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-02-12 20:47:34 +0000

    dev-libs/libical: Drop 1.0.1
    
    Closes: https://bugs.gentoo.org/532296
    Closes: https://bugs.gentoo.org/587446
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 dev-libs/libical/Manifest             |  1 -
 dev-libs/libical/libical-1.0.1.ebuild | 44 -----------------------------------
 2 files changed, 45 deletions(-)