Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397633 - dev-ruby/jquery-rails-1.0.19 RUBY_TARGETS="ruby18 ruby19" - (ruby19:) `normalize_yaml_input': invalid byte sequence in US-ASCII (ArgumentError)
Summary: dev-ruby/jquery-rails-1.0.19 RUBY_TARGETS="ruby18 ruby19" - (ruby19:) `normal...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 397437
  Show dependency tree
 
Reported: 2012-01-04 12:14 UTC by Andreis Vinogradovs ( slepnoga )
Modified: 2012-01-21 08:01 UTC (History)
0 users

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


Attachments
uery-rails-1.0.19 buil log (build.log,3.33 KB, text/plain)
2012-01-04 12:17 UTC, Andreis Vinogradovs ( slepnoga )
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreis Vinogradovs ( slepnoga ) 2012-01-04 12:14:32 UTC
dev-ruby/jquery-rails-1.0.19 build failed with  RUBY_TARGETS="ruby18 ruby19* " enabled

>>> Install jquery-rails-1.0.19 into /var/tmp/portage/dev-ruby/jquery-rails-1.0.19/image/ category dev-ruby
 * Running install phase for ruby18 ...
 * Running install phase for ruby19 ...
/usr/lib64/ruby/site_ruby/1.9.1/rubygems/specification.rb:575:in `normalize_yaml_input': invalid byte sequence in US-ASCII (ArgumentError)
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/specification.rb:487:in `from_yaml'
        from -e:1:in `<main>'
 * ERROR: dev-ruby/jquery-rails-1.0.19 failed (install phase):
 *   Unable to generate gemspec file.
Comment 1 Andreis Vinogradovs ( slepnoga ) 2012-01-04 12:14:57 UTC
emerge --info
Portage 2.2.0_alpha83 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 2.6.32-openvz-feoktistov.1-ovz-prod-ups-new_udev x86_64)
=================================================================
System uname: Linux-2.6.32-openvz-feoktistov.1-ovz-prod-ups-new_udev-x86_64-Intel-R-_Core-TM-_i3_CPU_540_@_3.07GHz-with-gentoo-2.1
Timestamp of tree: Wed, 04 Jan 2012 01:00:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.7
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1-r1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo rion
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mtune=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind /var/lib/redmine/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /var/lib/redmine/config/locales /var/lib/redmine/config/settings.yml"
CXXFLAGS="-O2 -pipe -mtune=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_EN.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="lzma"
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="/var/lib/layman/rion"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 bcmath berkdb bzip2 cdb cli cracklib crypt cxx dkim dri fontconfig fortran gdbm gif gpm iconv icu idn imagemagick imap ipv6 jpeg logrotate mercurial milter mmx modules mudflap multilib mysql mysqli ncurses nls nptl nptlonly openmp openvz pam pcntl pcre perl png poll pppd razor readline rle session soap sockets spamassassin spl sqlite sse sse2 ssl subversion sysfs tcpd threads tiff truetype unicode vhosts xml xmlrpc xorg zlib" 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" 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 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 asis auth_digest authn_dbd cern_meta charset_lite dbd ident imagemap log_forensic proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http substitute version" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_req limit_zone map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi image_filter realip xslt" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Andreis Vinogradovs ( slepnoga ) 2012-01-04 12:17:12 UTC
Created attachment 297925 [details]
uery-rails-1.0.19 buil log
Comment 3 Hans de Graaff gentoo-dev Security 2012-01-05 12:51:45 UTC
Which versions of dev-lang/ruby:1.9 and dev-ruby/rubygems do you have installed? Which USE flags are enabled for dev-lang/ruby:1.9?
Comment 4 David Klann 2012-01-06 03:21:44 UTC
(In reply to comment #3)
> Which versions of dev-lang/ruby:1.9 and dev-ruby/rubygems do you have
> installed? Which USE flags are enabled for dev-lang/ruby:1.9?

Experiencing the same issue here with ~amd64.

dev-lang/ruby: 1.9.3_p0
dev-ruby/rubygems: 1.8.11

ruby:1.9 USE flags: berkdb gdbm ipv6 ncurses rdoc readline ssl yaml
Comment 5 Shannon 2012-01-06 19:13:18 UTC
I receive the same error:

/usr/lib64/ruby/site_ruby/1.9.1/rubygems/specification.rb:575:in
`normalize_yaml_input': invalid byte sequence in US-ASCII (ArgumentError)
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/specification.rb:487:in
`from_yaml'
        from -e:1:in `<main>'


jquery-rails fails to merge with the same error if ruby18+ruby19 or just ruby18 or just ruby19 is set for the target.
Both jquery-rails-1.0.18 & jquery-rails-1.0.19 fail with the same error.


RUBY_TARGET="ruby18 ruby19 -jruby -ree18" 
ACCEPT_KEYWORDS="~amd64"
dev-ruby/rubygems-1.8.11 USE="-server -test" 

RUBY_TARGET="ruby18 ruby19 -ree18" 
ACCEPT_KEYWORDS="~amd64"
dev-ruby/jquery-rails USE="-test"


ACCEPT_KEYWORDS="amd64"
dev-lang/ruby-1.8.7_p357 USE="berkdb examples gdbm ipv6 ncurses readline rubytests socks5 ssl threads -debug -doc -libedit -tk -xemacs"

ACCEPT_KEYWORDS="~amd64"
dev-lang/ruby-1.9.3_p0 USE="berkdb examples gdbm ipv6 ncurses readline rubytests socks5 ssl yaml -debug -doc -tk -xemacs"
Comment 6 Hans de Graaff gentoo-dev Security 2012-01-08 11:18:25 UTC
I haven't been able to reproduce, even with the exact same versions of ruby and rubygems. You could try with rubygems 1.8.15, since there have been minor YAML-related fixes in recent versions, but I don't expect that to help.

Which version of dev-libs/libyaml is being used?
Comment 7 Andreis Vinogradovs ( slepnoga ) 2012-01-08 11:49:15 UTC
Latest - 0.1.4
Comment 8 Andreis Vinogradovs ( slepnoga ) 2012-01-08 11:51:40 UTC
Howto reproduce:

RUBY_TARGETS="ruby18" emerge redmine; RUBY_TARGETS="ruby18 ruby19" emerge redmine
Comment 9 Hans de Graaff gentoo-dev Security 2012-01-08 17:36:27 UTC
(In reply to comment #8)
> Howto reproduce:
> 
> RUBY_TARGETS="ruby18" emerge redmine; RUBY_TARGETS="ruby18 ruby19" emerge
> redmine

www-apps/redmine is slotted to rails:2.3 so it should not pull in rails 3.1.3.
Comment 10 Andreis Vinogradovs ( slepnoga ) 2012-01-08 20:15:17 UTC
I do not think that will work with redmine ruby19; but it's all set depends to the slots
Comment 11 Hans de Graaff gentoo-dev Security 2012-01-14 08:34:15 UTC
I'm assuming that everyone who hits this error has eselected ruby19. Is that correct?
Comment 12 Andreis Vinogradovs ( slepnoga ) 2012-01-14 09:28:47 UTC
(In reply to comment #11)
> I'm assuming that everyone who hits this error has eselected ruby19. Is that
> correct?

Yes, I select ruby19
Comment 13 Hans de Graaff gentoo-dev Security 2012-01-14 11:01:02 UTC
Note that we currently don't support eselecting any ruby other than ruby18.

I just committed a change to CVS that generates the specification in a different way, and I expect that it fixes the problem. Please report back since I can't verify it myself due to not being able to reproduce it.