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

comparison media-libs/blackmagic-desktop-video/files/12.4.1__6_1__01_prandom_u32.patch @ 247:3bbfc36612f3

[sync] imported 6cdbf01..4d14517 from upstream commit 4d1451762f196bc7ccdd0a352ca4ee5c04dac787 Author: Daniel Neugebauer <dneuge@energiequant.de> Date: Thu Mar 16 22:19:10 2023 +0100 media-libs/blackmagic-desktop-video-sdk-12.4.1: remove precompiled binaries by default commit ad0224e73a84749146584393e2c66636e74a6d4f Author: Daniel Neugebauer <dneuge@energiequant.de> Date: Thu Mar 16 22:03:57 2023 +0100 updated BlackMagic ebuilds to Desktop Video 12.4.1 release
author Migration Sync <gentoo-overlay@megacoffee.net>
date Thu, 16 Mar 2023 21:30:02 +0000
parents
children
comparison
equal deleted inserted replaced
246:b4f83f7a0863 247:3bbfc36612f3
1 --- a/usr/src/blackmagic-io-12.4.1a15/bm_util.c 2023-03-16 21:21:13.731668636 +0100
2 +++ b/usr/src/blackmagic-io-12.4.1a15/bm_util.c 2023-03-16 21:23:48.468890382 +0100
3 @@ -902,7 +902,11 @@
4 // Random
5 uint32_t bm_random32(void)
6 {
7 -#if KERNEL_VERSION_OR_LATER(3, 8, 0)
8 +#if KERNEL_VERSION_OR_LATER(6, 1, 0)
9 + // INOFFICIAL PATCH: prandom_u32() got removed in Linux kernel 6.1, it was a alias to get_random_u32() before
10 + // see: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.19&id=de492c83cae0af72de370b9404aacda93dafcad5
11 + return get_random_u32();
12 +#elif KERNEL_VERSION_OR_LATER(3, 8, 0)
13 return prandom_u32();
14 #elif KERNEL_VERSION_OR_LATER(2, 6, 19)
15 return random32();