{ "name": "ltrace", "version": "0.7.91~git20230705.8eabf68", "summary": "ltrace: shows the library calls (and system calls) a program makes, with their arguments and results", "category": "tool", "license": "GPL-2.0-or-later", "homepage": "https://gitlab.com/cespedes/ltrace", "source": { "url": "https://deb.debian.org/debian/pool/main/l/ltrace/ltrace_0.7.91~git20230705.8eabf68.orig.tar.xz", "sha256": "da0317b2e6951a035fa606a89e82dc5f99623b6a30ef71bc08c5d23bf00b9ef1" }, "watch": {"kind": "index", "url": "https://deb.debian.org/debian/pool/main/l/ltrace/", "regex": "ltrace_([0-9]+(?:\\.[0-9]+)+~git[0-9]{8}\\.[0-9a-f]+)\\.orig\\.tar\\.xz"}, "deps": [ "elfutils" ], "env_packages": [], "static": false, "nss": false, "check": "t=$(mktemp -d) && bin/ltrace -V | has '^ltrace 0.7.91' && if [ -n \"$HOST\" ]; then echo \"ltrace 0.7.91: tracing not run in a cross build (qemu-user has no ptrace)\"; else printf '#include \\n#include \\n#include \\nint main(void) { char b[32]; strcpy(b, \"bvs-ltrace\"); printf(\"%%zu\\\\n\", strlen(b)); return atoi(\"7\") == 7 ? 0 : 1; }\\n' > \"$t/p.c\" && $CC -O0 -fno-builtin -Wl,-z,lazy -o \"$t/p\" \"$t/p.c\" && bin/ltrace -o \"$t/trace\" -e strlen+atoi \"$t/p\" > \"$t/out\" && has -x 10 < \"$t/out\" && has 'strlen(\"bvs-ltrace\")[[:space:]]*= 10' < \"$t/trace\" && has 'atoi(.*)[[:space:]]*= 7' < \"$t/trace\" && bin/ltrace -o \"$t/sys\" -S \"$t/p\" > /dev/null && has 'write@SYS(1, \"10\\\\n\", 3)' < \"$t/sys\" && echo 'ltrace 0.7.91: library calls of a C program traced with their arguments and results, and its system calls (-S)'; fi" }