community/ruby-posix-spawn: fix build with GCC 14

This commit is contained in:
Ariadne Conill 2024-09-08 15:16:23 -07:00
parent 8ab342cf19
commit 461bebc770
2 changed files with 14 additions and 1 deletions

View File

@ -14,7 +14,8 @@ options="!check" # tests fail on builders, cannot reproduce locally
source="$pkgname-$pkgver.tar.gz::https://github.com/rtomayko/$_gemname/archive/v$pkgver.tar.gz
gemspec.patch
tests-skip-failing.patch
rakefile-skip-build.patch"
rakefile-skip-build.patch
gcc14.patch"
builddir="$srcdir/$_gemname-$pkgver"
build() {
@ -52,4 +53,5 @@ c019ee4eab90ea0f1c603f91e9ca78978a513c9ade97871398ff8812a8b6f219346c267984957e9d
d22ae3c61aa41681de23e32b77404c06e68e3919af9f98d881fb499788ba9dab52d909c6a5b42fcf77a1ec61c9a2709129150cb50a355365809f5775359e5243 gemspec.patch
d0ab5f3adb0245dc82f499bd87a6a360c13eb86642630d90bfad062adcf24213e2ce00245b296c73a6b0b14294b1f946afd651977a23d85f49fa11b7f5067954 tests-skip-failing.patch
32b61aeec77209b26f7944c796f7f14c0f4c3625d1952ccaa7bc5bc1e0754926e0731551fc7b5bb4196a767a452ae48c7a58deb39ea079654df2191d41220c2f rakefile-skip-build.patch
89056941ed830b31999aae89c23892c16859f57cbf9535cd645f9705278c25fd9cb81c9be9410ce6d67e99679912e984d809c97fe4e8192b21467bf247fc3d92 gcc14.patch
"

View File

@ -0,0 +1,11 @@
--- posix-spawn-0.3.15.orig/ext/posix-spawn.c
+++ posix-spawn-0.3.15/ext/posix-spawn.c
@@ -223,7 +223,7 @@
posixspawn_file_actions_init(posix_spawn_file_actions_t *fops, VALUE options)
{
posix_spawn_file_actions_init(fops);
- rb_hash_foreach(options, posixspawn_file_actions_operations_iter, (VALUE)fops);
+ rb_hash_foreach(options, (void *) posixspawn_file_actions_operations_iter, (VALUE)fops);
}
/*