misc/137688: [patch] Release build fails, if build-system uses HTTP/FTP proxy

Michael Leun michael.leun at arcor.net
Wed Aug 12 07:50:01 UTC 2009


>Number:         137688
>Category:       misc
>Synopsis:       [patch] Release build fails, if build-system uses HTTP/FTP proxy
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 12 07:50:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Michael Leun
>Release:        7.2 RELEASE
>Organization:
Vodafone AG & Co. KG
>Environment:
FreeBSD build72-64.tnd.arcor.net 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1 07:18:07 UTC 2009     root at driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
I've created an custom install disk and had to use a build-system which has to use an http/ftp proxy.

Build failed, because /usr/src/release/Makefile does not hand over environment variables HTTP_PROXY and FTP_PROXY to the chroot build script it creates, which therefore fails to fetch perl during the build process.
>How-To-Repeat:
Use a system accessing web/ftp via proxy, have environment variables HTTP_PROXY and FTP_PROXY defined.

cd /usr/src/release
make release
>Fix:
patch attached

Patch attached with submission follows:

--- release/Makefile.orig	2009-08-12 09:31:02.000000000 +0200
+++ release/Makefile	2009-08-12 09:33:17.000000000 +0200
@@ -531,7 +531,7 @@
 	echo "	for i in ${MAKEINDEXPORTS}"	>> ${_MK}
 	echo "	do"			>> ${_MK}
 	echo "		cd /usr/ports/\$${i}"	>> ${_MK}
-	echo "		env -i FTP_PASSIVE_MODE=$${FTP_PASSIVE_MODE:-no} PATH=$${PATH} \\" >> ${_MK}
+	echo "		env -i HTTP_PROXY=$${HTTP_PROXY} FTP_PROXY=$${FTP_PROXY} FTP_PASSIVE_MODE=$${FTP_PASSIVE_MODE:-no} PATH=$${PATH} \\" >> ${_MK}
 	echo "		make all install clean BATCH=yes FORCE_PKG_REGISTER=yes" >> ${_MK}
 	echo "	done"				>> ${_MK}
 	echo "	cd /usr/ports"			>> ${_MK}


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list