Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2012 07:02:11 -0400
From:      "Thomas Mueller" <mueller23@insightbb.com>
To:        freebsd-questions@freebsd.org
Cc:        Michael Ross <gmx@ross.cx>, Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>, uki <ukaszg@gmail.com>
Subject:   Re: How to indicate source directory in other than /usr/src?
Message-ID:  <45.0C.29097.33EF5CF4@smtp01.insight.synacor.com>

next in thread | raw e-mail | index | archive | help
>From Lowell Gilbert <freebsd-questions-local@be-well.ilk.org>:

> For ports, I would would normally say that you want SRC_BASE. However,
> that's for building ports, not running them, so I may be missing the
> point.

That may be what I need.  I would be building ports.  For running ports, source code wouldn't come into play.

I couldn't find this, but just found it in 
/BETA1/usr/ports/Mk/bsd.port.mk

I installed FreeBSD 9.0-BETA1 to this partition, mounted now as /BETA1, but might want to upgrade this to 10-CURRENT.

I noticed a BSDSRCDIR in NetBSD pkgsrc, ported to other mostly (quasi)-Unix OSes as well as NetBSD.

>> I may also want to build 10-CURRENT from 9-STABLE system without giving up the 9-STABLE source tree; I would need both source trees, but then after the
>> first successful build of 10-CURRENT, I could use that to build updated versions.

> MAKEOBJDIRPREFIX can do this, but in my case I would move the original
> /usr/obj tree out of the way to avoid damaging it by mistake.

I might put 10-CURRENT source tree in /BETA1/usr/src, forever overwriting 9.0-BETA1 source tree, then 
could set MAKEOBJDIRPREFIX to /BETA1/usr/obj, or is that not necessary?

>From "Michael Ross" <gmx@ross.cx>:

> I often use nullfs for this kind of thing:

>       mount -t nullfs /where/your/sources/are /usr/src
>       mount -t nullfs /some/dir/for/objects /usr/obj

I hadn't thought of that, but now I need to check this out on "mount" man page.

>From uki <ukaszg@gmail.com>:

> Don't know if that will help in Your case, but I just softlink my
> /usr/local/src-stable to /usr/src - never had any issues.

> Cheers,
> ??ukasz Gruner

I thought of that (symbolic link: ln -s) as something to fall back on if I don't find something more elegant.

There might have been some characters in your name that xterm couldn't understand; I need something better (mlterm?)

Tom



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45.0C.29097.33EF5CF4>