diff options
| author | Thomas Koch <thomas@koch.ro> | 2022-07-10 09:13:34 +0000 |
|---|---|---|
| committer | Thomas Koch <thomas@koch.ro> | 2022-07-10 11:32:38 +0000 |
| commit | 3116713672bbcf6aec50439537e451646bc9a11a (patch) | |
| tree | c8013678c0717a945b17a9399f73b859d9c0eb32 /build.xml | |
| parent | 572558244ab21c565f40f476ab6894c3b0f17909 (diff) | |
rm buildDate from build.xml and its usages
The https://reproducible-builds.org project invests a lot of work
to make builds reproducible. This is a security property. It allows
to compare the build of binaries from different builder machines.
If they are identical, it means that either the builds have not
been manipulated or an attacker managed to attack all builder
machines in exactly the same way.
One problem that the reproducible-builds project often sees is
that projects include the build time in their binaries. This
makes builds unreproducible for apparently no reason. The build
date should not be of interest since binaries built on different
dates but from the same source code should not be different.
Thus I decided to remove the build date instead of re-implementing
the functionality without the GitRev task. Anyways the reported
date was not the build date but the date of the last git commit
which is even less informative. The git commit ID would have
information value but should only be relevant for "nightly builds".
Diffstat (limited to 'build.xml')
| -rw-r--r-- | build.xml | 22 |
1 files changed, 5 insertions, 17 deletions
@@ -30,11 +30,6 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --> - <!-- defining the timestamp format --> - <tstamp> - <format property="REPL_DATE_FORMAT" pattern="yyyymmdd" /> - </tstamp> - <!-- defining all needed directory names --> <property name="yacyroot" location="."/> <property name="addon" location="addon"/> @@ -143,10 +138,6 @@ <mkdir dir="${data}"/> <mkdir dir="${release}"/> - <!-- YaCy Release Date --> - <filter token="REPL_DATE" value="${DSTAMP}"/> - <filter token="REPL_RELEASE" value="${stdReleaseFile}"/> - <!-- YaCy Release Version number --> <echo message="YaCy Version number: ${releaseVersion}" /> <filter token="REPL_VERSION" value="${releaseVersion}" /> @@ -155,14 +146,11 @@ <echo message="YaCy Release number: ${releaseNr}" /> <filter token="REPL_REVISION_NR" value="${releaseNr}"/> - <!-- YaCy root directory --> - <filter token="REPL_YACY_ROOT_DIR" value="${yacyroot}"/> - <!-- apply replacments --> <copy file="${src}/net/yacy/peers/operation/yacyBuildProperties.java.template" tofile="${src}/net/yacy/peers/operation/yacyBuildProperties.java" overwrite="true" filtering="true" /> <!-- copy log4j config file --> - <copy file="${src}/log4j.properties" tofile="${build}/log4j.properties" overwrite="true" filtering="true" /> <!-- @TODO: obsolete, contains no replace/filter pattern --> + <copy file="${src}/log4j.properties" tofile="${build}/log4j.properties" overwrite="true" filtering="false" /> <!-- @TODO: obsolete, contains no replace/filter pattern --> </target> @@ -591,8 +579,8 @@ <classpath location="${libbuild}/nsisant-1.2.jar"/> </taskdef> <nsis script="${release_windows}/build.nsi" nocd="yes" verbosity="2" /> - <move file="${release_windows}/yacy_v${releaseVersion}_${DSTAMP}_${releaseNr}.exe" - tofile="${release}/yacy_v${releaseVersion}_${DSTAMP}_${releaseNr}.exe" /> + <move file="${release_windows}/yacy_v${releaseVersion}_${releaseNr}.exe" + tofile="${release}/yacy_v${releaseVersion}_${releaseNr}.exe" /> <delete dir="${release_main}"/> <delete dir="${release_windows}" failonerror="false" /> @@ -602,13 +590,13 @@ <copy todir="${release_mac}/YaCy.app"> <fileset dir="${addon}/YaCy.app"></fileset> </copy> - <copy file="${addon}/YaCy.app/Contents/Info.plist" tofile="${release_mac}/YaCy.app/Contents/Info.plist" filtering="true" overwrite="true" /> + <copy file="${addon}/YaCy.app/Contents/Info.plist" tofile="${release_mac}/YaCy.app/Contents/Info.plist" filtering="false" overwrite="true" /> <move file="${release_main}" tofile="${release_mac}/YaCy.app/Contents/MacOS" verbose="false" /> <!-- startYACY.sh and startYACYMacOS.sh will be the main entry points : we set permissions to make it executable files --> <chmod file="${release_mac}/YaCy.app/Contents/MacOS/startYACYMacOS.sh" perm="755"/> <chmod file="${release_mac}/YaCy.app/Contents/MacOS/startYACY.sh" perm="755"/> <exec executable="hdiutil"> - <arg line="create -srcfolder ${release_mac}/YaCy.app ${release}/yacy_v${releaseVersion}_${DSTAMP}_${releaseNr}.dmg"/> + <arg line="create -srcfolder ${release_mac}/YaCy.app ${release}/yacy_v${releaseVersion}_${releaseNr}.dmg"/> </exec> <delete dir="${release_mac}" failonerror="false" verbose="false" /> </target> |
