Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635312 - dev-ruby/yajl-ruby-1.3.0 fails tests when building against dev-ruby/rspec-core-2.99.2-r2
Summary: dev-ruby/yajl-ruby-1.3.0 fails tests when building against dev-ruby/rspec-cor...
Status: RESOLVED FIXED
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:
 
Reported: 2017-10-24 16:24 UTC by Jonathan Lovelace
Modified: 2018-07-20 21:05 UTC (History)
1 user (show)

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


Attachments
build log showing failing test phase (build.log,6.90 KB, text/x-log)
2017-10-24 16:24 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2017-10-24 16:24:35 UTC
Created attachment 499864 [details]
build log showing failing test phase

After upgrading dev-ruby/rspec-core:2 to version 2.99.2-r2 (disabling its tests to break circular dependencies), the upgrade to dev-ruby/yajl-ruby-1.3.0 fails in its test phase with "Could not find 'rspec-core' (~> 2.14.0) - did find: [rspec-core-3.5.4,rspec-core-2.99.2]"

emerge --info:
Portage 2.3.8 (python 3.4.5-final-0, hardened/linux/amd64, gcc-5.4.0, glibc-2.23-r4, 4.12.12-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.12.12-gentoo-x86_64-Intel-R-_Core-TM-_i5-2400_CPU_@_3.10GHz-with-gentoo-2.4.1
KiB Mem:     8071824 total,    918944 free
KiB Swap:   13029364 total,  12458456 free
Timestamp of repository gentoo: Tue, 24 Oct 2017 00:45:01 +0000
Head commit of repository gentoo: abec7c3e3c1183f54e8b84947f346e4f4331f75a
Head commit of repository eclipse: 80b6b0802f9f65864a7064d7e0812154720423f4

sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.32.1::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15-r1::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://myrriddium.local/gentoo-portage
    priority: -1000

eclipse
    location: /var/lib/layman/eclipse-overlay
    sync-type: git
    sync-uri: git://github.com/gentoo/eclipse-overlay.git
    masters: gentoo

localoverlay
    location: /usr/local/portage
    masters: gentoo lovelace eclipse
    priority: 0

dlang
    location: /var/lib/layman/dlang
    sync-type: laymansync
    sync-uri: git://github.com/gentoo/dlang.git
    masters: gentoo
    priority: 50

lovelace
    location: /var/lib/layman/lovelace
    sync-type: laymansync
    sync-uri: git://github.com/kingjon3377/lovelace-overlay.git
    masters: gentoo
    priority: 50

octopus
    location: /var/lib/layman/octopus
    sync-type: laymansync
    sync-uri: git://github.com/Bfgeshka/octopus.git
    masters: gentoo
    priority: 50

science
    location: /var/lib/layman/science
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/sci.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

Installed sets: @archivers, @backup-options, @classes, @devel, @dicts, @doc-conv, @docs, @emulation, @fonts, @kernels, @looked-interesting, @maintenance, @ocr, @office, @sp-devel
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -mtune=generic -fno-unwind-tables -fno-asynchronous-unwind-tables -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.1/conf /var/lib/hsqldb"
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="-O2 -pipe -march=core2 -mtune=generic -fno-unwind-tables -fno-asynchronous-unwind-tables -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --autounmask-keep-masks --verbose-conflicts"
FCFLAGS="-O2 -pipe -march=core2 -mtune=generic -fno-unwind-tables -fno-asynchronous-unwind-tables -fomit-frame-pointer"
FEATURES="assume-digests binpkg-logs candy collision-protect config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles merge-sync multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe -march=core2 -mtune=generic -fno-unwind-tables -fno-asynchronous-unwind-tables -fomit-frame-pointer"
GENTOO_MIRRORS="http://lug.mtu.edu/gentoo/ http://gentoo.osuosl.org/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3 -l5"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acpi alsa amd64 bash-completion berkdb bzip2 cddb cli cracklib crypt cxx dri gdbm gnat_2017 hardened iconv ipv6 java java5 java6 jpeg justify libnotify libsecret lm_sensors mmx mmxext modules multilib ncurses nls nptl ogg openmp pam pcre pic pie png readline seccomp session sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 startup-notification tcpd theora truetype unicode urandom vorbis xattr xcomposite xdg xft xtpax xvmc zlib" ABI_X86="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="sheets words plan kexi braindump flow" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev libinput" KERNEL="linux" L10N="en en_US en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport" LINGUAS="en en_US" NETBEANS_MODULES="harness ide java nb javafx profile" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel fbdev i915" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-ruby/yajl-ruby-1.1.0-r1::gentoo was built with the following:
USE="test" ABI_X86="(64)" RUBY_TARGETS="ruby22"


dev-ruby/rspec-core-2.99.2-r2::gentoo was built with the following:
USE="-doc (-test)" ABI_X86="(64)" RUBY_TARGETS="ruby22 (-ruby23) (-ruby24)"


dev-ruby/rspec-core-3.5.4::gentoo was built with the following:
USE="test -doc -highlight" ABI_X86="(64)" RUBY_TARGETS="ruby22 (-ruby23)"
Comment 1 Hans de Graaff gentoo-dev Security 2017-10-25 05:09:19 UTC
Is your tree up-to-date? We switched to using rspec 3 with that version of yajl-ruby and this works for me with rspec 2.99 and rspec 3.x installed.

commit b390b7ec2fc8e5797d0229c9f995f4fe2554f4b6
Author: Hans de Graaff <graaff@gentoo.org>
Date:   Sun Oct 22 11:18:00 2017 +0200

    dev-ruby/yajl-ruby: use rspec 3, possibly fixing bug 634372
    
    Package-Manager: Portage-2.3.8, Repoman-2.3.3
Comment 2 Jonathan Lovelace 2017-10-25 18:01:01 UTC
Yes, my tree is up-to-date enough to include that commit: my /usr/portage/metadata/timestamp.commit is "7e4ce47327ba61cd792d94e9a29f6522407bac8f 1508889471 2017-10-24T23:57:51+00:00", and I just tried again with identical results

I'm also getting the same error message from rspec-expectations-2.99.2, so I grepped through both the yajl-ruby $WORKDIR and /usr/lib64/ruby for the version specification the error message says it needs and can't find, "~> 2.14.0"; that string does not occur anywhere in the yajl-ruby $WORKDIR, but several times in /usr/lib64/ruby/gems/2.2.0/specifications/rspec-2.14.1.gemspec (and nowhere else in /usr/lib64/ruby). 

As I said in the original report, this is against rspec-core-2.99.2-r2, but dev-ruby/rspec:2 is still 2.14.1-r1.
Comment 3 Rolf Eike Beer archtester 2017-12-06 19:38:13 UTC
There is something even more fishy in there:

castor / # equery l rspec
 * Searching for rspec ...
[IP-] [  ] dev-ruby/rspec-3.5.0:3

And then this:

 * Package:    dev-ruby/yajl-ruby-1.3.0
 * Repository: gentoo
 * Maintainer: ruby@gentoo.org
 * USE:        elibc_glibc kernel_linux ruby_targets_ruby22 sparc test userland_GNU
 * FEATURES:   preserve-libs sandbox test userpriv usersandbox
>>> Unpacking source...
 * Running unpack phase for all ...
 * Unpacking .gem file... ...
 [ ok ]
 * Uncompressing metadata ...
 [ ok ]
 * Unpacking data.tar.gz ...
 [ ok ]
>>> Source unpacked in /var/tmp/portage/dev-ruby/yajl-ruby-1.3.0/work
>>> Preparing source in /var/tmp/portage/dev-ruby/yajl-ruby-1.3.0/work ...
 * Running prepare phase for all ...
 * Running source copy phase for ruby22 ...
 * Running prepare phase for ruby22 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ruby/yajl-ruby-1.3.0/work ...
 * Running configure phase for ruby22 ...
creating Makefile
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ruby/yajl-ruby-1.3.0/work ...
 * Running compile phase for ruby22 ...
make -j20 -Cext/yajl 'CFLAGS=-O2 -mcpu=niagara2 -pipe -fPIC' 'archflag=-Wl,-O1 -Wl,--as-needed' V=1 
make: Entering directory '/var/tmp/portage/dev-ruby/yajl-ruby-1.3.0/work/ruby22/yajl-ruby-1.3.0/ext/yajl'
sparc-unknown-linux-gnu-gcc -I. -I/usr/include/ruby-2.2.0/sparc-linux -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -D_FILE_OFFSET_BITS=64  -O2 -mcpu=niagara2 -pipe -fPIC -o yajl_alloc.o -c yajl_alloc.c
sparc-unknown-linux-gnu-gcc -I. -I/usr/include/ruby-2.2.0/sparc-linux -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -D_FILE_OFFSET_BITS=64  -O2 -mcpu=niagara2 -pipe -fPIC -o yajl_gen.o -c yajl_gen.c
sparc-unknown-linux-gnu-gcc -I. -I/usr/include/ruby-2.2.0/sparc-linux -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -D_FILE_OFFSET_BITS=64  -O2 -mcpu=niagara2 -pipe -fPIC -o yajl_buf.o -c yajl_buf.c
sparc-unknown-linux-gnu-gcc -I. -I/usr/include/ruby-2.2.0/sparc-linux -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -D_FILE_OFFSET_BITS=64  -O2 -mcpu=niagara2 -pipe -fPIC -o yajl.o -c yajl.c
sparc-unknown-linux-gnu-gcc -I. -I/usr/include/ruby-2.2.0/sparc-linux -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -D_FILE_OFFSET_BITS=64  -O2 -mcpu=niagara2 -pipe -fPIC -o yajl_encode.o -c yajl_encode.c
sparc-unknown-linux-gnu-gcc -I. -I/usr/include/ruby-2.2.0/sparc-linux -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -D_FILE_OFFSET_BITS=64  -O2 -mcpu=niagara2 -pipe -fPIC -o yajl_version.o -c yajl_version.c
sparc-unknown-linux-gnu-gcc -I. -I/usr/include/ruby-2.2.0/sparc-linux -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -D_FILE_OFFSET_BITS=64  -O2 -mcpu=niagara2 -pipe -fPIC -o yajl_lex.o -c yajl_lex.c
sparc-unknown-linux-gnu-gcc -I. -I/usr/include/ruby-2.2.0/sparc-linux -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -D_FILE_OFFSET_BITS=64  -O2 -mcpu=niagara2 -pipe -fPIC -o yajl_ext.o -c yajl_ext.c
sparc-unknown-linux-gnu-gcc -I. -I/usr/include/ruby-2.2.0/sparc-linux -I/usr/include/ruby-2.2.0/ruby/backward -I/usr/include/ruby-2.2.0 -I. -D_FILE_OFFSET_BITS=64  -O2 -mcpu=niagara2 -pipe -fPIC -o yajl_parser.o -c yajl_parser.c
rm -f yajl.so
sparc-unknown-linux-gnu-gcc -shared -o yajl.so yajl_alloc.o yajl_gen.o yajl_buf.o yajl.o yajl_encode.o yajl_version.o yajl_lex.o yajl_ext.o yajl_parser.o -L. -L/usr/lib -L. -Wl,-O1 -Wl,--as-needed -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,--no-undefined    -lruby22  -lpthread -lgmp -ldl -lcrypt -lm   -lc
make: Leaving directory '/var/tmp/portage/dev-ruby/yajl-ruby-1.3.0/work/ruby22/yajl-ruby-1.3.0/ext/yajl'
 * Running compile phase for all ...
>>> Source compiled.
>>> Test phase: dev-ruby/yajl-ruby-1.3.0
 * Running test phase for ruby22 ...
/usr/bin/ruby22: No such file or directory -- rspec-2 (LoadError)
Comment 4 Rolf Eike Beer archtester 2017-12-06 20:24:20 UTC
To make this clear: it does not drag in rspec-2.99.0 by itself, but if I emerge it manually, tests work.
Comment 5 Rolf Eike Beer archtester 2018-04-26 19:05:17 UTC
Same with dev-ruby/yajl-ruby-1.3.1.
Comment 6 Larry the Git Cow gentoo-dev 2018-07-20 05:33:44 UTC
The bug has been closed via the following commit(s):

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

commit e1fb925d0d5747a7c0e9516c67d6e43c6cb78b51
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2018-07-20 05:33:13 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2018-07-20 05:33:13 +0000

    dev-ruby/yajl-ruby: use correct version of rspec
    
    Specify the correct version of rspec to be used. Since we need to use a
    manual invocation to set RUBYLIB we must also specific the version,
    since the default is to use rspec 2.x.
    
    Closes: https://bugs.gentoo.org/635312
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 dev-ruby/yajl-ruby/yajl-ruby-1.3.1.ebuild | 2 +-
 dev-ruby/yajl-ruby/yajl-ruby-1.4.0.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)