From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Sep 2 10:20:09 2011 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 BF4311065676 for ; Fri, 2 Sep 2011 10:20:09 +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 9D17F8FC1B for ; Fri, 2 Sep 2011 10:20:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p82AK91O020441 for ; Fri, 2 Sep 2011 10:20:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p82AK9IX020440; Fri, 2 Sep 2011 10:20:09 GMT (envelope-from gnats) Resent-Date: Fri, 2 Sep 2011 10:20:09 GMT Resent-Message-Id: <201109021020.p82AK9IX020440@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, pluknet Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C37071065675 for ; Fri, 2 Sep 2011 10:13:26 +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 B37F98FC18 for ; Fri, 2 Sep 2011 10:13:26 +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 p82ADQTj094279 for ; Fri, 2 Sep 2011 10:13:26 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p82ADQnB094275; Fri, 2 Sep 2011 10:13:26 GMT (envelope-from nobody) Message-Id: <201109021013.p82ADQnB094275@red.freebsd.org> Date: Fri, 2 Sep 2011 10:13:26 GMT From: pluknet To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/160389: [patch] security/openssh-portable: fix build on 9.x X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2011 10:20:09 -0000 >Number: 160389 >Category: ports >Synopsis: [patch] security/openssh-portable: fix build on 9.x >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Sep 02 10:20:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: pluknet >Release: 9.0-BETA2 >Organization: >Environment: >Description: autoconf fails to detect openpty(3) properly, so it substitutes this function from openbsd-compat which doesn't compile on 9.x. >How-To-Repeat: Try to build on 9.x with default config >Fix: add -lutil to the autoconf library list for openpty(), so the native openpty() can be found and used instead of the non-compilable compat function from openbsd-compat. Patch attached with submission follows: diff -urpN openssh-portable.orig/Makefile openssh-portable/Makefile --- openssh-portable.orig/Makefile 2011-09-02 14:05:21.000000000 +0400 +++ openssh-portable/Makefile 2011-09-02 14:00:56.000000000 +0400 @@ -71,7 +71,7 @@ OPTIONS= PAM "Enable pam(3) support" .include .if ${OSVERSION} >= 900000 -BROKEN= does not build +EXTRA_PATCHES= ${FILESDIR}/extra-patch-configure .endif .if defined(WITH_X509) && ( defined(WITH_HPN) || defined(WITH_LPK)) diff -urpN openssh-portable.orig/files/extra-patch-configure openssh-portable/files/extra-patch-configure --- openssh-portable.orig/files/extra-patch-configure 1970-01-01 03:00:00.000000000 +0300 +++ openssh-portable/files/extra-patch-configure 2011-09-02 14:00:06.000000000 +0400 @@ -0,0 +1,10 @@ +--- configure.orig 2011-09-01 20:36:35.000000000 +0400 ++++ configure 2011-09-02 13:59:02.000000000 +0400 +@@ -12856,6 +12856,7 @@ + + + ++LIBS="-lutil $LIBS" + for ac_func in \ + arc4random \ + arc4random_buf \ >Release-Note: >Audit-Trail: >Unformatted: