openssl 1.0.0b fails to install when compiled with the no-hw option.  The 
failure is:

making install in engines...
make[3]: Entering directory 
`/home/dkehn/work/u/src/lib/openssl/openssl-1.0.0b-0001-0000/engines'
installing 4758cca
cp: cannot stat `lib4758cca.bad': No such file or directory
make[3]: *** [install] Error 1
make[3]: Leaving directory 
`/home/dkehn/work/u/src/lib/openssl/openssl-1.0.0b-0001-0000/engines'
make[2]: *** [install_sw] Error 1
make[2]: Leaving directory 
`/home/dkehn/work/u/src/lib/openssl/openssl-1.0.0b-0001-0000'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/dkehn/work/u/src/lib/openssl'
make: *** [all] Error 2

The attached patch resolves this error by ensuring the OPENSSL_NO_HW flag gets 
set when no-hw is specified and skipping over the engines files in the install 
phase.

Regards,
...doug


      
diff -uraN openssl-1.0.0b.orig/Configure openssl-1.0.0b/Configure
--- openssl-1.0.0b.orig/Configure	2010-11-11 09:23:19.000000000 -0600
+++ openssl-1.0.0b/Configure	2010-11-29 07:49:04.000000000 -0600
@@ -1003,6 +1003,7 @@
 			print " OPENSSL_NO_$ALGO";
 		
 			if (/^err$/)	{ $flags .= "-DOPENSSL_NO_ERR "; }
+			if (/^hw$/)	{ $flags .= "-DOPENSSL_NO_HW "; }
 			elsif (/^asm$/)	{ $no_asm = 1; }
 			}
 		else
diff -uraN openssl-1.0.0b.orig/engines/Makefile openssl-1.0.0b/engines/Makefile
--- openssl-1.0.0b.orig/engines/Makefile	2010-08-24 16:46:34.000000000 -0500
+++ openssl-1.0.0b/engines/Makefile	2010-11-29 07:53:46.000000000 -0600
@@ -113,6 +113,7 @@
 			  pfx=lib; \
 			  if [ "$(PLATFORM)" != "Cygwin" ]; then \
 				case "$(CFLAGS)" in \
+				*OPENSSL_NO_HW*)	echo ... skipping install OPENSSL_NO_HW defined; continue;; \
 				*DSO_BEOS*)	sfx=".so";;	\
 				*DSO_DLFCN*)	sfx=`expr "$(SHLIB_EXT)" : '.*\(\.[a-z][a-z]*\)' \| ".so"`;;	\
 				*DSO_DL*)	sfx=".sl";;	\

Reply via email to