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: hasufell <hasufell@g.o>
Subject: Re: RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others)
Date: Fri, 08 Jun 2012 15:34:32 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/07/2012 11:49 PM, Michał Górny wrote:
> Hello,
> 
> As it was pointed out, vcs-snapshot is unable to handle multiple 
> tarballs nicely. As fixing this would involve changing eclass API 
> (and they are packages which are known to break thanks to it), I'm 
> posting a new eclass for review. Of course, if the community
> insists, I could just update the old eclass and fix the ebuilds
> broken that way.
> 
> The idea with the new eclass is to extract all supported archives 
> (which means .tar* at the point) into ${WORKDIR} subdirectories 
> matching their names. In other words, if you've got:
> 
> SRC_URI="http://foo/getbar -> ${P}.tar.bz2 http://foo/getbaz ->
> ${P}-data.tar.bz2"
> 
> You'd get the contents in ${WORKDIR}/${P} and ${WORKDIR}/${P}-data 
> respectively.
> 
> A few things to note:
> 
> 1) the implemention just dumbly uses 'tar --strip-components'. If
> it hits a tarball without a single top-level directory, scary
> things will happen;
> 
> 2) only tarballs are handled, other archives are just passed
> through to unpack;
> 
> 3) at some point the eclass could be extended to handle more
> formats. So if you've got other archives in your SRC_URI, please
> make sure they are named consistently with the parent dir, so that
> they would not relocate when support for that particular format is
> added.
> 
> By the way, the credit for the overall idea goes to hasufell.
> 

What is with zipballs from github for example? They are not supported
by this method afais.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJP0f9oAAoJEFpvPKfnPDWzprAH/ikedjEAZ6Hg95zd+F7XNxLN
XqfpAaE9N5bQ9AXfE+a1IHQRh6doSY6aw10he053SQhHEVJnB6ey0rMvkICRZ+w1
ZvygNSZCP2XJg4weZinIiNSJbQ7HCHFE2DuEkz78rdQ7cFwV5Y0AEGJiFDyMw4no
RPJoNHNyFUk578W14ioog9oDOookpRN6nttvwq/Bqoh8+tCbmxTlowJndfCrw4iS
T/q5UUKWsEEBVd2zz2TE0+eku9kdfBnez/9e2XLMUYfsTBE17/xluaqiRcLQC666
FFe0+MGI8sz7t1h+PjflNXIh8jochI7p4thgHqsWP5Wky04/Av8eD7br5uQ3YLE=
=A5LA
-----END PGP SIGNATURE-----


Replies:
Re: RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others)
-- Michał Górny
References:
RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others)
-- Michał Górny
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others)
Next by thread:
Re: RFC: vcs-snapshot-r1.eclass -- a better eclass for VCS snapshots (and others)
Previous by date:
Packages up for grabs due dang concentrating in gnome work
Next by date:
Re: Git braindump: 1 of N: merging & git signing


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.