ports/172964: USE_GITHUB feature not fully implemented
Shane Ambler
FreeBSD at Shaneware.biz
Mon Oct 22 17:50:01 UTC 2012
>Number: 172964
>Category: ports
>Synopsis: USE_GITHUB feature not fully implemented
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Oct 22 17:50:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Shane Ambler
>Release: 9.0-RELEASE-p1
>Organization:
>Environment:
FreeBSD leader.local 9.0-RELEASE-p1 FreeBSD 9.0-RELEASE-p1 #1: Tue May 15 12:34:33 CST 2012 shane at leader.local:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
As described in 5.4.7 of the porters handbook multiple distribution files can be used in the form of
MASTER_SITES= ftp://ftp.example1.com/:source1 \
ftp://ftp.example2.com/:source2
DISTFILES= source1.tar.gz:source1 \
source2.tar.gz:source2
I have just tried applying this to the new github settings and found that it fails.
When multiple values are setup for GH_PROJECT and/or GH_TAGNAME the fetch command gets a mangled download link with the group name instead of the account/project/tag. I also tried with GH_ACCOUNT to match the groups with no benefit.
eg while the correct link would be -
https://nodeload.github.com/sambler/myblender/tarball/sambler-2.64.2?dummy=/blender-sambler-2.64.tar.gz
having GH_PROJECT= myblender:base turns the link into -
https://nodeload.github.com/baseblender-sambler-2.64.tar.gz
While I don't need to use a separate GH_ACCOUNT for what I am doing I see that it could be required as well. The question there would be - Can project or tagname be setup with multiple sources or would all three need to be setup for grouping? I could see a single account and tagname being used with multiple project names to get the full sources needed, but I doubt multiple tags with one project would be usable.
Looking ahead - this may require a way to define which extracted tarball becomes WRKSRC. Maybe the DEFAULT group?
>How-To-Repeat:
The port I am working on isn't official but the files (without github changes) are available at http://redports.org/browser/sambler/graphics/blender-sambler
After removing MASTER_SITES DISTFILES FETCH_ARGS and WRKSRC I added -
USE_GITHUB= yes
GH_ACCOUNT= sambler
GH_PROJECT= myblender:base \
myblenderaddons:addons \
myblendercontrib:contrib \
myblendertranslations:trans
GH_TAGNAME= sambler-${PORTVERSION}.${PORTREVISION}:base \
addons-${PORTVERSION}.${PORTREVISION}:addons \
contrib-${PORTVERSION}.${PORTREVISION}:contrib \
translate-${PORTVERSION}.${PORTREVISION}:trans
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list