Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for DragonFly BSD #5768

Open
tuxillo opened this issue Jun 21, 2019 · 5 comments

Comments

Projects
None yet
2 participants
@tuxillo
Copy link

commented Jun 21, 2019

Hi,

No JRuby available for DragonFly BSD (www.dragonflybsd.org) and I'd like to know what would be the steps to have that OS included in the binary distribution.

We, at least, took what we thought the initial requirements, see: jnr/jnr-posix#127, jnr/jnr-ffi#184, jnr/jffi#64

Now, I cloned jruby's git repo and built distribution with this diff:

diff --git a/core/pom.rb b/core/pom.rb
index 5292aa1767..bf3be2f325 100644
--- a/core/pom.rb
+++ b/core/pom.rb
@@ -43,9 +43,9 @@ project 'JRuby Core' do
   jar 'com.github.jnr:jnr-netdb:1.1.6', :exclusions => ['com.github.jnr:jnr-ffi']
   jar 'com.github.jnr:jnr-enxio:0.19', :exclusions => ['com.github.jnr:jnr-ffi']
   jar 'com.github.jnr:jnr-unixsocket:0.20', :exclusions => ['com.github.jnr:jnr-ffi']
-  jar 'com.github.jnr:jnr-posix:3.0.47', :exclusions => ['com.github.jnr:jnr-ffi']
+  jar 'com.github.jnr:jnr-posix:3.0.50', :exclusions => ['com.github.jnr:jnr-ffi']
   jar 'com.github.jnr:jnr-constants:0.9.12', :exclusions => ['com.github.jnr:jnr-ffi']
-  jar 'com.github.jnr:jnr-ffi:2.1.9'
+  jar 'com.github.jnr:jnr-ffi:2.1.10'
   jar 'com.github.jnr:jffi:${jffi.version}'
   jar 'com.github.jnr:jffi:${jffi.version}:native'

diff --git a/pom.rb b/pom.rb
index 13a50c928e..fc0cf7d5f2 100644
--- a/pom.rb
+++ b/pom.rb
@@ -83,7 +83,7 @@ project 'JRuby', 'https://github.com/jruby/jruby' do
               'jruby-launcher.version' => '1.1.6',
               'ant.version' => '1.9.8',
               'asm.version' => '6.2.1',
-              'jffi.version' => '1.2.18',
+              'jffi.version' => '1.2.19',
               'joda.time.version' => '2.9.9' )
 
   plugin_management do

And mvnw -Pdist creates a .tar.gz with libjffi for DragonFly BSD but I see no stdlib/ffi.

Thanks,
Antonio Huete

@headius

This comment has been minimized.

Copy link
Member

commented Jun 24, 2019

The stdlib FFI files are mostly generated for each platform, so I think we'd need to figure out how to regenerate them. The alternative, which might be easier (the generation process was not documented and we'd have to dig a bit) would be to just take one of the other BSDs and fix up any type widths etc.

This would be great to get done for 9.2.8!

@headius headius added this to the JRuby 9.2.8.0 milestone Jun 24, 2019

@tuxillo

This comment has been minimized.

Copy link
Author

commented Jun 24, 2019

But are they generated for every platform during the jruby build time, or is it pulled externally?

@headius

This comment has been minimized.

Copy link
Member

commented Jun 25, 2019

@tuxillo They're generated manually, since we don't have a good rig to generate automatically on all these weird platforms.

@tuxillo

This comment has been minimized.

Copy link
Author

commented Jun 26, 2019

Okay then, if you come across the instructions to generate it maybe I can give it a shot :)

@tuxillo

This comment has been minimized.

Copy link
Author

commented Jul 16, 2019

By any chance you happened to come across the instructions? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.