OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 30-Apr-2008 20:13:35
Branch: HEAD Handle: 2008043019133400
Modified files:
openpkg-src/bash bash.patch bash.spec
Log:
apply the Solaris getcwd(3) fix
Summary:
Revision Changes Path
1.19 +23 -0 openpkg-src/bash/bash.patch
1.100 +2 -1 openpkg-src/bash/bash.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/bash/bash.patch
============================================================================
$ cvs diff -u -r1.18 -r1.19 bash.patch
--- openpkg-src/bash/bash.patch 30 Apr 2008 17:44:27 -0000 1.18
+++ openpkg-src/bash/bash.patch 30 Apr 2008 18:13:34 -0000 1.19
@@ -90,6 +90,29 @@
-----------------------------------------------------------------------------
+Fix Bash getcwd(3) run-time issue seen on Solaris where size argument
+of 0 does not malloc buffer as expected by Bash code.
+
+Index: builtins/common.c
+--- builtins/common.c.orig 2008-04-30 20:08:34 +0200
++++ builtins/common.c 2008-04-30 20:09:18 +0200
+@@ -475,10 +479,11 @@
+
+ if (the_current_working_directory == 0)
+ {
++ char *t = xmalloc(PATH_MAX);
+ #if defined (GETCWD_BROKEN)
+- the_current_working_directory = getcwd (0, PATH_MAX);
++ the_current_working_directory = getcwd (t, PATH_MAX);
+ #else
+- the_current_working_directory = getcwd (0, 0);
++ the_current_working_directory = getcwd (t, PATH_MAX);
+ #endif
+ if (the_current_working_directory == 0)
+ {
+
+-----------------------------------------------------------------------------
+
Provide the y.tab.[ch] patches corresponding to what Bash 3.2 patches
001-039 apply to parse.y in order to not require that this package has
dependencies to the GNU bison package.
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/bash/bash.spec
============================================================================
$ cvs diff -u -r1.99 -r1.100 bash.spec
--- openpkg-src/bash/bash.spec 30 Apr 2008 17:44:27 -0000 1.99
+++ openpkg-src/bash/bash.spec 30 Apr 2008 18:13:34 -0000 1.100
@@ -115,7 +115,8 @@
%prep
# unpack and patch distribution
%setup -q -n bash-%{V_base_real}
- %patch -p0 -P 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
+ %patch -p0 -P 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
+ %patch -p0 -P 0
sleep 1
touch y.tab.[ch]
touch configure config.h.in
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]