summaryrefslogtreecommitdiff
path: root/Ports
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2019-11-19 17:39:31 +0300
committerAndreas Kling <awesomekling@gmail.com>2019-11-19 16:03:25 +0100
commit47326042c5b13609b5a649d20e86a81121ded152 (patch)
tree17b0ef890728975dc52458e316659d1dcebb26d3 /Ports
parent63cef4bd5f95616e2978ec3734e4fd0356cfb32f (diff)
downloadserenity-47326042c5b13609b5a649d20e86a81121ded152.zip
Ports: Make sure Bash loads its built-in commands statically
Bash's configure script is checking whether the system has dlopen(). We do, but it doesn't actually work (yet). So patch the check out.
Diffstat (limited to 'Ports')
-rw-r--r--Ports/bash/patches/disable-dynamic-loading.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/Ports/bash/patches/disable-dynamic-loading.patch b/Ports/bash/patches/disable-dynamic-loading.patch
new file mode 100644
index 0000000000..6e088b987c
--- /dev/null
+++ b/Ports/bash/patches/disable-dynamic-loading.patch
@@ -0,0 +1,63 @@
+--- a/configure.ac 2019-01-02 17:39:11.000000000 +0300
++++ b/configure.ac 2019-11-19 17:18:54.094241509 +0300
+@@ -1164,25 +1164,9 @@
+ fi
+
+ #
+-# Shared object configuration section. These values are generated by
+-# ${srcdir}/support/shobj-conf
+-#
+-if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
+-then
+- AC_MSG_CHECKING(shared object configuration for loadable builtins)
+- eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
+- AC_SUBST(SHOBJ_CC)
+- AC_SUBST(SHOBJ_CFLAGS)
+- AC_SUBST(SHOBJ_LD)
+- AC_SUBST(SHOBJ_LDFLAGS)
+- AC_SUBST(SHOBJ_XLDFLAGS)
+- AC_SUBST(SHOBJ_LIBS)
+- AC_SUBST(SHOBJ_STATUS)
+- AC_MSG_RESULT($SHOBJ_STATUS)
+-else
+- SHOBJ_STATUS=unsupported
+- AC_SUBST(SHOBJ_STATUS)
+-fi
++# Shared object configuration section.
++SHOBJ_STATUS=unsupported
++AC_SUBST(SHOBJ_STATUS)
+
+ # try to create a directory tree if the source is elsewhere
+ # this should be packaged into a script accessible via ${srcdir}/support
+--- a/configure 2019-01-02 17:43:31.000000000 +0300
++++ b/configure 2019-11-19 17:18:56.126259727 +0300
+@@ -16367,27 +16367,8 @@
+ fi
+
+ #
+-# Shared object configuration section. These values are generated by
+-# ${srcdir}/support/shobj-conf
+-#
+-if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
+-then
+- { $as_echo "$as_me:${as_lineno-$LINENO}: checking shared object configuration for loadable builtins" >&5
+-$as_echo_n "checking shared object configuration for loadable builtins... " >&6; }
+- eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
+-
+-
+-
+-
+-
+-
+-
+- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHOBJ_STATUS" >&5
+-$as_echo "$SHOBJ_STATUS" >&6; }
+-else
+- SHOBJ_STATUS=unsupported
+-
+-fi
++# Shared object configuration section.
++SHOBJ_STATUS=unsupported
+
+ # try to create a directory tree if the source is elsewhere
+ # this should be packaged into a script accessible via ${srcdir}/support