From 240c5bec9351a246762f7e2a05c421b9e4db1673 Mon Sep 17 00:00:00 2001 From: Shizuo Fujita Date: Fri, 26 Jun 2026 13:43:39 +0900 Subject: [PATCH 1/2] gem: remove copyright-header to bypass charlock_holmes build failure `charlock_holmes` (0.7.9) fails to build its native extension on environments with GCC 16.1.1 and ICU 78 due to C++ compatibility issues. Since `copyright-header` is a development utility used for inserting copyright notices into source files, removing it has no impact on the core functionality of the application. This change unblocks `bundle update` on modern environments by removing the dependency chain: copyright-header -> github-linguist -> charlock_holmes. --- Gemfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Gemfile b/Gemfile index a30e105..4e3edc6 100644 --- a/Gemfile +++ b/Gemfile @@ -5,7 +5,6 @@ source 'https://rubygems.org' gem 'bump' gem 'bundler' gem 'codeclimate-test-reporter', '< 1.0.0', require: false -gem 'copyright-header' gem 'minitest', '~> 5.0' # minitest/mock was removed in minitest 6.0, so we need to use minitest 5.x for now gem 'rake' gem 'rubocop' From 2bcab21d04cd3f195072c6832324f10ffe987325 Mon Sep 17 00:00:00 2001 From: Shizuo Fujita Date: Fri, 26 Jun 2026 17:55:01 +0900 Subject: [PATCH 2/2] Remove headers task --- Rakefile | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/Rakefile b/Rakefile index 4c55111..eac6c60 100644 --- a/Rakefile +++ b/Rakefile @@ -19,22 +19,3 @@ Rake::TestTask.new(:base_test) do |task| task.pattern = 'test/**/test_*.rb' task.warning = false end - -desc 'Add copyright headers' -task :headers do - require 'rubygems' - require 'copyright_header' - - args = { - license: 'Apache-2.0', - copyright_software: 'Fluentd Kubernetes Metadata Filter Plugin', - copyright_software_description: 'Enrich Fluentd events with Kubernetes metadata', - copyright_holders: ['Red Hat, Inc.'], - copyright_years: ['2015-2021'], - add_path: 'lib:test', - output_dir: '.' - } - - command_line = CopyrightHeader::CommandLine.new(args) - command_line.execute -end