From owner-freebsd-emulation@FreeBSD.ORG Fri Aug 26 05:34:56 2011 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DADB1106566B for ; Fri, 26 Aug 2011 05:34:56 +0000 (UTC) (envelope-from decke@bluelife.at) Received: from groupware.itac.at (groupware.itac.at [91.205.172.99]) by mx1.freebsd.org (Postfix) with ESMTP id 6C66D8FC18 for ; Fri, 26 Aug 2011 05:34:55 +0000 (UTC) Received: from [46.206.57.222] (46.206.57.222) by groupware.itac.at (Axigen) with (CAMELLIA256-SHA encrypted) ESMTPSA id 12130D; Fri, 26 Aug 2011 07:35:15 +0200 From: Bernhard =?ISO-8859-1?Q?Fr=F6hlich?= To: Warren Block , Rusty Nejdl X-Mailer: Modest 3.90.7 References: <201108252055.p7PKtI3J001414@mail.wynn.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-ID: <1314336920.4027.4.camel@Nokia-N900-42-11> Date: Fri, 26 Aug 2011 07:35:20 +0200 Message-Id: <1314336920.4027.5.camel@Nokia-N900-42-11> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-AxigenSpam-Level: 1 X-CTCH-RefID: str=0001.0A0B020A.4E57307E.008D,ss=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown Cc: freebsd-emulation@freebsd.org Subject: Re: virtualbox on FreeBSD 8.2 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Bernhard =?ISO-8859-1?Q?Fr=F6hlich?= List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2011 05:34:56 -0000 On Fr., 26. Aug. 2011 03:06:41 CEST, Warren Block wrote: > On Thu, 25 Aug 2011, Rusty Nejdl wrote: > > > I was building a port that depended on threaded perl and used code > > like this: > > > > .if exists(${PERL}) > > PERL_THREADS!=  ${PERL} -V::usethreads > > .if ${PERL_THREADS}!="'define';" > > IGNORE=                needs a threaded Perl, build with WITH_THREADS=yes > > flag and  try again > > .endif > > .else > > IGNORE=                needs an existing installation of Perl built with > > WITH_THREADS=yes > > .endif > > > > Perhaps you could use something similar? > > Some searching found security/clamav/Makefile: > > .if (defined(WITH_LLVM) || defined(WITH_LLVM_PORTS)) && > defined(WITH_TESTS) pre-configure: >                  @if ! ${PYTHON_CMD} -c "import thread" >/dev/null 2>&1; then \ >                                  ${ECHO_MSG} ""; \ >                                  ${ECHO_MSG} > "========================================================================= >                                ${ECHO_MSG} "= Unit tests REQUIRES python built with > thread support, and yours is not.                                ${ECHO_MSG} "= It will > not be called during this build                                ${ECHO_MSG} > "========================================================================= >                                ${ECHO_MSG} ""; \                                ${TOUCH} > ${PY_NO_THREAD}; \                fi .endif I know that a few ports try to be smart and check a bit more then others but the problem is that checking for each and every combination of options for all dependencies does not scale. In big ports you end up with a big mess. Many projects have their configure to check specific features and version ranges of their requirements which usually gives you a good idea of what is wrong but vbox doesnt. So if someone wants to improve that send a patch for vbox configure to check for python threads.