Bug 1782988 - Avoid build bustage when building against glibc 2.36 or newer. r=RyanVM
authorMike Hommey <mh+mozilla@glandium.org>
Tue, 9 Aug 2022 20:42:44 +0000 (20:42 +0000)
committerMike Hommey <glandium@debian.org>
Tue, 15 Nov 2022 21:20:30 +0000 (21:20 +0000)
Differential Revision: https://phabricator.services.mozilla.com/D153716

Gbp-Pq: Topic fixes
Gbp-Pq: Name Bug-1782988-Avoid-build-bustage-when-building-agains.patch

ipc/chromium/src/third_party/libevent/README.mozilla
ipc/chromium/src/third_party/libevent/linux/event2/event-config.h

index c2fcb5a1f424e34fe055c6c6febeaa365727bab8..3518aa6ee5344e18d4189dfe290b7e2daefc2ace 100644 (file)
@@ -22,6 +22,10 @@ distinguish the two cases. If you get something wrong, the CHECK_EVENT_SIZEOF
 static assertions in message_pump_libevent.cc will fail. If a new constant is
 added, also add a static assertion for it to message_pump_libevent.cc.
 
+You also need to modify the EVENT__HAVE_ARC4RANDOM and EVENT__HAVE_ARC4RANDOM_BUF
+constants in the generated Linux header to account for the results of the arc4random
+and arc4random_buf configure checks.
+
 2. No additional patches are needed at this time, but be careful to avoid
 clobbering changes to the various event-config.h files which have been customized
 over time to avoid various build bustages.
index 101d39d4551070558ed2c2f7ff2442763dbc64fa..49864f74006f8e5a7d3876f45fd74605d516b2a7 100644 (file)
 /* Define to 1 if you have the <afunix.h> header file. */
 /* #undef EVENT__HAVE_AFUNIX_H 1 */
 
+#ifdef HAVE_ARC4RANDOM
 /* Define to 1 if you have the `arc4random' function. */
-/* #undef EVENT__HAVE_ARC4RANDOM */
+#define EVENT__HAVE_ARC4RANDOM 1
+#endif
 
 /* Define to 1 if you have the `arc4random_addrandom' function. */
 /* #undef EVENT__HAVE_ARC4RANDOM_ADDRANDOM */
 
+#ifdef HAVE_ARC4RANDOM_BUF
 /* Define to 1 if you have the `arc4random_buf' function. */
-/* #undef EVENT__HAVE_ARC4RANDOM_BUF */
+#define EVENT__HAVE_ARC4RANDOM_BUF 1
+#endif
 
 /* Define to 1 if you have the <arpa/inet.h> header file. */
 #define EVENT__HAVE_ARPA_INET_H 1