From owner-freebsd-ports@FreeBSD.ORG Wed Jun 27 08:44:33 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E18211065673 for ; Wed, 27 Jun 2012 08:44:33 +0000 (UTC) (envelope-from byu17@uclive.ac.nz) Received: from va3outboundpool.messaging.microsoft.com (va3ehsobe010.messaging.microsoft.com [216.32.180.30]) by mx1.freebsd.org (Postfix) with ESMTP id 79EA98FC1E for ; Wed, 27 Jun 2012 08:44:33 +0000 (UTC) Received: from mail241-va3-R.bigfish.com (10.7.14.242) by VA3EHSOBE014.bigfish.com (10.7.40.64) with Microsoft SMTP Server id 14.1.225.23; Wed, 27 Jun 2012 08:42:45 +0000 Received: from mail241-va3 (localhost [127.0.0.1]) by mail241-va3-R.bigfish.com (Postfix) with ESMTP id 975DB400C3; Wed, 27 Jun 2012 08:42:44 +0000 (UTC) X-Forefront-Antispam-Report: CIP:207.46.4.139; KIP:(null); UIP:(null); IPV:NLI; H:SN2PRD0202HT009.namprd02.prod.outlook.com; RD:none; EFVD:NLI X-SpamScore: -4 X-BigFish: PS-4(zzbb2dI98dI9371I1432Izz1202hzz8275dhz2dh2a8h668h839hd25he5bhf0ah) Received: from mail241-va3 (localhost.localdomain [127.0.0.1]) by mail241-va3 (MessageSwitch) id 1340786562374589_23244; Wed, 27 Jun 2012 08:42:42 +0000 (UTC) Received: from VA3EHSMHS012.bigfish.com (unknown [10.7.14.253]) by mail241-va3.bigfish.com (Postfix) with ESMTP id 5903B20045; Wed, 27 Jun 2012 08:42:42 +0000 (UTC) Received: from SN2PRD0202HT009.namprd02.prod.outlook.com (207.46.4.139) by VA3EHSMHS012.bigfish.com (10.7.99.22) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 27 Jun 2012 08:42:42 +0000 Received: from blackbox.hansons (121.73.118.140) by pod51004.outlook.com (10.27.51.103) with Microsoft SMTP Server (TLS) id 14.15.86.1; Wed, 27 Jun 2012 08:44:24 +0000 Message-ID: <4FEAC7E4.1030403@uclive.ac.nz> Date: Wed, 27 Jun 2012 20:44:20 +1200 From: Benjamin User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:12.0) Gecko/20120526 Thunderbird/12.0.1 MIME-Version: 1.0 To: Scot Hetzel References: <4FE98520.3000702@uclive.ac.nz> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [121.73.118.140] X-OriginatorOrg: uclive.ac.nz Cc: freebsd-ports@freebsd.org Subject: Re: Linux software won't install were it's told to! X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2012 08:44:34 -0000 On 06/27/12 04:13, Scot Hetzel wrote: > On Tue, Jun 26, 2012 at 4:47 AM, Benjamin wrote: >> Disclosure: I have posted this question on the forums too. >> >> I am still attempting to port Quartus II design software to FreeBSD. I am >> making progress, with the help of this list and others. >> >> My latest problem is strange. I've followed all the shell script wrappers to >> find the actual installation binary that is run. It takes an option that >> lets the user specify where to install (-t). >> >> When I run it thus: >> >> # altera_installer_cmd --source=/usr/ports/cad/quartus_ii/work >> --install=quartus_free -w -t /home/benjamin/some_dir --no_space_check >> >> It installs to some_dir in my home directory, as expected. If I change the >> install path to /usr/local however: >> >> # altera_installer_cmd --source=/usr/ports/cad/quartus_ii/work >> --install=quartus_free -w -t /usr/local/quartus --no_space_check >> >> (the only difference between the two commands is the "-t" bit) >> >> It somehow installs to /compat/linux/usr/local/quartus rather than >> /usr/local/quartus! It is almost as if there is a magic "symlink" >> redirecting certain folders, but it doesn't redirect when I specify my home >> directory. >> >> What could be going on here? >> > This is being caused by the linux emulation where it adds the prefix > '/compat/linux' to the specified path. > > linux_emul_path - > http://fxr.watson.org/fxr/source/compat/linux/linux_util.c?im=bigexcerpts#L64 > linux_emul_convpath - > http://fxr.watson.org/fxr/source/compat/linux/linux_util.c?im=bigexcerpts#L98 > kern_alternate_path - > http://fxr.watson.org/fxr/source/kern/vfs_lookup.c?im=10#L1158 > > If you create the directory '/usr/local/quartus' first, will it > install to this location? > > Scot > I created the directory /usr/local/quartus, but it still installed to the directory under /compat/linux. So there is no easy way to turn this behavior off?