From 032cf2e12a3097ac50e42ad6cedb2d1b45c7ae13 Mon Sep 17 00:00:00 2001 From: Ethan Date: Thu, 6 Jun 2024 19:12:57 -0500 Subject: [PATCH] libexecinfo: drop --- community/libexecinfo/build | 23 ------- community/libexecinfo/checksums | 3 - community/libexecinfo/esources | 3 - .../libexecinfo/patches/10-execinfo.patch | 64 ------------------- .../patches/30-linux-makefile.patch | 44 ------------- community/libexecinfo/sources | 3 - community/libexecinfo/version | 1 - 7 files changed, 141 deletions(-) delete mode 100755 community/libexecinfo/build delete mode 100644 community/libexecinfo/checksums delete mode 100644 community/libexecinfo/esources delete mode 100644 community/libexecinfo/patches/10-execinfo.patch delete mode 100644 community/libexecinfo/patches/30-linux-makefile.patch delete mode 100644 community/libexecinfo/sources delete mode 100644 community/libexecinfo/version diff --git a/community/libexecinfo/build b/community/libexecinfo/build deleted file mode 100755 index bd457e078..000000000 --- a/community/libexecinfo/build +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -e - -export DESTDIR="$1" - -export CFLAGS="$CFLAGS -fno-omit-frame-pointer" - -for p in "execinfo.c&#include " "stacktraverse.c&#include " "test.c&#include "; do - sed -E "s~(${p##*&})~#define _GNU_SOURCE\n\1~" "${p%%&*}" > _ - mv -f _ "${p%%&*}" -done - -for patch in *.patch; do - patch -p1 < "$patch" -done - -make -for f in execinfo.h stacktraverse.h libexecinfo.a libexecinfo.so.1; do - case "$f" in - *.h) install -Dm755 "$f" "$1/usr/include/$f" ;; - *.a | *.so.*) install -Dm755 "$f" "$1/usr/lib/$f" ;; - esac -done -ln -s /usr/lib/libexecinfo.so.1 "$1"/usr/lib/libexecinfo.so diff --git a/community/libexecinfo/checksums b/community/libexecinfo/checksums deleted file mode 100644 index d29a5798a..000000000 --- a/community/libexecinfo/checksums +++ /dev/null @@ -1,3 +0,0 @@ -d7ab52ab1614c2454e91c4f4b012a5bddcc96de1ab3b8e7236704e23d5d54d42b4 -d6386e3d1ad5399283e8713c78cf7a69c324246434981a0f71447e409485ec79de -063013545ced4d3d660837b3fffca4d4d60ac0811a9a062352a61db2deec1c67c1 diff --git a/community/libexecinfo/esources b/community/libexecinfo/esources deleted file mode 100644 index ca011acf0..000000000 --- a/community/libexecinfo/esources +++ /dev/null @@ -1,3 +0,0 @@ -http://distcache.freebsd.org/local-distfiles/itetcu/libexecinfo-VERSION.tar.bz2 -patches/10-execinfo.patch -patches/30-linux-makefile.patch diff --git a/community/libexecinfo/patches/10-execinfo.patch b/community/libexecinfo/patches/10-execinfo.patch deleted file mode 100644 index 44db53026..000000000 --- a/community/libexecinfo/patches/10-execinfo.patch +++ /dev/null @@ -1,64 +0,0 @@ ---- a/execinfo.c.orig -+++ b/execinfo.c -@@ -69,7 +69,8 @@ - char ** - backtrace_symbols(void *const *buffer, int size) - { -- int i, clen, alen, offset; -+ size_t clen, alen; -+ int i, offset; - char **rval; - char *cp; - Dl_info info; -@@ -78,7 +79,6 @@ - rval = malloc(clen); - if (rval == NULL) - return NULL; -- (char **)cp = &(rval[size]); - for (i = 0; i < size; i++) { - if (dladdr(buffer[i], &info) != 0) { - if (info.dli_sname == NULL) -@@ -92,14 +92,14 @@ - 2 + /* " <" */ - strlen(info.dli_sname) + /* "function" */ - 1 + /* "+" */ -- D10(offset) + /* "offset */ -+ 10 + /* "offset */ - 5 + /* "> at " */ - strlen(info.dli_fname) + /* "filename" */ - 1; /* "\0" */ - rval = realloc_safe(rval, clen + alen); - if (rval == NULL) - return NULL; -- snprintf(cp, alen, "%p <%s+%d> at %s", -+ snprintf((char *) rval + clen, alen, "%p <%s+%d> at %s", - buffer[i], info.dli_sname, offset, info.dli_fname); - } else { - alen = 2 + /* "0x" */ -@@ -108,12 +108,15 @@ - rval = realloc_safe(rval, clen + alen); - if (rval == NULL) - return NULL; -- snprintf(cp, alen, "%p", buffer[i]); -+ snprintf((char *) rval + clen, alen, "%p", buffer[i]); - } -- rval[i] = cp; -- cp += alen; -+ rval[i] = (char *) clen; -+ clen += alen; - } - -+ for (i = 0; i < size; i++) -+ rval[i] += (long) rval; -+ - return rval; - } - -@@ -155,6 +158,6 @@ - return; - snprintf(buf, len, "%p\n", buffer[i]); - } -- write(fd, buf, len - 1); -+ write(fd, buf, strlen(buf)); - } - } diff --git a/community/libexecinfo/patches/30-linux-makefile.patch b/community/libexecinfo/patches/30-linux-makefile.patch deleted file mode 100644 index 6bc8a899d..000000000 --- a/community/libexecinfo/patches/30-linux-makefile.patch +++ /dev/null @@ -1,44 +0,0 @@ ---- a/Makefile.orig -+++ b/Makefile -@@ -23,24 +23,25 @@ - # SUCH DAMAGE. - # - # $Id: Makefile,v 1.3 2004/07/19 05:19:55 sobomax Exp $ -+# -+# Linux Makefile by Matt Smith , 2011/01/04 - --LIB= execinfo -+CC=cc -+AR=ar -+EXECINFO_CFLAGS=$(CFLAGS) -O2 -pipe -fno-strict-aliasing -std=gnu99 -fstack-protector -c -+EXECINFO_LDFLAGS=$(LDFLAGS) - --SRCS= stacktraverse.c stacktraverse.h execinfo.c execinfo.h -+all: static dynamic - --INCS= execinfo.h -+static: -+ $(CC) $(EXECINFO_CFLAGS) $(EXECINFO_LDFLAGS) stacktraverse.c -+ $(CC) $(EXECINFO_CFLAGS) $(EXECINFO_LDFLAGS) execinfo.c -+ $(AR) rcs libexecinfo.a stacktraverse.o execinfo.o - --SHLIB_MAJOR= 1 --SHLIB_MINOR= 0 -+dynamic: -+ $(CC) -fpic -DPIC $(EXECINFO_CFLAGS) $(EXECINFO_LDFLAGS) stacktraverse.c -o stacktraverse.So -+ $(CC) -fpic -DPIC $(EXECINFO_CFLAGS) $(EXECINFO_LDFLAGS) execinfo.c -o execinfo.So -+ $(CC) -shared -Wl,-soname,libexecinfo.so.1 -o libexecinfo.so.1 stacktraverse.So execinfo.So - --NOPROFILE= yes -- --DPADD= ${LIBM} --LDADD= -lm -- --#WARNS?= 4 -- --#stacktraverse.c: gen.py --# ./gen.py > stacktraverse.c -- --.include -+clean: -+ rm -rf *.o *.So *.a *.so diff --git a/community/libexecinfo/sources b/community/libexecinfo/sources deleted file mode 100644 index c7b0f0f95..000000000 --- a/community/libexecinfo/sources +++ /dev/null @@ -1,3 +0,0 @@ -http://distcache.freebsd.org/local-distfiles/itetcu/libexecinfo-1.1.tar.bz2 -patches/10-execinfo.patch -patches/30-linux-makefile.patch diff --git a/community/libexecinfo/version b/community/libexecinfo/version deleted file mode 100644 index f8b0b375a..000000000 --- a/community/libexecinfo/version +++ /dev/null @@ -1 +0,0 @@ -1.1 1