Author Topic: [APP] Discourse now runs on Linux ppc64le  (Read 107 times)

tle

  • Jr. Member
  • **
  • Posts: 86
  • Karma: +18/-0
    • View Profile
    • Ruby Journal
[APP] Discourse now runs on Linux ppc64le
« on: March 08, 2020, 05:59:36 pm »
Discourse 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 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 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.

« Last Edit: April 25, 2020, 05:26:16 am by tle »
Faithful Linux enthusiast

MPC7500

  • Full Member
  • ***
  • Posts: 189
  • Karma: +11/-0
    • View Profile
    • Twitter
Re: Discourse now runs on Linux ppc64le
« Reply #1 on: March 08, 2020, 07:41:40 pm »
madscientist159 will be very happy to hear this 8)

tle

  • Jr. Member
  • **
  • Posts: 86
  • Karma: +18/-0
    • View Profile
    • Ruby Journal
Re: [APP] Discourse now runs on Linux ppc64le
« Reply #2 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
Faithful Linux enthusiast