From owner-freebsd-current@freebsd.org Mon May 9 22:27:02 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 669A3B35FAD; Mon, 9 May 2016 22:27:02 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (mx.catwhisker.org [198.144.209.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1FBEB10C7; Mon, 9 May 2016 22:27:01 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from albert.catwhisker.org (localhost [127.0.0.1]) by albert.catwhisker.org (8.15.2/8.15.2) with ESMTP id u49MQxbZ022010; Mon, 9 May 2016 22:26:59 GMT (envelope-from david@albert.catwhisker.org) Received: (from david@localhost) by albert.catwhisker.org (8.15.2/8.15.2/Submit) id u49MQxQh022009; Mon, 9 May 2016 15:26:59 -0700 (PDT) (envelope-from david) Date: Mon, 9 May 2016 15:26:59 -0700 From: David Wolfskill To: John Baldwin Cc: freebsd-current@freebsd.org, "freebsd-pkgbase@freebsd.org" Subject: Re: NO_INSTALLEXTRAKERNELS and PkgBase Message-ID: <20160509222659.GB20662@albert.catwhisker.org> Reply-To: freebsd-current@freebsd.org, "freebsd-pkgbase@freebsd.org" Mail-Followup-To: freebsd-current@freebsd.org, "freebsd-pkgbase@freebsd.org" , John Baldwin References: <3382220.3AgOZzUBmF@ralph.baldwin.cx> <20160509184544.GU1063@albert.catwhisker.org> <6691787.Xk1Kup9mab@ralph.baldwin.cx> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="l76fUT7nc3MelDdI" Content-Disposition: inline In-Reply-To: <6691787.Xk1Kup9mab@ralph.baldwin.cx> User-Agent: Mutt/1.6.1 (2016-04-27) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 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: Mon, 09 May 2016 22:27:02 -0000 --l76fUT7nc3MelDdI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 09, 2016 at 12:43:42PM -0700, John Baldwin wrote: > ... > > I suppose there's probably some way to arrange things so the KERNCONF > > specification in /etc/src.conf has one value during "buildkernel" and a > > different value during "inistallkernel" -- but ... seriously...??!? >=20 > One could do some ugly things with .make() to change the default based on > the target being invoked (kind of like folks storing port options in > /etc/make.conf conditional on the current directory), but that would be > hackish. Right; "hackish" is probably a bit ... kinder than what came to mind. :-} > > Wouldn't it be cleaner to have different variables (e.g., that could > > each default to the KERNCONF specification, but could be overridden in > > a simple text file that doesn't require delving into make(1) arcana to > > craft or understand)? >=20 > I think having separate variables is fine, and I think your suggestion of > KERNCONF_BUILD and KERNCONF_INSTALL that default to KERNCONF would be > fine. From the thread, I think it would mean you would need to use the > two settings in your /etc/src.conf but that other folks wanting to install > both would just stick with KERNCONF, correct? That is my understanding, yes. I don't mind tweaking things a bit for an uncommon case; I'd rather avoid twisting my mind into a pretzel to do something that's been quite easy historically. :-) > ... > > Would that work? It seems as if that would work for my case. >=20 > Yes. I think that is also simpler than having a new WITH/WITHOUT variable > to control how installkernel treats KERNCONF. > .... Yay...! :-) Peace, david --=20 David H. Wolfskill david@catwhisker.org Those who would murder in the name of God or prophet are blasphemous coward= s. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --l76fUT7nc3MelDdI Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJXMQ6yXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRDQ0I3Q0VGOTE3QTgwMUY0MzA2NEQ3N0Ix NTM5Q0M0MEEwNDlFRTE3AAoJEBU5zECgSe4X/aMH/RA4QnvgmPhIqD7ZiUuQ6Tu3 9VXh9y7by0kfidojlNoA/CD1MGnOWigeHMhjgT1TVOgx/Z/J+DyrYRnbJetEf0/+ /ed7dinzdNeWlksW9gTc1ltzAfxf/rqMSXBTSp0/Fk3vrAn9X9sewL45/mbPKjP5 SRlirayuW3wtQx8MNmeaqZUh+JW9qTt1hlYuCHq2kraksyYieGLhApyeIeacTgq+ v98etvJStvRZ0xf59KhxlQ79KaQAue8Qmw0HoT7aJEZK43Klp4AXcfsZMzZhpFg3 jYI34N/ZFrtZJ95ynKir8GNRMipS3dXr14zaTrZ7cCqvCGkF3CdpTR9FjPO0egI= =0lIX -----END PGP SIGNATURE----- --l76fUT7nc3MelDdI--