The fetch command in Portfiles
Hello, I would like to use: fetch.ignore_sslcrt in my Portfile or: fetch.args in my Portfile but I get an error about the commands not being recognized. Is there a new way to work with the fetch target? Thanks. Doug
On Jul 8, 2007, at 22:57, Doug McCorkle wrote:
I would like to use:
fetch.ignore_sslcrt
in my Portfile or:
fetch.args
in my Portfile but I get an error about the commands not being recognized. Is there a new way to work with the fetch target? Thanks.
According to the passogva portfile, it's fetch.ignore_sslcert yes As for fetch.args, I can't find any occurrence of that in any portfile. What are you trying to accomplish?
Hi Everybody, I have been trying to install Gnome on my Powerbook G4 (1.5GB RAM) MacOS 10.4.10. After resolving a redefine N_. I come to the next hurdle: When it comes to installing filer-roller I get the following: .... if ! test -d bg/; then mkdir bg/; fi if [ -f "C/file-roller.xml" ]; then d="../"; else d="/opt/local/var/ db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp orts_gnome_file-roller/work/file-roller-2.18.3/help/"; fi; \ (cd bg/ && \ `which xml2po` -e -p \ "${d}bg/bg.po" \ "${d}C/file-roller.xml" > file-roller.xml.tmp && \ cp file-roller.xml.tmp file-roller.xml && rm -f file- roller.xml.tmp) Python(6224) malloc: *** vm_allocate(size=1069056) failed (error code=3) Python(6224) malloc: *** error: can't allocate region Python(6224) malloc: *** set a breakpoint in szone_error to debug Python(6224) malloc: *** vm_allocate(size=1069056) failed (error code=3) Python(6224) malloc: *** error: can't allocate region Python(6224) malloc: *** set a breakpoint in szone_error to debug (null)Python(6224) malloc: *** vm_allocate(size=1069056) failed (error code=3) Python(6224) malloc: *** error: can't allocate region Python(6224) malloc: *** set a breakpoint in szone_error to debug Entity: line 1: parser error : out of memory error %para.char.mix; ^ Entity: line 6: |classname|methodname|interfacename|exceptionname .... I have more than 5 GB free disk space. But, can anybody tell me what and the hell python is doing with over 1 GB of VM ??? How do I get around this? Thanx for any help. regards Keith.
On Jul 9, 2007, at 3:32 AM, Ryan Schmidt wrote:
On Jul 8, 2007, at 22:57, Doug McCorkle wrote:
I would like to use:
fetch.ignore_sslcrt
in my Portfile or:
fetch.args
in my Portfile but I get an error about the commands not being recognized. Is there a new way to work with the fetch target? Thanks.
According to the passogva portfile, it's
fetch.ignore_sslcert yes
As for fetch.args, I can't find any occurrence of that in any portfile. What are you trying to accomplish?
I would like to download flagpoll from this site: https://realityforge.vrsource.org/twiki/pub/FlagPoll/FlagpollDownloads/ but get an error like this: mccdo:/Volumes/data/dports-dev/devel/flagpoll mccdo$ sudo port -d -v checksum flagpoll Password: DEBUG: Found port in file:///Volumes/data/dports-dev/devel/flagpoll DEBUG: Changing to port directory: /Volumes/data/dports-dev/devel/ flagpoll DEBUG: Requested variant darwin is not provided by port flagpoll. DEBUG: Requested variant i386 is not provided by port flagpoll. DEBUG: Requested variant macosx is not provided by port flagpoll. DEBUG: Skipping completed com.apple.main (flagpoll) ---> Fetching flagpoll DEBUG: Executing com.apple.fetch (flagpoll) ---> flagpoll-0.8.3.tar.gz doesn't seem to exist in /opt/local/var/ db/dports/distfiles/flagpoll ---> Attempting to fetch flagpoll-0.8.3.tar.gz from https:// realityforge.vrsource.org/twiki/pub/FlagPoll/FlagpollDownloads/ DEBUG: Fetching failed:: problem with the SSL CA cert (path? access rights?) The file is present on the site but for some reason I am unable to download it so I am trying a couple of different options to access the file. Also, the man page for portfile references fetch.ignore_sslcrt so this should possibly be listed as a bug. Doug
On Jul 9, 2007, at 08:01, Doug McCorkle wrote:
On Jul 9, 2007, at 3:32 AM, Ryan Schmidt wrote:
On Jul 8, 2007, at 22:57, Doug McCorkle wrote:
I would like to use:
fetch.ignore_sslcrt
in my Portfile or:
fetch.args
in my Portfile but I get an error about the commands not being recognized. Is there a new way to work with the fetch target? Thanks.
According to the passogva portfile, it's
fetch.ignore_sslcert yes
[snip]
Also, the man page for portfile references fetch.ignore_sslcrt so this should possibly be listed as a bug.
Good catch! I fixed the manpage: http://trac.macosforge.org/projects/macports/changeset/26829
On Jul 9, 2007, at 9:02 AM, Ryan Schmidt wrote:
On Jul 9, 2007, at 08:01, Doug McCorkle wrote:
On Jul 9, 2007, at 3:32 AM, Ryan Schmidt wrote:
On Jul 8, 2007, at 22:57, Doug McCorkle wrote:
I would like to use:
fetch.ignore_sslcrt
in my Portfile or:
fetch.args
in my Portfile but I get an error about the commands not being recognized. Is there a new way to work with the fetch target? Thanks.
According to the passogva portfile, it's
fetch.ignore_sslcert yes
[snip]
Also, the man page for portfile references fetch.ignore_sslcrt so this should possibly be listed as a bug.
Good catch! I fixed the manpage:
http://trac.macosforge.org/projects/macports/changeset/26829
The correct fetch.ignore_sslcert command solved my problems. In regards to the args command I thought I might be able to pass command line args to the utility that downloads packages. In MacPorts what is used to download packages? Is it curl? Doug
On Jul 9, 2007, at 09:45, Doug McCorkle wrote:
The correct fetch.ignore_sslcert command solved my problems. In regards to the args command I thought I might be able to pass command line args to the utility that downloads packages. In MacPorts what is used to download packages? Is it curl?
It is curl, but I don't think there's a way to pass arbitrary arguments to it. I'm not even sure whether it's called as a command- line utility or used as a library. I think if you need some special functionality to download something, then that functionality should be built into MacPorts base and made available via the fetch object, like fetch.ignore_sslcert.
On Jul 9, 2007, at 8:26 AM, Ryan Schmidt wrote:
On Jul 9, 2007, at 09:45, Doug McCorkle wrote:
The correct fetch.ignore_sslcert command solved my problems. In regards to the args command I thought I might be able to pass command line args to the utility that downloads packages. In MacPorts what is used to download packages? Is it curl?
It is curl, but I don't think there's a way to pass arbitrary arguments to it. I'm not even sure whether it's called as a command- line utility or used as a library. I think if you need some special functionality to download something, then that functionality should be built into MacPorts base and made available via the fetch object, like fetch.ignore_sslcert.
Given that some sites prohibit anything that's not a normal user agent, it would be really useful to be able to set an argument for setting the user agent to Mozilla or something similar. As an example, Cenon can't be downloaded normally: Dwight:~ brent$ curl http://www.vhf-group.com/vhfInterservice/download/source/Apple/Cenon-3.82.ta... <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD> <TITLE>403 Forbidden</TITLE> </HEAD><BODY> <H1>Forbidden</H1> You don't have permission to access /vhfInterservice/download/source/ Apple/Cenon-3.82.tar.bz2 on this server.<P> </BODY></HTML> But using the useragent argument everything is fine: Dwight:~ brent$ curl -A Mozilla http://www.vhf-group.com/vhfInterservice/download/source/Apple/Cenon-3.82.ta... BZh91AY&SY?!???????????????????? ?? f?a ?ڎ???j????,??V?T?P???1??W?^? hր???li^???W?zU?\?|!?1Ka??ZU*K`-???????? wf?????l͙T'=???=>??蘆3z?sEu?`?]z4GPMJ֪??Fc7???@ [.. etc ...] Adding a "fetch.user_agent" option would be a huge help. -Brent
On Jul 9, 2007, at 22:00, Brent Fulgham wrote:
On Jul 9, 2007, at 8:26 AM, Ryan Schmidt wrote:
On Jul 9, 2007, at 09:45, Doug McCorkle wrote:
The correct fetch.ignore_sslcert command solved my problems. In regards to the args command I thought I might be able to pass command line args to the utility that downloads packages. In MacPorts what is used to download packages? Is it curl?
It is curl, but I don't think there's a way to pass arbitrary arguments to it. I'm not even sure whether it's called as a command-line utility or used as a library. I think if you need some special functionality to download something, then that functionality should be built into MacPorts base and made available via the fetch object, like fetch.ignore_sslcert.
Given that some sites prohibit anything that's not a normal user agent, it would be really useful to be able to set an argument for setting the user agent to Mozilla or something similar.
As an example, Cenon can't be downloaded normally:
Dwight:~ brent$ curl http://www.vhf-group.com/vhfInterservice/ download/source/Apple/Cenon-3.82.tar.bz2 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD> <TITLE>403 Forbidden</TITLE> </HEAD><BODY> <H1>Forbidden</H1> You don't have permission to access /vhfInterservice/download/ source/Apple/Cenon-3.82.tar.bz2 on this server.<P> </BODY></HTML>
But using the useragent argument everything is fine:
Dwight:~ brent$ curl -A Mozilla http://www.vhf-group.com/ vhfInterservice/download/source/Apple/Cenon-3.82.tar.bz2 BZh91AY&SY?!???????????????????? ?? f?a ?ڎ???j????,??V?T?P???1??W?^? hր???li^???W?zU?\?|!?1Ka?? ZU*K`-????????wf?????l͙T'=???=>??蘆3z?sEu?`?]z4GPMJ֪??Fc7???@ [.. etc ...]
Hmm. We have a "cenon" port already. And you're right, it fails to download the archive. It looks like they only deliver the 403 response if the user agent contains "curl". Other random strings work fine. I would consider the www.vhf-group.com web server broken. They should not be preventing us from downloading their files just because our user agent contains "curl". Presumably the cenon port worked properly when it was most recently committed, so they must have broken their server some time after that.
Adding a "fetch.user_agent" option would be a huge help.
I'm inclined not to like that idea. I'm not sure if I can explain why. We had a user agent problem before, where a server delivered a silly response if no user agent was set: http://trac.macports.org/projects/macports/ticket/7563 This was fixed with MacPorts 1.4.0 when we started sending the user agent "MacPorts libcurl/[libcurl version]". There was a request in the log message for r22771 that if someone knows how to put the MacPorts version number in there, we should do that too, and I agree. Perhaps it's time to advertise ourselves as Mozilla. Something like: Mozilla/5.0 MacPorts/1.5.0 It's a bit silly, I know, but I like it better than allowing port authors to override the user agent. The best solution, of course, would be for them to fix their server. Have you already asked them to?
Hi Everybody, I have been trying to install Gnome on my Powerbook G4 (1.5GB RAM) MacOS 10.4.10. After resolving a redefine N_. I come to the next hurdle: When it comes to installing filer-roller I get the following: .... if ! test -d bg/; then mkdir bg/; fi if [ -f "C/file-roller.xml" ]; then d="../"; else d="/opt/local/var/ db/dports/build/ _opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp orts_gnome_file-roller/work/file-roller-2.18.3/help/"; fi; \ (cd bg/ && \ `which xml2po` -e -p \ "${d}bg/bg.po" \ "${d}C/file-roller.xml" > file-roller.xml.tmp && \ cp file-roller.xml.tmp file-roller.xml && rm -f file- roller.xml.tmp) Python(6224) malloc: *** vm_allocate(size=1069056) failed (error code=3) Python(6224) malloc: *** error: can't allocate region Python(6224) malloc: *** set a breakpoint in szone_error to debug Python(6224) malloc: *** vm_allocate(size=1069056) failed (error code=3) Python(6224) malloc: *** error: can't allocate region Python(6224) malloc: *** set a breakpoint in szone_error to debug (null)Python(6224) malloc: *** vm_allocate(size=1069056) failed (error code=3) Python(6224) malloc: *** error: can't allocate region Python(6224) malloc: *** set a breakpoint in szone_error to debug Entity: line 1: parser error : out of memory error %para.char.mix; ^ Entity: line 6: |classname|methodname|interfacename|exceptionname .... I have move some stuff over to a external hardrive yet I am still seeing the above. I have more than 18 GB free disk space. But, can anybody tell me what is going on and what python is doing with over 1 GB of VM ??? How do I get around this? Thanx for any help. regards Keith.
On Jul 9, 2007, at 11:58 PM, Ryan Schmidt wrote:
The best solution, of course, would be for them to fix their server. Have you already asked them to?
If they won't, we can always mirror the distfile to fix things 'for now'. -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
participants (6)
-
Brent Fulgham
-
Daniel J. Luke
-
Doug McCorkle
-
Keith J. Schultz
-
Keith J.Schultz
-
Ryan Schmidt