From owner-freebsd-ports Sun Aug 1 20:40:31 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id F34BD14E5B for ; Sun, 1 Aug 1999 20:40:29 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id UAA78038; Sun, 1 Aug 1999 20:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 1A77914E5B; Sun, 1 Aug 1999 20:39:00 -0700 (PDT) Message-Id: <19990802033900.1A77914E5B@hub.freebsd.org> Date: Sun, 1 Aug 1999 20:39:00 -0700 (PDT) From: dlombardo@excite.com To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: ports/12918: linux_base build fails on kernels built with COMPAT_LINUX Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 12918 >Category: ports >Synopsis: linux_base build fails on kernels built with COMPAT_LINUX >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 1 20:40:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Dean Lombardo >Release: 4.0-current >Organization: >Environment: FreeBSD xtsw12c.ukc.ac.uk 4.0-CURRENT FreeBSD 4.0-CURRENT #1: Sat Jul 31 11:31:42 GMT 1999 root@xtsw12c.ukc.ac.uk:/usr/src/sys/compile/AMSTECH i386 >Description: make install fails in /usr/ports/emulators/linux_base when the kernel is built with the COMPAT_LINUX option. This is because the Makefile assumes that the linux.ko kernel module must be loaded to enable Linux emulation. >How-To-Repeat: Compile Linux compatibility support into the kernel by including the option COMPAT_LINUX in the config file, then try installing linux_base in ports. >Fix: Replace the following line in the Makefile @if [ -z "`kldstat | ${GREP} linux.ko | ${AWK} '{print $1}'`" ]; then \ with some other means of detecting the presence of Linux support in the kernel, e.g. check to see whether the length of nm `sysctl kern.bootfile | ${AWK} '{print $2}'` | ${GREP} linux_ioctl is non-zero. There must be a better way, though. ;-) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message