Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Sep 2011 14:24:37 +0100
From:      "Klaus T. Aehlig" <aehlig@linta.de>
To:        Baptiste Daroussin <bapt@FreeBSD.org>
Cc:        Lev Serebryakov <lev@FreeBSD.org>, freebsd-ports@FreeBSD.org
Subject:   Re: [RFC] New ports idea: github / gitorious / bitbucket direct support.
Message-ID:  <20110909132437.GA66311@kta1c10.sesnet.soton.ac.uk>
In-Reply-To: <20110909130458.GO31003@azathoth.lan>
References:  <765103585.20110909143052@serebryakov.spb.ru> <20110909130458.GO31003@azathoth.lan>

next in thread | previous in thread | raw e-mail | index | archive | help


> The main problem with that is: we have no way to keep a valid sum of the
> distfiles if it is autogenerated (in particular with github) and this sum is
> really important.


With github this fortunately is a non-issue. Even though they autogenerate their
tar balls, they keep enough information to make them reproduciable. Just try:

/tmp>fetch https://github.com/Dieterbe/uzbl/tarball/2011.07.25
2011.07.25                                    100% of  143 kB  177 kBps
/tmp>sha256 2011.07.25 
SHA256 (2011.07.25) = 2e61fa6c62e48d3f13e95a4ea7e7aead65345f6c88a688844ef921685dffe565
/tmp>cat /usr/ports/www/uzbl/distinfo 
SHA256 (uzbl-0.0.0.2011.07.25.tar.gz) = 2e61fa6c62e48d3f13e95a4ea7e7aead65345f6c88a688844ef921685dffe565
SIZE (uzbl-0.0.0.2011.07.25.tar.gz) = 146851
/tmp>

There still remain some minor issuses, like

* due to autogeneration, you're quite likely to get a http-redirect,
* filenames like 2011.07.25 are not too suitable for a distfile.

But they certainly can be fixed by an appropriate framework. The nice thing is,
github does the autogeneration right.

Best,
Klaus




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110909132437.GA66311>