mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-17 08:45:23 +01:00
Add bash 2.05b
This commit is contained in:
parent
e0d72a85b2
commit
c1454a5db6
12 changed files with 293 additions and 2 deletions
11
sysa/patches/bash-2.05b/dev-tty.patch
Normal file
11
sysa/patches/bash-2.05b/dev-tty.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
diff --color -ru shell.c
|
||||
--- shell.c 2002-07-02 01:27:11.000000000 +1000
|
||||
+++ shell.c 2021-01-16 11:23:36.407287955 +1100
|
||||
@@ -342,8 +342,6 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
- check_dev_tty ();
|
||||
-
|
||||
#ifdef __CYGWIN__
|
||||
_cygwin32_check_tmp ();
|
||||
12
sysa/patches/bash-2.05b/extern.patch
Normal file
12
sysa/patches/bash-2.05b/extern.patch
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
--- builtins/common.c.bak 2021-01-15 21:32:56.938683418 +1100
|
||||
+++ builtins/common.c 2021-01-15 21:34:09.102153806 +1100
|
||||
@@ -46,6 +46,9 @@
|
||||
#include "../flags.h"
|
||||
#include "../jobs.h"
|
||||
#include "../builtins.h"
|
||||
+int num_shell_builtins;
|
||||
+struct builtin *shell_builtins;
|
||||
+struct builtin *current_builtin;
|
||||
#include "../input.h"
|
||||
#include "../execute_cmd.h"
|
||||
#include "../trap.h"
|
||||
11
sysa/patches/bash-2.05b/locale.patch
Normal file
11
sysa/patches/bash-2.05b/locale.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- locale.c 2021-01-15 09:38:55.729307629 +1100
|
||||
+++ locale.c 2021-01-15 11:19:01.929391346 +1100
|
||||
@@ -190,7 +190,7 @@
|
||||
set_lang (var, value)
|
||||
char *var, *value;
|
||||
{
|
||||
- return ((lc_all == 0 || *lc_all == 0) ? setlocale (LC_ALL, value?value:"") != NULL : 0);
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
/* Get the value of one of the locale variables (LC_MESSAGES, LC_CTYPE) */
|
||||
13
sysa/patches/bash-2.05b/mes-libc.patch
Normal file
13
sysa/patches/bash-2.05b/mes-libc.patch
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
diff --git lib/sh/snprintf.c lib/sh/snprintf.c
|
||||
index 7669576..747aeba 100644
|
||||
--- lib/sh/snprintf.c
|
||||
+++ lib/sh/snprintf.c
|
||||
@@ -376,7 +376,7 @@ static void xfree __P((void *));
|
||||
if ((p)->flags & PF_STAR_P) \
|
||||
(p)->precision = GETARG (int)
|
||||
|
||||
-#if defined (HAVE_LOCALE_H)
|
||||
+#if 0
|
||||
# define GETLOCALEDATA(d, t, g) \
|
||||
do \
|
||||
{ \
|
||||
21
sysa/patches/bash-2.05b/missing-defines.patch
Normal file
21
sysa/patches/bash-2.05b/missing-defines.patch
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
--- ../bash-2.05b.bak/execute_cmd.c 2021-01-15 09:38:55.730307635 +1100
|
||||
+++ execute_cmd.c 2021-01-15 09:43:41.046896754 +1100
|
||||
@@ -286,12 +286,18 @@
|
||||
{
|
||||
if (currently_executing_command->type == cm_simple)
|
||||
return currently_executing_command->value.Simple->line;
|
||||
+#ifdef COND_COMMAND
|
||||
else if (currently_executing_command->type == cm_cond)
|
||||
return currently_executing_command->value.Cond->line;
|
||||
+#endif
|
||||
+#ifdef DPAREN_ARITHMETIC
|
||||
else if (currently_executing_command->type == cm_arith)
|
||||
return currently_executing_command->value.Arith->line;
|
||||
+#endif
|
||||
+#ifdef ARITH_FOR_COMMAND
|
||||
else if (currently_executing_command->type == cm_arith_for)
|
||||
return currently_executing_command->value.ArithFor->line;
|
||||
+#endif
|
||||
else
|
||||
return line_number;
|
||||
}
|
||||
23
sysa/patches/bash-2.05b/tinycc.patch
Normal file
23
sysa/patches/bash-2.05b/tinycc.patch
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
diff --git lib/sh/oslib.c lib/sh/oslib.c
|
||||
index 90d7be9..37fdf2a 100644
|
||||
--- lib/sh/oslib.c
|
||||
+++ lib/sh/oslib.c
|
||||
@@ -192,8 +192,7 @@ bzero (s, n)
|
||||
# include <sys/utsname.h>
|
||||
int
|
||||
gethostname (name, namelen)
|
||||
- char *name;
|
||||
- int namelen;
|
||||
+ char *name; int namelen;
|
||||
{
|
||||
int i;
|
||||
struct utsname ut;
|
||||
@@ -209,7 +208,7 @@ gethostname (name, namelen)
|
||||
# else /* !HAVE_UNAME */
|
||||
int
|
||||
gethostname (name, namelen)
|
||||
- int name, namelen;
|
||||
+ char* name; int namelen;
|
||||
{
|
||||
strncpy (name, "unknown", namelen);
|
||||
name[namelen] = '\0';
|
||||
Loading…
Add table
Add a link
Reference in a new issue