From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1S6uBm-0003pe-3i for garchives@archives.gentoo.org; Mon, 12 Mar 2012 01:36:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 716FFE0AEC; Mon, 12 Mar 2012 01:36:32 +0000 (UTC) Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com [209.85.215.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 80E8FE0ADF for ; Mon, 12 Mar 2012 01:36:01 +0000 (UTC) Received: by lahc1 with SMTP id c1so3480830lah.40 for ; Sun, 11 Mar 2012 18:36:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=Q1u1kG+LkPea/1B1tJHCfEEI+/QZSUULXfgL9HcsFqI=; b=FTJPcElO4W86gh8xdSXAiLl6L1ab5pgnrHYvKSpEOrstp6u3fv2oPHDwetpGHHUjSO zUmk527fQQc3rT7t9FwEFcqLAwkF/k8YmVyaeYI+X/4bNlJ7m1Mpx13utUNA49ZQ+9pn UdCFTL/+qodM6irNmdMrreRV1D734DnUo4JnwFYEpSjLOkTu5hmD4MCg8NUf1dXyw0qg FLIuf6Ecz/pHSP7QWuKlKPRnPKvLpXBag66AoIexAqMBMIKYnKQPT1iBA8S2y1QcLORv 89Je41miBkmEvo3olTyX/xC4U4cg4hjX2N1vk9nkAbGSNrhFSUz1bzZk8w+e9ri6h5uX CaFQ== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Received: by 10.152.131.9 with SMTP id oi9mr7776962lab.6.1331516160492; Sun, 11 Mar 2012 18:36:00 -0700 (PDT) Received: by 10.112.93.8 with HTTP; Sun, 11 Mar 2012 18:36:00 -0700 (PDT) In-Reply-To: <20120311192755.2235a15c@pomiocik.lan> References: <3869551.77.1331486738371.JavaMail.geo-discussion-forums@vbhy1> <20120311192755.2235a15c@pomiocik.lan> Date: Mon, 12 Mar 2012 09:36:00 +0800 Message-ID: Subject: Re: [gentoo-dev] RFC: an eclass for github snapshots? From: Ben To: gentoo-dev@lists.gentoo.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: df677a18-43a0-45a9-9a3e-bfb18a8f87a8 X-Archives-Hash: ab9a1bfdc3187c4c581ecbfe4cc2fd88 On 12 March 2012 02:27, Micha=C5=82 G=C3=B3rny wrote: > On Sun, 11 Mar 2012 10:25:38 -0700 (PDT) > Leho Kraav wrote: > >> On Monday, May 30, 2011 9:30:02 AM UTC+3, Micha=C5=82 G=C3=B3rny wrote: >> > >> > Right now, a quick 'grep -l github.*tarball' shows that there are >> > about 147 ebuilds in portage using github snapshots. This evaluates >> > to 83 different packages. >> > >> > The problem with github is that it suffixes the tarballs with >> > a complete git commit id. This means that the `S' variable >> > in the ebuild needs to refer to a long hash changing randomly. Right >> > now, the problem is handled in a number of ways: >> > >> > 1) (from app-admin/rudy) >> > 2) (app-emacs/calfw and suggested solution for Sunrise) >> > 3) (app-misc/bgrep) >> > 4) (app-misc/tmux-mem-cpu-load) >> > >> > What I'd like to do is creating a small github.eclass, encapsulating >> > a common, nice way of handling the S issue. I guess the best >> > solution would be to git with something like 2) above, with the >> > eclass providing github_src_unpack() for EAPIs 2+. >> >> What is the current situation with this one? Every once in a while I >> run into a github ebuild I need to create and I am not really sure >> what to do with it. >> >> Right now 2) seems like the safest approach. But did anything get >> into EAPI? > > You mean eclass? I submitted one for review but didn't get much of > positive feedback on it. I'll commit it anyway soon, just let me double > check and do some testing. +1 from me. I think it would be useful to have a standard way of handling t= his. Cheers, Ben | yngwin