[Dev] [RFC] modular pacman.conf and makepkg.conf by default

Luke Shumaker lukeshu at lukeshu.com
Sat Dec 16 02:26:45 GMT 2017


Hi,

What do you guys think about modifying the default pacman.conf to have
this at the end:

	Include = /etc/pacman.d/*.conf

and the default makepkg.conf to have this at the end:

	for file in /etc/makepkg.d/*.conf; do
		if [[ -f "$file" ]]; then
			source "$file"
		fi
	done
	unset file

This would make it easier for configuration packages (like Holo
packages or <https://config.parabola.nu/> /
<https://git.parabola.nu/server/config.git/>) to add bits to their
configurations.

 - As an admin of several Parabola-running servers, including the
   parabola.nu servers, that is appealing to me.

 - As the developer of a package (libretools) that has to modify the
   default makepkg.conf, that is appealing to me.

 - As someone involved in Holo, which works best with modular config
   files, that is appealing to me.

One of the few things that I like more than writing code is deleting
code.  And it would let me phase-out and delete the
`librefetch-install` program.

On one hand, we don't like unnecessarily modifying the default
configuration files from upstream; but we're patching makepkg anyway;
and we are the single source of truth for the default pacman & makepkg
configs on Parabola.

-- 
Happy hacking,
~ Luke Shumaker



More information about the Dev mailing list