Skip to content

Commit acf6917

Browse files
authored
Merge pull request #838 from shubhamshinde360/PA-6350
(PA-6350) Enable agent-runtime main builds for fedora 40 Intel
2 parents b653211 + 31a0c5f commit acf6917

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

configs/components/_base-ruby-augeas.rb

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
pkg.add_source("file://resources/patches/augeas/ruby-augeas-0.5.0-patch_c_extension.patch")
77

8+
# We can remove the below patch after https://github.com/hercules-team/ruby-augeas/pull/17 is merged.
9+
pkg.add_source("file://resources/patches/augeas/ruby-augeas-0.5.0-patch_remove_unused_parameter.patch")
10+
811
# These can be overridden by the including component.
912
ruby_version ||= settings[:ruby_version]
1013
host_ruby ||= settings[:host_ruby]
@@ -75,6 +78,7 @@
7578
if ruby_version =~ /^3/
7679
build_commands << "#{platform.patch} --strip=2 --fuzz=0 --ignore-whitespace --no-backup-if-mismatch < ../ruby-augeas-0.5.0-patch_c_extension.patch"
7780
end
81+
build_commands << "#{platform.patch} --strip=2 --fuzz=0 --ignore-whitespace --no-backup-if-mismatch < ../ruby-augeas-0.5.0-patch_remove_unused_parameter.patch"
7882
build_commands << "#{ruby} ext/augeas/extconf.rb"
7983
build_commands << "#{platform[:make]} -e -j$(shell expr $(shell #{platform[:num_cores]}) + 1)"
8084

configs/components/_base-ruby-selinux.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878

7979
if ruby_version =~ /^3/
8080
# swig 4.1 generated interface does not need patching
81-
unless platform.name =~ /^(debian-12|ubuntu-24)/
81+
unless platform.name =~ /^(debian-12|ubuntu-24|fedora-40)/
8282
steps << "#{platform.patch} --strip=0 --fuzz=0 --ignore-whitespace --no-backup-if-mismatch < ../selinuxswig_ruby_wrap.patch"
8383
end
8484
end

configs/platforms/fedora-40-x86_64.rb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
platform 'fedora-40-x86_64' do |plat|
2+
plat.inherit_from_default
3+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/ext/augeas/_augeas.c b/ext/augeas/_augeas.c
2+
index f9b49d1..7ef0d7d 100644
3+
--- a/ruby-augeas-0.5.0/ext/augeas/_augeas.c
4+
+++ b/ruby-augeas-0.5.0/ext/augeas/_augeas.c
5+
@@ -184,7 +184,7 @@ VALUE augeas_mv(VALUE s, VALUE src, VALUE dst) {
6+
*
7+
* Remove path and all its children. Returns the number of entries removed
8+
*/
9+
-VALUE augeas_rm(VALUE s, VALUE path, VALUE sibling) {
10+
+VALUE augeas_rm(VALUE s, VALUE path) {
11+
augeas *aug = aug_handle(s);
12+
const char *cpath = StringValueCStr(path) ;

0 commit comments

Comments
 (0)