Bash: fix build with Xcode 12 (#18843)

This commit is contained in:
Adam J. Stewart 2020-09-22 11:25:54 -05:00 committed by GitHub
parent 9e906e2d47
commit 9558377f0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 1 deletions

View file

@ -48,6 +48,8 @@ class Bash(AutotoolsPackage, GNUMirrorPackage):
patch('https://ftpmirror.gnu.org/bash/bash-{0}-patches/bash{1}-{2}'.format(ver, ver.joined, num),
level=0, when='@{0}'.format(ver), sha256=checksum)
patch('xcode12-strsignal-conf.patch', when='@:5.0 %apple-clang@12:')
executables = ['^bash$']
@classmethod
@ -60,7 +62,7 @@ def configure_args(self):
spec = self.spec
return [
'LIBS=-lncursesw',
'LIBS=' + spec['ncurses'].libs.link_flags,
'--with-curses',
'--enable-readline',
'--with-installed-readline',

View file

@ -0,0 +1,18 @@
--- a/configure 2019-01-02 08:43:31.000000000 -0600
+++ b/configure 2020-09-21 10:40:42.000000000 -0500
@@ -14568,6 +14568,7 @@
/* end confdefs.h. */
#include <sys/types.h>
#include <signal.h>
+#include <string.h>
int
main ()
{
@@ -14999,6 +15000,7 @@
/* end confdefs.h. */
#include <stdio.h>
+#include <stdlib.h>
main()
{