From owner-svn-src-all@freebsd.org Thu Jun 7 13:16:01 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 72DC6FE73DB; Thu, 7 Jun 2018 13:16:01 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 8DF728FFFA; Thu, 7 Jun 2018 13:15:40 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 5CF2721C78; Thu, 7 Jun 2018 09:15:34 -0400 (EDT) Received: from web4 ([10.202.2.214]) by compute5.internal (MEProxy); Thu, 07 Jun 2018 09:15:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=6BOr7V phqDDXHLloJY/BEKOIt0jmddQCZFcu8Pd0m/k=; b=Mh92JwVClDlrjWtRQ6DM1b V1UDI9vFkIEUO8yGVc0s74AmgPT4nNoySzjq71AGR+Il/AcLd6bzTtkubuPCCmBF 4u32XNS+AGlRbms8Otspzu0+9fqKkxGHw+LBKnuu0Q4GcnN/ONBVR4OMXXWppFq2 OH5qIUGxRTZ/th0spmZpR54PtwnYyANKT4WsI2kgIaqX3YqjdJkNccH9MV/h2tm9 tv28AYCJOExSWf4rRIndrEsSOGODTa+pdzZpuViJgYXcK608CPEezaGhOQks9qxk jU2yDeBb+9FfJi7VNrTUAvBcpD795piMTorkZw0i1BLPzZlm0oCgO9gUJT5BXGEQ == X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id E4EDCBA50D; Thu, 7 Jun 2018 09:15:33 -0400 (EDT) Message-Id: <1528377333.2843110.1399733656.7738CEA0@webmail.messagingengine.com> From: Brad Davis To: rgrimes@freebsd.org Cc: Konstantin Belousov , Eugene Grosbein , Alexander Leidinger , Kyle Evans , "src-committers" , svn-src-all@freebsd.org, svn-src-head@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-fb4a77ea References: <201806062035.w56KZhV8006721@pdx.rh.CN85.dnsmgr.net> Date: Thu, 07 Jun 2018 07:15:33 -0600 In-Reply-To: <201806062035.w56KZhV8006721@pdx.rh.CN85.dnsmgr.net> Subject: Re: svn commit: r334617 - in head: . etc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2018 13:16:01 -0000 On Wed, Jun 6, 2018, at 2:35 PM, Rodney W. Grimes wrote: > > > On Wed, Jun 6, 2018, at 12:33 PM, Rodney W. Grimes wrote: > > > > > > > > On Tue, Jun 5, 2018, at 1:28 PM, Konstantin Belousov wrote: > > > > > On Wed, Jun 06, 2018 at 01:39:00AM +0700, Eugene Grosbein wrote: > > > > > > 06.06.2018 1:26, Konstantin Belousov wrote: > > > > > > > > > > > > >>> I find it often very useful to do > > > > > > >>> (cd src/etc/rc.d && make install) > > > > > > >>> Same for defaults and several other directories which in fact > > > > > > >>> contains> > >>> non-editable content. Is this planned to keep working ? > > > > > > >> > > > > > > >> The short answer is, no. All rc.d scripts get moved to the src > > > > > > >> of the program they start.> > >> > > > > > > >> That said, if there is a big need for this, we can see about > > > > > > >> options to keep them working.> > >> > > > > > > >> What are you trying to accomplish when you do this? Just verify > > > > > > >> the rc.d scripts match your src tree?> > > > > > > > > > I avoid mergemaster/etcupdate and whatever else. rc.d and /etc/rc,> > > /etc/rc.subr /etc/rc.network are not suitable to etc, they are > > > > > > > binaries> > > provided by the project not for the user editing. > > > > > > > > > > > > > > When upgrading the host, esp. on HEAD, i usually refresh scripts > > > > > > > by this> > > procedure and avoid any editing and implied conflict resolution > > > > > > > for real> > > configs. > > > > > > > > > > > > > > Not being able to easily install clean copies of these scripts > > > > > > > would> > > be very inconvenient and time consuming. > > > > > > > > > > > > I found that "mergemaster -iFUP" deals with unchanged files > > > > > > including mentioned rc* scripts just fine.> > That is, it automatically refreshes unchanged files without any > > > > > > silly questions just for change of $FreeBSD$.> > > > > > No, you missed the point. Whatever nice is the handling of > > > > > unchanged files,> use of mergemaster forces me to handle changed files, which is exactly> what I do not want/need to do. Yes, I update crashboxes very > > > > > often, and> I want to get all new code, including the startup scripts, when > > > > > I update. > > > > The startup scripts will be installed as part of installworld. > > > > > > So each installworld would wipe over the top of any localmod /etc/rc.d/ > > > and other stuff > > > that mght exist? > > > One of the reasons that etc/Makefile is detached from Installword is so > > > that > > > /etc does not get perturbuted unless specifically requested. > > > > Yes, this is by design. > > This is going to have a great amount of push back, and this is by your > NEW design, > the existing design does not cause this pain. > > > > > If people need custom tweaks for that stuff they should be upstreamed or moved into /usr/local/etc/rc.d as a custom startup script. > > I doubt very much this is a practical solution. I have changes that I doubt > belong in FreeBSD, and are not restricted to etc/rc.d. And from reading > this thread thus far so do others. I think we could extend the rc system to handle cases like this, but without details we cannot have a productive conversation. Regards, Brad Davis