Remove the .new suffix inside the fips.checksum.new
authorTomas Mraz <tomas@openssl.org>
Thu, 13 May 2021 08:50:14 +0000 (10:50 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 13 May 2021 08:50:59 +0000 (10:50 +0200)
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15263)

Configurations/unix-Makefile.tmpl

index 9dcc0b03420f310be87269a7380321560140f780..3f78d6d5de8d9bde1f19ec0830b3248d61ef48dd 100644 (file)
@@ -1264,7 +1264,7 @@ tags TAGS: FORCE
        -ctags -R .
        -etags `find . -name '*.[ch]' -o -name '*.pm'`
 
-fips-checksums: generate_fips_sources
+providers/fips.checksum.new: generate_fips_sources
        @which unifdef > /dev/null || \
        ( echo >&2 "ERROR: unifdef not in your \$$PATH, FIPS checksums not calculated"; \
          false )
@@ -1274,7 +1274,9 @@ fips-checksums: generate_fips_sources
                 | xargs ./util/fips-checksums.sh ) \
                 > providers/fips-sources.checksums.new \
        && sha256sum providers/fips-sources.checksums.new \
-            > providers/fips.checksum.new
+            | sed -e 's|\.new||' > providers/fips.checksum.new
+
+fips-checksums: providers/fips.checksum.new
 
 $(SRCDIR)/providers/fips.checksum: providers/fips.checksum.new
        cp -p providers/fips.module.sources.new $(SRCDIR)/providers/fips.module.sources