From owner-freebsd-current@freebsd.org Wed Aug 14 17:16:12 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 52F5EB2F8F for ; Wed, 14 Aug 2019 17:16:12 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 467x7c0flPz4bp2 for ; Wed, 14 Aug 2019 17:16:12 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 13123B2F8B; Wed, 14 Aug 2019 17:16:12 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 12BD6B2F89; Wed, 14 Aug 2019 17:16:12 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 467x7b40Lcz4bny; Wed, 14 Aug 2019 17:16:11 +0000 (UTC) (envelope-from theron.tarigo@gmail.com) Received: by mail-pf1-x443.google.com with SMTP id d85so3462565pfd.2; Wed, 14 Aug 2019 10:16:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=VgDH7SNtfTkRPWWZOMN8ggGsplNmarYIsV+y9JplNsA=; b=LfE7qlmZ0Lsys4koCKsPT6aTo22zDsJ4ReF9HfxhTqwLYfa2K0WH5W0/kfYCmO6am7 IgvzRh4rymWErm6nNXLnt2IQNBz6aQTmS6W6Tv+h9jroeKcb2MveCcwILwLIEuR3cjqT Ddf8zGLPdjVfp0FxtTpZXeRoyZyI9U/1xTGOad/H4AWt7ucrbCq9G9SlNb0+ndvUQaEn ogkPlDkjlCkL0c372guIFTwYtwogrv9grcNGQv/eQIJdwlng/VFexvbZW9Pd1FgEUxKf vi32XiW4TwzYcDnrrRHwqvzscGbUuPy1uiuxxb8FUDKSBVNhRnj5fK5gEjbRK5eHmvfH aB2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=VgDH7SNtfTkRPWWZOMN8ggGsplNmarYIsV+y9JplNsA=; b=LEu0JUgQAmWUuUJKUaB57HjVV6c8VBJNiuENLpZxUHDTjyxylZFkZU8+PVH3FWiTCu 0nfT/him3OdkLrspumFl/FIxIGPoOiJczc5fECySyROp8aMQDDg3dJ3mn9irrGHfLGqD LoGqymmbG2weh/WW+dqJ2anDUelKzGpdKjhl8J/M8T8TuLDkjUMx1Gx47kXE+IqetM/u QQOlHxpNOMo1bIg6rLfyjyEQTzA2A5ht6jG9nP/iXe/pGWFVZ0EjmLrgRvxmN/rqthu+ hD6JJmUkm0sVbcGgoW3wyFVTNTsrS/86rmy6C8aJicIJw/0RKPBeeZ5pZ3XCinyRTurZ uyRQ== X-Gm-Message-State: APjAAAUEFpk0K8tmmjN4YxqkXekpUl/wUb3Xeuz56IqSoEZJVgFYF8/t DCl0lrIQXEHSp+nox52EOr4g+gxjzRM= X-Google-Smtp-Source: APXvYqwMH9ycKGklUB/cKkFcl3WL65eP6z5S+QpxptK4TVcchcjz+ChF7HLegjithQ69jm4CKVxnMw== X-Received: by 2002:a63:4562:: with SMTP id u34mr222227pgk.288.1565802969651; Wed, 14 Aug 2019 10:16:09 -0700 (PDT) Received: from [192.168.1.23] (c-73-170-47-221.hsd1.ca.comcast.net. [73.170.47.221]) by smtp.gmail.com with ESMTPSA id x17sm395190pff.62.2019.08.14.10.16.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Aug 2019 10:16:08 -0700 (PDT) Sender: Theron Tarigo Subject: Re: HEADSUP: drm-current-kmod now installs sources To: John Baldwin , Ian Lepore , current@FreeBSD.org Cc: x11@FreeBSD.org References: <67ca217f-b7de-8707-c4de-51e3f895d06f@FreeBSD.org> From: Theron Message-ID: Date: Wed, 14 Aug 2019 10:16:07 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 467x7b40Lcz4bny X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=LfE7qlmZ; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of therontarigo@gmail.com designates 2607:f8b0:4864:20::443 as permitted sender) smtp.mailfrom=therontarigo@gmail.com X-Spamd-Result: default: False [-3.98 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.98)[-0.982,0]; RECEIVED_SPAMHAUS_PBL(0.00)[221.47.170.73.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; IP_SCORE(0.00)[ip: (-0.37), ipnet: 2607:f8b0::/32(-2.98), asn: 15169(-2.39), country: US(-0.05)]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; IP_SCORE_FREEMAIL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[3.4.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Aug 2019 17:16:12 -0000 CC @current, as I had originally intended. On 2019-08-14 09:08, John Baldwin wrote: > 1) You can set LOCALBASE to a different path either in a kernel config > (via makeoptions) or when invoking buildkernel. > > For example, I mount my rpi's sdcard at /mnt on my amd64 laptop and > then cross-build into it, so I could set LOCALBASE to /mnt/usr/local when > building the rpi's kernel to honor any kmod packages installed on the rpi. Normally LOCALBASE is interpreted by ports as the default for PREFIX, meaning it should be a path _within_ the target system, not the path to where it is mounted.  There is DESTDIR for that. Now for kernel build this is not a problem for the reason that LOCALBASE is being used just to find sources, not to build ports. However, given how that variable is normally used, it seems like a problem waiting to happen.  It would be better to use a variable specific to the purpose at hand. >> How about when I'm doing a build of 11-stable for testing, but what's >> in my /usr/local is sources for a 13-current driver? > Given that the kmod's are supposed to be portable across branches, > the build really shouldn't be breaking. But the same ability is still > there to as above to disable builds either in general or for > specific kernel configs or buildkernel invocations. The concern appears to be that there is no longer a clear way to separate what base source tree does from what is in the local system's configuration.  Is there any one single knob to tell /usr/src not to use any configuration from /usr/local?