[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Questions on localbase again



First things first, create a new fake.mtree file and modify it to keep all
the subdirs there but root them somewhere else that you want LOCALBASE to
point to. Then override MTREE_FILE and point to it.
/usr/ports/infrastructure/db/fake.mtree is the default for /usr/local.
Then see how far you get with the ports tree.

// Brad

brad@comstyle.com
brad@openbsd.org

>Heikki Korpela <heko@iki.fi> wrote:
>
>> 1) If I decide to use a $LOCALBASE other than /usr/local, is it up
>>    to me to fix infrastructure/db/fake.mtree
>
>Yes.  You can't pass parameters into an mtree spec, I'm afraid.
>
>>    (or individual ports) to reflect this change?
>
>Ports _should_ transparently handle this.  If a port doesn't, it's
>a bug that should be fixed.
>
>In practice, you'll see a lot of breakage if you change LOCALBASE.
>I'm sure there are some ports that hardcode /usr/local and nobody
>noticed.  Also, I suspect a good many configure scripts check for
>things in /usr/local but not in your custom path.  (Same for
>/usr/X11R6 and X11BASE.)
>
>--
>Christian "naddy" Weisgerber                          naddy@mips.inka.de
>