ports/89363: fetchindex does not respect FETCH_ENV from /etc/make.conf
Sergey Matveychuk
sem at FreeBSD.org
Mon Nov 21 12:20:19 UTC 2005
>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 at 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:
More information about the freebsd-ports-bugs
mailing list