gentoo-ebuilds/app-shells/bash/files/bash-5.2_p21-wpointer-to-int.patch
Sam James 4a88769665
Revert "app-shells/bash: remove unused patches"
This reverts commit 92328f4b82.

A user reported in #gentoo:
```
 [ ok ]
 * Applying bash-5.2_p21-wpointer-to-int.patch ...
/var/tmp/portage/app-shells/bash-5.2_p37/temp/environment: line 702: /var/tmp/portage/app-shells/bash-5.2_p37/files/bash-5.2_p21-wpointer-to-int.patch: No such file or directory
/var/tmp/portage/app-shells/bash-5.2_p37/temp/environment: line 705: /var/tmp/portage/app-shells/bash-5.2_p37/files/bash-5.2_p21-wpointer-to-int.patch: No such file or directory
 [ !! ]
 * ERROR: app-shells/bash-5.2_p37::gentoo failed (prepare phase):
 *   patch -p1 -p0 failed with /var/tmp/portage/app-shells/bash-5.2_p37/files/bash-5.2_p21-wpointer-to-int.patch
 *
```

Signed-off-by: Sam James <sam@gentoo.org>
2024-12-07 12:46:50 +00:00

13 lines
512 B
Diff

https://lists.gnu.org/archive/html/bug-bash/2023-03/msg00116.html
https://git.savannah.gnu.org/cgit/bash.git/commit/?h=devel&id=57d4dc15ff35895a1c1248f948f59739ffb99fde
--- lib/sh/random.c
+++ lib/sh/random.c
@@ -90,7 +90,7 @@ genseed ()
u_bits32_t iv;
gettimeofday (&tv, NULL);
- iv = (u_bits32_t)seedrand; /* let the compiler truncate */
+ iv = (uintptr_t)seedrand; /* let the compiler truncate */
iv = tv.tv_sec ^ tv.tv_usec ^ getpid () ^ getppid () ^ current_user.uid ^ iv;
return (iv);
}