fluent / fluent-package-builder

td-agent (Fluentd) Building and Packaging System
Apache License 2.0
22 stars 25 forks source link

Update bundle gems #522

Closed kenhys closed 1 year ago

kenhys commented 1 year ago

It aims to check dependency tree.

kenhys commented 1 year ago

MEMO: https://github.com/tarcieri/cool.io/issues/77

kenhys commented 1 year ago

for RHEL8,RHEL9,AL2 build fails.

kenhys commented 1 year ago

This is side effect of upgraging rdkafka 0.11.1 to 0.12.0. Check librdkafka 1.9.0.

kenhys commented 1 year ago

Using rdkafka-0.13.0.beta.8 try to use librdkafka 2.0.2, but it also fails to build.


Bundler::InstallError: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.                                                                    

    current directory: /root/rpmbuild/BUILDROOT/fluent-package-5.0.0-1.el9.x86_64/opt/fluent/lib/ruby/gems/3.2.0/gems/rdkafka-0.13.0.beta.8/ext              
/opt/fluent/bin/ruby -rrubygems /opt/fluent/lib/ruby/gems/3.2.0/gems/rake-13.0.6/exe/rake RUBYARCHDIR\=/root/rpmbuild/BUILDROOT/fluent-package-5.0.0-1.el9.x8
6_64/opt/fluent/lib/ruby/gems/3.2.0/extensions/x86_64-linux/3.2.0/rdkafka-0.13.0.beta.8 RUBYLIBDIR\=/root/rpmbuild/BUILDROOT/fluent-package-5.0.0-1.el9.x86_6
4/opt/fluent/lib/ruby/gems/3.2.0/extensions/x86_64-linux/3.2.0/rdkafka-0.13.0.beta.8
Downloading v2.0.2 (100%)                                                                                                                                    
Extracting v2.0.2 into tmp/x86_64-redhat-linux/ports/librdkafka/2.0.2... OK
Running 'configure' for librdkafka 2.0.2... OK                                                                                                               
Running 'compile' for librdkafka 2.0.2... OK                                                                                                                 
Running 'install' for librdkafka 2.0.2... ERROR. Please review logs to see what happened:
----- contents of '/root/rpmbuild/BUILDROOT/fluent-package-5.0.0-1.el9.x86_64/opt/fluent/lib/ruby/gems/3.2.0/gems/rdkafka-0.13.0.beta.8/ext/tmp/x86_64-redhat
-linux/ports/librdkafka/2.0.2/install.log' -----                                                                                                             
make[1]: Entering directory '/root/rpmbuild/BUILDROOT/fluent-package-5.0.0-1.el9.x86_64/opt/fluent/lib/ruby/gems/3.2.0/gems/rdkafka-0.13.0.beta.8/ext/tmp/x86
_64-redhat-linux/ports/librdkafka/2.0.2/librdkafka-2.0.2/src'                                                                                                
Install librdkafka to /root/rpmbuild/BUILDROOT/fluent-package-5.0.0-1.el9.x86_64/opt/fluent/lib/ruby/gems/3.2.0/gems/rdkafka-0.13.0.beta.8/ext/ports/x86_64-r
edhat-linux/librdkafka/2.0.2                                                                                                                                 
d $DESTDIR/root/rpmbuild/BUILDROOT/fluent-package-5.0.0-1.el9.x86_64/opt/fluent/lib/ruby/gems/3.2.0/gems/rdkafka-0.13.0.beta.8/ext/ports/x86_64-redhat-linux/
librdkafka/2.0.2/include/librdkafka                                                                                                                          
/bin/sh: line 1: d: command not found                                                                                                                        
make[1]: [../mklove/Makefile.base:269: lib-install] Error 127 (ignored)
d $DESTDIR/root/rpmbuild/BUILDROOT/fluent-package-5.0.0-1.el9.x86_64/opt/fluent/lib/ruby/gems/3.2.0/gems/rdkafka-0.13.0.beta.8/ext/ports/x86_64-redhat-linux/
librdkafka/2.0.2/lib
/bin/sh: line 1: d: command not found                                                                                                                        
make[1]: [../mklove/Makefile.base:270: lib-install] Error 127 (ignored)                                                                                      
rdkafka.h rdkafka_mock.h $DESTDIR/root/rpmbuild/BUILDROOT/fluent-package-5.0.0-1.el9.x86_64/opt/fluent/lib/ruby/gems/3.2.0/gems/rdkafka-0.13.0.beta.8/ext/por
ts/x86_64-redhat-linux/librdkafka/2.0.2/include/librdkafka                                                                                                   
/bin/sh: line 1: rdkafka.h: command not found                                                                                                                
make[1]: *** [../mklove/Makefile.base:271: lib-install] Error 127             
make[1]: Leaving directory '/root/rpmbuild/BUILDROOT/fluent-package-5.0.0-1.el9.x86_64/opt/fluent/lib/ruby/gems/3.2.0/gems/rdkafka-0.13.0.beta.8/ext/tmp/x86_
64-redhat-linux/ports/librdkafka/2.0.2/librdkafka-2.0.2/src'                                                                                                 
make: *** [Makefile:44: install-subdirs] Error 2                                                                                                             
----- end of file -----                                                                                                                                      
rake aborted!
kenhys commented 1 year ago

rdkafka 0.11.1 era, it uses librdkafka 1.8.2.

kenhys commented 1 year ago

Using rdkafka-0.13.0.beta.8 try to use librdkafka 2.0.2, but it also fails to build.

maybe related: https://github.com/confluentinc/librdkafka/issues/3974

kenhys commented 1 year ago

fixed via cf788aa3

kenhys commented 1 year ago

Send feedback as https://github.com/confluentinc/librdkafka/pull/4353

kenhys commented 1 year ago

It seems that there is a blocker to upgrade to bundler 2.4.10.

ashie commented 1 year ago

It seems good to be merged to apply recent gems. We can re-update them in another PR before releasing v5 if needed.