summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2009-05-27 16:40:13 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2009-05-27 16:40:13 +0000
commiteab9817f8561c47ca07a38f9d3611b95d66348f3 (patch)
tree5c47c535234884c4929b77c1274fa92e168a955b /dev-lang
parentFixed dependency. (diff)
downloadhistorical-eab9817f8561c47ca07a38f9d3611b95d66348f3.tar.gz
historical-eab9817f8561c47ca07a38f9d3611b95d66348f3.tar.bz2
historical-eab9817f8561c47ca07a38f9d3611b95d66348f3.zip
Revision bump, add patches 1) to make Ruby behave more similarly between Linux and (Gentoo/)FreeBSD; 2) to force --no-undefined when building Ruby extensions (undefined symbols in them will cause abort at runtime 3) to remove a concurrency issue when building the dl extension that could result in a broken dl.so.
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/ruby/ChangeLog14
-rw-r--r--dev-lang/ruby/Manifest12
-rw-r--r--dev-lang/ruby/files/ruby-1.9.1_p129-gfbsd7.patch39
-rw-r--r--dev-lang/ruby/files/ruby-1.9.1_p129-no-undefined-ext.patch13
-rw-r--r--dev-lang/ruby/files/ruby-1.9.1_p129-parallelmake.patch14
-rw-r--r--dev-lang/ruby/ruby-1.9.1_p129-r1.ebuild201
6 files changed, 288 insertions, 5 deletions
diff --git a/dev-lang/ruby/ChangeLog b/dev-lang/ruby/ChangeLog
index eed965dd3abe..92df320751c5 100644
--- a/dev-lang/ruby/ChangeLog
+++ b/dev-lang/ruby/ChangeLog
@@ -1,6 +1,18 @@
# ChangeLog for dev-lang/ruby
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.404 2009/05/24 12:11:25 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.405 2009/05/27 16:40:13 flameeyes Exp $
+
+*ruby-1.9.1_p129-r1 (27 May 2009)
+
+ 27 May 2009; Diego E. Pettenò <flameeyes@gentoo.org>
+ +ruby-1.9.1_p129-r1.ebuild, +files/ruby-1.9.1_p129-gfbsd7.patch,
+ +files/ruby-1.9.1_p129-no-undefined-ext.patch,
+ +files/ruby-1.9.1_p129-parallelmake.patch:
+ Revision bump, add patches 1) to make Ruby behave more similarly between
+ Linux and (Gentoo/)FreeBSD; 2) to force --no-undefined when building Ruby
+ extensions (undefined symbols in them will cause abort at runtime 3) to
+ remove a concurrency issue when building the dl extension that could
+ result in a broken dl.so.
24 May 2009; Diego E. Pettenò <flameeyes@gentoo.org>
ruby-1.8.7_p160.ebuild, ruby-1.9.1_p129.ebuild:
diff --git a/dev-lang/ruby/Manifest b/dev-lang/ruby/Manifest
index b517aec551bf..8d56c480ab2d 100644
--- a/dev-lang/ruby/Manifest
+++ b/dev-lang/ruby/Manifest
@@ -8,6 +8,9 @@ AUX ruby-1.8.6-shortname_constants.patch 1390 RMD160 0920bf92ddccf7f01626f705ddb
AUX ruby-1.8.6-uclibc-udp.patch 572 RMD160 7f460b16cbb1385aa9be62bd5df5e4f8fa919af3 SHA1 e119dabbf9654be3eaa1e944f71eb334ef207ffb SHA256 520994dcff6873d089213cf07342b419472a762be44247daebcfe0e853d32e37
AUX ruby-1.8.6_p111-r13657.patch 1915 RMD160 9c135a4e779095127bf7e5d47d2ae3b703e8b41e SHA1 47428434aaa61b5fd11684d8faa8c7db4886b680 SHA256 0856f5987b74be29562e16b3dafc62cb6b874e5536bd73ba2c7fb1e4a4630e24
AUX ruby-1.8.6_p287-entity_expansion_limit.diff 3423 RMD160 a3a48a3fdc3f5923e436e054625d25f7f10ba13c SHA1 642f90e45cb50413ef0ce3b31a5f8f712c55372f SHA256 a3d32bade6bfceb14b67bbc54744801c7ecf6c9e3f6a1204c46bea4a32012e37
+AUX ruby-1.9.1_p129-gfbsd7.patch 1603 RMD160 ae5fda749d12ea23e183897146886557adaad367 SHA1 744cbd8ab623776cda2aa6dcc771791cae107f40 SHA256 b952d98e806cea2edddcc10839cdd5c791a5b0589e24f9c006e86aa9832c9117
+AUX ruby-1.9.1_p129-no-undefined-ext.patch 559 RMD160 721785af8288f89d2c4778aca27d9d82cd1f9a30 SHA1 5f61a5e59603b14e9c8058dcf020ba0ca418e1cf SHA256 0d3721ac441581eadbd97f1d89d29e5c8718048f4f7f9f2be740b2eaf96ba906
+AUX ruby-1.9.1_p129-parallelmake.patch 544 RMD160 60598d521a9f2082e262d0480eb2b880f8407cc7 SHA1 b8803ba5d6b7bfd878fed70cda8ce7d30c94db49 SHA256 b69c7d6e97f2c1846066abd5e48dff8c03c6f39bac0e202be8d9f52ee4100428
AUX ruby-mkconfig.patch 407 RMD160 8fdec98672ce845a94c1b28a17747c1e9dd7ec72 SHA1 1e2b97282f4fa55d213dd0b4e7c75fc53367ce7f SHA256 b1ca3500ac50fa49fa1f478aa34f318cff8d92abcd75edfc80fd96338a59e2f4
AUX ruby18-mkmf-parallel-install.patch 527 RMD160 1cb49132c4b1e6d9d9870b69a2fde79749faa5fe SHA1 8783e18b41563055d7f14cc42b3e30ac65bd6790 SHA256 3d24d95eb33ccb44413859fc6f731f01f8b7b59d8d4d9d6d6cd59e09d046eb78
AUX ruby19-mkmf-parallel-install.patch 541 RMD160 c780d1900a0286c9ab66ac1b4c545e15950b7cff SHA1 b7fcf1a6bfc91f3aaacbf4ce600cace31bd5e9a9 SHA256 335087b90053a675e9c3dd2dde050078ae451feabbd38bc1966fa59055f04c0a
@@ -21,13 +24,14 @@ DIST ruby-1.9.1-p129.tar.bz2 7183891 RMD160 570f567508f9a4ee41e7983ab0a399cbd1a4
EBUILD ruby-1.8.6_p114.ebuild 4942 RMD160 c840276c01dd3e3370416d41ad55e7d4faa584e9 SHA1 a31fbba7d8bce6581423900e983167e53cf1b037 SHA256 19a200859573537ed5b4bf51347d5a622d10ce0856463d9b22694217e6f15209
EBUILD ruby-1.8.6_p368.ebuild 5352 RMD160 b1623b687064f88c97ae9665682266f665d97c7a SHA1 25b2d259617b72a48eb5d1d4306f64b6eedcc49e SHA256 029383d463d2dd3a72075d2af43f9bbd5d9579db87940342a2fcbf77ca824c99
EBUILD ruby-1.8.7_p160.ebuild 5619 RMD160 e7e456d886cf868efd395c618448ab482a5ce628 SHA1 caed7b026ed3ecfac6fa67df45ea43ff6704f488 SHA256 037e25291fe7958e6430befb881795b21e56e6ef10fb35a964bcb7d3b2074ca9
+EBUILD ruby-1.9.1_p129-r1.ebuild 5678 RMD160 6e9abf937c66f8be2f483415288daf00c657bf39 SHA1 ad522a26a719f60705af4083edde740ebed458cb SHA256 29f368130ee67073419f74ddeeb4af348575905a2f54c521ab33e0d96d303b7c
EBUILD ruby-1.9.1_p129.ebuild 5538 RMD160 b8608e8b5287de43ef6f1996270d1d2cccd95ac7 SHA1 77e713a450b68d10ddbebd1cf7d967da95068255 SHA256 8c1c213d9cb537b3428db51653ea50f3e42810359f53d0fd9fed7d378f368872
-MISC ChangeLog 61337 RMD160 d90e3ae14ff4e8632c7e0c51733cace5dbb3eee0 SHA1 01f553840fd0361839851fa13b547791771b7feb SHA256 48d04e6585a8da899b29a8c90b1b7d01c776319d001090660c255c0327e38e50
+MISC ChangeLog 61914 RMD160 7291ac6a686f0422e1467d8358edea73c651eaff SHA1 8a4dd6aa0e005d058df96530bf613d33735bdcc6 SHA256 8fca6177bfa2558239b6ba83c443cf610af98198a4acb0e92538936ee18d4086
MISC metadata.xml 262 RMD160 f8642aa78425fe09dc0e0660cb20a5bd4233d5bb SHA1 64def0369477ecf76b9285fb9c1cf0e6a4f334e5 SHA256 5ee3c0cfedcb966505e4fafcfc5321a8ee20c128da9bbcafff5aa268df588d59
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
-iEYEARECAAYFAkoZOXQACgkQAiZjviIA2XjI6QCg1pIKWy8BXBcHN4YfKlxehoqg
-x1AAniw0hLTVOzS3+MiUX9kseYd1rCXz
-=7dQm
+iEYEARECAAYFAkodbPMACgkQAiZjviIA2XiGMQCff/Wqr2KVcPpfzgZJeeHvF02M
+XWQAn2iReflXyPSmkh9AC6+k1WMa/sOz
+=qA1U
-----END PGP SIGNATURE-----
diff --git a/dev-lang/ruby/files/ruby-1.9.1_p129-gfbsd7.patch b/dev-lang/ruby/files/ruby-1.9.1_p129-gfbsd7.patch
new file mode 100644
index 000000000000..f4d567ae40c4
--- /dev/null
+++ b/dev-lang/ruby/files/ruby-1.9.1_p129-gfbsd7.patch
@@ -0,0 +1,39 @@
+Index: ruby-1.9.1-p129/configure.in
+===================================================================
+--- ruby-1.9.1-p129.orig/configure.in
++++ ruby-1.9.1-p129/configure.in
+@@ -1294,7 +1294,7 @@ if test "$rb_cv_binary_elf" = yes; then
+ fi
+
+ case "$target_os" in
+-linux* | gnu* | k*bsd*-gnu | bsdi*)
++linux* | gnu* | k*bsd*-gnu | bsdi* | freebsd* | dragonfly* )
+ if test "$rb_cv_binary_elf" = no; then
+ with_dln_a_out=yes
+ else
+@@ -1381,7 +1381,7 @@ if test "$with_dln_a_out" != yes; then
+ *shlicc*) : ${LDSHARED="$CC -r"}
+ rb_cv_dlopen=yes ;;
+ esac ;;
+- linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi*)
++ linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | freebsd7*)
+ : ${LDSHARED='${CC} -shared'}
+ if test "$rb_cv_binary_elf" = yes; then
+ LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
+@@ -1393,7 +1393,6 @@ if test "$with_dln_a_out" != yes; then
+ rb_cv_dlopen=yes ;;
+ freebsd*|dragonfly*) : ${LDSHARED="$CC -shared"}
+ if test "$rb_cv_binary_elf" = yes; then
+- LDFLAGS="$LDFLAGS -rdynamic"
+ DLDFLAGS="$DLDFLAGS "'-Wl,-soname,$(.TARGET)'
+ else
+ test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED="ld -Bshareable"
+@@ -1722,7 +1721,7 @@ if test "$enable_shared" = 'yes'; then
+ sunos4*)
+ LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).so'
+ ;;
+- linux* | gnu* | k*bsd*-gnu | atheos*)
++ linux* | gnu* | k*bsd*-gnu | atheos* | freebsd7* )
+ LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR)'
+ LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).so'
+ ;;
diff --git a/dev-lang/ruby/files/ruby-1.9.1_p129-no-undefined-ext.patch b/dev-lang/ruby/files/ruby-1.9.1_p129-no-undefined-ext.patch
new file mode 100644
index 000000000000..08d1876425ca
--- /dev/null
+++ b/dev-lang/ruby/files/ruby-1.9.1_p129-no-undefined-ext.patch
@@ -0,0 +1,13 @@
+Index: ruby-1.9.1-p129/configure.in
+===================================================================
+--- ruby-1.9.1-p129.orig/configure.in
++++ ruby-1.9.1-p129/configure.in
+@@ -1384,7 +1384,7 @@ if test "$with_dln_a_out" != yes; then
+ linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | freebsd7*)
+ : ${LDSHARED='${CC} -shared'}
+ if test "$rb_cv_binary_elf" = yes; then
+- LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
++ LDFLAGS="$LDFLAGS -Wl,-export-dynamic -Wl,--no-undefined"
+ fi
+ rb_cv_dlopen=yes ;;
+ interix*) : ${LDSHARED="$CC -shared"}
diff --git a/dev-lang/ruby/files/ruby-1.9.1_p129-parallelmake.patch b/dev-lang/ruby/files/ruby-1.9.1_p129-parallelmake.patch
new file mode 100644
index 000000000000..60f08d745ff4
--- /dev/null
+++ b/dev-lang/ruby/files/ruby-1.9.1_p129-parallelmake.patch
@@ -0,0 +1,14 @@
+Index: ruby-1.9.1-p129/ext/dl/depend
+===================================================================
+--- ruby-1.9.1-p129.orig/ext/dl/depend
++++ ruby-1.9.1-p129/ext/dl/depend
+@@ -18,7 +18,8 @@ callback-8.o: callback-8.c $(hdrdir)/rub
+
+ callback-0.c callback-1.c callback-2.c \
+ callback-3.c callback-4.c callback-5.c \
+-callback-6.c callback-7.c callback-8.c \
++callback-6.c callback-7.c callback-8.c: callback.h
++
+ callback.h: $(srcdir)/mkcallback.rb dl.h
+ @echo "generating callback.h"
+ @$(RUBY) $(srcdir)/mkcallback.rb $(srcdir)/dl.h
diff --git a/dev-lang/ruby/ruby-1.9.1_p129-r1.ebuild b/dev-lang/ruby/ruby-1.9.1_p129-r1.ebuild
new file mode 100644
index 000000000000..7258a9ea477e
--- /dev/null
+++ b/dev-lang/ruby/ruby-1.9.1_p129-r1.ebuild
@@ -0,0 +1,201 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.9.1_p129-r1.ebuild,v 1.1 2009/05/27 16:40:13 flameeyes Exp $
+
+EAPI=2
+
+inherit autotools eutils flag-o-matic multilib versionator
+
+# Add p0 patchlevel
+MY_P="${P/_/-}"
+
+# 1.9.1.0 -> 1.9
+SLOT=$(get_version_component_range 1-2)
+
+# 1.9.1.0 -> 1.9.1 (used in libdirs)
+RUBYVERSION=$(get_version_component_range 1-3)
+
+# 1.9 -> 19
+MY_SUFFIX=$(delete_version_separator 1 ${SLOT})
+
+DESCRIPTION="An object-oriented scripting language"
+HOMEPAGE="http://www.ruby-lang.org/"
+SRC_URI="mirror://ruby/${MY_P}.tar.bz2"
+
+LICENSE="|| ( Ruby GPL-2 )"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE="berkdb debug doc emacs examples gdbm ipv6 rubytests socks5 ssl tk xemacs"
+
+RDEPEND="
+ berkdb? ( sys-libs/db )
+ gdbm? ( sys-libs/gdbm )
+ ssl? ( dev-libs/openssl )
+ socks5? ( >=net-proxy/dante-1.1.13 )
+ tk? ( dev-lang/tk[threads] )
+ >=app-admin/eselect-ruby-20080921
+ !=dev-lang/ruby-cvs-${SLOT}*
+ !<dev-ruby/rdoc-2
+ !dev-ruby/rexml"
+DEPEND="${RDEPEND}"
+PDEPEND="
+ emacs? ( app-emacs/ruby-mode )
+ xemacs? ( app-xemacs/ruby-modes )"
+
+PROVIDE="virtual/ruby"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ ewarn
+ ewarn "It is highly recommended to install >=dev-ruby/rubygems-1.3.1-r30"
+ ewarn "if you have Ruby 1.8 on this system installed, too."
+ ewarn
+ epause 5
+}
+
+src_prepare() {
+ cd "${S}"
+
+ # Patch wrt bug #238061
+ epatch "${FILESDIR}/ruby19-rubygems-proxy.patch"
+ # Patch for rubygems to find installed gems outside of the sandbox
+ epatch "${FILESDIR}/ruby19-rubygems-gentoo.patch"
+
+ epatch "${FILESDIR}/${PN}${MY_SUFFIX}-mkmf-parallel-install.patch"
+
+ epatch "${FILESDIR}"/${P}-gfbsd7.patch
+ epatch "${FILESDIR}"/${P}-no-undefined-ext.patch
+ epatch "${FILESDIR}"/${P}-parallelmake.patch
+
+ # Strip rake
+ rm "bin/rake"
+ rm "lib/rake.rb"
+ rm -rf "lib/rake"
+
+ # Fix a hardcoded lib path in configure script
+ sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \
+ configure.in || die "sed failed"
+
+ eautoreconf
+}
+
+src_configure() {
+ # -fomit-frame-pointer makes ruby segfault, see bug #150413.
+ filter-flags -fomit-frame-pointer
+ # In many places aliasing rules are broken; play it safe
+ # as it's risky with newer compilers to leave it as it is.
+ append-flags -fno-strict-aliasing
+
+ # Socks support via dante
+ if use socks5 ; then
+ # Socks support can't be disabled as long as SOCKS_SERVER is
+ # set and socks library is present, so need to unset
+ # SOCKS_SERVER in that case.
+ unset SOCKS_SERVER
+ fi
+
+ # Increase GC_MALLOC_LIMIT if set (default is 8000000)
+ if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
+ append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
+ fi
+
+ econf --program-suffix=${MY_SUFFIX} --enable-shared --enable-pthread \
+ $(use_enable socks5 socks) \
+ $(use_enable doc install-doc) \
+ $(use_enable ipv6) \
+ $(use_enable debug) \
+ $(use_with berkdb dbm) \
+ $(use_with gdbm) \
+ $(use_with ssl openssl) \
+ $(use_with tk) \
+ ${myconf} \
+ --enable-option-checking=no \
+ || die "econf failed"
+}
+
+src_compile() {
+ emake EXTLDFLAGS="${LDFLAGS}" || die "emake failed"
+}
+
+src_test() {
+ emake test || die "make test failed"
+
+ elog "Ruby's make test has been run. Ruby also ships with a make check"
+ elog "that cannot be run until after ruby has been installed."
+ elog
+ if use rubytests; then
+ elog "You have enabled rubytests, so they will be installed to"
+ elog "/usr/share/${PN}-${RUBYVERSION}/test. To run them you must be a user other"
+ elog "than root, and you must place them into a writeable directory."
+ elog "Then call: "
+ elog
+ elog "ruby19 -C /location/of/tests runner.rb"
+ else
+ elog "Enable the rubytests USE flag to install the make check tests"
+ fi
+}
+
+src_install() {
+ # Ruby is involved in the install process, we don't want interference here.
+ unset RUBYOPT
+
+ # Creating the rubygems directories, bug #230163 once more.
+ local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby)
+ keepdir /usr/$(get_libdir)/ruby${MY_SUFFIX}/gems/${RUBYVERSION}/{doc,gems,cache,specifications}
+
+ export GEM_HOME="${D}/usr/$(get_libdir)/ruby${MY_SUFFIX}/gems/${RUBYVERSION}"
+ export GEM_PATH="${GEM_HOME}/"
+
+ LD_LIBRARY_PATH="${D}/usr/$(get_libdir)"
+ RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"
+ for d in $(find "${S}/ext" -type d) ; do
+ RUBYLIB="${RUBYLIB}:$d"
+ done
+ export LD_LIBRARY_PATH RUBYLIB
+
+ emake DESTDIR="${D}" install || die "make install failed"
+
+ keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitelibdir']")
+ keepdir $(${MINIRUBY} -rrbconfig -e "print Config::CONFIG['sitearchdir']")
+
+ if use doc; then
+ make DESTDIR="${D}" install-doc || die "make install-doc failed"
+ fi
+
+ if use examples; then
+ dodir /usr/share/doc/${PF}
+ cp -pPR sample "${D}/usr/share/doc/${PF}"
+ fi
+
+ dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
+ "/usr/$(get_libdir)/libruby$(get_libname ${PV%.*})"
+ dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \
+ "/usr/$(get_libdir)/libruby$(get_libname ${PV%_*})"
+
+ dodoc ChangeLog NEWS doc/NEWS-1.8.7 README* ToDo
+
+ if use rubytests; then
+ dodir /usr/share/${PN}-${RUBYVERSION}
+ cp -pPR test "${D}/usr/share/${PN}-${RUBYVERSION}"
+ fi
+
+ insinto /usr/$(get_libdir)/ruby${MY_SUFFIX}/site_ruby/
+ newins "${FILESDIR}/auto_gem.rb" auto_gem.rb
+}
+
+pkg_postinst() {
+ if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
+ eselect ruby set ruby${MY_SUFFIX}
+ fi
+
+ elog
+ elog "To switch between available Ruby profiles, execute as root:"
+ elog "\teselect ruby set ruby(18|19|...)"
+ elog
+}
+
+pkg_postrm() {
+ if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then
+ eselect ruby set ruby${MY_SUFFIX}
+ fi
+}