Accepting request 780322 from home:adkorte

Sort contents of .filemap to make build reproducible

OBS-URL: https://build.opensuse.org/request/show/780322
OBS-URL: https://build.opensuse.org/package/show/devel:languages:php/php7-pear?expand=0&rev=17
This commit is contained in:
Arjen de Korte 2020-02-28 15:41:24 +00:00 committed by Git OBS Bridge
parent 086bc75037
commit 80ca2a36ea
2 changed files with 14 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Feb 28 08:33:14 UTC 2020 - Arjen de Korte <suse+build@de-korte.org>
- Sort contents of .filemap to make build reproducible
-------------------------------------------------------------------
Sat Dec 7 22:57:56 UTC 2019 - Arjen de Korte <suse+build@de-korte.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package php7-pear
#
# Copyright (c) 2019 SUSE LLC
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -98,6 +98,14 @@ php -d date.timezone=UTC -d memory_limit=64M -d short_open_tag=0 -d safe_mode=0
--metadata %{metadir} \
--www %{peardir}/htdocs
php -r '$line = file_get_contents("%{buildroot}%{metadir}/.filemap");
$filemap = unserialize($line);
ksort($filemap);
foreach($filemap as &$value) {
ksort($value);
}
file_put_contents("%{buildroot}%{metadir}/.filemap", serialize($filemap));'
pushd %{buildroot}%{peardir}
patch -p1 < %{PATCH0}
popd