From nobody@FreeBSD.org  Fri Mar 11 08:37:01 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 97DCA106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Mar 2011 08:37:01 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 85C428FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Mar 2011 08:37:01 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p2B8b0OD049842
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 11 Mar 2011 08:37:00 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p2B8b0at049841;
	Fri, 11 Mar 2011 08:37:00 GMT
	(envelope-from nobody)
Message-Id: <201103110837.p2B8b0at049841@red.freebsd.org>
Date: Fri, 11 Mar 2011 08:37:00 GMT
From: Alexey Remizov <alexey@remizov.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: security/openssh-portable fails to compile with LPK enabled
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: magik@roorback.net

>Number:         155456
>Category:       ports
>Synopsis:       security/openssh-portable fails to compile with LPK enabled
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    stephen
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 11 08:40:12 UTC 2011
>Closed-Date:    Fri Oct 21 16:26:40 UTC 2011
>Last-Modified:  Fri Oct 21 16:26:40 UTC 2011
>Originator:     Alexey Remizov
>Release:        FreeBSD-7.3
>Organization:
>Environment:
FreeBSD myhost.org 7.3-i386-20100520 FreeBSD 7.3-i386-20100520 #0: Thu May 20 16:44:53 UTC 2010     /usr/obj/usr/src/sys/KERNEL7-i386  i386

>Description:
After "make":

===>   openssh-portable-5.2.p1_3,1 depends on shared library: ldap-2.4.8 - found
===>  Configuring for openssh-portable-5.2.p1_3,1
env: -DWITH_LDAP_PUBKEY: No such file or directory
===>  Script "configure" failed unexpectedly.
>How-To-Repeat:
cd /usr/ports/security/openssh-portable
make
[select option WITH_LPK]



>Fix:
Looks like port is broken with revision 1.674 of bsd.port.mk. Removing of quotes around CPPFLAGS in openssh-portable/Makefile works for me (see attach).

Patch attached with submission follows:

--- Makefile.orig	2010-12-27 12:58:51.000000000 +0300
+++ Makefile	2011-03-11 11:29:52.000000000 +0300
@@ -151,7 +151,7 @@
 .if defined(WITH_LPK)
 EXTRA_PATCHES+=		${FILESDIR}/contrib-openssh-lpk-5.1p1-0.3.10.patch
 USE_OPENLDAP=		yes
-CPPFLAGS+=		"-I${LOCALBASE}/include -DWITH_LDAP_PUBKEY"
+CPPFLAGS+=		-I${LOCALBASE}/include -DWITH_LDAP_PUBKEY
 CONFIGURE_ARGS+=	--with-libs='-lldap' --with-ldflags='-L${LOCALBASE}/lib' \
 			--with-cppflags='-I${LOCALBASE}/include -DWITH_LDAP_PUBKEY'
 .endif


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: stephen 
State-Changed-When: Tue Jul 19 02:13:14 UTC 2011 
State-Changed-Why:  
The port now has a maintainer. 


Responsible-Changed-From-To: freebsd-ports-bugs->stephen 
Responsible-Changed-By: stephen 
Responsible-Changed-When: Tue Jul 19 02:13:14 UTC 2011 
Responsible-Changed-Why:  
I'll take this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=155456 

From: Stephen Montgomery-Smith <stephen@missouri.edu>
To: bug-followup@FreeBSD.org, alexey@remizov.org, magik@roorback.net
Cc:  
Subject: Re: ports/155456: security/openssh-portable fails to compile with
 LPK enabled
Date: Mon, 18 Jul 2011 21:18:22 -0500

 Dear new maintainer of security/openssh-portable,
 
 The PR ports/155456 was filed, and pertains to this port.
 
 Thanks, Stephen
State-Changed-From-To: feedback->closed 
State-Changed-By: flo 
State-Changed-When: Fri Oct 21 16:26:39 UTC 2011 
State-Changed-Why:  
Should be fixed in the latest version of the port 

http://www.freebsd.org/cgi/query-pr.cgi?pr=155456 
>Unformatted:
