From nobody@FreeBSD.org  Thu Sep 19 10:25:17 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 7D6D2D76
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 Sep 2013 10:25:17 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 4FFF623F6
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 Sep 2013 10:25:17 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8JAPHuR077573
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 19 Sep 2013 10:25:17 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8JAPHS5077570;
	Thu, 19 Sep 2013 10:25:17 GMT
	(envelope-from nobody)
Message-Id: <201309191025.r8JAPHS5077570@oldred.freebsd.org>
Date: Thu, 19 Sep 2013 10:25:17 GMT
From: Natacha Port <natbsd@instinctive.eu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dns/ddns: fix build without gcc for current
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         182226
>Category:       ports
>Synopsis:       dns/ddns: fix build without gcc for current
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    wg
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 19 10:30:00 UTC 2013
>Closed-Date:    Thu Sep 19 16:53:12 UTC 2013
>Last-Modified:  Thu Sep 19 16:53:12 UTC 2013
>Originator:     Natacha Port
>Release:        9.1-RELEASE
>Organization:
>Environment:
FreeBSD bifrost 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0 r252111M: Sun Jun 23 14:31:39 CEST 2013     root@bifrost:/usr/obj/usr/src-STABLE/9.1/sys/GENERIC  amd64
>Description:
- update BSDmakefile to use CC, CFLAGS and LDFLAGS from environment when possible

redports build at https://redports.org/buildarchive/20130919093801-5576/
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -Naur ddns.orig/files/patch-BSDmakefile ddns/files/patch-BSDmakefile
--- ddns.orig/files/patch-BSDmakefile   1970-01-01 01:00:00.000000000 +0100
+++ ddns/files/patch-BSDmakefile        2013-09-19 12:20:52.799904304 +0200
@@ -0,0 +1,30 @@
+--- ./BSDmakefile.orig 2013-09-19 11:31:40.022802767 +0200
++++ ./BSDmakefile      2013-09-19 11:32:24.482713883 +0200
+@@ -16,9 +16,9 @@
+ 
+ DEPDIR=depends
+ ALLDEPS=$(DEPDIR)/all
+-CFLAGS=-c -g -O3 -Wall -Wextra -Werror -fno-builtin -std=c99 -pedantic -DHAVE_CONFIG_H
+-LDFLAGS=-g -O3 -Wall -Wextra -Werror -fno-builtin -std=c99 -pedantic -DHAVE_CONFIG_H
+-CC=gcc
++CFLAGS?=-g -O3 -Wall -Wextra -Werror -fno-builtin -std=c99 -pedantic -DHAVE_CONFIG_H
++LDFLAGS?=-g -O3 -Wall -Wextra -Werror -fno-builtin -std=c99 -pedantic -DHAVE_CONFIG_H
++CC?=gcc
+ 
+ default:      ddns-client ddns-server
+ 
+@@ -83,7 +83,7 @@
+       @$(CC) -MM $(.IMPSRC) > $(DEPDIR)/$(.PREFIX).d
+       @grep -q "$(.PREFIX).d" $(ALLDEPS) \
+                       || echo ".include \"$(.PREFIX).d\"" >> $(ALLDEPS)
+-      $(CC) $(CFLAGS) -o $(.TARGET) $(.IMPSRC)
++      $(CC) $(CFLAGS) -c -o $(.TARGET) $(.IMPSRC)
+ 
+ .m.o:
+       @mkdir -p $(DEPDIR)
+@@ -91,4 +91,4 @@
+       @$(CC) -MM $(.IMPSRC) > depends/$(.PREFIX).d
+       @grep -q "$(.PREFIX).d" $(ALLDEPS) \
+                       || echo ".include \"$(.PREFIX).d\"" >> $(ALLDEPS)
+-      $(CC) $(CFLAGS) -o $(.TARGET) $(.IMPSRC)
++      $(CC) $(CFLAGS) -c -o $(.TARGET) $(.IMPSRC)


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->wg 
Responsible-Changed-By: wg 
Responsible-Changed-When: Thu Sep 19 16:19:44 UTC 2013 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=182226 
State-Changed-From-To: open->closed 
State-Changed-By: wg 
State-Changed-When: Thu Sep 19 16:53:09 UTC 2013 
State-Changed-Why:  
Patch did not apply, I had to regenerate. Committed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=182226 
>Unformatted:
