ccache/ccache.spec

82 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package ccache
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: ccache
Accepting request 1005766 from home:dirkmueller:Factory - update to 4.6.3: * Fixed detection of PCH header for concatenated `-include` option (e.g., `-includepch.h` instead of `-include pch.h`). * Fixed build with musl when using GCC 12. * Disabled the `"Failure to write output file"` when running on a filesystem that doesn't support read-only directories. * Fixed a race condition that could lead to a crash if a file in the cache is removed with unlucky timing, e.g. by another ccache process doing cache cleanup. * Dependency file rewriting will now always be performed if `base_dir`/`CCACHE_BASEDIR` is active. This fixes a problem with the dependency file content when Clang is used with `-fsanitize=address`. * Fixed handling of error condition for `--hash-file`/`--checksum-file`. * Made sure to enable the inode cache only if subsecond `stat` timestamps are available. * Added a work-around for a Clang bug when writing to a full NFS file system. * Made failure writing to the output file increment the "`bad output file`" counter instead of "`cache miss`". * Fixed false positive cache hits for code constructions similar to `__asm__(".incbin" " \"file\"")`. * Fixed false success for `-fcolor-diagnostics` probe with GCC. A side effect of this is that a compiler type that ccache can't identify from the compiler name (such as `/usr/bin/cc` where `cc` is not a symlink) from now on won't produce color diagnostics when used via ccache even if the compiler actually is GCC or Clang. * More cases of invalid secondary storage URLs are now handled gracefully. * Fixed the display of maximum cache size in `ccache -s` if it's 0 (= unlimited). * Removed AsciiDoc markup from help text of `--trim-dir`. * The temporary directory is now cleaned up properly even if it's left OBS-URL: https://build.opensuse.org/request/show/1005766 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ccache?expand=0&rev=125
2022-09-26 10:02:35 +02:00
Version: 4.6.3
Release: 0
Summary: A Fast C/C++ Compiler Cache
- Update to version 3.4.1: * Fixed printing of version number in ccache --version. - Changes for version 3.4.0: * The compiler option form --sysroot arg is now handled like the documented --sysroot=arg form. * Added support for caching .su files generated by GCC flag -fstack-usage. * ccache should now work with distcc’s “pump” wrapper. * The optional unifier is no longer disabled when the direct mode is enabled. * Added support for nvcc compiler options --compiler-bindir/-ccbin, --output-directory/-odir and --libdevice-directory/-ldir. * Boolean environment variable settings no longer accept the following (case-insensitive) values: 0, false, disable and no. All other values are accepted and taken to mean “true”. This is to stop users from setting e.g. CCACHE_DISABLE=0 and then expect the cache to be used. * Improved support for run_second_cpp = false: If combined with passing -fdirectives-only (GCC) or frewrite-includes (Clang) to the compiler, diagnostics warnings and similar will be correct. * An implicit -MQ is now passed to the preprocessor only if the object file extension is non-standard. This should make it easier to use EDG-based compilers (e.g. GHS) which don’t understand -MQ. * ccache now treats an unreadable configuration file just like a missing configuration file. * Documented more pitfalls with enabling hard_links (CCACHE_HARDLINK). * Documented caveats related to colored warnings from compilers. * File size and number counters are now updated correctly when OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ccache?expand=0&rev=60
2018-03-15 12:16:17 +01:00
License: GPL-3.0-or-later
URL: https://ccache.dev/
Source0: https://github.com/ccache/ccache/releases/download/v%{version}/ccache-%{version}.tar.xz
Source1: https://github.com/ccache/ccache/releases/download/v%{version}/ccache-%{version}.tar.xz.asc
Source2: %{name}.keyring
%ifnarch %ix86 %arm
Patch0: fix2038.patch
%endif
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libzstd-devel >= 1.1.2
BuildRequires: rubygem(asciidoctor)
Provides: distcc:%{_bindir}/ccache
%description
ccache is a compiler cache. It speeds up recompilation by caching the
result of previous compilations and detecting when the same compilation is
being done again. Supported languages are C, C++, Objective-C and
Objective-C++.
%prep
%autosetup -p1
%build
%cmake \
-DREDIS_STORAGE_BACKEND=OFF
%cmake_build
%make_build doc
%install
%cmake_install
# create the compat symlinks into /usr/libdir/ccache
mkdir -p %{buildroot}/%{_libdir}/%{name}
cd %{buildroot}/%{_libdir}/%{name}
ln -sf ../../bin/%{name} gcc
ln -sf ../../bin/%{name} g++
ln -sf ../../bin/%{name} gcc-objc
ln -sf ../../bin/%{name} gfortran
# do the same for clang
ln -sf ../../bin/%{name} clang
ln -sf ../../bin/%{name} clang++
# and regular cc
ln -sf ../../bin/%{name} cc
ln -sf ../../bin/%{name} c++
# and for nvidia cuda
ln -sf ../../bin/%{name} nvcc
%check
%ctest
%files
- Update to version 3.4.1: * Fixed printing of version number in ccache --version. - Changes for version 3.4.0: * The compiler option form --sysroot arg is now handled like the documented --sysroot=arg form. * Added support for caching .su files generated by GCC flag -fstack-usage. * ccache should now work with distcc’s “pump” wrapper. * The optional unifier is no longer disabled when the direct mode is enabled. * Added support for nvcc compiler options --compiler-bindir/-ccbin, --output-directory/-odir and --libdevice-directory/-ldir. * Boolean environment variable settings no longer accept the following (case-insensitive) values: 0, false, disable and no. All other values are accepted and taken to mean “true”. This is to stop users from setting e.g. CCACHE_DISABLE=0 and then expect the cache to be used. * Improved support for run_second_cpp = false: If combined with passing -fdirectives-only (GCC) or frewrite-includes (Clang) to the compiler, diagnostics warnings and similar will be correct. * An implicit -MQ is now passed to the preprocessor only if the object file extension is non-standard. This should make it easier to use EDG-based compilers (e.g. GHS) which don’t understand -MQ. * ccache now treats an unreadable configuration file just like a missing configuration file. * Documented more pitfalls with enabling hard_links (CCACHE_HARDLINK). * Documented caveats related to colored warnings from compilers. * File size and number counters are now updated correctly when OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ccache?expand=0&rev=60
2018-03-15 12:16:17 +01:00
%license LICENSE.* GPL-3.0.txt
%doc doc/AUTHORS.* doc/MANUAL.* doc/NEWS.* README.*
%{_bindir}/%{name}
%{_libdir}/%{name}
- Update to version 3.4.1: * Fixed printing of version number in ccache --version. - Changes for version 3.4.0: * The compiler option form --sysroot arg is now handled like the documented --sysroot=arg form. * Added support for caching .su files generated by GCC flag -fstack-usage. * ccache should now work with distcc’s “pump” wrapper. * The optional unifier is no longer disabled when the direct mode is enabled. * Added support for nvcc compiler options --compiler-bindir/-ccbin, --output-directory/-odir and --libdevice-directory/-ldir. * Boolean environment variable settings no longer accept the following (case-insensitive) values: 0, false, disable and no. All other values are accepted and taken to mean “true”. This is to stop users from setting e.g. CCACHE_DISABLE=0 and then expect the cache to be used. * Improved support for run_second_cpp = false: If combined with passing -fdirectives-only (GCC) or frewrite-includes (Clang) to the compiler, diagnostics warnings and similar will be correct. * An implicit -MQ is now passed to the preprocessor only if the object file extension is non-standard. This should make it easier to use EDG-based compilers (e.g. GHS) which don’t understand -MQ. * ccache now treats an unreadable configuration file just like a missing configuration file. * Documented more pitfalls with enabling hard_links (CCACHE_HARDLINK). * Documented caveats related to colored warnings from compilers. * File size and number counters are now updated correctly when OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ccache?expand=0&rev=60
2018-03-15 12:16:17 +01:00
%{_mandir}/man1/%{name}.1%{?ext_man}
%changelog