Accepting request 766087 from home:Guillaume_G:branches:openSUSE:Factory:ARM

- Fix build for aarch64/ppc64le (do not update config.sub file
  for libbacktrace)

OBS-URL: https://build.opensuse.org/request/show/766087
OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox?expand=0&rev=797
This commit is contained in:
Wolfgang Rosenauer
2020-01-22 10:26:26 +00:00
committed by Git OBS Bridge
parent 84f4043538
commit abdc4f99a4
2 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jan 21 12:59:54 UTC 2020 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Fix build for aarch64/ppc64le (do not update config.sub file
for libbacktrace)
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jan 8 08:19:12 UTC 2020 - Wolfgang Rosenauer <wr@rosenauer.org> Wed Jan 8 08:19:12 UTC 2020 - Wolfgang Rosenauer <wr@rosenauer.org>

View File

@@ -324,8 +324,14 @@ cd $RPM_BUILD_DIR/%{srcname}-%{orig_version}
%patch101 -p1 %patch101 -p1
%patch102 -p1 %patch102 -p1
%endif # only_print_mozconfig %endif # only_print_mozconfig
# Save config.sub to restore it (for aarch64/ppc64le) later, as it is checked with a checksum
cp ./third_party/rust/backtrace-sys/src/libbacktrace/config.sub ./third_party/rust/backtrace-sys/src/libbacktrace/config.sub.save
cp ./third_party/rust/backtrace-sys/src/libbacktrace/config.guess ./third_party/rust/backtrace-sys/src/libbacktrace/config.guess.save
%build %build
# Restore config.sub file
mv ./third_party/rust/backtrace-sys/src/libbacktrace/config.sub.save ./third_party/rust/backtrace-sys/src/libbacktrace/config.sub
mv ./third_party/rust/backtrace-sys/src/libbacktrace/config.guess.save ./third_party/rust/backtrace-sys/src/libbacktrace/config.guess
%if !%{with only_print_mozconfig} %if !%{with only_print_mozconfig}
# no need to add build time to binaries # no need to add build time to binaries
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")" modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"