Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#36862 closed defect (fixed)

github portgroup changes necessitated by recent github changes

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: ctreleaven (Craig Treleaven), cooljeanius (Eric Gallager)
Port:

Description

github has recently changed how download links for tags are posted on their site, which breaks the livecheck in the github portgroup.

$ port -d livecheck youtube-dl
DEBUG: Changing to port directory: /Users/rschmidt/macports/dports/net/youtube-dl
DEBUG: OS darwin/12.2.0 (Mac OS X 10.8) arch i386
DEBUG: Going to use alternate build prefix: /Users/rschmidt/.macports
DEBUG: workpath = /Users/rschmidt/.macports/opt/local/var/macports/build/_Users_rschmidt_macports_dports_net_youtube-dl/youtube-dl/work
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /Users/rschmidt/macports/dports/_resources/port1.0/group/github-1.0.tcl
DEBUG: universal_variant is false, so not adding the default universal variant
DEBUG: Requested variant +universal is not provided by port youtube-dl.
DEBUG: Requested variant -atlas is not provided by port youtube-dl.
DEBUG: Requested variant +bash_completion is not provided by port youtube-dl.
DEBUG: Starting logging for youtube-dl
DEBUG: Logging disabled, error opening log file: couldn't open "/opt/local/var/macports/logs/_Users_rschmidt_macports_dports_net_youtube-dl/youtube-dl/main.log": permission denied
DEBUG: Executing org.macports.main (youtube-dl)
DEBUG: livecheck phase started at Sat Nov  3 01:28:53 CDT 2012
DEBUG: Executing org.macports.livecheck (youtube-dl)
DEBUG: Portfile modification date is Fri Oct 12 06:19:43 CDT 2012
DEBUG: Port (livecheck) version is 2012.10.09
DEBUG: Fetching https://github.com/rg3/youtube-dl/tags
DEBUG: The regex is "tarball/([^"]+)"
Error: cannot check if youtube-dl was updated (regex didn't match)
$

Download links are still working, but in the HTTP 302 redirect header, the word "legacy" appears, which makes me think we might need to be updating download URLs as well.

$ curl -I -L $(port distfiles youtube-dl | grep github)
HTTP/1.1 302 Found
Server: nginx
Date: Sat, 03 Nov 2012 06:29:27 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Status: 302 Found
Strict-Transport-Security: max-age=2592000
Cache-Control: max-age=0, private
X-Runtime: 10
Location: https://nodeload.github.com/rg3/youtube-dl/legacy.tar.gz/2012.10.09
Content-Length: 133
X-Frame-Options: deny

HTTP/1.1 200 OK
Server: nginx
Date: Sat, 03 Nov 2012 06:29:28 GMT
Content-Type: application/x-gzip
Connection: keep-alive
Content-Length: 4006806
Content-Disposition: attachment; filename=rg3-youtube-dl-2012.10.09-0-g7b107ee.tar.gz
$

Change History (4)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

I think the livecheck is fixed in r99357. Have not yet investigated download URLs.

comment:2 Changed 12 years ago by ctreleaven (Craig Treleaven)

Cc: ctreleaven@… added

Cc Me!

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

It appears at this time no additional changes are required.

comment:4 Changed 12 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.