[openssl-commits] [openssl] master update

Richard Levitte levitte at openssl.org
Mon Jan 25 17:36:38 UTC 2016


The branch master has been updated
       via  e8cdcd52b33605b44390888e6aaa0548ca877b46 (commit)
      from  3ea75c6328fcf8e5270185fab9d051117050fc5a (commit)


- Log -----------------------------------------------------------------
commit e8cdcd52b33605b44390888e6aaa0548ca877b46
Author: Richard Levitte <levitte at openssl.org>
Date:   Sun Jan 24 17:07:27 2016 +0100

    Now that Configure doesn't produce tools/c_rehash, mk1mf has to do it
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 util/mk1mf.pl    | 25 +++++++++++++++++++++----
 util/pl/BC-32.pl |  3 ++-
 util/pl/VC-32.pl |  2 +-
 util/pl/unix.pl  |  2 +-
 4 files changed, 25 insertions(+), 7 deletions(-)

diff --git a/util/mk1mf.pl b/util/mk1mf.pl
index 6cece33..98e44b0 100755
--- a/util/mk1mf.pl
+++ b/util/mk1mf.pl
@@ -751,9 +751,10 @@ headers: \$(HEADER)
 
 lib: \$(LIBS_DEP) \$(E_SHLIB)
 
-exe: apps testapps
-apps: \$(BIN_D)$o\$(E_EXE)$exep
+exe: apps tools testapps
+apps: \$(BIN_D)$o\$(E_EXE)$exep \$(BIN_D)${o}CA.pl
 testapps: \$(T_EXE)
+tools: \$(BIN_D)${o}c_rehash
 
 install: all
 	\$(MKDIR) \"\$(INSTALLTOP)\"
@@ -778,7 +779,7 @@ reallyclean:
 
 EOF
 
-$rules .= &do_rehash_rule("rehash.time", "certs apps");
+$rules .= &do_rehash_rule("rehash.time", "certs/demo apps tools");
 $rules .= &do_test_rule("test", "rehash.time", "run_tests.pl");
 
 my $platform_cpp_symbol = "MK1MF_PLATFORM_$platform";
@@ -807,7 +808,7 @@ if (open(IN,"crypto/buildinf.h"))
 	}
 
 open (OUT,">>crypto/buildinf.h") || die "Can't open buildinf.h";
-printf OUT <<EOF;
+printf OUT <<"EOF";
 #ifdef $platform_cpp_symbol
   /* auto-generated/updated by util/mk1mf.pl for crypto/cversion.c */
   #define CFLAGS "compiler: $cc $cflags"
@@ -998,6 +999,9 @@ if ($fips)
 
 $rules.=&do_link_rule("\$(BIN_D)$o\$(E_EXE)$exep","\$(E_OBJ)","\$(LIBS_DEP)","\$(L_LIBS) \$(EX_LIBS)", ($fips && !$shlib) ? 2 : 0);
 
+$rules.=&do_dofile_rule("\$(BIN_D)","c_rehash","tools/c_rehash.in");
+$rules.=&do_dofile_rule("\$(BIN_D)","CA.pl","apps/CA.pl.in");
+
 print $defs;
 
 if ($platform eq "linux-elf") {
@@ -1327,6 +1331,7 @@ sub do_copy_rule
 	local($to,$files,$p)=@_;
 	local($ret,$_,$n,$pp);
 	
+
 	$files =~ s/\//$o/g if $o ne '/';
 	foreach (split(/\s+/,$files))
 		{
@@ -1339,6 +1344,18 @@ sub do_copy_rule
 	return($ret);
 	}
 
+sub do_dofile_rule
+	{
+	(my $to, my $file, my $tmpl) = @_;
+
+	$file =~ s|/|$o|g if $o ne '/';
+	return <<"EOF";
+$to${o}$file: $tmpl
+	\$(PERL) "-I." "-Mconfigdata" util/dofile.pl "$tmpl" > "$to${o}$file.new"
+	mv "$to${o}$file.new" "$to${o}$file"
+EOF
+	}
+
 # Options picked up from the OPTIONS line in the top level Makefile
 # generated by Configure.
 
diff --git a/util/pl/BC-32.pl b/util/pl/BC-32.pl
index 3b2b854..36ad682 100644
--- a/util/pl/BC-32.pl
+++ b/util/pl/BC-32.pl
@@ -100,7 +100,8 @@ sub do_rehash_rule {
 $target: $deps
 	set OPENSSL=\$(BIN_D)${o}openssl.exe
 	set OPENSSL_DEBUG_MEMORY=on
-	\$(PERL) tools/c_rehash certs/demo
+	\$(PERL) \$(BIN_D)${o}c_rehash certs/demo
+	echo off > $target
 EOF
     return $ret
 }
diff --git a/util/pl/VC-32.pl b/util/pl/VC-32.pl
index 8cb4835..73160e9 100644
--- a/util/pl/VC-32.pl
+++ b/util/pl/VC-32.pl
@@ -306,7 +306,7 @@ sub do_rehash_rule {
 $target: $deps
 	set OPENSSL=\$(BIN_D)${o}openssl.exe
 	set OPENSSL_DEBUG_MEMORY=on
-	\$(PERL) tools/c_rehash certs/demo
+	\$(PERL) \$(BIN_D)${o}c_rehash certs/demo
 	echo off > $target
 EOF
     return $ret
diff --git a/util/pl/unix.pl b/util/pl/unix.pl
index c1fa1ff..c1b2c26 100644
--- a/util/pl/unix.pl
+++ b/util/pl/unix.pl
@@ -193,7 +193,7 @@ $target: $deps
 	(OPENSSL="`pwd`/util/opensslwrap.sh"; \\
 	OPENSSL_DEBUG_MEMORY=on; \\
 	export OPENSSL OPENSSL_DEBUG_MEMORY; \\
-	\$(PERL) tools/c_rehash certs/demo; \\
+	\$(PERL) \$(BIN_D)${o}c_rehash certs/demo; \\
 	touch $target)
 EOF
     return $ret


More information about the openssl-commits mailing list