[Pkg-octave-commit] [octave-pkg-dev] 01/01: octave-pkg.mk: Ensure reproducible build ids for .oct files

Rafael Laboissière rlaboiss-guest at moszumanska.debian.org
Tue Oct 27 12:33:01 UTC 2015


This is an automated email from the git hooks/post-receive script.

rlaboiss-guest pushed a commit to branch master
in repository octave-pkg-dev.

commit deed2ea875c0d41b882503e521e83bf0c025aa5f
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date:   Tue Oct 27 10:23:36 2015 -0200

    octave-pkg.mk: Ensure reproducible build ids for .oct files
    
    This is done by removing the -g option from the environment variables
    FFLAGS, CFLAGS, and CXXFLAGS.  This allow the production of identical
    *.oct files at every package building.
    
    Gbp-Dch: Full
---
 octave-pkg.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/octave-pkg.mk b/octave-pkg.mk
index 8b60813..46b9875 100644
--- a/octave-pkg.mk
+++ b/octave-pkg.mk
@@ -68,6 +68,12 @@ include /usr/share/dpkg/buildflags.mk
 # Oct-files ldflags are taken from the following variable
 export OCT_LINK_OPTS=$(LDFLAGS)
 
+# Ensure reproducible builds by removing the -g option from the
+# compiler flags
+export FFLAGS = -O2 -fstack-protector-strong -mieee-fp
+export CFLAGS = -O2 -fstack-protector-strong -Wformat -Werror=format-security
+export CXXFLAGS = -O2 -fstack-protector-strong -Wformat -Werror=format-security
+
 install/$(package)::	\
 	check-version	\
 	create-dirs	\

-- 
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave-pkg-dev.git



More information about the Pkg-octave-commit mailing list