[FFmpeg-cvslog] ffbuild: Add gzip -n flag to fix reproducible builds

Rob Hall git at videolan.org
Sun Nov 5 12:57:30 EET 2023


ffmpeg | branch: master | Rob Hall <robxnanocode at outlook.com> | Sat Sep 30 00:25:39 2023 +0100| [1a7a85137e593f5164027da7ce53219829253f65] | committer: Anton Khirnov

ffbuild: Add gzip -n flag to fix reproducible builds

Without this flag, timestamps were embedded into the final
binary if CUDA was enabled.

Signed-off-by: Rob Hall <robxnanocode at outlook.com>
Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1a7a85137e593f5164027da7ce53219829253f65
---

 ffbuild/common.mak | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffbuild/common.mak b/ffbuild/common.mak
index f52473453e..ac54ac0681 100644
--- a/ffbuild/common.mak
+++ b/ffbuild/common.mak
@@ -130,7 +130,7 @@ $(BIN2CEXE): ffbuild/bin2c_host.o
 ifdef CONFIG_PTX_COMPRESSION
 %.ptx.gz: TAG = GZIP
 %.ptx.gz: %.ptx
-	$(M)gzip -c9 $(patsubst $(SRC_PATH)/%,$(SRC_LINK)/%,$<) >$@
+	$(M)gzip -nc9 $(patsubst $(SRC_PATH)/%,$(SRC_LINK)/%,$<) >$@
 
 %.ptx.c: %.ptx.gz $(BIN2CEXE)
 	$(BIN2C) $(patsubst $(SRC_PATH)/%,$(SRC_LINK)/%,$<) $@ $(subst .,_,$(basename $(notdir $@)))



More information about the ffmpeg-cvslog mailing list