From owner-freebsd-ports Wed Feb 20 16:26:51 2002 Delivered-To: freebsd-ports@freebsd.org Received: from fac13.ds.psu.edu (fac13.ds.psu.edu [146.186.61.98]) by hub.freebsd.org (Postfix) with ESMTP id 4DD4537B417 for ; Wed, 20 Feb 2002 16:26:44 -0800 (PST) Received: from fac13.ds.psu.edu (localhost.ds.psu.edu [127.0.0.1]) by fac13.ds.psu.edu (8.11.6/8.11.3) with ESMTP id g1L0QNh02635 for ; Wed, 20 Feb 2002 19:26:23 -0500 (EST) (envelope-from hawk@fac13.ds.psu.edu) Message-Id: <200202210026.g1L0QNh02635@fac13.ds.psu.edu> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: freebsd-ports@FreeBSD.ORG Subject: adjusting linux script that checks for glibc version? From: dochawk@psu.edu Date: Wed, 20 Feb 2002 19:26:23 -0500 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 I've gotten as far as getting lahey's installation script to execute, but it checks for the glibc version based upon a linux-layout. The offending snippet is: # Determine glibc version used on the system. # libc="" if [ `/lib/libc.so.6|grep "GNU C Library"|grep -c "version 2.1"` = "1" ]; then libc="glibc2.1" fi if [ `/lib/libc.so.6|grep "GNU C Library"|grep -c "version 2.2"` = "1" ]; then libc="glibc2.2" fi As-is, it generates, filecopy: /lib/libc.so.6: not found filecopy: /lib/libc.so.6: not found I've tried changing /lib to /compat/linux /lib, which changes the errors to /compat/linux/lib/libc.so.6: 1: Syntax error: "(" unexpected /compat/linux/lib/libc.so.6: 1: Syntax error: "(" unexpected It then asks which version, and accepts my taking the glibc2.1 option. What is the "correct" way to check such a thing? thanks hawk -- Richard E. Hawkins, Asst. Prof. of Economics /"\ ASCII ribbon campaign dochawk@psu.edu Smeal 178 (814) 375-4700 \ / against HTML mail These opinions will not be those of X and postings. Penn State until it pays my retainer. / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message