Date: Sun, 24 Nov 2013 17:24:04 -0500 From: Julio Merino <julio@meroh.net> To: Garrett Cooper <yaneurabeya@gmail.com> Cc: freebsd-testing@freebsd.org Subject: Re: Confusion over BSD.tests.dist Message-ID: <CADyfeQVq2gr9aGu=Zi4rpKM9FfP24c-CZ2SRjkCfQ4aBL=2-ww@mail.gmail.com> In-Reply-To: <E9B8E13C-1679-4507-8949-BF8F48102E53@gmail.com> References: <83E6FED5-2E76-4E43-9547-C0DC1C90DBBD@gmail.com> <AD5A2A2F-DC12-4DBC-8E63-9EC7A872B7B7@gmail.com> <CADyfeQVxJbX7uRWtOhCsBNQdZ7=qnwH=s7QCYWQbq%2BLO4E%2BESg@mail.gmail.com> <E9B8E13C-1679-4507-8949-BF8F48102E53@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Nov 24, 2013 at 5:08 PM, Garrett Cooper <yaneurabeya@gmail.com> wrote: > On Nov 24, 2013, at 2:04 PM, Julio Merino <julio@meroh.net> wrote: >> Is TESTSBASE supposed to be customizable? (And before answering that: > > It can be: > > # grep -r TESTSBASE share/mk > share/mk/bsd.README:TESTSDIR Target directory relative to ${TESTSBASE} for tests and > share/mk/bsd.own.mk:TESTSBASE?= /usr/tests I know it _can_ be, but the question is: do we want to support that as a use case? I'm not sure why anybody would want to move /usr/tests anywhere else. If there is no real reason other than "just because", I don't think the build system should make any accommodations to make it trivial. (Because if it's trivial, people _will_ move it and when things break, it's one more thing to support in bug reports.) >> are things like LIBDIR or INCLUDEDIR user-tunabale?) > > Those are user tunable too, but generally not tweaked, except when dealing with packages that use bsd.*.mk (e.g. ports): > > # egrep --include \*.mk -r '^INCLUDEDIR|^LIBDIR' share/mk > share/mk/bsd.own.mk:LIBDIR?= /usr/lib > share/mk/bsd.own.mk:INCLUDEDIR?= /usr/include Right, so they are tunable when bsd.*.mk are abused to build things from ports (and in that case mtree doesn't apply). But I believe they are not tunable to tell the base system where the libraries or headers should be; if they were, I'm pretty sure things would break in obscure ways and it'd be a "support" headache. -- Julio Merino / @jmmv
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADyfeQVq2gr9aGu=Zi4rpKM9FfP24c-CZ2SRjkCfQ4aBL=2-ww>