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

annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
247
3bbfc36612f3 [sync] imported 6cdbf01..4d14517 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
1 --- a/usr/src/blackmagic-io-12.4.1a15/bm_util.c 2023-03-16 21:21:13.731668636 +0100
3bbfc36612f3 [sync] imported 6cdbf01..4d14517 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
2 +++ b/usr/src/blackmagic-io-12.4.1a15/bm_util.c 2023-03-16 21:23:48.468890382 +0100
3bbfc36612f3 [sync] imported 6cdbf01..4d14517 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
3 @@ -902,7 +902,11 @@
3bbfc36612f3 [sync] imported 6cdbf01..4d14517 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
4 // Random
3bbfc36612f3 [sync] imported 6cdbf01..4d14517 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
5 uint32_t bm_random32(void)
3bbfc36612f3 [sync] imported 6cdbf01..4d14517 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
6 {
3bbfc36612f3 [sync] imported 6cdbf01..4d14517 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
7 -#if KERNEL_VERSION_OR_LATER(3, 8, 0)
3bbfc36612f3 [sync] imported 6cdbf01..4d14517 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
8 +#if KERNEL_VERSION_OR_LATER(6, 1, 0)
3bbfc36612f3 [sync] imported 6cdbf01..4d14517 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
9 + // INOFFICIAL PATCH: prandom_u32() got removed in Linux kernel 6.1, it was a alias to get_random_u32() before
3bbfc36612f3 [sync] imported 6cdbf01..4d14517 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
10 + // see: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.19&id=de492c83cae0af72de370b9404aacda93dafcad5
3bbfc36612f3 [sync] imported 6cdbf01..4d14517 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
11 + return get_random_u32();
3bbfc36612f3 [sync] imported 6cdbf01..4d14517 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
12 +#elif KERNEL_VERSION_OR_LATER(3, 8, 0)
3bbfc36612f3 [sync] imported 6cdbf01..4d14517 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
13 return prandom_u32();
3bbfc36612f3 [sync] imported 6cdbf01..4d14517 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
14 #elif KERNEL_VERSION_OR_LATER(2, 6, 19)
3bbfc36612f3 [sync] imported 6cdbf01..4d14517 from upstream
Migration Sync <gentoo-overlay@megacoffee.net>
parents:
diff changeset
15 return random32();