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.
view media-libs/blackmagic-desktop-video/files/12.4.1__6_1__01_prandom_u32.patch @ 271:42f152f7bd51 default tip
[sync] imported 19745ea..26957c3 from upstream
commit 26957c37396048346e2760cf909dce89f35961ae
Author: Daniel Neugebauer <dneuge@energiequant.de>
Date: Mon May 19 21:10:04 2025 +0200
app-misc/qutescoop: force X11 compatibility mode on Wayland to work around OpenGL corruption
author | Migration Sync <gentoo-overlay@megacoffee.net> |
---|---|
date | Mon, 19 May 2025 19:15:01 +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();