linux_base-f10 install problem

Tijl Coosemans tijl at coosemans.org
Tue Nov 9 08:57:40 UTC 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-emulation/attachments/20101109/5f4aa39a/attachment.pgp


More information about the freebsd-emulation mailing list