Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 640090 - dev-ruby/multi_xml-0.6.0 fails one test : rspec ./spec/parser_shared_example.rb:334 # MultiXml Ox parser behaves like a parser .parse a valid XML document with an attribute type="yaml" returns the correctly parsed YAML when the type is allowed
Summary: dev-ruby/multi_xml-0.6.0 fails one test : rspec ./spec/parser_shared_example....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-06 18:00 UTC by Jonathan Lovelace
Modified: 2018-07-01 08:25 UTC (History)
0 users

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


Attachments
dev-ruby:multi_xml-0.6.0:20171205-223220.log (dev-ruby:multi_xml-0.6.0:20171205-223220.log,7.56 KB, text/plain)
2017-12-06 18:00 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-12-06 18:00:07 UTC
Created attachment 508480 [details]
dev-ruby:multi_xml-0.6.0:20171205-223220.log

All versions of dev-ruby/multi_xml (0.5.4-r2, 0.5.5, and 0.6.0) are currently failing a test, the example "MultiXml Ox parser behaves like a parser .parse a valid XML document with an attribute type="yaml" returns the correctly parsed YAML when the type is allowed". Version 0.5.4-r2 passes its tests if dev-ruby/ox, which  the other versions add as a test dependency, is not installed. I wondered if the test might pass with a higher version of dev-ruby/ox, but ox-2.6.0 is the only version that will build for RUBY_TARGETS=ruby22.

emerge --info:
Portage 2.3.13 (python 2.7.14-final-0, hardened/linux/amd64, gcc-5.4.0, glibc-2.25-r9, 4.12.12-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.12.12-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T6670_@_2.20GHz-with-gentoo-2.4.1
KiB Mem:     6069424 total,   1741316 free
KiB Swap:    6292476 total,   6282628 free
Timestamp of repository gentoo: Wed, 06 Dec 2017 00:45:01 +0000
Head commit of repository lovelace: 50b8881348bb7c197db39cd1a20bf7f175d96496

Head commit of repository steam-overlay: 699d267a7358ca340ee684e68e5366419f8e0ded

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.14-r1::gentoo, 3.4.5-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.28.1::gentoo, 2.29.1-r1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.4.0::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.25-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: webrsync
    sync-uri: tar+http://lug.mtu.edu/gentoo/snapshots/portage-latest.tar.xz
    priority: -1000

laptop_local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

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

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

mrueg
    location: /var/lib/layman/mrueg
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/dev/mrueg.git
    masters: gentoo
    priority: 50

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

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

Installed sets: @archivers, @backup-options, @devel, @dicts, @doc-conv, @docs, @emulation, @fonts, @kernels, @laptop, @maintenance, @office, @sp-devel
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -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"
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 -fno-unwind-tables -fno-asynchronous-unwind-tables -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --binpkg-respect-use=n --backtrack=100"
FCFLAGS="-O2 -pipe -march=core2 -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 -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"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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 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 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="mmx mmxext sse sse2 sse3 sse4_1 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 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

dev-ruby/multi_xml-0.5.4-r2::gentoo was built with the following:
USE="test -doc" ABI_X86="(64)" RUBY_TARGETS="ruby22"


dev-ruby/ox-2.6.0::gentoo was built with the following:
USE="test" ABI_X86="(64)" RUBY_TARGETS="ruby22 (-ruby23) (-ruby24)"
Comment 1 Jonathan Lovelace 2018-01-25 05:46:15 UTC
If higher versions of dev-ruby/ox are installed (I tested with 2.8.0, 2.8.1, and 2.8.2), multi_xml (again, both versions now in the tree, 0.5.5 and 0.6.0) fails its tests with a different (more serious?) failure: the test "MultiXml Parsers defaults to the best available gem" fails because it expected "MultiXml::Parsers::Ox" but got "MultiXml::Parsers::Nokogiri". (The full identifier of that failure is "rspec ./spec/multi_xml_spec.rb:15 # MultiXml Parsers defaults to the best available gem"; I can provide a build log or an emerge --info update to reflect the different ox version if desired.)
Comment 2 Larry the Git Cow gentoo-dev 2018-07-01 08:25:27 UTC
The bug has been closed via the following commit(s):

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

commit 9cff2e3f8b003d0a30e31244f8c26f8cc6acb031
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2018-07-01 08:24:43 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2018-07-01 08:25:12 +0000

    dev-ruby/multi_xml: fix compat with ox > 2.4.11
    
    Backport upstream pull requests approved by ox maintainer to fix
    specs with ox > 2.4.11 and ensure more consistent options.
    
    Closes: https://bugs.gentoo.org/640090
    Package-Manager: Portage-2.3.40, Repoman-2.3.9

 .../multi_xml/files/multi_xml-0.6.0-ox24.patch     | 23 +++++++++++++
 dev-ruby/multi_xml/multi_xml-0.6.0-r1.ebuild       | 39 ++++++++++++++++++++++
 2 files changed, 62 insertions(+)