[SCM] csound/master: Pass last changelog date as date to csound so it can build reproducibly

fsateler at users.alioth.debian.org fsateler at users.alioth.debian.org
Mon Nov 30 13:48:35 UTC 2015


The following commit has been merged in the master branch:
commit 6be848c248914cd740cafe3b69f740f6c1dbc525
Author: Felipe Sateler <fsateler at debian.org>
Date:   Mon Nov 30 10:26:01 2015 -0300

    Pass last changelog date as date to csound so it can build reproducibly

diff --git a/debian/Custom.cmake b/debian/Custom.cmake
index 85d5af8..e96a2e8 100644
--- a/debian/Custom.cmake
+++ b/debian/Custom.cmake
@@ -20,6 +20,7 @@ if(mtuneopt)
     add_compiler_flags("-mtune=generic")
 endif()
 
+add_definitions(-DCS_PACKAGE_DATE=\"@DATE@\")
 
 #set(FLTK_INCLUDE_DIR "/usr/include")
 set(FLTK_SKIP_OPENGL ON)
diff --git a/debian/rules b/debian/rules
index fe13cb6..c168182 100755
--- a/debian/rules
+++ b/debian/rules
@@ -166,6 +166,7 @@ DEB_DH_INSTALL_SOURCEDIR = debian/tmp
 DEB_SCONS_INSTALL_OPTIONS = instdir=$(CURDIR)/debian/tmp
 DEB_SCONS_INSTALL_TARGET = install=1
 
+PACKAGE_DATE = $(shell date -d"`dpkg-parsechangelog -SDate`" +%F)
 
 build/libcsound64-doc:: build-doxygen-stamp
 build-doxygen-stamp:
@@ -177,6 +178,7 @@ build-doxygen-stamp:
 pre-build:: Custom.cmake
 Custom.cmake: debian/Custom.cmake
 	sed -e 's, at PYLIBPATH@,$(PYLIBPATH2),' -e 's, at MTUNE@,$(MTUNE),' \
+		-e 's, at DATE@,$(PACKAGE_DATE),' \
 		debian/Custom.cmake > \
 		Custom.cmake
 

-- 
csound packaging



More information about the pkg-multimedia-commits mailing list