Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jun 2012 11:13:03 -0500
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Benjamin <byu17@uclive.ac.nz>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Linux software won't install were it's told to!
Message-ID:  <CACdU%2Bf-%2BrdKq5YpNpCvCCNq4MbSCx9CtoUhVm=6LadM8pcRdYA@mail.gmail.com>
In-Reply-To: <4FE98520.3000702@uclive.ac.nz>
References:  <4FE98520.3000702@uclive.ac.nz>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACdU%2Bf-%2BrdKq5YpNpCvCCNq4MbSCx9CtoUhVm=6LadM8pcRdYA>