From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Sep 19 10:30:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id E06B7DBA for ; Thu, 19 Sep 2013 10:30:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C0FF6241E for ; Thu, 19 Sep 2013 10:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8JAU0x8080617 for ; Thu, 19 Sep 2013 10:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8JAU0gk080606; Thu, 19 Sep 2013 10:30:00 GMT (envelope-from gnats) Resent-Date: Thu, 19 Sep 2013 10:30:00 GMT Resent-Message-Id: <201309191030.r8JAU0gk080606@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Natacha Porté 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 ; 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 ; 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 ; 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é To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/182226: dns/ddns: fix build without gcc for current X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Sep 2013 10:30:01 -0000 >Number: 182226 >Category: ports >Synopsis: dns/ddns: fix build without gcc for current >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Thu Sep 19 10:30:00 UTC 2013 >Closed-Date: >Last-Modified: >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: >Unformatted: