Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cookbook
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
cookbook
Commits
e6f74797
Verified
Commit
e6f74797
authored
1 year ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
Fix bash hash and patch
parent
95e95ab4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
recipes/bash/recipe.toml
+1
-1
1 addition, 1 deletion
recipes/bash/recipe.toml
recipes/bash/redox.patch
+34
-44
34 additions, 44 deletions
recipes/bash/redox.patch
with
35 additions
and
45 deletions
recipes/bash/recipe.toml
+
1
−
1
View file @
e6f74797
[source]
tar
=
"http://ftp.gnu.org/gnu/bash/bash-5.2.15.tar.gz"
blake3
=
"
926927c370142cffa37dfc0a310ec386493b8b558ff3cc062376898154bc7ccb
"
blake3
=
"
c1548e3f2a9b6de5296e18c28b3d2007985e647273e03f039efd3e489edaa41f
"
patches
=
[
"redox.patch"
]
...
...
This diff is collapsed.
Click to expand it.
recipes/bash/redox.patch
+
34
−
44
View file @
e6f74797
diff -ruwN source/bashline.c source-new/bashline.c
--- source/bashline.c 202
3
-0
5-06 08:05:06.270133244
-0600
+++ source-new/bashline.c 2023-0
5
-0
6
0
8:05:11.402125204
-0600
@@ -2
4
65,7 +2
4
65,7 @@
--- source/bashline.c 202
2
-0
4-17 16:37:12.000000000
-0600
+++ source-new/bashline.c 2023-0
9
-0
9
0
7:46:51.157322285
-0600
@@ -26
4
5,7 +26
4
5,7 @@
const char *text;
int state;
{
...
...
@@ -11,9 +11,9 @@ diff -ruwN source/bashline.c source-new/bashline.c
#else
static char *gname = (char *)NULL;
diff -ruwN source/builtins/ulimit.def source-new/builtins/ulimit.def
--- source/builtins/ulimit.def 202
3-05-06 08:05:06.246133282
-0600
+++ source-new/builtins/ulimit.def 2023-0
5
-0
6
0
8:05:11.406125198
-0600
@@ -
598
,7 +
598
,7 @@
--- source/builtins/ulimit.def 202
1-11-05 07:19:53.000000000
-0600
+++ source-new/builtins/ulimit.def 2023-0
9
-0
9
0
7:46:51.157322285
-0600
@@ -
609
,7 +
609
,7 @@
}
else
{
...
...
@@ -23,9 +23,9 @@ diff -ruwN source/builtins/ulimit.def source-new/builtins/ulimit.def
return -1;
# if defined (HPUX9)
diff -ruwN source/config-top.h source-new/config-top.h
--- source/config-top.h 202
3-05
-0
6
0
8:05:06.26613325
0 -0600
+++ source-new/config-top.h 2023-0
5
-0
6
0
8:05:11.406125198
-0600
@@ -63,
1
4 +63,
1
4 @@
--- source/config-top.h 202
1-11
-0
5
0
7:11:12.00000000
0 -0600
+++ source-new/config-top.h 2023-0
9
-0
9
0
7:49:50.705526090
-0600
@@ -63,
2
4 +63,
2
4 @@
/* The default value of the PATH variable. */
#ifndef DEFAULT_PATH_VALUE
#define DEFAULT_PATH_VALUE \
...
...
@@ -33,6 +33,11 @@ diff -ruwN source/config-top.h source-new/config-top.h
+ "/usr/local/bin;/usr/local/sbin;/usr/bin;/usr/sbin;/bin;/sbin;."
#endif
/* If you want to unconditionally set a value for PATH in every restricted
shell, set this. */
-/* #define RBASH_STATIC_PATH_VALUE "/rbin:/usr/rbin" */
+/* #define RBASH_STATIC_PATH_VALUE "/rbin;/usr/rbin" */
/* The value for PATH when invoking `command -p'. This is only used when
the Posix.2 confstr () function, or CS_PATH define are not present. */
#ifndef STANDARD_UTILS_PATH
...
...
@@ -41,44 +46,29 @@ diff -ruwN source/config-top.h source-new/config-top.h
+ "/bin;/usr/bin;/sbin;/usr/sbin;/etc;/usr/etc"
#endif
/* The default path for enable -f */
#ifndef DEFAULT_LOADABLE_BUILTINS_PATH
#define DEFAULT_LOADABLE_BUILTINS_PATH \
- "/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:."
+ "/usr/local/lib/bash;/usr/lib/bash;/opt/local/lib/bash;/usr/pkg/lib/bash;/opt/pkg/lib/bash;."
#endif
/* Default primary and secondary prompt strings. */
diff -ruwN source/configure.ac source-new/configure.ac
--- source/configure.ac 2023-05-06 08:05:06.266133250 -0600
+++ source-new/configure.ac 2023-05-06 08:05:11.406125198 -0600
@@ -90,6 +90,7 @@
*-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
--- source/configure.ac 2022-09-23 08:12:27.000000000 -0600
+++ source-new/configure.ac 2023-09-09 07:47:28.393364561 -0600
@@ -92,6 +92,7 @@
*-nsk*) opt_bash_malloc=no ;; # HP NonStop
*-haiku*) opt_bash_malloc=no ;; # Haiku OS
*-genode*) opt_bash_malloc=no ;; # Genode has no sbrk
+*-redox*) opt_bash_malloc=no ;; # Redox OS
esac
# memory scrambling on free()
diff -ruwN source/execute_cmd.c source-new/execute_cmd.c
--- source/execute_cmd.c 2023-05-06 08:05:06.270133244 -0600
+++ source-new/execute_cmd.c 2023-05-06 08:05:11.406125198 -0600
@@ -1335,15 +1335,17 @@
nullcmd = (command == 0) || (command->type == cm_simple && command->value.Simple->words == 0 && command->value.Simple->redirects == 0);
if (posixly_correct && nullcmd)
{
-#if defined (HAVE_GETRUSAGE)
+#if defined (HAVE_GETRUSAGE) && defined (HAVE_GETTIMEOFDAY)
selfb.ru_utime.tv_sec = kidsb.ru_utime.tv_sec = selfb.ru_stime.tv_sec = kidsb.ru_stime.tv_sec = 0;
selfb.ru_utime.tv_usec = kidsb.ru_utime.tv_usec = selfb.ru_stime.tv_usec = kidsb.ru_stime.tv_usec = 0;
before.tv_sec = shell_start_time;
before.tv_usec = 0;
#else
+# if defined (HAVE_TIMES)
before.tms_utime = before.tms_stime = before.tms_cutime = before.tms_cstime = 0;
tbefore = shell_start_time;
#endif
+#endif
}
old_flags = command->flags;
diff -ruwN source/general.c source-new/general.c
--- source/general.c 202
3-05-06 08:05:06.26613325
0 -0
6
00
+++ source-new/general.c 2023-0
5
-0
6
0
8:05:11.406125198
-0600
@@ -
476
,6 +
476
,7 @@
--- source/general.c 202
2-11-23 15:10:12.00000000
0 -0
7
00
+++ source-new/general.c 2023-0
9
-0
9
0
7:46:51.161322290
-0600
@@ -
589
,6 +
589
,7 @@
void
check_dev_tty ()
{
...
...
@@ -86,7 +76,7 @@ diff -ruwN source/general.c source-new/general.c
int tty_fd;
char *tty;
@@ -
490
,6 +
491
,7 @@
@@ -
603
,6 +
604
,7 @@
}
if (tty_fd >= 0)
close (tty_fd);
...
...
@@ -94,7 +84,7 @@ diff -ruwN source/general.c source-new/general.c
}
/* Return 1 if PATH1 and PATH2 are the same file. This is kind of
@@ -
909
,10 +
911
,10 @@
@@ -
1031
,10 +
1033
,10 @@
`:'. If I is 0, then the path has a leading colon. Trailing colons
are handled OK by the `else' part of the if statement; an empty
string is returned in that case. */
...
...
@@ -108,8 +98,8 @@ diff -ruwN source/general.c source-new/general.c
*p_index = i;
diff -ruwN source/include/posixwait.h source-new/include/posixwait.h
--- source/include/posixwait.h 20
23-05-06 08:05:06.250133275
-0600
+++ source-new/include/posixwait.h 2023-0
5
-0
6
0
8:05:11.406125198
-0600
--- source/include/posixwait.h 20
19-03-29 11:25:52.000000000
-0600
+++ source-new/include/posixwait.h 2023-0
9
-0
9
0
7:46:51.161322290
-0600
@@ -34,7 +34,7 @@
/* How to get the status of a job. For Posix, this is just an
...
...
@@ -129,8 +119,8 @@ diff -ruwN source/include/posixwait.h source-new/include/posixwait.h
# if !defined (WSTOPSIG)
# define WSTOPSIG(s) ((s) >> 8)
diff -ruwN source/lib/sh/getcwd.c source-new/lib/sh/getcwd.c
--- source/lib/sh/getcwd.c 20
23-05-06 08:05:06.254133269
-0
6
00
+++ source-new/lib/sh/getcwd.c 2023-0
5
-0
6
0
8:05:11.406125198
-0600
--- source/lib/sh/getcwd.c 20
12-03-10 08:48:50.000000000
-0
7
00
+++ source-new/lib/sh/getcwd.c 2023-0
9
-0
9
0
7:46:51.161322290
-0600
@@ -20,7 +20,7 @@
#include <config.h>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment