FS#65343 - pacman should be able to find configs files in /etc/pacman.d/ by default
Attached to Project:
Pacman
Opened by Fabian (Tids) - Saturday, 01 February 2020, 10:55 GMT
Last edited by Allan McRae (Allan) - Saturday, 01 February 2020, 11:05 GMT
Opened by Fabian (Tids) - Saturday, 01 February 2020, 10:55 GMT
Last edited by Allan McRae (Allan) - Saturday, 01 February 2020, 11:05 GMT
|
Details
Summary and Info:
Right now, pacman uses /etc/pacman.conf as it's config file and this is fine by itself. it also creates a directory /etc/pacman.d for, where we place the mirrorlist for example. I think pacman should also use this directory for configuration files. In order to not alter the original pacman.conf (and by this, make it non-automatic-upgradable by pacman) you could just put config files to that directory and are fine. For example I always include to the pacman.conf ``` Include = /etc/pacman.d/*.conf ``` Because of this. I can add my repo (for software I write) to /etc/pacman.d/70-mystuff.conf, also multilib for me is enabled via /etc/pacman.d/01-mulitilib.conf (for the numbers I use 01-10 for official Arch repos, 11-20 for configuration option (ILoveCandy and blah), >=70 for unofficial stuff. But thats just me.) This change would make it much easier to add repos for official Arch supporters, like Mega, or sublime-text. Both of them push repos directly to pacman.conf and might not remove them in a clean way at uninstallation. Given this change, pacman.conf could move itself then even to a "only for package-content" position, like /usr/share/pacman and admin can just fine use *.conf files on /etc/pacman.d only. But that would be at best a far-away goal, I think. |
This task depends upon
There are various common pacnew programs which can merge changes automatically for you, FWIW.
@Eli
That shouldnt be a problem, right? You can give them a prefix that is not *.conf and they wont conflict in any way. Just like mirrorlist right now. They will still work for --config
As for changing my "prefix" I don't see why doing something ugly and unnatural to my setup and changing the *suffix* is a good solution. I'd much rather some way disable it entirely. Which not including an Include line in /etc/pacman.conf does for me, then again I don't have anything remotely close to the stock one on my system and don't want to, so I'd just ignore the resulting pacnew.
(I still don't see what's wrong with using a pacnew merging program, which you need anyway for lots of other packages.)