X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from dal-a2.localdomain (unknown [74.117.189.115]) by mail.alpinelinux.org (Postfix) with ESMTP id 8A3F5DC00FC for ; Tue, 9 Jul 2013 13:33:06 +0000 (UTC) Received: from ncopa-desktop.alpinelinux.org (3.203.202.84.customer.cdi.no [84.202.203.3]) (using SSLv3 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: ncopa@tanael.org) by dal-a2.localdomain (Postfix) with ESMTPSA id B571FBC296A; Tue, 9 Jul 2013 13:33:05 +0000 (UTC) Date: Tue, 9 Jul 2013 15:33:02 +0200 From: Natanael Copa To: Quora Dodrill Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] [PATCH] main/ruby: Added dependency on ruby-gems. Message-ID: <20130709153302.5faef92f@ncopa-desktop.alpinelinux.org> In-Reply-To: References: X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.20; x86_64-unknown-linux-gnu) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 8 Jul 2013 14:57:12 -0700 Quora Dodrill wrote: > From 4aa434f8b8cf208ac5087791094aa45412128e95 Mon Sep 17 00:00:00 2001 > > Instllaing ruby without ruby-gems makes ruby fail with the following error > when trying to run ruby without a file to interpret. > > [quora@genesect:~] > ruby > /usr/lib/ruby/2.0.0/rubygems.rb:15:in `require': cannot load such file -- > rubygems/compatibility (LoadError) > from /usr/lib/ruby/2.0.0/rubygems.rb:15:in `' > from :1:in `require' > from :1:in `' > > Installing ruby-gems fixes this and makes ruby programs run as they should. > --- > main/ruby/APKBUILD | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/main/ruby/APKBUILD b/main/ruby/APKBUILD > index 9da0f6d..df63972 100644 > --- a/main/ruby/APKBUILD > +++ b/main/ruby/APKBUILD > @@ -11,7 +11,7 @@ pkgdesc="An object-oriented language for quick and easy > programming" > url="http://www.ruby-lang.org/en/" > arch="all" > license="Ruby" > -depends="" > +depends="ruby-gems" > makedepends="zlib-dev openssl-dev libiconv-dev gdbm-dev db-dev readline-dev > libffi-dev coreutils yaml-dev autoconf" > subpackages="$pkgname-doc $pkgname-dev $pkgname-irb $pkgname-gems \ The patch didn't apply. Also, the ruby-gems package depends on ruby so this would introduce a circular dependency. I wonder if we should just drop the ruby-gems subpackage and let ruby-libs ship the libs and 'ruby' package ship the /usr/bin/gems file. That seems to be the most sane way to solve this. What do you think? -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---