forked from puppetlabs/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.
This issue is very similar to PA-4844 (puppetlabs#620) except it affects augeas instead of selinux When puppet is run with Ruby 3.2, this warning is generated: `/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/augeas.rb:48: warning: undefining the allocator of T_DATA class Augeas` This commit patches the autogenerated augeas C extension so there is no warning for augeas
- Loading branch information
Showing
2 changed files
with
17 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
12 changes: 12 additions & 0 deletions
12
resources/patches/augeas/ruby-augeas-0.5.0-patch_c_extension.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,12 @@ | ||
diff --git a/ruby-augeas-0.5.0/ext/augeas/_augeas.c b/ruby-augeas-0.5.0/ext/augeas/_augeas.c | ||
index 95d9e05024..7aac0eb96d 100644 | ||
--- a/ruby-augeas-0.5.0/ext/augeas/_augeas.c | ||
+++ b/ruby-augeas-0.5.0/ext/augeas/_augeas.c | ||
@@ -489,6 +489,7 @@ void Init__augeas() { | ||
|
||
/* Define the ruby class */ | ||
c_augeas = rb_define_class("Augeas", rb_cObject) ; | ||
+ rb_undef_alloc_func(c_augeas); | ||
|
||
/* Constants for enum aug_flags */ | ||
#define DEF_AUG_FLAG(name) \ |