gperftools: update to 2.8.

This commit is contained in:
Andrew J. Hesford 2020-09-18 11:33:44 -04:00
parent 8f58c1197f
commit 90429e00c0
3 changed files with 4 additions and 41 deletions

View File

@ -1,10 +0,0 @@
--- src/base/linux_syscall_support.h 2015-08-26 17:57:39.688753425 +0200
+++ src/base/linux_syscall_support.h 2015-08-26 17:59:25.779755656 +0200
@@ -157,6 +157,7 @@
#include <sys/time.h>
#include <sys/types.h>
#include <syscall.h>
+#include <fcntl.h>
#include <unistd.h>
#include <linux/unistd.h>
#include <endian.h>

View File

@ -1,27 +0,0 @@
--- src/malloc_hook_mmap_linux.h 2015-08-26 17:40:38.296731949 +0200
+++ src/malloc_hook_mmap_linux.h 2015-08-26 17:40:10.768731370 +0200
@@ -40,6 +40,7 @@
# error Should only be including malloc_hook_mmap_linux.h on linux systems.
#endif
+#include <fcntl.h>
#include <unistd.h>
#include <syscall.h>
#include <sys/mman.h>
@@ -135,6 +135,7 @@
// Make sure mmap doesn't get #define'd away by <sys/mman.h>
# undef mmap
+# undef mmap64
extern "C" {
void* mmap64(void *start, size_t length, int prot, int flags,
@@ -202,7 +203,7 @@
return result;
}
-#ifndef __UCLIBC__
+#if defined(__GLIBC__)
// libc's version:
extern "C" void* __sbrk(ptrdiff_t increment);

View File

@ -1,7 +1,7 @@
# Template file for 'gperftools'
pkgname=gperftools
version=2.7
revision=3
version=2.8
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool"
makedepends="libunwind-devel"
@ -10,8 +10,8 @@ short_desc="Multi-threaded malloc() and performance analysis tools"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/gperftools/gperftools"
distfiles="https://github.com/${pkgname}/${pkgname}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
checksum=1ee8c8699a0eff6b6a203e59b43330536b22bbcbe6448f54c7091e5efb0763c9
distfiles="${homepage}/releases/download/${pkgname}-${version}/${pkgname}-${version}.tar.gz"
checksum=240deacdd628b6459671b83eb0c4db8e97baadf659f25b92e9a078d536bd513e
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
# needed by some newly enabled code