The gdbserver is unused in crash-utility, but it
is always built by default during crash building.
Let's disable gdbserver building to save some time.

There are several advantages, for example:
[1] speed up crash building and save time
[2] avoid some compilation issues
[3] the following cross compile and ci will benefit
    from this.

In addition, this is harmless for the old compilation
methods.

Signed-off-by: Lianbo Jiang <liji...@redhat.com>
---
 gdb-16.2.patch | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/gdb-16.2.patch b/gdb-16.2.patch
index 053c2d1c10d9..ee9bd2bfa8cd 100644
--- a/gdb-16.2.patch
+++ b/gdb-16.2.patch
@@ -1879,3 +1879,15 @@
    _rl_tracefp = 0;
    return r;
  }
+--- gdb-16.2/configure.orig
++++ gdb-16.2/configure
+@@ -3620,6 +3620,9 @@ case "${target}" in
+     ;;
+ esac
+
++#disable gdbserver build in crash-utility
++enable_gdbserver=no
++
+ # Only allow gdbserver on some systems.
+ if test -d ${srcdir}/gdbserver; then
+     if test x$enable_gdbserver = x; then
-- 
2.47.1
--
Crash-utility mailing list -- devel@lists.crash-utility.osci.io
To unsubscribe send an email to devel-le...@lists.crash-utility.osci.io
https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/
Contribution Guidelines: https://github.com/crash-utility/crash/wiki

Reply via email to