Date: Sun, 27 Mar 2011 18:02:55 GMT From: David Naylor <naylor.b.david@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/155974: [patch] dns/noip: Fix detection of network devices Message-ID: <201103271802.p2RI2tgJ049253@red.freebsd.org> Resent-Message-ID: <201103271810.p2RIA8Ek066781@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 155974 >Category: ports >Synopsis: [patch] dns/noip: Fix detection of network devices >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 27 18:10:08 UTC 2011 >Closed-Date: >Last-Modified: >Originator: David Naylor >Release: FreeBSD-current >Organization: Private >Environment: FreeBSD dgserver.dg 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Fri Dec 17 19:43:44 SAST 2010 root@dragon.dg:/tmp/home/freebsd9/src/sys/DGSERVER amd64 >Description: noip2 fails to detect the network devices, displaying what appears to be a broken list. The root cause of this is the failed attempt to define bsd_with_getifaddrs as the variable ARCH is used for that purpose and get overridden by ports with the current architecture. The attached patch fixes that and also passes ${CFLAGS} to `cc`. The patch replaces files/patch-Makefile >How-To-Repeat: Do: # cd /usr/ports/dns/noip # make install conf Observe the broken list of network devices >Fix: Pass -Dbsd_with_getifaddrs explicitly to `cc`. Patch attached with submission follows: --- Makefile.orig 2009-11-17 20:19:54.000000000 +0100 +++ Makefile 2009-11-17 20:22:51.000000000 +0100 @@ -1,8 +1,8 @@ TGT=noip2 -CC=gcc +CC?=gcc PKG=noip-2.1.tgz -PREFIX=/usr/local +PREFIX?=/usr/local CONFDIR=${PREFIX}/etc BINDIR=${PREFIX}/bin @@ -22,7 +22,7 @@ # ARCH=sun ${TGT}: Makefile ${TGT}.c - ${CC} -Wall -g -D${ARCH} -DPREFIX=\"${PREFIX}\" ${TGT}.c -o ${TGT} ${LIBS} + ${CC} ${CFLAGS} -Wall -Dbsd_with_getifaddrs -DPREFIX=\"${PREFIX}\" ${TGT}.c -o ${TGT} ${LIBS} install: ${TGT} if [ ! -d ${BINDIR} ]; then mkdir -p ${BINDIR};fi >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103271802.p2RI2tgJ049253>