From owner-freebsd-arch@freebsd.org Sat Aug 4 09:43:29 2018 Return-Path: Delivered-To: freebsd-arch@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 CA7A0106475A; Sat, 4 Aug 2018 09:43:29 +0000 (UTC) (envelope-from bsd-lists@BSDforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (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 5AEFE8DBAD; Sat, 4 Aug 2018 09:43:28 +0000 (UTC) (envelope-from bsd-lists@BSDforge.com) Received: from udns.ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id w749hctJ038285; Sat, 4 Aug 2018 02:43:44 -0700 (PDT) (envelope-from bsd-lists@BSDforge.com) X-Mailer: UDNSMS MIME-Version: 1.0 Cc: , "Brad Davis" In-Reply-To: <1533167650.2567721.1460524472.3AC8CC35@webmail.messagingengine.com> From: "Chris H" Reply-To: bsd-lists@BSDforge.com To: Subject: Re: pkgbase: Move of head/etc/ files Date: Sat, 04 Aug 2018 02:43:44 -0700 Message-Id: <9e28add9809e7d19c3b0d14880df62d8@udns.ultimatedns.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Aug 2018 09:43:30 -0000 On Wed, 01 Aug 2018 17:54:10 -0600 "Brad Davis" said > Hello, >=20 > I want to give some information on what is happening to files in head/etc= / > and open a discussion=2E >=20 > I am trying to move all config files out of head/etc/ and place them with= the > source files for the particular use=2E For example, some of these are obvi= ous > moves like moving say portsnap=2Econf to usr=2Esbin/portsnap/portsnap=2Econf=2E = The > review for this move shows exactly what would happen here: > https://reviews=2Efreebsd=2Eorg/D16554=2E For these cases, there are some easy > benefits, like: > 1) Keeping all files as part of a program together, which makes maintenan= ce > for maintainers a little easier=2E > 2) Simplicity, we do not need all the =2Eif ${MK_FOO} lines in etc/Makefile > because that is handled a level above the programs Makefile and so one CO= NFS=3D > line is all that is needed=2E > 3) Easier to avoid bugs where we install things that should not be instal= led=2E > Like for apmd, we installed apmd=2Econf on all archs even though it only wo= rks > on i386=2E i=2Ee=2E we don't have to keep knobs in sync in multiple locations=2E >=20 > Some of the more complicated things to move like etc/shells and the init > scripts=2E I picked the location of etc/shells based on it being used by > getusershell(3) in libc, so it ended up in lib/libc/gen/shells=2E The move= of > the init scripts was based on a few things, including the reasons above, = but > additionally: > 1) Isolating a subcomponent, for example work is happening to bring in > OpenRC, so we will have multiple init systems with different types of > scripts, so moving them away from head/etc/ keeps them isolated=2E Is the current rc(8) broken? Is OpenRC an intended replacement? How is this going to work? >=20 > This work was driven by needing to tag these files as config files in the > METALOG so that pkg knows what is a config file so that pkg can 3-way mer= ge > them=2E >=20 > More info on pkgbase: https://wiki=2Efreebsd=2Eorg/PkgBase >=20 >=20 > Regards, > Brad Davis --Chris