Accepting request 492390 from home:bmwiedemann:branches:devel:languages:pascal

Make build more reproducible

OBS-URL: https://build.opensuse.org/request/show/492390
OBS-URL: https://build.opensuse.org/package/show/devel:languages:pascal/lazarus?expand=0&rev=37
This commit is contained in:
Mikhail Terekhov 2017-05-02 21:52:16 +00:00 committed by Git OBS Bridge
parent b78daf407a
commit e24be7a5ae
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 2 04:56:49 UTC 2017 - bwiedemann@suse.com
- Make build more reproducible
-------------------------------------------------------------------
Tue Feb 7 18:31:12 UTC 2017 - mailaender@opensuse.org

View File

@ -106,6 +106,12 @@ dos2unix examples/trayicon/wndtray.*
# fix rpmlint error "spurious-executable-perm"
chmod 644 docs/booth/ProdProgEntwMitOpenSourceSystems2007.odp
if [[ $SOURCE_DATE_EPOCH ]] ; then
datestr=$(date -u "-d@$SOURCE_DATE_EPOCH" +%Y/%m/%d)
sed -i -e "s!{\$I %%date%%}!'$datestr'!" \
ide/ideinfodlg.pas ide/aboutfrm.pas ide/idefpcinfo.pas
touch -d@$SOURCE_DATE_EPOCH ide/ideinfodlg.pas ide/aboutfrm.pas ide/idefpcinfo.pas # reset source timestamps because they are embedded in compiled files
fi
%build
# Don't use -gs (use explicitly "stabs" debuginfo) for compiling lhelp but -g (use the default debuginfo type "dwarf") as in the rest of package's Makefiles