Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Mar 2000 18:07:28 -0800 (PST)
From:      brooks@one-eyed-alien.net
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        "David A. Bader" <dbader@eece.unm.edu>
Subject:   ports/17520: mpich port doesn't know about native ssh
Message-ID:  <200003210207.SAA97241@minya.sea.one-eyed-alien.net>

next in thread | raw e-mail | index | archive | help

>Number:         17520
>Category:       ports
>Synopsis:       mpich port doesn't know about native ssh
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 20 18:10:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Brooks Davis
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
The Aerospace Corporation
>Environment:

FreeBSD minya 5.0-CURRENT FreeBSD 5.0-CURRENT #19: Wed Mar 15 06:57:40 PST 2000     root@:/usr/src/sys/compile/MINYA  i386

Also effects 4.0 systems.

>Description:

I was looking at the mpich port in FreeBSD today and noticed that it
doesn't know that ssh is in the base system as of FreeBSD 4.0.

>How-To-Repeat:

build ports/net/mpich on a 4.0 or higher system.

>Fix:

The following patch fixes it.  I sent mail to the maintainer with it and
got this response:

> Brooks,
>   THanks for the patch! I do not have a 4.0 system yet to test ports
> on. Can you do a "send-pr" on this? Otherwise, I will submit it in a
> week when I am back from travel.
>  Thanks,
> david


--- Makefile	Mon Jan 31 15:45:14 2000
+++ /tmp/Makefile	Mon Mar 20 15:30:18 2000
@@ -20,10 +20,16 @@
 HAS_CONFIGURE=	yes
 CONFIGURE_ARGS=	-cflags="${CFLAGS}" -prefix=${PREFIX}/mpich
 
+.include <bsd.port.pre.mk>
+
 # Include support for ssh client
 USE_SSH?=       YES
 # Use ssh instead of rsh
-.if defined(USE_SSH) && ${USE_SSH} == YES || \
+.if ${OSVERSION} >= 400016 && \
+    exists(/usr/bin/ssh) && \
+    (!defined(USE_SSH) || ${USE_SSH} != NO)
+CONFIGURE_ARGS+= -rsh="/usr/bin/ssh"
+.elif defined(USE_SSH) && ${USE_SSH} == YES || \
     exists(${PREFIX}/bin/ssh) && \
     (!defined(USE_SSH) || ${USE_SSH} != NO)
 RUN_DEPENDS+=   ssh:${PORTSDIR}/security/ssh
@@ -178,4 +184,4 @@
 		MPE_TagsEnd.4 MPE_Update.4
 INSTALL_TARGET=	install
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003210207.SAA97241>