Raptor Computing Systems Community Forums (BETA)

Software => Applications and Porting => Topic started by: tle on March 08, 2020, 05:59:36 pm

Title: [APP] Discourse now runs on Linux ppc64le
Post by: tle on March 08, 2020, 05:59:36 pm
EDIT: Thanks to the work by lloeki https://github.com/sqreen/ruby-libv8-node/issues/11 (https://github.com/sqreen/ruby-libv8-node/issues/11), Discourse now works out-of-the-box on ppc64le

Discourse (https://www.discourse.org/) is a great forum software which is written in Ruby-based framework Ruby On Rails. At one stage I believe RaptorCS was considering using Discourse  (https://github.com/rubyjs/libv8/issues/285) however they went with Simple Machines Forums instead because libv8 rubygem does not support ppc64le.

In theory it is possible to build libv8 rubygem for ppc64le linux because the upstream v8 library has supported ppc64. I've spent a bit of time trying to get v8 7.3.495 compiled by substituting Google's toolings (such as cpython, git) with the stock toolings. For more details, please have a look at https://github.com/runlevel5/v8-ppc64le. It's going to take time for me to follow up with the libv8 maintainer to work out a way to set up automated build for ppc64le. For the time-being, we could go with custom-built gem.

Another hurdle that I overcome is to get mini_suffix gem to run on ppc64le. That gem does not ship with libpsl for linux ppc64le. I've created a patch (https://github.com/discourse/mini_suffix/pull/1) which is waiting for approval. Users could fetch the branch, build the custom gem with `
Code: [Select]
gem build mini_suffix.gemspec && gem install mini_suffix-0.3.1.gem`

 That's pretty much it.
[/s]
Title: Re: Discourse now runs on Linux ppc64le
Post by: MPC7500 on March 08, 2020, 07:41:40 pm
madscientist159 will be very happy to hear this 8)
Title: Re: [APP] Discourse now runs on Linux ppc64le
Post by: tle on May 08, 2020, 10:26:19 am
The good news is rubyjs/libv8 gem project is now kinda back on track. Their Travis CI build is fixed and I helped them bump V8 to 7.3.495.

I am trying to get this PR green on Travis https://github.com/rubyjs/libv8/pull/296, this would bring "first-class" support for ppc64le
Title: Re: [APP] Discourse now runs on Linux ppc64le
Post by: tle on August 01, 2021, 09:28:29 pm
Good news folks

Thanks to the work by lloeki https://github.com/sqreen/ruby-libv8-node/issues/11 (https://github.com/sqreen/ruby-libv8-node/issues/11), Discourse now works out-of-the-box on ppc64le
Title: Re: [APP] Discourse now runs on Linux ppc64le
Post by: tle on August 01, 2021, 09:29:16 pm
@madscientist159 FYI