Skip to content

(PA-5430) Patch augeas C extension #667

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

AriaXLi
Copy link
Contributor

@AriaXLi AriaXLi commented May 15, 2023

This issue is very similar to PA-4844 (#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

@AriaXLi AriaXLi requested review from a team as code owners May 15, 2023 21:52
@AriaXLi AriaXLi force-pushed the PA-5430/patch_augeas_c_extension branch from 5558acd to b23e114 Compare May 15, 2023 22:02
@puppetlabs puppetlabs deleted a comment from github-actions bot May 15, 2023
@AriaXLi AriaXLi force-pushed the PA-5430/patch_augeas_c_extension branch from b23e114 to c036844 Compare May 15, 2023 22:32
@puppetlabs puppetlabs deleted a comment from github-actions bot May 15, 2023
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
@AriaXLi AriaXLi force-pushed the PA-5430/patch_augeas_c_extension branch from c036844 to 3b22df1 Compare May 16, 2023 22:42
@AriaXLi
Copy link
Contributor Author

AriaXLi commented May 16, 2023

Without my changes the warning will pop up:

[root@morose-varnish ~]# /opt/puppetlabs/puppet/bin/ruby -e "require 'augeas'; Augeas.open('/')"
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/augeas.rb:48: warning: undefining the allocator of T_DATA class Augeas

With my changes the warning does not pop up:

[root@insipid-calumny ~]# /opt/puppetlabs/puppet/bin/ruby -e "require 'augeas'; Augeas.open('/')"
[root@insipid-calumny ~]#

@github-actions

This comment was marked as off-topic.

@puppetlabs puppetlabs deleted a comment from github-actions bot May 16, 2023
@AriaXLi
Copy link
Contributor Author

AriaXLi commented May 16, 2023

@joshcooper joshcooper merged commit b7c59a9 into puppetlabs:master May 16, 2023
@AriaXLi AriaXLi deleted the PA-5430/patch_augeas_c_extension branch May 16, 2023 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants