From owner-svn-ports-all@freebsd.org Tue Feb 21 21:56:32 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DE482CE8388; Tue, 21 Feb 2017 21:56:32 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id ADB48288; Tue, 21 Feb 2017 21:56:32 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v1LLuVLB097724; Tue, 21 Feb 2017 21:56:31 GMT (envelope-from jkim@FreeBSD.org) Received: (from jkim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v1LLuVY9097723; Tue, 21 Feb 2017 21:56:31 GMT (envelope-from jkim@FreeBSD.org) Message-Id: <201702212156.v1LLuVY9097723@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jkim set sender to jkim@FreeBSD.org using -f From: Jung-uk Kim Date: Tue, 21 Feb 2017 21:56:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r434555 - head/emulators/virtualbox-ose X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2017 21:56:33 -0000 Author: jkim Date: Tue Feb 21 21:56:31 2017 New Revision: 434555 URL: https://svnweb.freebsd.org/changeset/ports/434555 Log: Warn and stop build if the kernel cannot execute a 32-bit binary. PR: 193946 Modified: head/emulators/virtualbox-ose/Makefile Modified: head/emulators/virtualbox-ose/Makefile ============================================================================== --- head/emulators/virtualbox-ose/Makefile Tue Feb 21 20:51:06 2017 (r434554) +++ head/emulators/virtualbox-ose/Makefile Tue Feb 21 21:56:31 2017 (r434555) @@ -120,6 +120,10 @@ OPTIONS_DEFAULT+= PYTHON CONFLICTS_INSTALL+= virtualbox-ose-[0-9]* .endif +.if ${ARCH} == "amd64" +_ELF32!= kldstat -q -m elf32 && echo yes || echo no +.endif + .if ${PORT_OPTIONS:MNLS} && empty(PORT_OPTIONS:MQT[45]) BROKEN= NLS support requires QT frontend. Run 'make config' again! .endif @@ -241,7 +245,11 @@ CONFIGURE_ARGS+= --with-openssl-dir="${O pre-everything:: .if ${ARCH} == "amd64" -.if !exists(/usr/lib32/libc.so) +.if ${_ELF32} != yes + @${ECHO} 'Requires 32-bit runtime support in kernel.' + @${ECHO} 'Rebuild kernel with "options COMPAT_FREEBSD32" and reboot.' + @${FALSE} +.elif !exists(/usr/lib32/libc.so) @${ECHO} 'Requires 32-bit libraries installed under /usr/lib32.' @${ECHO} 'Do: cd /usr/src; make build32 install32; /etc/rc.d/ldconfig restart' @${FALSE}