#7563 closed defect (fixed)
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 (Ryan Carsten Schmidt) |
Port: |
Description (last modified by jmpalacios (Juan Manuel Palacios))
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 (9)
comment:1 Changed 19 years ago by mww@…
Cc: | dms@… removed |
---|---|
Owner: | changed from darwinports-bugs@… to dms@… |
Summary: | JHymn can't find sources → BUG: JHymn can't find sources |
comment:2 Changed 18 years ago by kayos@…
comment:3 Changed 18 years ago by kayos@…
Cc: | kayos@… added |
---|
comment:4 Changed 18 years ago by pipping@…
Keywords: | JHymn added |
---|---|
Priority: | Expected → Blocker |
Version: | 1.2 → 1.3.2 |
although i can reproduce the problem on my machine (jhymn can't be fetched) it's not curl's fault.
- (sudo) port fetch JHymn doesn't work
- /opt/local/bin/wget http://www.hymn-project.org/download/JHymn_0_9_2_source.zip works fine
- make sure you have write access to the directory you're in
- /opt/local/bin/curl -gO http://www.hymn-project.org/download/JHymn_0_9_2_source.zip works fine
- /usr/bin/curl -gO http://www.hymn-project.org/download/JHymn_0_9_2_source.zip works fine
(see http://paste.lisp.org/display/36616 for the output)
comment:5 Changed 18 years ago by ryandesign (Ryan Carsten Schmidt)
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.
comment:6 Changed 18 years ago by kballard (Lily Ballard)
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.
comment:7 Changed 18 years ago by kballard (Lily Ballard)
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:8 Changed 18 years ago by jmpalacios (Juan Manuel Palacios)
Component: | ports → base |
---|---|
Description: | modified (diff) |
Milestone: | → MacPorts 1.4 |
Priority: | Blocker → Important |
comment:9 Changed 17 years ago by nox@…
Priority: | Important → High |
---|---|
Summary: | BUG: JHymn can't find sources → BUG: JHymn can't find sources because there is no user agent in the http request |
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?