We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.

view media-libs/blackmagic-desktop-video/files/12.4.1__6_1__01_prandom_u32.patch @ 258:1767728323bb

[sync] imported 4c2cea0..04d1b06 from upstream commit 04d1b06f1ef195542b349745a54363216d62a85a Author: Daniel Neugebauer <dneuge@energiequant.de> Date: Mon Aug 7 19:03:55 2023 +0200 media-libs/blackmagic-desktop-video: integrate udev_reload as asked commit e978764acb35ba478b0a9c01782adc148a2c9dd5 Author: Daniel Neugebauer <dneuge@energiequant.de> Date: Mon Aug 7 18:53:27 2023 +0200 BlackMagic Desktop Video: bump to 12.5 (SDK 12.5.1)
author Migration Sync <gentoo-overlay@megacoffee.net>
date Mon, 07 Aug 2023 17:15:02 +0000
parents 3bbfc36612f3
children
line wrap: on
line source

--- a/usr/src/blackmagic-io-12.4.1a15/bm_util.c	2023-03-16 21:21:13.731668636 +0100
+++ b/usr/src/blackmagic-io-12.4.1a15/bm_util.c	2023-03-16 21:23:48.468890382 +0100
@@ -902,7 +902,11 @@
 // Random
 uint32_t bm_random32(void)
 {
-#if KERNEL_VERSION_OR_LATER(3, 8, 0)
+#if KERNEL_VERSION_OR_LATER(6, 1, 0)
+	// INOFFICIAL PATCH: prandom_u32() got removed in Linux kernel 6.1, it was a alias to get_random_u32() before
+	// see: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.19&id=de492c83cae0af72de370b9404aacda93dafcad5
+	return get_random_u32();
+#elif KERNEL_VERSION_OR_LATER(3, 8, 0)
 	return prandom_u32();
 #elif KERNEL_VERSION_OR_LATER(2, 6, 19)
 	return random32();