From owner-freebsd-current@freebsd.org Fri Aug 16 23:32:29 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 BF807B3164; Fri, 16 Aug 2019 23:32:29 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 469KNr1tjgz4vWG; Fri, 16 Aug 2019 23:32:27 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x7GNWJ0T033027; Fri, 16 Aug 2019 16:32:19 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id x7GNWI3x033026; Fri, 16 Aug 2019 16:32:18 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201908162332.x7GNWI3x033026@gndrsh.dnsmgr.net> Subject: Re: HEADSUP: drm-current-kmod now installs sources In-Reply-To: <20190817015208.2c8c29e0@rimwks> To: Rozhuk Ivan Date: Fri, 16 Aug 2019 16:32:18 -0700 (PDT) CC: Cy Schubert , freebsd-current@freebsd.org, "Rodney W. Grimes" , John Baldwin , Daniel Eischen , x11@freebsd.org, current@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 469KNr1tjgz4vWG X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd-rwg@gndrsh.dnsmgr.net has no SPF policy when checking 69.59.192.140) smtp.mailfrom=freebsd-rwg@gndrsh.dnsmgr.net X-Spamd-Result: default: False [3.11 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_SPAM_SHORT(0.35)[0.345,0]; RCVD_TLS_LAST(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[dnsmgr.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.22)[0.221,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(0.05)[ip: (0.15), ipnet: 69.59.192.0/19(0.08), asn: 13868(0.05), country: US(-0.05)]; NEURAL_SPAM_LONG(0.10)[0.101,0]; RCPT_COUNT_SEVEN(0.00)[8]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; SUSPICIOUS_RECIPS(1.50)[]; RCVD_COUNT_TWO(0.00)[2] 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: Fri, 16 Aug 2019 23:32:29 -0000 > On Fri, 16 Aug 2019 15:40:24 -0700 > Cy Schubert wrote: > > > On August 16, 2019 2:51:22 PM PDT, "Rodney W. Grimes" > > wrote: > > >> On 8/14/19 3:40 PM, Daniel Eischen wrote: > > >> > I've lost the original thread, but would the sources in > > >/usr/local/sys/modules get built regardless of what MAKEOBJDIRPREFIX > > >is? And, now that sources may be installed by a port, what is the > > >method for _just_ updating the sources? Why do I even need to build > > >and install the port? Personally, I would just rather have the > > >drm-kmod sources just imported into base and maintained there. If I > > >have 2 or more different checked out base src trees, how do I get the > > >correct drm-kmod to go with them if there is only one > > >/usr/local/sys/modules? Do I need multiple port trees just to pull > > >in out of tree module sources? > > >> > > >> In some ways, installing sources for DRM is a compromise for the > > >> fact > > >that we > > >> can't have DRM in the base source anymore (for various reasons). > > >However, > > >> virtualbox is also probably in that camp as well. > > > > > >I applaud this effort to provide a source compile mode for DRM, > > >but I think it has come up a bit short on execution with numorious > > >problems sited. > > > > > >I too am not real happy that /usr/local/src is going to get > > >automatically invoked from my some odd 10+ src trees that > > >are of various WIP's. I need a way to easily disable this > > >both on a global scale, and on a per src tree way. > > > > > >Rather than a default to on with an opt out mechanism perhaps > > >while we gain experience change this to a default to off with > > >an opt in mechanism? > > > > > >Sadly I do not have proposed solution, but something better > > >than what is there now needs to be found. > > > > > >Regards, > > > > Could we have a .src.conf in the root of the tree to configure this > > on a tree by tree basis? > > > > > > > I use better way: > /etc/make.conf: That file is global to all src trees, so that does not achive the desired effect. > # Modules to build with kernel. > PORTS_MODULES+= graphics/drm-fbsd12.0-kmod graphics/gpu-firmware-kmod Can we some how trigger that from either a kernel conf file, or at least on a per src tree basis? Ala cy's .src.conf? > + > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237290 I do like the patch that makes these go into the obj dir, good stuff! -- Rod Grimes rgrimes@freebsd.org