mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
parent
3174bdcbe7
commit
6abc76712b
2 changed files with 2 additions and 53 deletions
|
@ -1,51 +0,0 @@
|
|||
--- a/src/track/heaptrack_inject.cpp
|
||||
+++ b/src/track/heaptrack_inject.cpp
|
||||
@@ -26,6 +26,15 @@
|
||||
* @brief Experimental support for symbol overloading after runtime injection.
|
||||
*/
|
||||
|
||||
+#ifndef __WORDSIZE
|
||||
+#include <limits.h>
|
||||
+#if ULONG_MAX == 0xffffffffffffffff
|
||||
+#define __WORDSIZE 64
|
||||
+#elif ULONG_MAX == 0xffffffff
|
||||
+#define __WORDSIZE 32
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
#ifndef ELF_R_SYM
|
||||
#if __WORDSIZE == 64
|
||||
#define ELF_R_SYM(i) ELF64_R_SYM(i)
|
||||
|
||||
--- a/src/track/libheaptrack.cpp
|
||||
+++ b/src/track/libheaptrack.cpp
|
||||
@@ -80,7 +80,7 @@ chrono::milliseconds elapsedTime()
|
||||
return chrono::duration_cast<chrono::milliseconds>(clock::now() - startTime());
|
||||
}
|
||||
|
||||
-__pid_t gettid()
|
||||
+pid_t gettid()
|
||||
{
|
||||
#ifdef __linux__
|
||||
return syscall(SYS_gettid);
|
||||
|
||||
--- a/tests/manual/dlopen.cpp
|
||||
+++ b/tests/manual/dlopen.cpp
|
||||
@@ -9,6 +9,9 @@ __attribute__((weak)) extern void allocFromLib(bool leak);
|
||||
|
||||
int main()
|
||||
{
|
||||
+#ifndef RTLD_DEEPBIND
|
||||
+ printf("SKIP (RTLD_DEEPBIND undefined)\n");
|
||||
+#else
|
||||
fprintf(stderr, "malloc address: %p\n", dlsym(RTLD_NEXT, "malloc"));
|
||||
fprintf(stderr, "free address: %p\n", dlsym(RTLD_NEXT, "free"));
|
||||
|
||||
@@ -27,6 +30,7 @@ int main()
|
||||
|
||||
fprintf(stderr, "malloc address: %p\n", dlsym(RTLD_NEXT, "malloc"));
|
||||
fprintf(stderr, "free address: %p\n", dlsym(RTLD_NEXT, "free"));
|
||||
+#endif
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'heaptrack'
|
||||
pkgname=heaptrack
|
||||
version=1.3.0
|
||||
version=1.4.0
|
||||
revision=1
|
||||
build_style=cmake
|
||||
configure_args="-DHEAPTRACK_BUILD_GUI=ON"
|
||||
|
@ -15,7 +15,7 @@ maintainer="Piraty <piraty1@inbox.ru>"
|
|||
license="LGPL-2.1-or-later"
|
||||
homepage="https://github.com/KDE/heaptrack"
|
||||
distfiles="https://github.com/KDE/heaptrack/archive/v${version}.tar.gz"
|
||||
checksum=794b067772f4e4219bb7b6ff1bc1b2134b1b242e748a2cc5c47626040c631956
|
||||
checksum=3aeea57e040d863a1ef95c3208ff0f163474a8bd8e10d4ece5e5f2137ab6436c
|
||||
|
||||
#../tests/auto/tst_inject.cpp:78: SIGSEGV
|
||||
make_check=no
|
||||
|
|
Loading…
Add table
Reference in a new issue