20018650 openssl-1.0.1-fips-140 x86 build tries to apply sparc patch to x86 file s11-update
authorIvo Raisr <ivo.raisr@oracle.com>
Wed, 19 Nov 2014 02:05:10 -0800
branchs11-update
changeset 3483 a09a43e54a30
parent 3482 79084a3d7cd3
child 3484 460dd2adb76e
20018650 openssl-1.0.1-fips-140 x86 build tries to apply sparc patch to x86 file
components/openssl/openssl-1.0.1-fips-140/patches-post-config/opensslconf.patch
--- a/components/openssl/openssl-1.0.1-fips-140/patches-post-config/opensslconf.patch	Wed Oct 22 14:45:12 2014 -0700
+++ b/components/openssl/openssl-1.0.1-fips-140/patches-post-config/opensslconf.patch	Wed Nov 19 02:05:10 2014 -0800
@@ -1,19 +1,6 @@
---- /tmp/opensslconf.h	Thu Mar 10 06:46:57 2011
-+++ /tmp/opensslconf.h.new	Thu Mar 10 06:47:41 2011
[email protected]@ -2,9 +2,12 @@
- /* WARNING: Generated automatically from opensslconf.h.in by Configure. */
- 
- /* OpenSSL was configured with the following options: */
-+#if defined(__sparcv9)
- #ifndef OPENSSL_SYSNAME_ULTRASPARC
- # define OPENSSL_SYSNAME_ULTRASPARC
- #endif
-+#endif
-+
- #ifndef OPENSSL_DOING_MAKEDEPEND
- 
- 
[email protected]@ -185,10 +188,14 @@
+--- /tmp/opensslconf.h	Fri Feb 11 15:36:12 2011
++++ openssl-1.0.0d/crypto/opensslconf.h	Fri Feb 11 16:58:36 2011
[email protected]@ -181,7 +181,11 @@
  
  #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
  #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
@@ -21,14 +8,11 @@
 +#define ENGINESDIR "/lib/openssl/engines/64"
 +#else
  #define ENGINESDIR "/lib/openssl/engines"
++#endif
  #define OPENSSLDIR "/etc/openssl"
  #endif
  #endif
-+#endif
- 
- #undef OPENSSL_UNISTD
- #define OPENSSL_UNISTD <unistd.h>
[email protected]@ -232,21 +239,34 @@
[email protected]@ -228,21 +232,39 @@
  /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
   * %20 speed up (longs are 8 bytes, int's are 4). */
  #ifndef DES_LONG
@@ -42,7 +26,11 @@
  
  #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
  #define CONFIG_HEADER_BN_H
-+#if defined(__sparcv9) || defined(__x86_64)
++/*
++ * OpenSSL revision 1.521 from 2005-12-15 in OpenSSL_1_0_0-stable branch changed
++ * 64 bit sparcv9 configuration from SIXTY_FOUR_BIT_LONG to BN_LLONG.
++ */
++#if defined(__x86_64)
 +#undef BN_LLONG
 +#else
  #define BN_LLONG
@@ -51,16 +39,16 @@
  /* Should we define BN_DIV2W here? */
  
  /* Only one for the following should be defined */
-+#if defined(__sparcv9) || defined(__x86_64)
++#if defined(__x86_64)
 +#define SIXTY_FOUR_BIT_LONG
 +#undef THIRTY_TWO_BIT
 +#else
  #undef SIXTY_FOUR_BIT_LONG
--#undef SIXTY_FOUR_BIT
+ #undef SIXTY_FOUR_BIT
  #define THIRTY_TWO_BIT
  #endif
 +#undef SIXTY_FOUR_BIT
-+ #endif
++#endif
  
  #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
  #define CONFIG_HEADER_RC4_LOCL_H