uftrace: update to 0.11.
This commit is contained in:
parent
600cbeae3e
commit
62677c7939
2 changed files with 2 additions and 35 deletions
|
@ -1,33 +0,0 @@
|
|||
--- a/utils/debug.c
|
||||
+++ b/utils/debug.c
|
||||
@@ -120,7 +120,7 @@
|
||||
vfprintf(logfp, fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
- fprintf(logfp, ": %s\n", strerror_r(saved_errno, buf, sizeof(buf)));
|
||||
+ fprintf(logfp, ": %s\n", strerror(saved_errno));
|
||||
|
||||
color(TERM_COLOR_RESET, logfp);
|
||||
|
||||
--- a/libtraceevent/event-parse.c 2017-12-05 06:11:38.000000000 +0100
|
||||
+++ b/libtraceevent/event-parse.c 2017-12-06 21:02:42.135421115 +0100
|
||||
@@ -5353,12 +5353,19 @@
|
||||
const char *msg;
|
||||
|
||||
if (errnum >= 0) {
|
||||
+#if defined(__GLIBC__)
|
||||
msg = strerror_r(errnum, buf, buflen);
|
||||
if (msg != buf) {
|
||||
size_t len = strlen(msg);
|
||||
memcpy(buf, msg, min(buflen - 1, len));
|
||||
*(buf + min(buflen - 1, len)) = '\0';
|
||||
}
|
||||
+#else
|
||||
+ int rc = strerror_r(errnum, buf, buflen);
|
||||
+ if (rc < 0) {
|
||||
+ snprintf(buf, buflen, "Error %d", errnum);
|
||||
+ }
|
||||
+#endif
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'uftrace'
|
||||
pkgname=uftrace
|
||||
version=0.10
|
||||
version=0.11
|
||||
revision=1
|
||||
archs="x86_64* i686* aarch64* arm*"
|
||||
build_style=configure
|
||||
|
@ -12,7 +12,7 @@ maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|||
license="GPL-2.0-only"
|
||||
homepage="https://github.com/namhyung/uftrace"
|
||||
distfiles="https://github.com/namhyung/uftrace/archive/v${version}.tar.gz"
|
||||
checksum=b8b56d540ea95c3eafe56440d6a998e0a140d53ca2584916b6ca82702795bbd9
|
||||
checksum=101dbb13cb3320ee76525ec26426f2aa1de4e3ee5af74f79cb403ae4d2c6c871
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
*-musl) makedepends+=" argp-standalone"; export LDFLAGS=-largp;;
|
||||
|
|
Loading…
Reference in a new issue