diff options
author | Justin Dray | 2015-06-09 19:17:44 +1000 |
---|---|---|
committer | Justin Dray | 2015-06-09 19:17:48 +1000 |
commit | 421de15ff8d6f3e190f178b94571b7a16cbdb4c9 (patch) | |
tree | 6f18b46d94932e34c51bf155cf24581197cd7488 | |
parent | fb6e68ed7611f9e5c93efed134f6ae2f8263e45f (diff) | |
download | aur-421de15ff8d6f3e190f178b94571b7a16cbdb4c9.tar.gz |
Fixed crc64 errors on latest gcc
-rw-r--r-- | PKGBUILD | 3 | ||||
-rw-r--r-- | crc64.patch | 11 |
2 files changed, 14 insertions, 0 deletions
@@ -17,8 +17,10 @@ provides=('bcache-tools') conflicts=('bcache-tools') install="${pkgname}.install" source=("git+https://github.com/g2p/${_gitname}.git" + 'crc64.patch' 'initcpio-arch.patch') md5sums=('SKIP' + '265f3d6ad0bd1596eac8a2c3512f2d87' '208d7024340b8db3cf21325df40b6267') # set _gitrev to a git revision (man gitrevisions) like a tag, a commit sha1 @@ -36,6 +38,7 @@ pkgver() { prepare() { cd "${srcdir}/${_gitname}" patch -Np1 -i "${srcdir}/initcpio-arch.patch" + patch -Np1 -i "${srcdir}/crc64.patch" } build() { diff --git a/crc64.patch b/crc64.patch new file mode 100644 index 000000000000..511c376f3e95 --- /dev/null +++ b/crc64.patch @@ -0,0 +1,11 @@ +--- a/bcache.c ++++ b/bcache.c +@@ -115,7 +115,7 @@ static const uint64_t crc_table[256] = { + 0x9AFCE626CE85B507ULL + }; + +-inline uint64_t crc64(const void *_data, size_t len) ++uint64_t crc64(const void *_data, size_t len) + { + uint64_t crc = 0xFFFFFFFFFFFFFFFFULL; + const unsigned char *data = _data; |