[packages/ccache] updated to 3.3.3, get rid of all those empty configuration variables
Elan Ruusamäe
glen at pld-linux.org
Mon Dec 5 18:37:33 CET 2016
On 05.12.2016 14:19, gotar wrote:
> commit 4ef49b8ae3e36c74c82975b193d6c508f8e08983
> Author: Tomasz Pala <gotar at pld-linux.org>
> Date: Mon Dec 5 13:17:45 2016 +0100
>
> updated to 3.3.3, get rid of all those empty configuration variables
>
> env.d is not a place for storing all available environment variables,
> especially when we do not provide some nice 'just-uncomment' values for
> them. One can get a list from documentation ...and use /etc/ccache.conf
>
> ccache.spec | 13 ++-----------
...
>
> -for X in CCACHE_DIR CCACHE_TEMPDIR CCACHE_LOGFILE CCACHE_PATH CCACHE_CC CCACHE_PREFIX \
> - CCACHE_DISABLE CCACHE_READONLY CCACHE_CPP2 CCACHE_NOSTATS CCACHE_NLEVELS \
> - CCACHE_HARDLINK CCACHE_RECACHE CCACHE_UMASK CCACHE_HASHDIR CCACHE_UNIFY \
> - CCACHE_EXTENSION CCACHE_NOHASH_SIZE_MTIME
> -do
> - echo "#${X}=\"\"" > $RPM_BUILD_ROOT/etc/env.d/${X}
> -done
> -
i guess those were before ccache supported config file.
but i see that currently we do not package any /etc/ccache.conf, would
be nice to package it, at least to get file owned by package and proper
permissions.
also due the fact rpm overwrites new config files [1], [2] and there's
no (current) upstream interest to resolve this, it's important to add
the %config %noreplace as early as possible, even if it's just empty file.
[1]
http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2016-June/024927.html
[2]
http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2016-August/025097.html
--
glen
More information about the pld-devel-en
mailing list