From owner-freebsd-ports Fri Jun 8 9:15:44 2001 Delivered-To: freebsd-ports@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id 5830437B405 for ; Fri, 8 Jun 2001 09:15:35 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 38112 invoked by uid 1000); 8 Jun 2001 16:14:17 -0000 Date: Fri, 8 Jun 2001 19:14:17 +0300 From: Peter Pentchev To: Rich Morin Cc: freebsd-ports@FreeBSD.ORG Subject: Re: /usr/ports/security/ssh2 - build fails Message-ID: <20010608191417.D535@ringworld.oblivion.bg> Mail-Followup-To: Rich Morin , freebsd-ports@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rdm@cfcl.com on Thu, Jun 07, 2001 at 12:05:48PM -0700 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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