USE_GITHUB+portscout [was Re: svn commit: r381618 - in head: . Mk archivers/snappy-java astro/gpscorrelate audio/hydrogen audio/hydrogen-devel audio/id3ren audio/nekobee audio/soundkonverter cad/openvsp comms/lysdr databases/pg...]

Bryan Drewery bdrewery at FreeBSD.org
Thu Mar 19 18:49:16 UTC 2015


On 3/19/2015 11:44 AM, Bryan Drewery wrote:
> Author: bdrewery
> Date: Thu Mar 19 16:44:57 2015
> New Revision: 381618
> URL: https://svnweb.freebsd.org/changeset/ports/381618
> QAT: https://qat.redports.org/buildarchive/r381618/
> 
> Log:
>   Update USE_GITHUB so it does not require GH_COMMIT.
>   
>   Using this new scheme allows only setting the _tag_ or _commit hash_ in
>   GH_TAGNAME and not having to know the hash for a tag.  This scheme will
>   download a tarball that has a different checksum than before due to a changed
>   directory name for extraction.
>   
>   The following MASTER_SITES are provided to retain the old checksum and
>   directory structure (that require GH_COMMIT):
>     GH -> GHL
>     GITHUB -> GITHUB_LEGACY
>   
>   Differential Revision:	https://reviews.freebsd.org/D748
>   Submitted by:	amdmi3
>   Reviewed by:	mat, swills, antoine, bdrewery
>   With hat:	portmgr
> 

It seems that with this change portscout will now work with tagged
USE_GITHUB ports (no hash used).

Here is the old attempt by portscout:

> Files for ports-mgmt/poudriere from https://codeload.github.com/freebsd/poudriere/legacy.tar.gz/9f9e43d?dummy=/:
> [poudriere] [https://codeload.github.com/freebsd/poudriere/legacy.tar.gz/9f9e43d?dummy=/] Guessing version 3.1.1 -> 4.0.0
> [poudriere] [https://codeload.github.com/freebsd/poudriere/legacy.tar.gz/9f9e43d?dummy=/] Guess failed 3.1.1 -> 4.0.0
> [poudriere] [https://codeload.github.com/freebsd/poudriere/legacy.tar.gz/9f9e43d?dummy=/] Guessing version 3.1.1 -> 3.2.0
> [poudriere] [https://codeload.github.com/freebsd/poudriere/legacy.tar.gz/9f9e43d?dummy=/] Guess failed 3.1.1 -> 3.2.0
> [poudriere] [https://codeload.github.com/freebsd/poudriere/legacy.tar.gz/9f9e43d?dummy=/] Guessing version 3.1.1 -> 3.1.2
> [poudriere] [https://codeload.github.com/freebsd/poudriere/legacy.tar.gz/9f9e43d?dummy=/] Guess failed 3.1.1 -> 3.1.2

And after I converted the port to the new format:

> Files for ports-mgmt/poudriere from https://codeload.github.com/freebsd/poudriere/tar.gz/3.1.1?dummy=/:
> [poudriere] [https://codeload.github.com/freebsd/poudriere/tar.gz/3.1.1?dummy=/] Guessing version 3.1.1 -> 4.0.0
> [poudriere] [https://codeload.github.com/freebsd/poudriere/tar.gz/4.0.0/?dummy=/] Guess failed 3.1.1 -> 4.0.0
> [poudriere] [https://codeload.github.com/freebsd/poudriere/tar.gz/3.1.1?dummy=/] Guessing version 3.1.1 -> 3.2.0
> [poudriere] [https://codeload.github.com/freebsd/poudriere/tar.gz/3.2.0/?dummy=/] Guess failed 3.1.1 -> 3.2.0
> [poudriere] [https://codeload.github.com/freebsd/poudriere/tar.gz/3.1.1?dummy=/] Guessing version 3.1.1 -> 3.1.2
> [poudriere] [https://codeload.github.com/freebsd/poudriere/tar.gz/3.1.2/?dummy=/] Guess failed 3.1.1 -> 3.1.2


This will not automatically work for all USE_GITHUB ports. They must be
converted similar to r381661 and r381619 and must not be using a hash in
GH_TAGNAME.

-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-ports-head/attachments/20150319/4ccf5645/attachment.sig>


More information about the svn-ports-head mailing list