Date: Mon, 28 Jul 2008 02:06:12 +0200 (CEST) From: Sten Spans <sten@blinkenlights.nl> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/126017: Update port: dns/powerdns-recursor fix static compilation Message-ID: <20080728000612.97C987301D@mx0.blinkenlights.nl> Resent-Message-ID: <200807280010.m6S0A1sh086639@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080728000612.97C987301D>