From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jul 28 00:10:01 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A70921065676 for ; Mon, 28 Jul 2008 00:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 8CD138FC1F for ; Mon, 28 Jul 2008 00:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m6S0A1Df086640 for ; Mon, 28 Jul 2008 00:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m6S0A1sh086639; Mon, 28 Jul 2008 00:10:01 GMT (envelope-from gnats) Resent-Date: Mon, 28 Jul 2008 00:10:01 GMT Resent-Message-Id: <200807280010.m6S0A1sh086639@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, Sten Spans Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76F0B1065670 for ; Mon, 28 Jul 2008 00:06:14 +0000 (UTC) (envelope-from sten@mx0.blinkenlights.nl) Received: from mx0.blinkenlights.nl (mx0.blinkenlights.nl [IPv6:2a01:1b0:201:1::25]) by mx1.freebsd.org (Postfix) with ESMTP id 233B18FC1B for ; Mon, 28 Jul 2008 00:06:13 +0000 (UTC) (envelope-from sten@mx0.blinkenlights.nl) Received: by mx0.blinkenlights.nl (Postfix, from userid 101) id 97C987301D; Mon, 28 Jul 2008 02:06:12 +0200 (CEST) Message-Id: <20080728000612.97C987301D@mx0.blinkenlights.nl> Date: Mon, 28 Jul 2008 02:06:12 +0200 (CEST) From: Sten Spans To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/126017: Update port: dns/powerdns-recursor fix static compilation X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Sten Spans List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jul 2008 00:10:01 -0000 >Number: 126017 >Category: ports >Synopsis: Update port: dns/powerdns-recursor fix static compilation >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Jul 28 00:10:01 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Sten Spans >Release: FreeBSD 6.3-RELEASE i386 >Organization: >Environment: System: FreeBSD earth.blinkenlights.nl 6.3-RELEASE FreeBSD 6.3-RELEASE #2: Mon Feb 4 21:44:57 CET 2008 root@earth.blinkenlights.nl:/usr/obj/usr/src/sys/1650 i386 >Description: The author of powerdns added -ldl for static compilation, which doesn't work on freebsd. >How-To-Repeat: >Fix: Apply this diff, which removes the ldl flags. diff -Nru powerdns-recursor.orig/Makefile powerdns-recursor/Makefile --- powerdns-recursor.orig/Makefile 2008-07-26 04:31:24.000000000 +0200 +++ powerdns-recursor/Makefile 2008-07-28 01:51:51.000000000 +0200 @@ -7,6 +7,7 @@ PORTNAME= powerdns-recursor PORTVERSION= 3.1.7 +PORTREVISION= 1 CATEGORIES= dns ipv6 MASTER_SITES= http://downloads.powerdns.com/releases/ \ http://mirrors.evolva.ro/powerdns.com/releases/ diff -Nru powerdns-recursor.orig/files/patch-makefile powerdns-recursor/files/patch-makefile --- powerdns-recursor.orig/files/patch-makefile 2008-04-06 04:32:37.000000000 +0200 +++ powerdns-recursor/files/patch-makefile 2008-07-28 01:57:24.000000000 +0200 @@ -8,6 +8,18 @@ CXXFLAGS:= $(CXXFLAGS) -Wall -DBOOST_SP_DISABLE_THREADS $(OPTFLAGS) $(PROFILEFLAGS) CFLAGS:=$(CFLAGS) -Wall $(OPTFLAGS) $(PROFILEFLAGS) LINKCC=$(CXX) +@@ -41,9 +40,9 @@ + ifeq ($(STATIC),semi) + STATICFLAGS=-Wl,-Bstatic -lstdc++ $(LUALIBS) -lgcc -Wl,-Bdynamic -static-libgcc -lm -lc + LINKCC=$(CC) +- LDFLAGS += malloc.o -ldl -lm ++ LDFLAGS += malloc.o -lm + else ifeq ($(STATIC),full) +- STATICFLAGS=-lstdc++ $(LUALIBS) -ldl -lm -static ++ STATICFLAGS=-lstdc++ $(LUALIBS) -lm -static + LINKCC=$(CC) + else + LDFLAGS += malloc.o $(LUALIBS) @@ -54,16 +53,14 @@ fi >Release-Note: >Audit-Trail: >Unformatted: