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: 02-Apr-2007 17:07:30
Branch: HEAD Handle: 2007040216073000
Modified files:
openpkg-src/apache apache.patch apache.spec
Log:
fix SHA1 function under AMD64 (where "sizeof(unsigned long) == 8") by
using "unsigned int" in the same brain-dead and still partly broken
way (as "sizeof(unsigned int) == 4" cannot be assumed in general) as
the MD5 function in the Apache source. KEEP IN MIND THAT THIS IS STILL
UGLY, BUT AT LEAST SLIGHTLY BETTER AND AT LEAST AS BRAIN-DEAD AS THE
EXISTING MD5 CODE.
Summary:
Revision Changes Path
1.25 +12 -0 openpkg-src/apache/apache.patch
1.391 +1 -1 openpkg-src/apache/apache.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/apache/apache.patch
============================================================================
$ cvs diff -u -r1.24 -r1.25 apache.patch
--- openpkg-src/apache/apache.patch 10 Sep 2006 13:20:33 -0000 1.24
+++ openpkg-src/apache/apache.patch 2 Apr 2007 15:07:30 -0000 1.25
@@ -114,3 +114,15 @@
if (!(env_path = ap_pstrdup(r->pool, getenv("PATH")))) {
env_path = DEFAULT_PATH;
}
+Index: apache_1.3.37/src/include/ap_sha1.h
+--- apache_1.3.37/src/include/ap_sha1.h.orig 2007-04-02 16:48:10 +0200
++++ apache_1.3.37/src/include/ap_sha1.h 2007-04-02 16:56:23 +0200
+@@ -38,7 +38,7 @@
+ #define AP_SHA1PW_ID "{SHA}"
+ #define AP_SHA1PW_IDLEN 5
+
+-typedef unsigned long AP_LONG; /* a 32-bit quantity */
++typedef unsigned int AP_LONG; /* a 32-bit quantity */
+
+ typedef struct {
+ AP_LONG digest[5]; /* message digest */
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/apache/apache.spec
============================================================================
$ cvs diff -u -r1.390 -r1.391 apache.spec
--- openpkg-src/apache/apache.spec 30 Mar 2007 16:55:37 -0000 1.390
+++ openpkg-src/apache/apache.spec 2 Apr 2007 15:07:30 -0000 1.391
@@ -68,7 +68,7 @@
Group: Web
License: ASF
Version: %{V_apache}
-Release: 20070330
+Release: 20070402
# package options (suexec related)
%option with_suexec yes
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]