forked from puppetlabs-toy-chest/puppet-runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request puppetlabs-toy-chest#864 from AriaXLi/patch_selinu…
…xswig_ruby_wrap_c (PA-6549) Patch selinux_ruby_wrap.c to fix warning: undefining the allocator of T_DATA class # SWIG::TYPE_p_selabel_handle
- Loading branch information
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
resources/patches/ruby-selinux/selinuxswig_ruby_undefining_allocator.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- selinuxswig_ruby_wrap.c.orig 2024-06-11 20:02:30.112707265 +0000 | ||
+++ selinuxswig_ruby_wrap.c 2024-06-11 22:34:16.000151780 +0000 | ||
@@ -1510,7 +1510,7 @@ | ||
_cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject); | ||
rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new"); | ||
} | ||
- rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer); | ||
+ rb_undef_alloc_func(rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer)); | ||
free((void *) klass_name); | ||
} |
10 changes: 10 additions & 0 deletions
10
resources/patches/ruby-selinux/undefining_allocator_el_7.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- selinuxswig_ruby_wrap_orig.c 2024-06-14 18:03:11.946019756 +0000 | ||
+++ selinuxswig_ruby_wrap.c 2024-06-14 18:08:23.057169863 +0000 | ||
@@ -1486,7 +1486,7 @@ | ||
_cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject); | ||
rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new"); | ||
} | ||
- klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer); | ||
+ rb_undef_alloc_func(rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer)); | ||
free((void *) klass_name); | ||
} |