From rsimmons@mail.wlcg.com  Mon Nov 12 12:06:22 2001
Return-Path: <rsimmons@mail.wlcg.com>
Received: from mail.wlcg.com (mail.wlcg.com [198.92.199.5])
	by hub.freebsd.org (Postfix) with ESMTP id 38CCB37B416
	for <freebsd-gnats-submit@freebsd.org>; Mon, 12 Nov 2001 12:06:21 -0800 (PST)
Received: (from root@localhost)
	by mail.wlcg.com (8.11.6/8.11.6) id fACK6KD67709
	for freebsd-gnats-submit@freebsd.org; Mon, 12 Nov 2001 15:06:20 -0500 (EST)
	(envelope-from rsimmons)
Received: (from rsimmons@localhost)
	by mail.wlcg.com (8.11.6/8.11.6av) id fACK6JT67701;
	Mon, 12 Nov 2001 15:06:19 -0500 (EST)
	(envelope-from rsimmons)
Message-Id: <200111122006.fACK6JT67701@mail.wlcg.com>
Date: Mon, 12 Nov 2001 15:06:19 -0500 (EST)
From: Rob Simmons <rsimmons@mail.wlcg.com>
Reply-To: Rob Simmons <rsimmons@mail.wlcg.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Minor change to bind8 port
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         31936
>Category:       ports
>Synopsis:       Minor change to bind8 port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    DougB
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 12 12:10:01 PST 2001
>Closed-Date:    Sat Dec 22 20:57:56 PST 2001
>Last-Modified:  Sat Dec 22 21:05:49 PST 2001
>Originator:     Rob Simmons
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD mail 4.4-STABLE FreeBSD 4.4-STABLE #1: Tue Oct 9 11:45:16 EDT
2001 rsimmons@mail:/usr/obj/usr/src/sys/WASABI i386


	
>Description:
Makefile option to make building the port for a chroot environment less messy.
I'm not sure if the variable name is acceptable.
>How-To-Repeat:
n/a
>Fix:
--- Makefile    Thu Oct 11 01:06:30 2001
+++ Makefile.new        Mon Nov 12 15:02:26 2001
@@ -24,6 +24,10 @@
 
 WRKSRC=                ${WRKDIR}/src
 
+.if defined(STATIC)
+CFLAGS+=       -static
+.endif
+
 MAN1=          dig.1 dnskeygen.1 dnsquery.1 host.1
 MAN3=          getaddrinfo.3 gethostbyname.3 getipnodebyname.3 getnetent.3 \
                getnameinfo.3 inet_cidr.3 hesiod.3 resolver.3 tsig.3
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->DougB 
Responsible-Changed-By: okazaki 
Responsible-Changed-When: Sat Nov 17 10:05:09 PST 2001 
Responsible-Changed-Why:  
over to maintainer 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31936 
State-Changed-From-To: open->closed 
State-Changed-By: dougb 
State-Changed-When: Sat Dec 22 20:57:56 PST 2001 
State-Changed-Why:  

Unfortunately, your suggestion does not work when the user defines 
CFLAGS in /etc/make.conf, or elsewhere. Arguably this is a weakness 
in our recursive make system, however it's one we're stuck with. 

The proper way to do this is to modify patch-aa. I'm working on a 
more complete solution that will allow a user to easily do a chroot 
and suid bind installation, but I haven't had time to commit it yet. 

Thanks for your interest. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=31936 
>Unformatted:
