megacoffee.net Gentoo overlay - legacy mirror
We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/media-libs/blackmagic-desktop-video/files/12.4.1__6_1__01_prandom_u32.patch Thu Mar 16 21:30:02 2023 +0000 @@ -0,0 +1,15 @@ +--- 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();