aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/elfutils
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2024-05-24 12:22:12 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2024-05-24 12:22:12 +0800
commit46ca440e9d6cc606d9c3233021e32d24b25172cf (patch)
treeeeb573e47ac56498fbf74bda6d22fac47038ecab /repos/extra/elfutils
parent8c2e7bb570c11a51fdcecf7302af4058757d862c (diff)
downloadalicelinux-46ca440e9d6cc606d9c3233021e32d24b25172cf.tar.gz
alicelinux-46ca440e9d6cc606d9c3233021e32d24b25172cf.zip
added repos
Diffstat (limited to 'repos/extra/elfutils')
-rw-r--r--repos/extra/elfutils/.files39
-rw-r--r--repos/extra/elfutils/build22
-rw-r--r--repos/extra/elfutils/info5
-rw-r--r--repos/extra/elfutils/musl.patch59
4 files changed, 125 insertions, 0 deletions
diff --git a/repos/extra/elfutils/.files b/repos/extra/elfutils/.files
new file mode 100644
index 00000000..525e9284
--- /dev/null
+++ b/repos/extra/elfutils/.files
@@ -0,0 +1,39 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+drwxr-xr-x root/root usr/include/
+-rw-r--r-- root/root usr/include/dwarf.h
+drwxr-xr-x root/root usr/include/elfutils/
+-rw-r--r-- root/root usr/include/elfutils/elf-knowledge.h
+-rw-r--r-- root/root usr/include/elfutils/known-dwarf.h
+-rw-r--r-- root/root usr/include/elfutils/libasm.h
+-rw-r--r-- root/root usr/include/elfutils/libdw.h
+-rw-r--r-- root/root usr/include/elfutils/libdwelf.h
+-rw-r--r-- root/root usr/include/elfutils/libdwfl.h
+-rw-r--r-- root/root usr/include/elfutils/version.h
+-rw-r--r-- root/root usr/include/gelf.h
+-rw-r--r-- root/root usr/include/libelf.h
+-rw-r--r-- root/root usr/include/nlist.h
+drwxr-xr-x root/root usr/lib/
+-rwxr-xr-x root/root usr/lib/libasm-0.191.so
+lrwxrwxrwx root/root usr/lib/libasm.so -> libasm.so.1
+lrwxrwxrwx root/root usr/lib/libasm.so.1 -> libasm-0.191.so
+-rwxr-xr-x root/root usr/lib/libdw-0.191.so
+lrwxrwxrwx root/root usr/lib/libdw.so -> libdw.so.1
+lrwxrwxrwx root/root usr/lib/libdw.so.1 -> libdw-0.191.so
+-rwxr-xr-x root/root usr/lib/libelf-0.191.so
+lrwxrwxrwx root/root usr/lib/libelf.so -> libelf.so.1
+lrwxrwxrwx root/root usr/lib/libelf.so.1 -> libelf-0.191.so
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/libdw.pc
+-rw-r--r-- root/root usr/lib/pkgconfig/libelf.pc
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/eu-elfclassify.1.gz
+-rw-r--r-- root/root usr/share/man/man1/eu-readelf.1.gz
+-rw-r--r-- root/root usr/share/man/man1/eu-srcfiles.1.gz
+drwxr-xr-x root/root usr/share/man/man3/
+-rw-r--r-- root/root usr/share/man/man3/elf_begin.3.gz
+-rw-r--r-- root/root usr/share/man/man3/elf_clone.3.gz
+-rw-r--r-- root/root usr/share/man/man3/elf_getdata.3.gz
+-rw-r--r-- root/root usr/share/man/man3/elf_update.3.gz
diff --git a/repos/extra/elfutils/build b/repos/extra/elfutils/build
new file mode 100644
index 00000000..96c0419b
--- /dev/null
+++ b/repos/extra/elfutils/build
@@ -0,0 +1,22 @@
+# get from KISS
+# Build sometimes forces -Werror.
+export CFLAGS="$CFLAGS -Wno-error"
+
+sh ./configure \
+ --prefix=/usr \
+ --disable-symbol-versioning \
+ --disable-debuginfod \
+ --disable-libdebuginfod \
+ --without-zstd \
+ ac_cv_c99=yes # Override check for Clang.
+
+# Utility functions that need argp and fts, not strictly necessary
+# for the library to function
+:>libdwfl/argp-std.c
+:>libdwfl/linux-kernel-modules.c
+
+# Useless stuff
+printf '%s\n' "all:" "install:" > src/Makefile
+
+make
+make install
diff --git a/repos/extra/elfutils/info b/repos/extra/elfutils/info
new file mode 100644
index 00000000..534c6d5f
--- /dev/null
+++ b/repos/extra/elfutils/info
@@ -0,0 +1,5 @@
+name=elfutils
+version=0.191
+release=1
+source="https://sourceware.org/ftp/$name/$version/$name-$version.tar.bz2
+ musl.patch"
diff --git a/repos/extra/elfutils/musl.patch b/repos/extra/elfutils/musl.patch
new file mode 100644
index 00000000..10ee4d49
--- /dev/null
+++ b/repos/extra/elfutils/musl.patch
@@ -0,0 +1,59 @@
+diff --git a/configure b/configure
+index 562d9f4..8c45cc1 100755
+--- a/configure
++++ b/configure
+@@ -8880,7 +8880,7 @@ LIBS="$saved_LIBS"
+ case "$ac_cv_search_argp_parse" in
+ no) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+ printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "failed to find argp_parse
++: $? "failed to find argp_parse
+ See \`config.log' for more details" "$LINENO" 5; } ;;
+ -l*) argp_LDADD="$ac_cv_search_argp_parse" ;;
+ *) argp_LDADD= ;;
+@@ -8951,7 +8951,7 @@ LIBS="$saved_LIBS"
+ case "$ac_cv_search_fts_close" in
+ no) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+ printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "failed to find fts_close
++: $? "failed to find fts_close
+ See \`config.log' for more details" "$LINENO" 5; } ;;
+ -l*) fts_LIBS="$ac_cv_search_fts_close" ;;
+ *) fts_LIBS= ;;
+@@ -9022,7 +9022,7 @@ LIBS="$saved_LIBS"
+ case "$ac_cv_search__obstack_free" in
+ no) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+ printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
+-as_fn_error $? "failed to find _obstack_free
++: $? "failed to find _obstack_free
+ See \`config.log' for more details" "$LINENO" 5; } ;;
+ -l*) obstack_LIBS="$ac_cv_search__obstack_free" ;;
+ *) obstack_LIBS= ;;
+diff --git a/lib/Makefile.in b/lib/Makefile.in
+index e84bc45..1f3be35 100644
+--- a/lib/Makefile.in
++++ b/lib/Makefile.in
+@@ -117,8 +117,8 @@ libeu_a_AR = $(AR) $(ARFLAGS)
+ libeu_a_LIBADD =
+ am_libeu_a_OBJECTS = xasprintf.$(OBJEXT) xstrdup.$(OBJEXT) \
+ xstrndup.$(OBJEXT) xmalloc.$(OBJEXT) next_prime.$(OBJEXT) \
+- crc32.$(OBJEXT) crc32_file.$(OBJEXT) color.$(OBJEXT) \
+- error.$(OBJEXT) printversion.$(OBJEXT)
++ crc32.$(OBJEXT) crc32_file.$(OBJEXT) \
++ error.$(OBJEXT)
+ libeu_a_OBJECTS = $(am_libeu_a_OBJECTS)
+ AM_V_P = $(am__v_P_@AM_V@)
+ am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
+@@ -409,10 +409,10 @@ textrel_check = if $(READELF) -d $@ | grep -F -q TEXTREL; then $(textrel_found);
+ noinst_LIBRARIES = libeu.a
+ libeu_a_SOURCES = xasprintf.c xstrdup.c xstrndup.c xmalloc.c next_prime.c \
+ crc32.c crc32_file.c \
+- color.c error.c printversion.c
++ color.c
+
+ noinst_HEADERS = fixedsizehash.h libeu.h system.h dynamicsizehash.h list.h \
+- eu-config.h color.h printversion.h bpf.h \
++ eu-config.h bpf.h \
+ atomics.h stdatomic-fbsd.h dynamicsizehash_concurrent.h
+
+ EXTRA_DIST = dynamicsizehash.c dynamicsizehash_concurrent.c