Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jun 2001 19:14:17 +0300
From:      Peter Pentchev <roam@orbitel.bg>
To:        Rich Morin <rdm@cfcl.com>
Cc:        freebsd-ports@FreeBSD.ORG
Subject:   Re: /usr/ports/security/ssh2 - build fails
Message-ID:  <20010608191417.D535@ringworld.oblivion.bg>
In-Reply-To: <p0510034bb7457faa4c0d@[192.168.168.205]>; from rdm@cfcl.com on Thu, Jun 07, 2001 at 12:05:48PM -0700
References:  <p0510034bb7457faa4c0d@[192.168.168.205]>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 07, 2001 at 12:05:48PM -0700, Rich Morin wrote:
> We run a fairly vanilla FreeBSD 4.2 system; about the only thing that
> might be peculiar is that we don't use X11 (although some pieces of it
> are lying about because of assorted packages that keep trying to bring
> it in (:-).  Recently, we tried to build /usr/ports/security/ssh2.  The
> configure phase failed, as:
> 
> # make
> ===>  Extracting for ssh2-2.3.0
> >>  Checksum OK for ssh-2.3.0.tar.gz.
> ===>  Patching for ssh2-2.3.0
> ===>  Applying FreeBSD patches for ssh2-2.3.0
> ===>  Configuring for ssh2-2.3.0
> creating cache ./config.cache
> checking distribution consistency... done
> ...
> checking for xauth... no
> configure: error: configuring with X but xauth not found - aborting
> ===>  Script "configure" failed: here are the contents of "config.log"
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> 
> Looking in the Makefile, I don't see any obvious way to kill off
> the X involvement.  Suggestions, anyone?

Can you try the attached patch, shamelessly stolen from the security/ssh
port? :)  (and then somewhat enhanced WRT plist exclusion)

G'luck,
Peter

-- 
If this sentence didn't exist, somebody would have invented it.

Index: ports/security/ssh2/Makefile
===================================================================
RCS file: /home/ncvs/ports/security/ssh2/Makefile,v
retrieving revision 1.102
diff -u -r1.102 Makefile
--- ports/security/ssh2/Makefile	2001/02/17 01:40:35	1.102
+++ ports/security/ssh2/Makefile	2001/06/08 16:13:27
@@ -36,6 +36,16 @@
 LIB_DEPENDS+=	wrap.7:${PORTSDIR}/security/tcp_wrapper
 .endif
 
+# Include extra files if X11 is installed
+.if defined(WITH_X11) || (exists(${X11BASE}/lib/libX11.a) \
+	&& !defined(WITHOUT_X11))
+USE_XLIB=	yes
+PLIST_SUB+=	WITH_X=""
+.else
+CONFIGURE_ARGS+= --without-x
+PLIST_SUB+=	WITH_X="@comment "
+.endif
+
 MAN1=	scp.1 sftp.1 scp2.1 sftp2.1 sshregex.1 ssh-probe2.1 ssh-dummy-shell.1 \
 	ssh-pubkeymgr.1 ssh2.1 ssh-chrootmgr.1 ssh-agent.1 ssh-keygen.1 \
 	ssh-add.1 ssh-add2.1 ssh-agent2.1 ssh-keygen2.1
Index: ports/security/ssh2/pkg-plist
===================================================================
RCS file: /home/ncvs/ports/security/ssh2/pkg-plist,v
retrieving revision 1.18
diff -u -r1.18 pkg-plist
--- ports/security/ssh2/pkg-plist	2000/09/02 03:56:57	1.18
+++ ports/security/ssh2/pkg-plist	2001/06/08 16:13:27
@@ -6,7 +6,7 @@
 bin/ssh-add2
 bin/ssh-signer2
 bin/ssh-probe2
-bin/ssh-askpass2
+%%WITH_X%%bin/ssh-askpass2
 bin/sftp-server2
 bin/ssh-dummy-shell
 bin/ssh-pubkeymgr

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?20010608191417.D535>