summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-02-28 14:38:37 +0000
committerJay Freeman <saurik@saurik.com>2008-02-28 14:38:37 +0000
commitc5395f1086777d87df6c59905896194378c3bdb9 (patch)
tree5e21fb590ca9c958274c5069389d588e22878889 /data
parent038b4ff3a01fcb8289a1f4121e7372b1ed8c584d (diff)
Installer doesn't actually take root priviledges, so I just broke bash for it. I hope they are happy.
git-svn-id: http://svn.telesphoreo.org/trunk@124 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data')
-rw-r--r--data/bash/installer.diff12
-rw-r--r--data/bash/make.sh5
2 files changed, 15 insertions, 2 deletions
diff --git a/data/bash/installer.diff b/data/bash/installer.diff
new file mode 100644
index 000000000..3c229e5ae
--- /dev/null
+++ b/data/bash/installer.diff
@@ -0,0 +1,12 @@
+diff -r -u bash-3.2/flags.c bash-3.2+iPhone/flags.c
+--- bash-3.2/flags.c 2004-07-17 01:19:42.000000000 +0000
++++ bash-3.2+iPhone/flags.c 2008-02-28 14:34:30.000000000 +0000
+@@ -146,7 +146,7 @@
+ is required if the shell is to run setuid. If the `-p' option is
+ not supplied at startup, and the real and effective uids or gids
+ differ, disable_priv_mode is called to relinquish setuid status. */
+-int privileged_mode = 0;
++int privileged_mode = 1;
+
+ #if defined (BRACE_EXPANSION)
+ /* Zero means to disable brace expansion: foo{a,b} -> fooa foob */
diff --git a/data/bash/make.sh b/data/bash/make.sh
index 2b5f49059..06ce94e10 100644
--- a/data/bash/make.sh
+++ b/data/bash/make.sh
@@ -1,5 +1,6 @@
-tar -zxvf "${PKG_DATA}/bash-3.2.tar.gz"
-cd bash-3.2
+pkg:extract
+cd *
+pkg:patch
pkg:configure bash_cv_dev_fd=absent bash_cv_sys_named_pipes=present bash_cv_job_control_missing=missing
make
pkg:install