Date: Mon, 21 Nov 2005 15:12:08 +0300 From: Sergey Matveychuk <sem@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/89363: fetchindex does not respect FETCH_ENV from /etc/make.conf Message-ID: <E1EeAWm-0004SF-NI@fog.mbrd.ru> Resent-Message-ID: <200511211220.jALCKIZs006117@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 89363 >Category: ports >Synopsis: fetchindex does not respect FETCH_ENV from /etc/make.conf >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Nov 21 12:20:17 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Sergey Matveychuk >Release: FreeBSD 6.0-BETA5 i386 >Organization: >Environment: System: FreeBSD test1.mbrd.ru 6.0-BETA5 FreeBSD 6.0-BETA5 #12: Mon Sep 19 16:38:33 MSD 2005 root@test2.mbrd.ru:/usr/obj/usr/src/sys/TEST i386 >Description: Users, who set FETCH_ENV=http://proxy in /etc/make.conf has found 'make fetchindex' ignores their proxy. >How-To-Repeat: Behind a firewall, put FETCH_ENV=http://your-proxy:port into /etc/make.conf, go to ports dir and execute: make fetchindex The patch makes fetchindex behaviour more consistent. >Fix: --- fetchindex.patch begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/Makefile,v retrieving revision 1.91 diff -u -r1.91 Makefile --- Makefile 8 Nov 2005 13:32:54 -0000 1.91 +++ Makefile 21 Nov 2005 12:03:39 -0000 @@ -71,9 +71,10 @@ @cd ${.CURDIR} && make ${.CURDIR}/${INDEXFILE} fetchindex: - @cd ${.CURDIR} && ${FETCHINDEX} ${MASTER_SITE_INDEX}/${INDEXFILE}.bz2 && bunzip2 -f ${INDEXFILE}.bz2 && chmod a+r ${INDEXFILE} + @cd ${.CURDIR} && ${SETENV} ${FETCH_ENV} ${FETCHINDEX} ${MASTER_SITE_INDEX}/${INDEXFILE}.bz2 && bunzip2 -f ${INDEXFILE}.bz2 && chmod a+r ${INDEXFILE} MASTER_SITE_INDEX?= http://www.FreeBSD.org/ports/ +SETENV?= /usr/bin/env FETCHINDEX?= fetch -am INDEX_JOBS?= 2 --- fetchindex.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1EeAWm-0004SF-NI>