Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update elfutils #2782

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 81 additions & 0 deletions packages/e/elfutils/patches/0.189/configure.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
diff --git a/configure b/configure
index acc483f..244e733 100755
--- a/configure
+++ b/configure
@@ -9363,76 +9363,6 @@ See \`config.log' for more details" "$LINENO" 5; } ;;
esac


-saved_LIBS="$LIBS"
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing _obstack_free" >&5
-printf %s "checking for library containing _obstack_free... " >&6; }
-if test ${ac_cv_search__obstack_free+y}
-then :
- printf %s "(cached) " >&6
-else $as_nop
- ac_func_search_save_LIBS=$LIBS
-cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h. */
-
-/* Override any GCC internal prototype to avoid an error.
- Use char because int might match the return type of a GCC
- builtin and then its argument prototype would still apply. */
-char _obstack_free ();
-int
-main (void)
-{
-return _obstack_free ();
- ;
- return 0;
-}
-_ACEOF
-for ac_lib in '' obstack
-do
- if test -z "$ac_lib"; then
- ac_res="none required"
- else
- ac_res=-l$ac_lib
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
- fi
- if ac_fn_c_try_link "$LINENO"
-then :
- ac_cv_search__obstack_free=$ac_res
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.beam \
- conftest$ac_exeext
- if test ${ac_cv_search__obstack_free+y}
-then :
- break
-fi
-done
-if test ${ac_cv_search__obstack_free+y}
-then :
-
-else $as_nop
- ac_cv_search__obstack_free=no
-fi
-rm conftest.$ac_ext
-LIBS=$ac_func_search_save_LIBS
-fi
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search__obstack_free" >&5
-printf "%s\n" "$ac_cv_search__obstack_free" >&6; }
-ac_res=$ac_cv_search__obstack_free
-if test "$ac_res" != no
-then :
- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
-
-fi
-
-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
-See \`config.log' for more details" "$LINENO" 5; } ;;
- -l*) obstack_LIBS="$ac_cv_search__obstack_free" ;;
- *) obstack_LIBS= ;;
-esac
-


ac_config_files="$ac_config_files doc/Makefile"
3 changes: 3 additions & 0 deletions packages/e/elfutils/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ package("elfutils")

set_urls("https://sourceware.org/elfutils/ftp/$(version)/elfutils-$(version).tar.bz2")
add_versions("0.183", "c3637c208d309d58714a51e61e63f1958808fead882e9b607506a29e5474f2c5")
add_versions("0.189", "39bd8f1a338e2b7cd4abc3ff11a0eddc6e690f69578a57478d8179b4148708c8")

add_patches("0.183", path.join(os.scriptdir(), "patches", "0.183", "configure.patch"), "7a16719d9e3d8300b5322b791ba5dd02986f2663e419c6798077dd023ca6173a")
add_patches("0.189", path.join(os.scriptdir(), "patches", "0.189", "configure.patch"), "b4016a97e6aaad92b15fad9a594961b1fc77a6d054ebadedef9bb3a55e99a8f8")

add_configs("libelf", {description = "Enable libelf", default = true, type = "boolean"})
add_configs("libcpu", {description = "Enable libcpu", default = false, type = "boolean"})
Expand Down Expand Up @@ -77,6 +79,7 @@ package("elfutils")
os.rm(path.join(package:installdir("lib"), "*.a"))
else
os.rm(path.join(package:installdir("lib"), "*.so"))
os.tryrm(path.join(package:installdir("lib"), "*.so.*"))
end
end)

Expand Down