Date: Wed, 27 Jun 2012 20:44:20 +1200 From: Benjamin <byu17@uclive.ac.nz> To: Scot Hetzel <swhetzel@gmail.com> Cc: freebsd-ports@freebsd.org Subject: Re: Linux software won't install were it's told to! Message-ID: <4FEAC7E4.1030403@uclive.ac.nz> In-Reply-To: <CACdU%2Bf-%2BrdKq5YpNpCvCCNq4MbSCx9CtoUhVm=6LadM8pcRdYA@mail.gmail.com> References: <4FE98520.3000702@uclive.ac.nz> <CACdU%2Bf-%2BrdKq5YpNpCvCCNq4MbSCx9CtoUhVm=6LadM8pcRdYA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 06/27/12 04:13, Scot Hetzel wrote: > On Tue, Jun 26, 2012 at 4:47 AM, Benjamin<byu17@uclive.ac.nz> 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<location>). >> >> 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<location>" 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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FEAC7E4.1030403>