OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Torsten Homeyer
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 06-Aug-2004 12:49:36
Branch: HEAD Handle: 2004080611493600
Modified files:
openpkg-src/bash bash.patch bash.spec
Log:
fixed timezone handling for HPUX
Summary:
Revision Changes Path
1.9 +28 -0 openpkg-src/bash/bash.patch
1.53 +1 -1 openpkg-src/bash/bash.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/bash/bash.patch
============================================================================
$ cvs diff -u -r1.8 -r1.9 bash.patch
--- openpkg-src/bash/bash.patch 28 Jul 2004 19:19:57 -0000 1.8
+++ openpkg-src/bash/bash.patch 6 Aug 2004 10:49:36 -0000 1.9
@@ -171,3 +171,31 @@
return (prompt_prefix_length);
}
+-----------------------------------------------------------------------------
+
+Fix timezone handling for HPUX
+
+Index: lib/sh/strftime.c
+--- lib/sh/strftime.c.orig 2004-03-04 04:13:23 +0100
++++ lib/sh/strftime.c 2004-08-06 12:40:06 +0200
+@@ -97,6 +97,8 @@
+ extern int daylight;
+ #if defined(SOLARIS) || defined(mips) || defined (M_UNIX)
+ extern long int timezone, altzone;
++#elif defined(HPUX)
++extern long int timezone;
+ #else
+ extern int timezone, altzone;
+ #endif
+@@ -480,7 +482,11 @@
+ * Systems with tzname[] probably have timezone as
+ * secs west of GMT. Convert to mins east of GMT.
+ */
++#if defined(HPUX)
++ off = -(timezone / 60);
++#else
+ off = -(daylight ? timezone : altzone) / 60;
++#endif /* HPUX */
+ #else /* !HAVE_TZNAME */
+ off = -zone.tz_minuteswest;
+ #endif /* !HAVE_TZNAME */
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/bash/bash.spec
============================================================================
$ cvs diff -u -r1.52 -r1.53 bash.spec
--- openpkg-src/bash/bash.spec 29 Jul 2004 18:46:03 -0000 1.52
+++ openpkg-src/bash/bash.spec 6 Aug 2004 10:49:36 -0000 1.53
@@ -40,7 +40,7 @@
Group: Shell
License: GPL
Version: %{V_base_real}.%{V_plvl_raw}
-Release: 20040729
+Release: 20040806
# list of sources
Source0: ftp://ftp.cwru.edu/pub/bash/bash-%{V_base_real}.tar.gz
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]