Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:bmwiedemann:reproducible:test
mono-core
reproducible.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File reproducible.patch of Package mono-core
commit 3407e9110e398d7c3ad48ee3fcf537417270dfb1 Author: Bernhard M. Wiedemann <bwiedemann@suse.de> Date: Mon Aug 10 05:20:25 2020 +0200 Allow to override build date with SOURCE_DATE_EPOCH in order to make builds reproducible. See https://reproducible-builds.org/ for why this is good and https://reproducible-builds.org/specs/source-date-epoch/ for the definition of this variable. This date call works with different variants of the date command. Also use UTC to be independent of timezone. This helps a bit towards deterministic mono builds = issue #20172 This PR was done while working on reproducible builds for openSUSE. Index: mono-6.12.0.107/mono/mini/Makefile.am =================================================================== --- mono-6.12.0.107.orig/mono/mini/Makefile.am +++ mono-6.12.0.107/mono/mini/Makefile.am @@ -232,16 +232,17 @@ AM_CPPFLAGS = $(LIBGC_CPPFLAGS) mono_sgen_SOURCES = mono_sgen_CFLAGS = $(AM_CFLAGS) @CXX_REMOVE_CFLAGS@ +BUILD_DATE = $(shell SOURCE_DATE_EPOCH="$${SOURCE_DATE_EPOCH:-$$(date +%s)}" ;date -u -d "@$$SOURCE_DATE_EPOCH" 2>/dev/null || date -u -r "$$SOURCE_DATE_EPOCH" 2>/dev/null || date -u) # We build this after libmono was built so it contains the date when the final # link was done if SUPPORT_BOEHM buildver-boehm.h: libmini.la $(monodir)/mono/metadata/libmonoruntime.la - @echo "const char *build_date = \"`date`\";" > buildver-boehm.h + @echo "const char *build_date = \"$(BUILD_DATE)\";" > buildver-boehm.h libmain_a-main.$(OBJEXT): buildver-boehm.h endif buildver-sgen.h: libmini.la $(monodir)/mono/metadata/libmonoruntimesgen.la $(monodir)/mono/sgen/libmonosgen.la - @echo "const char *build_date = \"`date`\";" > buildver-sgen.h + @echo "const char *build_date = \"$(BUILD_DATE)\";" > buildver-sgen.h libmain_a-main-sgen.$(OBJEXT): buildver-sgen.h
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor