Stop leaking properties of the distcheck machine into the tarball

Some gimprc properties' default values depend on the machine where
"make dist" in run. We had an ugly hack in place to force
(num-processors 1) in the installed system gimprc and its manpage, but
were still leaking "tile-cache-size" and "mypaint-brush-path".

The files are generated by the hidden options --dump-gimprc-system
and --dump-gimprc-manpage which exist only for this purpose.

In gimpconfig-dump.c, special case the three properties in
dump_gimprc_system() and dump_gimprc_manpage() to output constant
default values for "num-processors" and "tile-cache-size" and
output @mypaint_brushes_dir@ in "mypaint-brush-path" which can
be replaced at configure time.

Also introduce etc/gimprc.in so @mypaint_brushes_dir@ can actually be
substituted for the installed system gimprc.
This commit is contained in:
Michael Natterer 2018-03-30 12:45:27 +02:00
parent 4698529dbe
commit 452b1bd558
7 changed files with 76 additions and 18 deletions

View file

@ -60,7 +60,7 @@ Sets how many threads GIMP should use for operations that support it. This is
an integer value.
.TP
(tile-cache-size 6115246k)
(tile-cache-size 2g)
When the amount of pixel data exceeds this limit, GIMP will start to swap
tiles to disk. This is a lot slower but it makes it possible to work on