Subject: Use of FETCH_BEFORE_ARGS breaks ftp download
To: None <>
From: Martti Kuparinen <>
List: tech-pkg
Date: 07/19/2006 09:38:56

I want to force FTP downloads to use IPv4 so I have FETCH_BEFORE_ARGS setting in 
/etc/mk.conf. This seems to be broken now (this has been broken only for few 
days I guess so it must be some recent change in pkgsrc/mk):

ROOT www:/usr/pkgsrc/devel/m4> make fetch
=> Required installed package digest>=20010302: digest-20060302 found
===> Checking for vulnerabilities in m4-1.4.5
=> Fetching m4-1.4.5.tar.gz
=> Total size: 596242 bytes
ftp: Unknown port `', using port 21
ftp: "-4": No address associated with hostname

ROOT www:/usr/pkgsrc/devel/m4> grep -- -4 /etc/mk.conf

If I comment out the FETCH_BEFORE_ARGS things work just fine...