Accepting request 780364 from devel:languages:php

- Sort contents of .filemap to make build reproducible

OBS-URL: https://build.opensuse.org/request/show/780364
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/php7-pear?expand=0&rev=3
This commit is contained in:
Dominique Leuenberger 2020-03-03 09:14:13 +00:00 committed by Git OBS Bridge
commit a96763eaeb
2 changed files with 13 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,13 @@ 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 '$filemap = unserialize(file_get_contents("%{buildroot}%{metadir}/.filemap"));
ksort($filemap);
foreach($filemap as &$value) {
ksort($value);
}
file_put_contents("%{buildroot}%{metadir}/.filemap", serialize($filemap));'
pushd %{buildroot}%{peardir}
patch -p1 < %{PATCH0}
popd