Date: Fri, 2 Sep 2011 10:13:26 GMT From: pluknet <pluknet@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/160389: [patch] security/openssh-portable: fix build on 9.x Message-ID: <201109021013.p82ADQnB094275@red.freebsd.org> Resent-Message-ID: <201109021020.p82AK9IX020440@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <bsd.port.pre.mk> .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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109021013.p82ADQnB094275>