Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #7563 (closed defect: fixed)

Opened 3 years ago

Last modified 16 months ago

BUG: JHymn can't find sources because there is no user agent in the http request

Reported by: schlu-do@… Owned by: dms@…
Priority: High Milestone: MacPorts 1.4
Component: base Version: 1.3.2
Keywords: JHymn Cc: kayos@…, ryandesign@…
Port:

Description (last modified by jmpp@…) (diff)

I tried to install aqua/JHymn, but unfortunately there are no sources for version 0.8.5 available at the website http://www.hymn-project.org/download/.

Buut even when I changed the version to the current 0.9.2 (and the md5-sum for that), it still won't load the ZIP archive.

[...] ---> Fetching JHymn DEBUG: Executing com.apple.fetch (JHymn) ---> JHymn_0_9_2_source.zip doesn't seem to exist in /opt/local/var/db/dports/distfiles/JHymn ---> Attempting to fetch JHymn_0_9_2_source.zip from http://www.hymn-project.org/download/

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

DEBUG: Fetching failed:: HTTP response code said error ---> Attempting to fetch JHymn_0_9_2_source.zip from http://distfiles-od.opendarwin.org/

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

DEBUG: Fetching failed:: HTTP response code said error ---> Attempting to fetch JHymn_0_9_2_source.zip from http://distfiles-msn.opendarwin.org/

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

DEBUG: Fetching failed:: HTTP response code said error ---> Attempting to fetch JHymn_0_9_2_source.zip from http://distfiles-bay13.opendarwin.org/

% Total % Received % Xferd Average Speed Time Time Time Current

Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0

DEBUG: Fetching failed:: HTTP response code said error Error: Target com.apple.fetch returned: fetch failed Warning: the following items did not execute (for JHymn): com.apple.activate com.apple.fetch com.apple.extract com.apple.checksum com.apple.patch com.apple.configure com.apple.build com.apple.destroot com.apple.archive com.apple.install Error: /opt/local/bin/port: Status 1 encountered during processing.

A manual download with Safari was no problem, after that the build and install with 0.9.2 succeeded.

Change History

Changed 3 years ago by mww@…

  • cc dms@… removed
  • owner changed from darwinports-bugs@… to dms@…
  • summary changed from JHymn can't find sources to BUG: JHymn can't find sources

Changed 2 years ago by kayos@…

I have confirmed the same problem. "wget" can't download the URL. I get a "permission denied" error. A browser such as FireFox or Safari can download it just fine. Maybe the web site has a special trick to prevent direct downloads?

Changed 2 years ago by kayos@…

  • cc kayos@… added

Changed 22 months ago by pipping@…

  • keywords JHymn added
  • priority changed from Expected to Blocker
  • version changed from 1.2 to 1.3.2

although i can reproduce the problem on my machine (jhymn can't be fetched) it's not curl's fault.

(see http://paste.lisp.org/display/36616 for the output)

Changed 22 months ago by ryandesign@…

  • cc ryandesign@… added

Exactly. As far as I can tell from reading /Library/Tcl/darwinports1.0/darwinports.tcl, MacPorts uses curl -L -s -S -o to download portfiles, but even using those switches I can download hymn just fine. But MacPorts itself will not, and I don't understand why not.

Changed 21 months ago by eridius@…

Actually it's using a command defined in Pextlib, which uses the curl library. Granted, it should still work. I'm tracing the code right now to see what's going on.

Changed 21 months ago by eridius@…

  • status changed from new to closed
  • resolution set to fixed

Turns out the hymn-project server returns a 406 error code if a user agent isn't sent in the request. That's very silly.

Fixed in r22771 (merged into 1.4 branch in r22772). Requires recompiling MacPorts from svn, or waiting for next RC of 1.4.

Changed 21 months ago by jmpp@…

  • priority changed from Blocker to Important
  • component changed from ports to base
  • description modified (diff)
  • milestone set to MacPorts 1.4

Changed 16 months ago by nox@…

  • priority changed from Important to High
  • summary changed from BUG: JHymn can't find sources to BUG: JHymn can't find sources because there is no user agent in the http request
Note: See TracTickets for help on using tickets.