From owner-freebsd-emulation@FreeBSD.ORG Tue Nov 9 17:48:26 2010 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 61DC01065670 for ; Tue, 9 Nov 2010 17:48:26 +0000 (UTC) (envelope-from me@pollux.local.net) Received: from smtp4-g21.free.fr (smtp4-g21.free.fr [212.27.42.4]) by mx1.freebsd.org (Postfix) with ESMTP id 04E2F8FC16 for ; Tue, 9 Nov 2010 17:48:24 +0000 (UTC) Received: from pollux.local.net (unknown [82.246.30.233]) by smtp4-g21.free.fr (Postfix) with ESMTP id 46C9E4C8070 for ; Tue, 9 Nov 2010 18:48:19 +0100 (CET) Received: by pollux.local.net (Postfix, from userid 2000) id C4044284AA; Tue, 9 Nov 2010 18:48:17 +0100 (CET) Date: Tue, 9 Nov 2010 18:48:17 +0100 From: Harald Weis To: freebsd-emulation@freebsd.org Message-ID: <20101109174817.GA2045@pollux.local.net> Mail-Followup-To: freebsd-emulation@freebsd.org References: <20101009203629.GA2135@pollux.local.net> <201011081948.52707.tijl@coosemans.org> <20101108214703.GA3330@pollux.local.net> <201011090957.36300.tijl@coosemans.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201011090957.36300.tijl@coosemans.org> User-Agent: Mutt/1.4.2.3i Subject: Re: linux_base-f10 install problem X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Nov 2010 17:48:26 -0000 On Tue, Nov 09, 2010 at 09:57:28AM +0100, Tijl Coosemans wrote: > On Monday 08 November 2010 22:47:03 Harald Weis wrote: > > On Mon, Nov 08, 2010 at 07:48:44PM +0100, Tijl Coosemans wrote: > >> On Monday 08 November 2010 17:27:02 Harald Weis wrote: > >>> On Mon, Nov 08, 2010 at 09:40:28AM +0100, Tijl Coosemans wrote: > >>>> On Sunday 07 November 2010 22:29:32 Harald Weis wrote: > >>>>> Output of make -V USE_LINUX_PREFIX -V LINUXBASE: > >>>>> yes > >>>>> /compat/linux > >>>>> > >>>>> Output of ls -ld /compat/linux: > >>>>> drwxr-xr-x 3 root wheel 512 Oct 14 14:18 /compat/linux/ > >>>> > >>>> > >>>> What is the output of 'make -V PREFIX' ? > >>> > >>> /usr/local > >> > >> That's the problem then, it should be /compat/linux. Somewhere PREFIX > >> is set to /usr/local. Maybe in /etc/make.conf? > > > > No, make.conf is ok. > > The Makefile includes /usr/ports/Mk/bsd.port.mk and this (very big) > > file says: > > > > .if defined(USE_LINUX_PREFIX) > > PREFIX?= ${LINUXBASE} > > NO_MTREE= yes > > .else > > PREFIX?= ${LOCALBASE} > > .endif > > > > That means that PREFIX should be set to /compat/linux ! > > It would be nice if the bug were in bsd.port.mk . > > But then I can't believe that I am the only person in the world > > having this problem. And it seems that I am indeed quite alone. > > Strange, very strange. Could it be a virus in the end ? > > ?= means it will only be set if it doesn't have a value yet. So you > could change that into = and see if 'make -V PREFIX' produces the > correct output then. If it does you know PREFIX is defined before. > If it doesn't, it must be overwritten after those lines (or the lines > didn't execute at all). So you could try something like this: > > .if defined(USE_LINUX_PREFIX) > PREFIX= ${LINUXBASE} > NO_MTREE= yes > ITWORKS= yes > .else > PREFIX?= ${LOCALBASE} > ITWORKS= no > .endif > > make -V PREFIX -V ITWORKS /compat/linux yes Following this trial, I've quickly found the responsible line in $HOME/.cshrc : setenv PREFIX /usr/local No doubt that this is the reason for all my flash plugin trouble since the time I added this line (less than two years ago), because I use to go to root with calife(1) from the very beginning, I find it very comfortable. But in this case it has cost a lot of time. But I've learned a lot as well... I am sure there is no need to confirm the solution of the "mystery". Thank you very much for your great and patient help. Best regards, Harald Weis