Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489338 - =app-misc/hivex-1.3.2-r2 - Fails to compile ruby bindings with ruby (1.9.3p448), rake (10.1.0), RDoc (4.0.1) - ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc 2.4.2+) instead.
Summary: =app-misc/hivex-1.3.2-r2 - Fails to compile ruby bindings with ruby (1.9.3p44...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Andreis Vinogradovs ( slepnoga )
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-10-25 08:14 UTC by Michele Testa
Modified: 2014-07-04 12:02 UTC (History)
3 users (show)

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


Attachments
A simple patch to solve this issue (hivex-1.3.2-r2_ruby_bindings.patch,1.64 KB, patch)
2013-10-25 08:21 UTC, Michele Testa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michele Testa 2013-10-25 08:14:31 UTC
Emerging app-misc/hivex-1.3.2-r2 with +ruby flag:

Ruby bindings ....................... yes

fails due to many obsolete classes/methods in my ruby environment:

$ ruby --version
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux]

 $ gem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 2.0.10
  - RUBY VERSION: 1.9.3 (2013-06-27 patchlevel 448) [x86_64-linux]
  - INSTALLATION DIRECTORY: /home/mike/.gem/ruby/1.9.1
  - RUBY EXECUTABLE: /usr/bin/ruby19
  - EXECUTABLE DIRECTORY: /home/mike/.gem/ruby/1.9.1/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /home/mike/.gem/ruby/1.9.1
     - /usr/local/lib64/ruby/gems/1.9.1
     - /usr/lib64/ruby/gems/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/

$ gem list

*** LOCAL GEMS ***

actionmailer (4.0.0, 3.2.13)
actionpack (4.0.0, 3.2.13)
activemodel (4.0.0, 3.2.14, 3.2.13, 3.1.1)
activerecord (4.0.0, 3.2.14, 3.2.13, 2.3.18, 2.3.8)
activerecord-deprecated_finders (1.0.3)
activerecord-odbc-adapter (2.0)
activerecord-sqlserver-adapter (3.2.12, 2.3.24)
activeresource (4.0.0, 3.2.13)
activesupport (4.0.0, 3.2.14, 3.2.13, 3.1.1, 3.0.20, 2.3.18, 2.3.8)
afm (0.2.0)
archive-tar-minitar (0.5.2)
arel (4.0.0, 3.0.2, 2.2.1)
Ascii85 (1.0.2)
atomic (1.1.10)
builder (3.2.2)
bundle (0.0.1)
bundler (1.3.5)
capybara (2.1.0)
columnize (0.3.6)
cucumber (1.3.6)
cucumber-rails (1.3.1)
debugger-ruby_core_source (1.1.9)
diff-lcs (1.2.4)
domain_name (0.5.12)
erubis (2.7.0)
gettext (2.3.9)
gherkin (2.12.1)
hashery (2.1.0)
hike (1.2.3)
hoe (3.7.0, 2.13.0)
hpricot (0.8.6)
htmlentities (4.3.1)
http-cookie (1.0.1)
i18n (0.6.5, 0.6.4, 0.6.1, 0.6.0, 0.5.0)
journey (1.0.4)
json (1.8.1)
levenshtein (0.2.2)
libxml-ruby (2.7.0, 2.6.0)
linecache193 (0.0.1)
locale (2.0.8, 2.0.5)
macaddr (1.6.1)
mail (2.5.4)
mechanize (2.7.2, 2.7.1)
mime-types (1.24, 1.23)
mini_portile (0.5.1)
minitest (5.0.6, 4.7.4, 2.8.0)
multi_json (1.7.9, 1.7.7, 1.0.3)
multi_test (0.0.2)
net-http-digest_auth (1.4)
net-http-persistent (2.9)
nokogiri (1.6.0)
ntlm-http (0.1.1)
pdf-reader (1.3.3)
polyglot (0.3.3)
prawn (0.12.0)
racc (1.4.10, 1.4.9)
rack (1.5.2, 1.4.5)
rack-cache (1.2)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (4.0.0, 3.2.13)
rails-observers (0.1.2)
railties (4.0.0, 3.2.13)
rake (10.1.0, 10.0.4, 0.9.6)
rbx-require-relative (0.0.9)
rdoc (4.0.1, 3.11)
rspec (2.14.1)
rspec-core (2.14.5)
rspec-expectations (2.14.2)
rspec-mocks (2.14.3)
ruby-graphviz (1.0.9)
ruby-odbc (0.99995, 0.99994)
ruby-rc4 (0.1.5)
ruby_core_source (0.1.5)
rubyforge (2.0.4)
rubygems-update (2.0.7)
sprockets (2.10.0, 2.2.2)
sprockets-rails (2.0.0)
systemu (2.5.2)
test-unit (2.5.5, 2.5.3)
text (1.2.1)
thor (0.18.1)
thread_safe (0.1.2)
tilt (1.4.1)
tiny_tds (0.6.1)
treetop (1.4.14)
ttfunk (1.0.3)
tzinfo (1.0.1, 0.3.37, 0.3.30)
unf (0.1.2, 0.1.1)
unf_ext (0.0.6)
uuid (2.3.7)
webrobots (0.1.1)
xpath (2.0.0)


Reproducible: Always

Steps to Reproduce:
emerge app-misc/hivex in ruby environment shown above
Actual Results:  
make[2]: Leaving directory `/home/portage/portage/app-misc/hivex-1.3.2-r2/work/hivex-1.3.2/regedit'
Making all in ruby
-e:1: Use RbConfig instead of obsolete and deprecated Config.
-e:1: Use RbConfig instead of obsolete and deprecated Config.
make[2]: Entering directory `/home/portage/portage/app-misc/hivex-1.3.2-r2/work/hivex-1.3.2/ruby'
rake build
rake aborted!
ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc 2.4.2+) instead.
/home/portage/portage/app-misc/hivex-1.3.2-r2/work/hivex-1.3.2/ruby/Rakefile:20:in `<top (required)>'
(See full trace by running task with --trace)
make[2]: *** [all] Error 1
make[2]: Leaving directory `/home/portage/portage/app-misc/hivex-1.3.2-r2/work/hivex-1.3.2/ruby'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/portage/portage/app-misc/hivex-1.3.2-r2/work/hivex-1.3.2'
make: *** [all] Errore 2


Expected Results:  
Emerging with ruby bindings succeeded

$ emerge --info 
Portage 2.2.7 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.15-r3, 3.10.7-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.10.7-gentoo-r1-x86_64-Pentium-R-_Dual-Core_CPU_E5400_@_2.70GHz-with-gentoo-2.2
KiB Mem:     3048316 total,    169584 free
KiB Swap:    2096444 total,   2075356 free
Timestamp of tree: Fri, 25 Oct 2013 00:45:01 +0000
ld ld di GNU (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.2.5-r3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4, 4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /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"
CPPFLAGS="-march=native -O2 -pipe"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://de-mirror.org/gentoo/ http://gentoo.fh-luh.de/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://mirror.iawnet.sandia.gov/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo/ http://lug.mtu.edu/gentoo/ http://gentoo.wheel.sk/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://gentoo.modulix.net/gentoo/ http://gentoo.lagis.at/ http://mirror.leaseweb.com/gentoo/ http://gentoo.mneisen.org/ http://mirror.switch.ch/ftp/mirror/gentoo/"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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"
PORTAGE_TMPDIR="/home/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 apache2_modules bash-completion berkdb bluetooth bonjour branding bzip2 cairo cdda cddb cdr cli clucene consolekit corefonts cracklib crypt cups cxx dbus declarative dri dts dvd dvdr dvdread emboss encode exif fam ffmpeg firefox flac fortran freetds fts3 gdbm gif gnutls gpm gtk iconv id3tag ipod ipv6 java jpeg kde kerberos kipi lame lcms ldap libnotify live lm_sensors mad mmx mmxext mng modules mozilla mp3 mp4 mpeg mpi msn mudflap multilib mysql ncurses nls nptl nsplugin odbc ogg opengl openmp oscar pam pango pcre pcsc-lite pdf phonon pkcs11 plasma png policykit polkit-kde-agent ppds private-headers python3 qemu qscintilla qt3support qt4 quicktime quota readline real ruby samba schroedinger sdl semantic-desktop sensord session smartcard spell spice sqlite sse sse2 sse3 ssl ssse3 startup-notification svg swat symlink syslog tcpd test theora threads tiff tk truetype udev udisks unicode upower usb vim-syntax virt-network virtfs virtuoso vorbis webgl webkit winbind wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xulrunner xv xvfb xvid yahoo zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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="kexi words flow plan sheets stage tables krita karbon braindump author" 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="it" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18 ruby19 ruby20 rbx" USERLAND="GNU" VIDEO_CARDS="intel" 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"
USE_PYTHON="2.7 3.2"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Michele Testa 2013-10-25 08:21:13 UTC
Created attachment 361874 [details, diff]
A simple patch to solve this issue

I update

in Rakefile:
'rake/rdoctask'       => 'rdoc/task'
'rake/gempackagetask' => 'rake/packagetask'

in _hivex.c
RSTRING (value)->len  => RSTRING_LEN (value)
RSTRING (value)->ptr  => RSTRING_PTR (value)
Comment 2 Maxim Koltsov (RETIRED) gentoo-dev 2013-10-27 12:09:18 UTC
It's fixed awhile ago in 1.3.7 branch, we will consider making it stable.
Comment 3 Andreis Vinogradovs ( slepnoga ) 2014-07-04 12:02:24 UTC
hivex-1.3.2 is very old to ruby 1.9; it's build fine  with ruby1.8.
In next version this bug fixed.