Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 04 Aug 2018 02:43:44 -0700
From:      "Chris H" <bsd-lists@BSDforge.com>
To:        <freebsd-pkgbase@freebsd.org>
Cc:        <freebsd-arch@FreeBSD.org>, "Brad Davis" <brd@FreeBSD.org>
Subject:   Re: pkgbase: Move of head/etc/ files
Message-ID:  <9e28add9809e7d19c3b0d14880df62d8@udns.ultimatedns.net>
In-Reply-To: <1533167650.2567721.1460524472.3AC8CC35@webmail.messagingengine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 01 Aug 2018 17:54:10 -0600 "Brad Davis" <brd@FreeBSD=2Eorg> 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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9e28add9809e7d19c3b0d14880df62d8>