Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Ian Whyman <thev00d00@g.o>
Subject: Re: Github.com tarballs eclass idea
Date: Mon, 11 Jun 2012 15:01:30 +0100
On 11 June 2012 14:41, Michael Weber <xmw@g.o> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Hi folks,
>
> i've some packages fetching SRC_URI from github.com
> tarballs/tags/files like x11-misc/trayer-srg.
>
> Fortunately, github.com provides (mostly) stable tarballs that are fit
> for manifestations (file sizes and checksums don't change).
> There is no need to create/host tarballs to be picked up by mirrors.
>
> Unfortunately, these tarballs contain $author-$repository-$commitidabrev
> (e.g. sargon-trayer-srg-5353f80) ad top directory.
>
> One approach is to define ${S} to match these additional data, but to
> easy version bumps, I've started to rename the extracted directory
> within src_unpack, to avoid mentioning the $author, $commitid and
> modifying ${S}.
>
> """
> SRC_URI="https://github.com/sargon/${PN}/tarball/${P/-srg/} ->
> ${P}.tar.gz"
>
> src_unpack() {
>    unpack ${A}
>    mv *-${PN}-* ${P} || die
> }
> """
>
> I wonder if others have similar workarounds?
>
> And does this src_unpack qualify for an eclass or being added to an
> existing one,  to avoid code replication?
>
> Maybe fetch filename " -> ${P}.tar.gz" can be mangled into SRC_URI by
> this eclass/function, too.
>
> Michael
>
> - --
> Gentoo Dev
> http://xmw.de/
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.17 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iF4EAREIAAYFAk/V9YwACgkQknrdDGLu8JBbzgD/aZ0USZEnfa2bQaoHOjKglMN/
> BJHuAOv0At95B4ARSXkA/A79qARFSCCAryjv55A1f6+3LafaRJlP0QKLp+zHoKvq
> =W1YG
> -----END PGP SIGNATURE-----
>

This sounds like what the vcs-snapshot[1] eclass is for?

1 . http://devmanual.gentoo.org/eclass-reference/vcs-snapshot.eclass/index.html

-- 
Ian Whyman
www.gentoo.org


References:
Github.com tarballs eclass idea
-- Michael Weber
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Github.com tarballs eclass idea
Next by thread:
Re: Github.com tarballs eclass idea
Previous by date:
Repoman check before file stable request
Next by date:
Re: Github.com tarballs eclass idea


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.