From a23c216427e79d6572acc3bfccfbfc345e76fe01 Mon Sep 17 00:00:00 2001 From: Martin Stransky Date: Wed, 17 Aug 2022 10:30:53 +0200 Subject: [PATCH] Added build fix --- D154024.diff | 17 +++++++++++++++++ firefox.spec | 7 ++++++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 D154024.diff diff --git a/D154024.diff b/D154024.diff new file mode 100644 index 0000000..776f40b --- /dev/null +++ b/D154024.diff @@ -0,0 +1,17 @@ +diff --git a/toolkit/crashreporter/client/ping.cpp b/toolkit/crashreporter/client/ping.cpp +--- a/toolkit/crashreporter/client/ping.cpp ++++ b/toolkit/crashreporter/client/ping.cpp +@@ -51,11 +51,11 @@ + CFUUIDBytes bytes = CFUUIDGetUUIDBytes(uuid); + memcpy(&id, &bytes, sizeof(UUID)); + + CFRelease(uuid); + #elif defined(HAVE_ARC4RANDOM_BUF) // Android, BSD, ... +- arc4random_buf(id, sizeof(UUID)); ++ arc4random_buf(&id, sizeof(UUID)); + #else // Linux + int fd = open("/dev/urandom", O_RDONLY); + + if (fd == -1) { + return ""; + diff --git a/firefox.spec b/firefox.spec index 6b96147..310a1e2 100644 --- a/firefox.spec +++ b/firefox.spec @@ -181,7 +181,7 @@ ExcludeArch: aarch64 Summary: Mozilla Firefox Web browser Name: firefox Version: 104.0 -Release: 1%{?pre_tag}%{?dist} +Release: 2%{?pre_tag}%{?dist} URL: https://www.mozilla.org/firefox/ License: MPLv1.1 or GPLv2+ or LGPLv2+ Source0: https://archive.mozilla.org/pub/firefox/releases/%{version}%{?pre_version}/source/firefox-%{version}%{?pre_version}.source.tar.xz @@ -236,6 +236,7 @@ Patch61: firefox-glibc-dynstack.patch Patch62: build-python.patch Patch71: 0001-GLIBCXX-fix-for-GCC-12.patch Patch77: build-python-3.11.patch +Patch78: D154024.diff # Test patches # Generate without context by @@ -500,6 +501,7 @@ This package contains results of tests executed during build. %patch54 -p1 -b .1669639 %patch71 -p1 -b .0001-GLIBCXX-fix-for-GCC-12 %patch77 -p1 -b .build-python-3.11 +%patch78 -p1 -b .D154024 # Test patches #%patch100 -p1 -b .firefox-tests-xpcshell @@ -1119,6 +1121,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : #--------------------------------------------------------------------- %changelog +* Wed Aug 17 2022 Martin Stransky - 104.0-2 +- Added build fixes + * Tue Aug 16 2022 Martin Stransky - 104.0-1 - Updated to 104.0