[pacman-dev] [RFC] Move pacman configuration to /usr/lib/pacman
After watching Allan's talk at SINFO, I remembered one big thing, when he mentioned certain projects moving away of shipping configuration files and preinstalling them directly to /etc and instead install the defaults to /usr/ and overriding them in a similar fashion to how systemd does it. So I asked about this in #archlinux-pacman and this bug report was pointed out to me [1]. Here are 2 ideas, tell me what you think. 1) Move everything to /usr/lib/pacman/ /usr/lib/pacman/gnupg/ /usr/lib/pacman/hooks/ (for later) /usr/lib/pacman/repos.d I am not sure how to order repos with this way, possibly with a priority directive or with just a ##-testing or whatever like modular directories. Or possibly use something like Before=community in community-testing so that it is checked before community... etc Leave pacman.conf and makepkg.conf in /etc but move them to /etc/pacman/ and remove repos from pacman.conf . Basically making it similar to how systemd's config files are setup 2) Move everything to /usr/lib/pacman , and make EVERYTHING possible to be split out. /usr/lib/pacman conf1.conf options stuff ... and config2.conf more options stuff ... community.repo ... this would depend on . Also, using the Before=community whenever a [repo] is defined 3) Some middle ground. In the end, I like seeing up with repo stuff looking like this whether you choose to put them in seperate files or not, making it so that repos can be organized besides just straight down the file. [Repo] Name=core Before=extra community SigLevel=PackageRequired Include=/etc/pacman.d/mirrorlist [Repo] Name=testing Before=core Requires=core SigLevel=PackageRequired Include=/etc/pacman.d/mirrorlist [Repo] Name=allanbrokeit Before=core SigLevel = Never Server = http://allanmcrae.com/$repo/$arch etc [1] https://bugs.archlinux.org/task/17690 Thanks, -- Daniel Wallace Archlinux Trusted User (gtmanfred) Georgia Institute of Technology
Am 21.03.2013 08:04, schrieb Daniel Wallace:
After watching Allan's talk at SINFO, I remembered one big thing, when he mentioned certain projects moving away of shipping configuration files and preinstalling them directly to /etc and instead install the defaults to /usr/ and overriding them in a similar fashion to how systemd does it.
This makes sense for hooks for example, but not for the main configuration file. Look more closely at the systemd example: It has units in /usr/lib/systemd/{system,user} and they are overridable in /etc. However, the system.conf, login.conf, ... files are _only_ in /etc/systemd/ and nowhere in /usr/lib/.
So I asked about this in #archlinux-pacman and this bug report was pointed out to me [1].
Here are 2 ideas, tell me what you think.
1) Move everything to /usr/lib/pacman/ /usr/lib/pacman/gnupg/
Actually, the gnupg folder should go to /var/lib/pacman/gnupg/ (and should always have been there).
/usr/lib/pacman/hooks/ (for later) /usr/lib/pacman/repos.d
This makes sense for hooks for example, but not for the main configuration file.
Look more closely at the systemd example: It has units in /usr/lib/systemd/{system,user} and they are overridable in /etc. However, the system.conf, login.conf, ... files are _only_ in /etc/systemd/ and nowhere in /usr/lib/.
Good point. Maybe we should leave pacman.conf/mirrorlist where it is. That said, I still think moving the repository information out into small configlets has some value.
On Thu, Mar 21, 2013 at 10:14:14AM +0100, Thomas Bächler wrote:
Am 21.03.2013 08:04, schrieb Daniel Wallace:
After watching Allan's talk at SINFO, I remembered one big thing, when he mentioned certain projects moving away of shipping configuration files and preinstalling them directly to /etc and instead install the defaults to /usr/ and overriding them in a similar fashion to how systemd does it.
This makes sense for hooks for example, but not for the main configuration file.
Look more closely at the systemd example: It has units in /usr/lib/systemd/{system,user} and they are overridable in /etc. However, the system.conf, login.conf, ... files are _only_ in /etc/systemd/ and nowhere in /usr/lib/. Didn't I say to leave pacman.conf and makepkg.conf in /etc and just move tehm to /etc/pacman? If not, that is what I meant for those
So I asked about this in #archlinux-pacman and this bug report was pointed out to me [1].
Here are 2 ideas, tell me what you think.
1) Move everything to /usr/lib/pacman/ /usr/lib/pacman/gnupg/
Actually, the gnupg folder should go to /var/lib/pacman/gnupg/ (and should always have been there).
/usr/lib/pacman/hooks/ (for later) /usr/lib/pacman/repos.d
-- Daniel Wallace Archlinux Trusted User (gtmanfred) Georgia Institute of Technology
participants (3)
-
Daniel Wallace
-
Simon Gomizelj
-
Thomas Bächler