Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 416963 - dev-ruby/racc-1.4.6-r1 should depend on dev-vcs/git
Summary: dev-ruby/racc-1.4.6-r1 should depend on dev-vcs/git
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 411507
  Show dependency tree
 
Reported: 2012-05-21 19:06 UTC by Jim Faulkner
Modified: 2012-05-22 15:46 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Faulkner 2012-05-21 19:06:52 UTC
The dev-ruby/racc-1.4.6-r1 build fails without dev-vcs/git installed:

>>> Emerging (3 of 5) dev-ruby/racc-1.4.6-r1
 * racc-1.4.6.gem RMD160 SHA1 SHA256 size ;-) ...                                                                                       [ ok ]
>>> 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/racc-1.4.6-r1/work
>>> Preparing source in /var/tmp/portage/dev-ruby/racc-1.4.6-r1/work ...
 * Running prepare phase for all ...
 * Applying racc-1.4.6-test-unit.patch ...                                                                                              [ ok ]
 * Running source copy phase for ruby18 ...
 * Running source copy phase for ruby19 ...
 * Running prepare phase for ruby18 ...
 * Running prepare phase for ruby19 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-ruby/racc-1.4.6-r1/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-ruby/racc-1.4.6-r1/work ...
 * Running compile phase for ruby18 ...
(in /var/tmp/portage/dev-ruby/racc-1.4.6-r1/work/ruby18/racc-1.4.6)
./tasks/gem.rb:37: command not found: git ls-files
/usr/bin/ruby18 extconf.rb
creating Makefile
make
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.   -fPIC -march=core2 -O2 -pipe -fno-strict-aliasing  -fPIC   -c cparse.c
x86_64-pc-linux-gnu-gcc -shared -o cparse.so cparse.o -L. -L/usr/lib64 -Wl,-R/usr/lib64 -L. -Wl,-O1 -Wl,--as-needed -rdynamic -Wl,-export-dynamic -Wl,--no-undefined    -Wl,-R -Wl,/usr/lib64 -L/usr/lib64 -lruby18  -lpthread -lrt -ldl -lcrypt -lm   -lc
 * Running compile phase for ruby19 ...
/usr/lib64/ruby/gems/1.9.1/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
(in /var/tmp/portage/dev-ruby/racc-1.4.6-r1/work/ruby19/racc-1.4.6)
rake aborted!
No such file or directory - git ls-files
/var/tmp/portage/dev-ruby/racc-1.4.6-r1/work/ruby19/racc-1.4.6/Rakefile:11:in `<top (required)>'
(See full trace by running task with --trace)
 * ERROR: dev-ruby/racc-1.4.6-r1 failed (compile phase):
 *   build failed
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 4204:  Called ruby-ng_src_compile
 *   environment, line 3899:  Called _ruby_each_implementation 'each_ruby_compile'
 *   environment, line  379:  Called _ruby_invoke_environment 'ruby19' 'each_ruby_compile'
 *   environment, line  431:  Called each_ruby_compile
 *   environment, line  722:  Called die
 * The specific snippet of code:
 *               ${RUBY} -S rake build || die "build failed";
 * 
 * If you need support, post the output of 'emerge --info =dev-ruby/racc-1.4.6-r1',
 * the complete build log and the output of 'emerge -pqv =dev-ruby/racc-1.4.6-r1'.
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info
 * The complete build log is located at '/var/tmp/portage/dev-ruby/racc-1.4.6-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/racc-1.4.6-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-ruby/racc-1.4.6-r1/work/ruby19/racc-1.4.6'

>>> Failed to emerge dev-ruby/racc-1.4.6-r1, Log file:

>>>  '/var/tmp/portage/dev-ruby/racc-1.4.6-r1/temp/build.log'

 * Messages for package dev-ruby/racc-1.4.6-r1:

 * ERROR: dev-ruby/racc-1.4.6-r1 failed (compile phase):
 *   build failed
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 4204:  Called ruby-ng_src_compile
 *   environment, line 3899:  Called _ruby_each_implementation 'each_ruby_compile'
 *   environment, line  379:  Called _ruby_invoke_environment 'ruby19' 'each_ruby_compile'
 *   environment, line  431:  Called each_ruby_compile
 *   environment, line  722:  Called die
 * The specific snippet of code:
 *               ${RUBY} -S rake build || die "build failed";
 * 
 * If you need support, post the output of 'emerge --info =dev-ruby/racc-1.4.6-r1',
 * the complete build log and the output of 'emerge -pqv =dev-ruby/racc-1.4.6-r1'.
 * The complete build log is located at '/var/tmp/portage/dev-ruby/racc-1.4.6-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-ruby/racc-1.4.6-r1/temp/environment'.
 * S: '/var/tmp/portage/dev-ruby/racc-1.4.6-r1/work/ruby19/racc-1.4.6'

 * GNU info directory index is up-to-date.
 * After world updates, it is important to remove obsolete packages with
 * emerge --depclean. Refer to `man emerge` for more information.
warthog ~ #

It does work when dev-vcs/git is installed.  dev-ruby/racc-1.4.6-r1 should depend on dev-vcs/git.

Reproducible: Always




Portage 2.1.10.49 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.14.1-r3, 3.3.5 x86_64)
=================================================================
System uname: Linux-3.3.5-x86_64-Intel-R-_Xeon-R-_CPU_5140_@_2.33GHz-with-gentoo-2.1
Timestamp of tree: Mon, 21 May 2012 15:15:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r1, 3.2.3
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo x-portage-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.3 Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=core2 -O2 -fomit-frame-pointer -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j5 -l 4.0"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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-overlay"
SYNC="rsync://jove.eng.yale.edu/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dell device-mapper dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gnutls gpm gtk iconv icu ieee1394 ipv6 jpeg kde kipi lcms ldap libnotify lzma mad mbox mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib ncurses networkmanager nls nptl offensive ogg opengl openmp pam pango pcre pdf perl phonon plasma png policykit ppds pppd python qt3support qt4 readline sdl semantic-desktop session spell sse sse2 sse3 sse4 sse4_1 ssl ssse3 startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vim-syntax vorbis wxwidgets x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid 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" CALLIGRA_FEATURES="kexi words flow plan sheets 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" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="dummy fbdev nouveau radeon vesa" 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, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Michael Orlitzky gentoo-dev 2012-05-22 00:15:57 UTC
This isn't a real requirement on git. An easy way to specify which files belong in a gem -- when you're creating the gem -- is with git ls-files. However, ruby is a scripting language, so if you include a file with,

  foo = `git ls-files`

in it, that command will really be executed when the file is included. The Rakefile for racc does that:

  require 'tasks/gem'
  require 'tasks/doc' (this requires tasks/gem)

So even though you don't need to build a gem, the Rakefile is crashing during "rake build."

Commenting those two lines allows "rake build" to complete; I'm sure the maintainer will know what to do though.
Comment 2 Hans de Graaff gentoo-dev Security 2012-05-22 15:46:26 UTC
(In reply to comment #1)

> Commenting those two lines allows "rake build" to complete; I'm sure the
> maintainer will know what to do though.

Correct, the git ls-files line is now gone from racc-1.4.6-r1, and thus the need for git.