From owner-freebsd-ports@FreeBSD.ORG Wed Feb 9 19:11:56 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FF2F106566B for ; Wed, 9 Feb 2011 19:11:56 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout028.mac.com (asmtpout028.mac.com [17.148.16.103]) by mx1.freebsd.org (Postfix) with ESMTP id 2E4A78FC0C for ; Wed, 9 Feb 2011 19:11:55 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from cswiger1.apple.com ([17.209.4.71]) by asmtp028.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LGD00DD46NUEB80@asmtp028.mac.com> for freebsd-ports@freebsd.org; Wed, 09 Feb 2011 11:11:55 -0800 (PST) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.2.15,1.0.148,0.0.0000 definitions=2011-02-09_06:2011-02-09, 2011-02-09, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1102090117 From: Chuck Swiger In-reply-to: <4D52DE76.2050208@secnap.com> Date: Wed, 09 Feb 2011 11:11:54 -0800 Message-id: <7CA2236E-503C-4456-9516-DD7806FDDF9E@mac.com> References: <4D52D798.5020204@secnap.com> <4D52DE76.2050208@secnap.com> To: Michael Scheidell X-Mailer: Apple Mail (2.1082) Cc: freebsd-ports@freebsd.org Subject: Re: how to bootstrap libtool? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Feb 2011 19:11:56 -0000 On Feb 9, 2011, at 10:35 AM, Michael Scheidell wrote: > On 2/9/11 1:32 PM, Chuck Swiger wrote: >> You should list libnet11 as both BUILD_DEPENDS and RUN_DEPENDS, likely... > > I do. > > didn't help (specifically referring to the new 2.9.0.3 security/snort port) > > I THINK this cludge helped: but I am not happy with it. not sure I understand portlint complaints about !=, or if there is/was a better way. Running portlint shows both the issue and an URL for the recommended approach: # cd /usr/ports/security/snort ; portlint /usr/local/bin/libnet11-config: not found "Makefile", line 63: warning: "/usr/local/bin/libnet11-config --cflags" returned non-zero status /usr/local/bin/libnet11-config: not found "Makefile", line 64: warning: "/usr/local/bin/libnet11-config --libs" returned non-zero status /usr/local/bin/libnet11-config: not found "Makefile", line 63: warning: "/usr/local/bin/libnet11-config --cflags" returned non-zero status /usr/local/bin/libnet11-config: not found "Makefile", line 64: warning: "/usr/local/bin/libnet11-config --libs" returned non-zero status WARN: Makefile: [63]: use of != in assignments is almost never a good thing to do. Try to avoid using them. See http://lists.freebsd.org/pipermail/freebsd-ports/2008-July/049777.html for some helpful hints on what to do instead. WARN: Makefile: possible use of absolute pathname "/var/log/snort". 0 fatal errors and 2 warnings found. The problem with != is that is is evaluated in a subshell regardless of whether the results are needed, and it happens while the Makefile is first being read, before it tries to figure out which targets need to be processed. This is why setting libnet in BUILD_DEPENDS isn't being processed until after these commands are run (or fail to run, as above). GNU Make refers to the distinction as "immediate" vs. "deferred", and you want to use the latter where possible. Regards, -- -Chuck