2013/3/6 Jeremy Evans <jer...@openbsd.org>: > Ruby 2.0 was released about a week and a half ago, with a bunch of > new features: > > Some of the highlights: > > Language core features > Keyword arguments, which give flexibility to API design > Module#prepend, which is a new way to extend a class > A literal %i, which creates an array of symbols easily > __dir__, which returns the dirname of the file being executed > UTF-8 default encoding > Built-in libraries > Enumerable#lazy and Enumerator::Lazy, for lazy streams > Enumerator#size and Range#size, for lazy size evaluation > #to_h, which is a new convention for conversion to Hash > Onigmo, which is a new regexp engine (a fork of Oniguruma) > Asynchronous exception handling API > Debug support > DTrace support, which enables run-time diagnosis in production > TracePoint, which is an improved tracing API > Performance improvements > GC optimization by bitmap marking > Kernel#require optimization which makes Rails startup very fast > VM optimization such as method dispatch > Float operation optimization > > On the ports side of things, here are the significant changes: > > * Have the subpackages (gdbm, tk, ri_docs) use a ruby20- prefix > instead of a ruby- prefix. This way the packages are named > more similar to external packages, and they no longer need > special conflict handling. > > * The dbm subpackage has been integrated into the main package, > since the dbm extension now uses the support in libc instead > of an external package. > > * Libiconv is no longer necessary, as ruby 2.0 no longer includes > an iconv library (it was deprecated in ruby 1.9). > > * A pre-install target has been added for removing *.orig files. > > * Due to a upstream issue, bash is currently required to run the > configure script. This issue is already fixed upstream, > hopefully it'll be backported and make it into the next patchlevel > release. > > * The regress test suite currently appears to hang, or at least run > for an extremely long time. I've decided to skip a couple regress > test files that contain tests that take thousands of seconds to > execute. Also, tests now run in verbose mode by default. > > Tested on i386 and amd64. Looking for OKs to commit after ports is > fully unlocked.
Got this error with gem that compiles fine on Ruby 1.9: 21:03 0 pers@persx201i:/usr/ports/mystuff/devel/ruby-activesupport$ FLAVOR=ruby20 make ===> ruby20-activesupport-3.2.12 depends on: ruby20-multi_json->=1.0,<2.0 -> ruby20-multi_json-1.0.3p0 ===> ruby20-activesupport-3.2.12 depends on: ruby19-i18n-* -> ruby19-i18n-0.6.0p0 ===> ruby20-activesupport-3.2.12 depends on: ruby->=2.0,<2.1 -> ruby-2.0.0.0 ===> Checking files for ruby20-activesupport-3.2.12 `/home/distfiles/activesupport-3.2.12.gem' is up to date. >> (SHA256) activesupport-3.2.12.gem: OK ===> Extracting for ruby20-activesupport-3.2.12 mkdir -p /usr/ports/pobj/activesupport-3.2.12-ruby20/activesupport-3.2.12 /usr/ports/pobj/activesupport-3.2.12-ruby20/gem-content; cd /usr/ports/pobj/activesupport-3.2.12-ruby20/gem-content && tar -xf /home/distfiles/activesupport-3.2.12.gem; cd /usr/ports/pobj/activesupport-3.2.12-ruby20/activesupport-3.2.12 && tar -xzf /usr/ports/pobj/activesupport-3.2.12-ruby20/gem-content/data.tar.gz && rm -f /usr/ports/pobj/activesupport-3.2.12-ruby20/gem-content/data.tar.gz; gzcat /usr/ports/pobj/activesupport-3.2.12-ruby20/gem-content/metadata.gz > /usr/ports/pobj/activesupport-3.2.12-ruby20/activesupport-3.2.12/.metadata; rm -f /usr/ports/pobj/activesupport-3.2.12-ruby20/gem-content/*.gz.sig ===> Patching for ruby20-activesupport-3.2.12 ===> Configuring for ruby20-activesupport-3.2.12 ===> Building for ruby20-activesupport-3.2.12 if [ -f /usr/ports/pobj/activesupport-3.2.12-ruby20/activesupport-3.2.12/.metadata ]; then cd /usr/ports/pobj/activesupport-3.2.12-ruby20/activesupport-3.2.12 && gzip .metadata && mv -f .metadata.gz /usr/ports/pobj/activesupport-3.2.12-ruby20/gem-content/metadata.gz; fi; cd /usr/ports/pobj/activesupport-3.2.12-ruby20/activesupport-3.2.12 && find . -type f \! -name '*.orig' -print | pax -wz -s '/^\.\///' -f /usr/ports/pobj/activesupport-3.2.12-ruby20/gem-content/data.tar.gz; cd /usr/ports/pobj/activesupport-3.2.12-ruby20/gem-content && tar -cf /usr/ports/pobj/activesupport-3.2.12-ruby20/activesupport-3.2.12.gem *.gz; mkdir -p /usr/ports/pobj/activesupport-3.2.12-ruby20/gem-tmp/.gem; env -i PATH='/usr/ports/pobj/activesupport-3.2.12-ruby20/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/bin:/usr/X11R6/bin' PREFIX='/usr/local' LOCALBASE='/usr/local' DEPBASE='/usr/local' X11BASE='/usr/X11R6' CFLAGS='-O2 -pipe' TRUEPREFIX='/usr/local' DESTDIR='' HOME='/activesupport-3.2.12_writes_to_HOME' ELF_TOOLCHAIN=yes COMPILER_VERSION=gcc4 PICFLAG="-fpic" ASPICFLAG= BINGRP=bin BINOWN=root BINMODE=555 NONBINMODE=444 DIRMODE=755 INSTALL_COPY=-c INSTALL_STRIP=-s MANGRP=bin MANOWN=root MANMODE=444 BSD_INSTALL_PROGRAM="install -c -s -o root -g bin -m 555" BSD_INSTALL_SCRIPT="install -c -o root -g bin -m 555" BSD_INSTALL_DATA="install -c -o root -g bin -m 444" BSD_INSTALL_MAN="install -c -o root -g bin -m 444" BSD_INSTALL_PROGRAM_DIR="install -d -o root -g bin -m 755" BSD_INSTALL_SCRIPT_DIR="install -d -o root -g bin -m 755" BSD_INSTALL_DATA_DIR="install -d -o root -g bin -m 755" BSD_INSTALL_MAN_DIR="install -d -o root -g bin -m 755" HOME=`dirname /usr/ports/pobj/activesupport-3.2.12-ruby20/gem-tmp/.gem` GEM_HOME=/usr/ports/pobj/activesupport-3.2.12-ruby20/gem-tmp/.gem make="make V=1" /usr/local/bin/gem20 install --local --no-rdoc --no-ri --no-force --verbose --backtrace --user-install /usr/ports/pobj/activesupport-3.2.12-ruby20/activesupport-3.2.12.gem -- ERROR: While executing gem ... (Gem::Package::FormatError) SHA1 checksum mismatch for data.tar.gz in /usr/ports/pobj/activesupport-3.2.12-ruby20/activesupport-3.2.12.gem /usr/local/lib/ruby/2.0/rubygems/package.rb:502:in `block (2 levels) in verify_checksums' /usr/local/lib/ruby/2.0/rubygems/package.rb:498:in `each' /usr/local/lib/ruby/2.0/rubygems/package.rb:498:in `block in verify_checksums' /usr/local/lib/ruby/2.0/rubygems/package.rb:497:in `each' /usr/local/lib/ruby/2.0/rubygems/package.rb:497:in `verify_checksums' /usr/local/lib/ruby/2.0/rubygems/package.rb:474:in `verify' /usr/local/lib/ruby/2.0/rubygems/package.rb:447:in `spec' /usr/local/lib/ruby/2.0/rubygems/source_specific_file.rb:7:in `initialize' /usr/local/lib/ruby/2.0/rubygems/dependency_installer.rb:263:in `new' /usr/local/lib/ruby/2.0/rubygems/dependency_installer.rb:263:in `find_spec_by_name_and_version' /usr/local/lib/ruby/2.0/rubygems/dependency_installer.rb:306:in `install' /usr/local/lib/ruby/2.0/rubygems/commands/install_command.rb:166:in `block in execute' /usr/local/lib/ruby/2.0/rubygems/commands/install_command.rb:158:in `each' /usr/local/lib/ruby/2.0/rubygems/commands/install_command.rb:158:in `execute' /usr/local/lib/ruby/2.0/rubygems/command.rb:305:in `invoke_with_build_args' /usr/local/lib/ruby/2.0/rubygems/command_manager.rb:170:in `process_args' /usr/local/lib/ruby/2.0/rubygems/command_manager.rb:130:in `run' /usr/local/lib/ruby/2.0/rubygems/gem_runner.rb:60:in `run' /usr/local/bin/gem20:21:in `<main>' *** Error 1 in . (/usr/ports/lang/ruby/ruby.port.mk:413 'do-build') *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2634 '/usr/ports/pobj/activesupport-3.2.12-ruby20/.build_done') *** Error 1 in /usr/ports/mystuff/devel/ruby-activesupport (/usr/ports/infrastructure/mk/bsd.port.mk:2357 'all') -- WBR, Vadim Zhukov