dev-ruby/racc-1.4.5 has USE_RUBY="ruby18 ruby19" in the ebuild to signify building extensions for ruby19, but building against ruby19 fails. Ruby18 build completes successfully. Reproducible: Always Steps to Reproduce: 1. Install ruby19 2. Emerge dev-ruby/racc-1.4.5 Actual Results: Emerge failed Expected Results: Emerge succeeded Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 i686) ================================================================= System uname: Linux-2.6.29-gentoo-r5-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5200+-with-glibc2.0 Timestamp of tree: Sun, 05 Jul 2009 09:15:02 +0000 app-shells/bash: 3.2_p39 dev-lang/python: 2.5.4-r3 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.virginmedia.com" LDFLAGS="-Wl,-O1" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="--bwlimit=2048" 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="/usr/local/portage/layman/ruby /usr/local/portage/layman/gentoo-rubygems-overlay" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl bash-completion berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Created attachment 196818 [details] build.log build.log for dev-ruby/racc-1.4.5 with ruby19 installed (dev-lang/ruby-1.9.1_p129-r99)
Fixed in CVS. Closing this bug since we don't intend to fix ruby 1.9 compatibility issues ourselves. Feel free to reopen if you've got a patch.
--- racc-1.4.5.ebuild +++ racc-1.4.6.ebuild @@ -4,16 +4,14 @@ inherit ruby -MY_P=${P}-all DESCRIPTION="A LALR(1) parser generator for Ruby" HOMEPAGE="http://www.loveruby.net/en/racc.html" -SRC_URI="http://www.loveruby.net/archive/racc/${MY_P}.tar.gz" +SRC_URI="http://rubyforge.org/frs/download.php/49028/${P}.tgz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86" -USE_RUBY="ruby18" +USE_RUBY="ruby18 ruby19" IUSE="" -S="${WORKDIR}/${MY_P}" DEPEND=">=dev-lang/ruby-1.8"
(In reply to comment #3) Does this version work for you? If so, with which ruby versions? Using ruby 1.8.7_p174 this breaks for me: x86_64-pc-linux-gnu-gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux -I/var/tmp/portage/dev-ruby/racc-1.4.6/work/racc-1.4.6/ext/racc/cparse -fPIC -O2 -pipe -march=native -fno-strict-aliasing -fPIC -c cparse.c cparse.c:14:23: error: ruby/ruby.h: No such file or directory cparse.c:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘RaccBug’ cparse.c:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CparseParams’
See previous comment which didn't get mailed out due to a bug in Bugzilla.
(In reply to comment #4) > (In reply to comment #3) > > Does this version work for you? If so, with which ruby versions? Using ruby > 1.8.7_p174 this breaks for me: > > x86_64-pc-linux-gnu-gcc -I. -I/usr/lib64/ruby/1.8/x86_64-linux > -I/usr/lib64/ruby/1.8/x86_64-linux > -I/var/tmp/portage/dev-ruby/racc-1.4.6/work/racc-1.4.6/ext/racc/cparse -fPIC -O2 -pipe -march=native -fno-strict-aliasing -fPIC -c cparse.c ruby-1.9.1_p243 After modifying ebuild (in local overlay) the portage "dev-ruby/racc-1.4.6" has been installed without any problem. See http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/f47a6339d5e3e600 I am just testing racc for ruby 1.9.1 now. I'll report in case of any bug.
> > Does this version work for you? If so, with which ruby versions? > > > > ruby-1.9.1_p243 > amd64
The reason for the failure I'm getting is that my ruby.h is /usr/lib64/ruby/1.8/x86_64-linux/ruby.h while the compiler looks in "-I. -I/usr/lib64/ruby/1.8/x86_64-linux -I/usr/lib64/ruby/1.8/x86_64-linux" for "ruby/ruby.h", which obviously isn't found. Not sure if this is a bug in racc or a problem with our ruby setup.
This should be fixed with our new ebuild using fakegem.