Allow to override build date
Development toolkit for Web Services and XML data bindings for C & C++
Brought to you by:
engelen
Allow to override build date
Without this patch, virtualbox's gsoapH_from_gsoap.h file and resulting .so
files (via build-id hash) always differed between builds.
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 patch was done while working on reproducible builds for openSUSE.
Thank you for contributing to the gsoap project. Will update the project soon.
The generated soapC.cpp has also a timestamp in it. It is in the source code and thus leads to trouble with ccache in our environment. See https://sourceforge.net/p/gsoap2/code/HEAD/tree/gsoap/samples/calc_xcode/soapC.cpp#l21 for example where
SOAP_SOURCE_STAMP("@(#) soapC.cpp ver 2.8.135 2024-07-01 20:02:42 GMT")
is written to the cpp file. Please also replace the timestamp there.
The provided path is only for the wsdl2h executable not for soapcpp2. Please add support to soapcpp2 also.
Thanks.