Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Aug 2009 07:46:19 GMT
From:      Michael Leun <michael.leun@arcor.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/137688: [patch] Release build fails, if build-system uses HTTP/FTP proxy
Message-ID:  <200908120746.n7C7kJhF035032@www.freebsd.org>
Resent-Message-ID: <200908120750.n7C7o1RO073411@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908120746.n7C7kJhF035032>