ccache: update to 3.7
This commit is contained in:
@@ -15,17 +15,17 @@ diff -Naur ccache-3.4.2.orig/src/ccache.c ccache-3.4.2/src/ccache.c
|
||||
if (!has_absolute_include_headers) {
|
||||
has_absolute_include_headers = is_absolute_path(inc_path);
|
||||
}
|
||||
diff -Naur ccache-3.4.2.orig/src/ccache.h ccache-3.4.2/src/ccache.h
|
||||
--- ccache-3.4.2.orig/src/ccache.h 2018-08-16 17:13:29.359895100 -0400
|
||||
+++ ccache-3.4.2/src/ccache.h 2018-08-16 17:16:22.361150900 -0400
|
||||
@@ -199,6 +199,7 @@
|
||||
diff -Naur ccache-3.7.orig/src/ccache.h ccache-3.7/src/ccache.h
|
||||
--- ccache-3.7.orig/src/ccache.h 2019-04-23 21:37:37.438109100 -0400
|
||||
+++ ccache-3.7/src/ccache.h 2019-04-23 21:38:16.908721300 -0400
|
||||
@@ -213,6 +213,7 @@
|
||||
char *read_text_file(const char *path, size_t size_hint);
|
||||
char *subst_env_in_string(const char *str, char **errmsg);
|
||||
void set_cloexec_flag(int fd);
|
||||
+void str_replace(char *target, const char *needle, const char *replacement);
|
||||
double time_seconds(void);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// stats.c
|
||||
diff -Naur ccache-3.4.2.orig/src/util.c ccache-3.4.2/src/util.c
|
||||
--- ccache-3.4.2.orig/src/util.c 2018-08-16 17:13:29.344270000 -0400
|
||||
+++ ccache-3.4.2/src/util.c 2018-08-16 17:19:32.688548500 -0400
|
||||
|
||||
@@ -4,33 +4,32 @@
|
||||
_realname=ccache
|
||||
pkgbase=mingw-w64-${_realname}
|
||||
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
|
||||
pkgver=3.6
|
||||
pkgver=3.7
|
||||
pkgrel=1
|
||||
pkgdesc="A compiler cache (mingw-w64)"
|
||||
pkgdesc="Compiler cache that speeds up recompilation by caching previous compilations (mingw-w64)"
|
||||
arch=('any')
|
||||
url="https://ccache.samba.org/"
|
||||
url="https://ccache.dev/"
|
||||
license=("GPL3")
|
||||
replaces=("${MINGW_PACKAGE_PREFIX}-${_realname}-git")
|
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" "${MINGW_PACKAGE_PREFIX}-pkg-config")
|
||||
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
|
||||
"${MINGW_PACKAGE_PREFIX}-zlib")
|
||||
options=('staticlibs' 'strip')
|
||||
source=(https://www.samba.org/ftp/ccache/${_realname}-${pkgver}.tar.bz2{,.asc}
|
||||
01-directory-separator.patch)
|
||||
sha256sums=('c23ecf1253e0d12c9da9dda9567a88a606d46f93d9982b8b1a423d6f238bd435'
|
||||
source=("https://github.com/ccache/ccache/releases/download/v${pkgver}/${_realname}-${pkgver}.tar.bz2"{,.asc}
|
||||
"01-directory-separator.patch")
|
||||
sha256sums=('bb92d7133ff919b787431ee288743cd5dbd66c150f5cb6c022fec5a822536dec'
|
||||
'SKIP'
|
||||
'b6af582fb3d7d8d9eff8263bb49aa6cd5f1d998787200e5fa3304134884e0d4c')
|
||||
'888748bd62a23b909dda4df714ffb2bb09db3fa698d199754f372a01b5a55179')
|
||||
validpgpkeys=('5A939A71A46792CF57866A51996DDA075594ADB8') # Joel Rosdahl <joel@rosdahl.net>
|
||||
|
||||
prepare() {
|
||||
cd ${_realname}-${pkgver}
|
||||
|
||||
cd "${srcdir}/${_realname}-${pkgver}"
|
||||
patch -p1 -i "${srcdir}/01-directory-separator.patch"
|
||||
}
|
||||
|
||||
build() {
|
||||
[[ -d build-${MINGW_CHOST} ]] && rm -rf build-${MINGW_CHOST}
|
||||
mkdir -p build-${MINGW_CHOST} && cd build-${MINGW_CHOST}
|
||||
[[ -d ${srcdir}/build-${MINGW_CHOST} ]] && rm -rf ${srcdir}/build-${MINGW_CHOST}
|
||||
mkdir -p ${srcdir}/build-${MINGW_CHOST} && cd ${srcdir}/build-${MINGW_CHOST}
|
||||
../${_realname}-${pkgver}/configure \
|
||||
--prefix=${MINGW_PREFIX} \
|
||||
--build=${MINGW_CHOST} \
|
||||
|
||||
Reference in New Issue
Block a user