{ "name": "elfutils", "version": "0.197", "summary": "elfutils: libelf and libdw (ELF files and DWARF debug data) with the eu-readelf, eu-nm, eu-strip, eu-stack and other eu- tools", "category": "library", "license": "GPL-3.0-or-later AND (GPL-2.0-or-later OR LGPL-3.0-or-later)", "homepage": "https://sourceware.org/elfutils/", "source": { "url": "https://sourceware.org/elfutils/ftp/0.197/elfutils-0.197.tar.bz2", "sha256": "1fdf525f22dcf796d99a99ba3ea00a1f7b1ae5421bc62e8443a708920b99b904" }, "watch": {"kind": "index", "url": "https://sourceware.org/elfutils/ftp/", "regex": "href=\"(0\\.[0-9]+)/\"", "source": "https://sourceware.org/elfutils/ftp/{version}/elfutils-{version}.tar.bz2", "checksum": "https://sourceware.org/elfutils/ftp/{version}/sha512.sum"}, "deps": [ "zlib", "bzip2", "xz", "zstd" ], "env_packages": [], "static": false, "nss": false, "check": "t=$(mktemp -d) && bin/eu-readelf --version | has 'eu-readelf (elfutils) 0.197' && bin/eu-readelf -h bin/eu-readelf | has -E 'Type: +DYN' && bin/eu-nm -D lib/libelf.so | has -E '^elf_begin +[|][0-9a-f]+[|]GLOBAL[|]FUNC' && cp bin/eu-readelf \"$t/x\" && bin/eu-strip -o \"$t/s\" -f \"$t/x.debug\" \"$t/x\" && [ \"$(stat -c %s \"$t/s\")\" -lt \"$(stat -c %s \"$t/x\")\" ] && bin/eu-elflint --gnu-ld \"$t/s\" > /dev/null && check_lib libelf \"libelf.h gelf.h fcntl.h unistd.h\" 'int fd = open(\"/proc/self/exe\", O_RDONLY); Elf *e; GElf_Ehdr h; size_t n = 0; if (elf_version(EV_CURRENT) == EV_NONE || fd < 0) return 1; e = elf_begin(fd, ELF_C_READ, NULL); if (!e || !gelf_getehdr(e, &h) || elf_getshdrnum(e, &n)) return 2; printf(\"libelf: this program has %zu sections, type %d\\n\", n, h.e_type); elf_end(e); close(fd); return n < 10 || (h.e_type != ET_DYN && h.e_type != ET_EXEC)' > \"$t/lib\" && echo 'elfutils 0.197: eu-readelf and eu-nm read its own files, eu-strip split debug data off and eu-elflint passed the result; libelf read an ELF header through check_lib'" }