From nobody@FreeBSD.org  Wed Dec 14 11:50:34 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id C7102106567A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 14 Dec 2011 11:50:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id B67EB8FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 14 Dec 2011 11:50:34 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pBEBoYEv009622
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 14 Dec 2011 11:50:34 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pBEBoYYv009621;
	Wed, 14 Dec 2011 11:50:34 GMT
	(envelope-from nobody)
Message-Id: <201112141150.pBEBoYYv009621@red.freebsd.org>
Date: Wed, 14 Dec 2011 11:50:34 GMT
From: Babak Farrokhi <farrokhi@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] net/haproxy: respect CC and CFLAGS
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: freebsd@linepoint.com

>Number:         163280
>Category:       ports
>Synopsis:       [patch] net/haproxy: respect CC and CFLAGS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 14 12:00:34 UTC 2011
>Closed-Date:    Sat Jan 14 19:12:15 UTC 2012
>Last-Modified:  Sat Jan 14 19:20:11 UTC 2012
>Originator:     Babak Farrokhi
>Release:        9.0-RC2
>Organization:
>Environment:
FreeBSD rad01 9.0-RC2 FreeBSD 9.0-RC2 #0: Sat Nov 12 18:35:25 UTC 2011     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN haproxy.orig/files/patch-Makefile haproxy/files/patch-Makefile
--- haproxy.orig/files/patch-Makefile	1970-01-01 03:30:00.000000000 +0330
+++ haproxy/files/patch-Makefile	2011-12-14 14:15:46.000000000 +0330
@@ -0,0 +1,29 @@
+--- Makefile.orig
++++ Makefile
+@@ -62,7 +62,7 @@
+ 
+ #### Installation options.
+ DESTDIR =
+-PREFIX = /usr/local
++PREFIX? = /usr/local
+ SBINDIR = $(PREFIX)/sbin
+ MANDIR = $(PREFIX)/share/man
+ DOCDIR = $(PREFIX)/doc/haproxy
+@@ -89,7 +89,7 @@
+ 
+ #### Toolchain options.
+ # GCC is normally used both for compiling and linking.
+-CC = gcc
++CC? = gcc
+ LD = $(CC)
+ 
+ #### Debug flags (typically "-g").
+@@ -158,7 +158,7 @@
+ # These CFLAGS contain general optimization options, CPU-specific optimizations
+ # and debug flags. They may be overridden by some distributions which prefer to
+ # set all of them at once instead of playing with the CPU and DEBUG variables.
+-CFLAGS = $(ARCH_FLAGS) $(CPU_CFLAGS) $(DEBUG_CFLAGS) $(SPEC_CFLAGS)
++CFLAGS? = $(ARCH_FLAGS) $(CPU_CFLAGS) $(DEBUG_CFLAGS) $(SPEC_CFLAGS)
+ 
+ #### Common LDFLAGS
+ # These LDFLAGS are used as the first "ld" options, regardless of any library


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->farrokhi 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Dec 14 12:00:47 UTC 2011 
Responsible-Changed-Why:  
Submitter has GNATS access (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163280 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Wed Dec 14 12:00:55 UTC 2011 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163280 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: freebsd@linepoint.com
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/163280: [patch] net/haproxy: respect CC and CFLAGS
Date: Wed, 14 Dec 2011 12:00:52 UT

 Maintainer of net/haproxy,
 
 Please note that PR ports/163280 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/163280
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org
Responsible-Changed-From-To: farrokhi->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Wed Dec 14 13:06:51 UTC 2011 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163280 
State-Changed-From-To: feedback->closed 
State-Changed-By: miwi 
State-Changed-When: Sat Jan 14 19:12:14 UTC 2012 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163280 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/163280: commit references a PR
Date: Sat, 14 Jan 2012 19:11:45 +0000 (UTC)

 miwi        2012-01-14 19:11:29 UTC
 
   FreeBSD ports repository
 
   Added files:
     net/haproxy/files    patch-Makefile 
   Log:
   - Respect CC and CFLAGS
   
   PR:             163280
   Submitted by:   farrokhi@
   Approved by:    maintainer timeout
   
   Revision  Changes    Path
   1.5       +29 -0     ports/net/haproxy/files/patch-Makefile (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
