From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GVZmj-0007es-0Z for garchives@archives.gentoo.org; Thu, 05 Oct 2006 20:25:37 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k95KObFH001008; Thu, 5 Oct 2006 20:24:37 GMT Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k95KMoNU013667 for ; Thu, 5 Oct 2006 20:22:50 GMT Received: by ug-out-1314.google.com with SMTP id p27so250692ugc for ; Thu, 05 Oct 2006 13:22:50 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=MY4tPjpHwVLyBdz0y9pIX70ncpwh2nKmWMtsbcnJ8XVgW8Hx5K5qhH+AF8/TDM5B8BQxlDwVKPP2/eAQUO3YqwDeOtEHYcoJ1bABgdrHfrlt/pGPhySVA9xpdg3NJ/Y8yRf23iG1jiE/uRHKChFuJsbvkusVaNOldpBTiO84Zts= Received: by 10.67.100.12 with SMTP id c12mr2428336ugm; Thu, 05 Oct 2006 13:16:07 -0700 (PDT) Received: by 10.67.86.9 with HTTP; Thu, 5 Oct 2006 13:16:06 -0700 (PDT) Message-ID: <97c95c3d0610051316y4577bf75tb14ddd70799b4824@mail.gmail.com> Date: Thu, 5 Oct 2006 22:16:06 +0200 From: "Boris Fersing" Sender: kernel.sensei@gmail.com To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] ruby gems vs. ebuilds In-Reply-To: <4525650C.3060805@cisco.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Disposition: inline References: <4525650C.3060805@cisco.com> X-Google-Sender-Auth: ff75f41f6483b0ee X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k95KMoNU013667 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k95KObHA001008 X-Archives-Salt: c13d7bca-ba34-475f-8bf6-77f25d12a752 X-Archives-Hash: 16a04b9d4e1ce9011da6ac1780686e31 2006/10/5, Roy Wright : > Howdy, > > Can someone point me to any documentation on why ebuilds are > being created for ruby gems? > > Gem is the a nice, easy to use, standard package manager for ruby. > > The problem that I see is if you install the same package via both > gem and portage all sorts of bad things happen. For the curious, > use gem to install rake, then portage to install rake, then try to > use rake... Hint, emerge --unmerge is your friend. > > The real problem is when you now install a package that has > ruby dependencies (example kazehakase-0.4.1). Real easy to > to have portage trash your previous gem install. > > Wouldn't make more sense to have the ebuilds front-end gem vs. > doing a config & make & make instlal? Then if you had installed > via gem, then portage, the gem would just be re-installed, not > installed differently. Hi, AFAIK, the ruby related ebuilds use gem. For example rails has in his ebu= ild : "inherit ruby gems" and if you look in the gems eclass : gems_src_install() { gems_location if [ -z "${MY_P}" ]; then GEM_SRC=3D${DISTDIR}/${P} else GEM_SRC=3D${DISTDIR}/${MY_P} fi if use doc; then myconf=3D"--rdoc" else myconf=3D"--no-rdoc" fi dodir ${GEMSDIR} gem install ${GEM_SRC} -v ${PV} ${myconf} -l -i ${D}/${GEMSDIR} || die "gem install failed" if [ -d ${D}/${GEMSDIR}/bin ] ; then exeinto /usr/bin for exe in ${D}/${GEMSDIR}/bin/* ; do doexe ${exe} done fi } And it's the same for rake ! The problem might be (that's a supposition only) that gem installs the files in the image which will be merged to the system by portage and doesn't install the files directly in the "real" system. or maybe did I miss something ? Regards, Boris. > > TIA, > Roy > > -- > > echo "spzxAdjtdp/dpn" | perl -pe 's/(.)/chr(ord($1)-1)/ge' > -- > gentoo-dev@gentoo.org mailing list > > --=20 Quiconque me parle de Dieu en veut =E0 ma bourse ou =E0 ma libert=E9. --=20 gentoo-dev@gentoo.org mailing list