From owner-freebsd-testing@FreeBSD.ORG Sun Nov 24 22:24:33 2013 Return-Path: Delivered-To: freebsd-testing@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3D7423FD for ; Sun, 24 Nov 2013 22:24:33 +0000 (UTC) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com [209.85.215.43]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C0543293B for ; Sun, 24 Nov 2013 22:24:32 +0000 (UTC) Received: by mail-la0-f43.google.com with SMTP id n7so2388899lam.2 for ; Sun, 24 Nov 2013 14:24:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=SKxsS11w5v+uqeXoDBcThZpg07S6ZZRVJ0NbovhwA1k=; b=ktHBhjB1pG6Cftua3+LzdIieZ34lVynHxBJzX3ruLPxdj1G3EAL1ZAbFYZa2EAHukE 9sFdW79eZpNKeRQhmHmZgJcc4PELGIvphMAwLPTW9DvPI316S+Y3GQcM9qFFDORnJh2S apObqJaJZKq3lyj3VFL858qxZQj+GUQattmdwNmkHQrw4o/faEHkVMS3PQYz+AEDs1WY mI/+9jxjPLzCZp73mzKYgHXJtQ+MkowgWKgr4fbUxHi1NOsltHf7904/fTtmL0GE9aSH 93zRAWrEA+YsUVdt3E5N/04gM65o7biKXcM3iqym0uLDFwBaiMKWXcwP1Xedgsm7tOCK EKkA== X-Gm-Message-State: ALoCoQm5fpTfZFMUm7p7OXmpENOoNv/TnmSa3RBi3xNTuTaY09Foz55gNKOPvKGqIZwEjmjC3eup X-Received: by 10.153.7.106 with SMTP id db10mr12273161lad.9.1385331864620; Sun, 24 Nov 2013 14:24:24 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.168.65 with HTTP; Sun, 24 Nov 2013 14:24:04 -0800 (PST) X-Originating-IP: [108.176.158.82] In-Reply-To: References: <83E6FED5-2E76-4E43-9547-C0DC1C90DBBD@gmail.com> From: Julio Merino Date: Sun, 24 Nov 2013 17:24:04 -0500 Message-ID: Subject: Re: Confusion over BSD.tests.dist To: Garrett Cooper Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-testing@freebsd.org X-BeenThere: freebsd-testing@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Testing on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Nov 2013 22:24:33 -0000 On Sun, Nov 24, 2013 at 5:08 PM, Garrett Cooper wrote: > On Nov 24, 2013, at 2:04 PM, Julio Merino 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