Mamoru TASAKA wrote on 2021/01/07 22:41:
Mamoru TASAKA wrote on 2021/01/07 16:54:
Current leftovers (wrt library dependency issue):

$ dnf repoquery --repo=koji-ruby30 --qf '%{sourcerpm}' --whatrequires 
"libruby.so.2.7()(64bit)" | cat -n
=================================================================
      3    libyui-bindings-2.0.2-1.fc33.src.rpm

build fails:
https://koji.fedoraproject.org/koji/taskinfo?taskID=59088613
/builddir/build/BUILD/libyui-bindings-59dfa64f05adb40c7da88325255d758f4588ab42/x86_64-redhat-linux-gnu/swig/ruby/yui_ruby.cxx:
 In function 'VALUE YEvent_mywidget(YEvent*)':
/builddir/build/BUILD/libyui-bindings-59dfa64f05adb40c7da88325255d758f4588ab42/x86_64-redhat-linux-gnu/swig/ruby/yui_ruby.cxx:3287:77:
 error: invalid conversion from 'YWidget*' to 'long int' [-fpermissive]
????
Perhaps related to ruby 3.0 change, however for now I don't know in detail.
Note that build for rawhide succeeds:
https://koji.fedoraproject.org/koji/taskinfo?taskID=59089100

Applying the following makes build succeed... however I am not sure if
this is correct approach...
---------------------------------------------------------------------
--- libyui-bindings-59dfa64f05adb40c7da88325255d758f4588ab42/swig/yui.i.ruby30  
  2021-01-07 16:27:19.835043901 +0900
+++ libyui-bindings-59dfa64f05adb40c7da88325255d758f4588ab42/swig/yui.i    
2021-01-07 17:13:28.648458721 +0900
@@ -275,7 +275,7 @@

  #if defined(SWIGRUBY)
  %extend YEvent {
-  VALUE mywidget() { return INT2FIX( $self->widget() ); }
+  VALUE mywidget() { return INT2FIX( (long)$self->widget() ); }
  }
  #endif


Anyway I've applied the above fix for now and build itself now succeeds:
https://koji.fedoraproject.org/koji/buildinfo?buildID=1666141

Asked upstream for verification:
https://github.com/libyui/libyui-bindings/pull/38

Now current leftovers (using old libruby.so.2.7 library):

$ dnf repoquery --repo=koji-ruby30 --qf '%{sourcerpm}' --whatrequires 
"libruby.so.2.7()(64bit)" | cat -n
     1  libsbml-5.18.0-19.fc34.src.rpm
     2  rubygem-debug_inspector-0.0.3-11.fc33.src.rpm
     3  rubygem-mysql2-0.5.3-5.fc33.src.rpm
     4  rubygem-ox-2.12.1-3.fc33.src.rpm
     5  rubygem-raindrops-0.13.0-18.fc33.src.rpm
     6  rubygem-unicode-0.4.4.2-17.fc33.src.rpm

Regards,
Mamoru
_______________________________________________
ruby-sig mailing list -- ruby-sig@lists.fedoraproject.org
To unsubscribe send an email to ruby-sig-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/ruby-sig@lists.fedoraproject.org

Reply via email to