Skip to content

Commit c22c34c

Browse files
committed
centos7: remove unnecessary python file
This will remove following files * /root/rpmbuild/BUILDROOT/fluent-package-5.2.0-1.el7.x86_64/opt/fluent/lib/ruby/gems/3.2.0/gems/ffi-1.17.0/ext/ffi_c/libffi/generate-darwin-source-and-headers.py * /root/rpmbuild/BUILDROOT/fluent-package-5.2.0-1.el7.x86_64/opt/fluent/lib/ruby/gems/3.2.0/gems/ffi-1.17.0/ext/ffi_c/libffi/testsuite/emscripten/test_libffi.py * /root/rpmbuild/BUILDROOT/fluent-package-5.2.0-1.el7.x86_64/opt/fluent/lib/ruby/gems/3.2.0/gems/ffi-1.17.0/ext/ffi_c/libffi/testsuite/emscripten/conftest.py Signed-off-by: Shizuo Fujita <[email protected]>
1 parent bf0151f commit c22c34c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

fluent-package/Rakefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,10 @@ class BuildTask
11641164
rm_f(static_library)
11651165
end
11661166
end
1167+
Dir.glob("#{fluent_package_staging_dir}/**/libffi/**/*.py").each do |python_file|
1168+
# Remove unnecessary python file to avoid error in brp-python-bytecompile on CentOS 7
1169+
remove_files(python_file)
1170+
end
11671171
Dir.glob("#{fluent_package_staging_dir}/**/.git").each do |git_dir|
11681172
remove_files(git_dir, true)
11691173
end

0 commit comments

Comments
 (0)