Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513480 - dev-ruby/ruby-gettext-2.3.8 fails tests on Alpha
Summary: dev-ruby/ruby-gettext-2.3.8 fails tests on Alpha
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 465948
  Show dependency tree
 
Reported: 2014-06-16 15:01 UTC by Tobias Klausmann (RETIRED)
Modified: 2014-07-22 15:58 UTC (History)
0 users

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


Attachments
ruby-gettext-2.3.8 build log (ruby-gettext-2.3.8-build.log,10.41 KB, text/x-log)
2014-06-16 15:03 UTC, Tobias Klausmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Klausmann (RETIRED) gentoo-dev 2014-06-16 15:01:22 UTC
Loaded suite test/run-test
Started
.............F
================================================================================
Failure:
test_plural(TestGetText)
/var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/test_gettext.rb:194:in `test_plural'
     191:     assert_equal("fr_plural", ngettext("one", "two", 2))
     192: 
     193:     set_locale("la")
  => 194:     assert_equal("la_one", ngettext("one", "two", 21))
     195:     assert_equal("la_one", ngettext("one", "two", 1))
     196:     assert_equal("la_plural", ngettext("one", "two", 2))
     197:     assert_equal("la_zero", ngettext("one", "two", 0))
<"la_one"> expected but was
<"da_plural">

diff:
? la_one   
? d  plural
================================================================================
.F
================================================================================
Failure:
test_plural_format_invalid(TestGetText)
/var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/test_gettext.rb:244:in `test_plural_format_invalid'
     241:     assert_equal("da_first", n_("first", "second", 1))
     242:     assert_equal("da_first", n_("first", "second", 2))
     243:     setlocale("la") # wrong number of msgstr.
  => 244:     assert_equal("la_first", n_("first", "second", 0))
     245:     assert_equal("la_first", n_("first", "second", 1))
     246:     assert_equal("la_first", n_("first", "second", 2))
     247: 
<"la_first"> expected but was
<"da_first">

diff:
? la_first
? d       
================================================================================
..F
================================================================================
Failure:
test_s_(TestGetText)
/var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/test_gettext.rb:114:in `test_s_'
     111:     assert_equal("CCC", test.test_5)
     112:     assert_equal("BBB", test.test_6)
     113:     assert_equal("B|BB", test.test_7)
  => 114:     assert_equal("MATCHED", test.test_8)
     115:     assert_equal("BBB", test.test_9)
     116:   end
     117: 
<"MATCHED"> expected but was
<"B|BB">

diff:
? MATCHED
? B|BB   
================================================================================
............../var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/test_string.rb:33: warning: too many arguments for format string
/var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/test_string.rb:34: warning: too many arguments for format string
../var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/test_string.rb:25: warning: too many arguments for format string
................................................................
....Warning: fuzzy message was used.
  /var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/temp/hello.po20140616-14666-ox2phu: msgid 'hello'
............................................F
================================================================================
Failure:
test_thread(TestThread)
/var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/test_thread.rb:23:in `block (3 levels) in invoke_thread'
<internal:prelude>:10:in `synchronize'
/var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/test_thread.rb:22:in `block (2 levels) in invoke_thread'
/var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/test_thread.rb:21:in `each'
/var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/test_thread.rb:21:in `block in invoke_thread'
<"language"> expected but was
<"japanese">

diff:
? l  anguage  
? jap       se
================================================================================
................................................./var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/tools/test_files/version.po.bak . done.
./var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/tools/test_files/simple_1.po . done.
./var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/tools/test_files/./app.pot . done.
/var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/tools/test_files/./en/app.po . done.
./var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/tools/test_files/./xx/app.pot ............................
...........F
================================================================================
Failure:
test_inheritance(TestGetTextMulti)
/var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/test_textdomain_multi.rb:30:in `test_inheritance'
     27:     # inheritance. only parent has a textdomain and it's methods
     28:     test = C21.new
     29:     assert_equal("japanese", test.test)   # Use C11's po(test1.po)
  => 30:     assert_equal("JAPANESE", test.test2)  # Use C11's po(test2.po)
     31: 
     32:     test = C22.new
     33:     assert_equal("japanese", test.test)   # Use C11's po(test1.po)
<"JAPANESE"> expected but was
<"japanese">

diff:
? JAPANESE
? japanese
================================================================================
F
================================================================================
Failure:
test_module_and_sub_modules(TestGetTextMulti)
/var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/test_textdomain_multi.rb:43:in `test_module_and_sub_modules'
     40: 
     41:     # sub-module. only an included module has a textdomain and it's methods
     42:     assert_equal("japanese", M1::M1M1.test)   # Same method with M1.
  => 43:     assert_equal("LANGUAGE", M1::M1M1.test2)  # No influence from ancestors.
     44: 
     45:      # sub-class (class bindtextdomain).
     46:     test = M1::M1C1.new
<"LANGUAGE"> expected but was
<"japanese">

diff:
? LANGUAGE
? japanese
================================================================================
.F
================================================================================
Failure:
test_simple_inheritance(TestGetTextMulti)
/var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/test_textdomain_multi.rb:71:in `test_simple_inheritance'
     68:     test = C4.new
     69:     assert_equal("japanese", test.test)   # Use C3's test1.po
     70:     assert_equal("japanese", C4.test)     # Use C3's test1.po
  => 71:     assert_equal("JAPANESE", test.test2)  # Use C4's test2.po
     72:     assert_equal("no data", test.test3)   # No po file.
     73:   end
     74: 
<"JAPANESE"> expected but was
<"japanese">

diff:
? JAPANESE
? japanese
================================================================================
F
================================================================================
Failure:
test_two_domains_in_a_class(TestGetTextMulti)
/var/tmp/portage/dev-ruby/ruby-gettext-2.3.8/work/ruby19/ruby-gettext-2.3.8/test/test_textdomain_multi.rb:19:in `test_two_domains_in_a_class'
     16:   def test_two_domains_in_a_class
     17:     test = C11.new
     18:     assert_equal("japanese", test.test)  # Use test1.po
  => 19:     assert_equal("JAPANESE", test.test2) # Use test2.po
     20: 
     21:     test = C12.new
     22:     assert_equal("japanese", test.test)  # Use test1.po
<"JAPANESE"> expected but was
<"japanese">

diff:
? JAPANESE
? japanese
================================================================================


Finished in 9.839909165 seconds.

214 tests, 530 assertions, 8 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
96.2617% passed

21.75 tests/s, 53.86 assertions/s
 * ERROR: dev-ruby/ruby-gettext-2.3.8::gentoo failed (test phase):
 *   tests failed
Portage 2.2.8-r1 (default/linux/alpha/13.0, gcc-4.7.3, glibc-2.17, 3.15.0 alpha)
=================================================================
System uname: Linux-3.15.0-alpha-EV68AL-with-gentoo-2.2
KiB Mem:     8305216 total,    907256 free
KiB Swap:     977912 total,    976248 free
Timestamp of tree: Mon, 16 Jun 2014 07:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="alpha"
ACCEPT_LICENSE="* -@EULA"
CBUILD="alpha-unknown-linux-gnu"
CFLAGS="-mieee -pipe -O2 -mcpu=ev67"
CHOST="alpha-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-mieee -pipe -O2 -mcpu=ev67"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.netcologne.de/gentoo/"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/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"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="acl alpha bash-completion berkdb bzip2 cli cracklib crypt cxx dri fortran ftp gdbm iconv mmap modules ncurses nls nptl nptlonly offensive pam pcre readline recode session sharedmem sockets ssl tcpd unicode vim vim-pager zlib" ALSA_CARDS="ali5451 als4000 bt87x ca0106 cmipci emu10k1 ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 maestro3 trident usb-audio via82xx 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" 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" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Build log follows.
Comment 1 Tobias Klausmann (RETIRED) gentoo-dev 2014-06-16 15:03:18 UTC
Created attachment 379030 [details]
ruby-gettext-2.3.8 build log
Comment 2 Hans de Graaff gentoo-dev Security 2014-06-17 18:50:05 UTC
I can't reproduce this, but I did notice that we skip a preparation step for tests. That does not seem to make any difference for me, but it might be needed on alpha due to gettext details on that platform. So I've applied some changes to how the tests are run to ruby-gettext-2.3.8 and hopefully this is fixed. Could you test and report back?
Comment 3 Tobias Klausmann (RETIRED) gentoo-dev 2014-06-17 20:57:26 UTC
2.3.8 seems to be missing a dependency on dev-ruby/yard for testing

And even when it makes it into the test suite it still fails in what looks the same as the original failure reported here.
Comment 4 Tobias Klausmann (RETIRED) gentoo-dev 2014-07-22 15:58:40 UTC
The dependencies of bug 465948 have been keyworded with the newer version(s) of gettext that don't show the failure anymore. Closing.