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

tle

  • Sr. Member
  • ****
  • Posts: 467
  • Karma: +53/-0
    • View Profile
    • Trung's Personal Website
[APP] Discourse now runs on Linux ppc64le
« on: March 08, 2020, 05:59:36 pm »
EDIT: Thanks to the work by lloeki https://github.com/sqreen/ruby-libv8-node/issues/11, Discourse now works out-of-the-box on ppc64le

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.
[/s]
« Last Edit: August 01, 2021, 09:28:08 pm by tle »
Faithful Linux enthusiast

My Raptor Blackbird

MPC7500

  • Hero Member
  • *****
  • Posts: 596
  • Karma: +41/-1
    • 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

  • Sr. Member
  • ****
  • Posts: 467
  • Karma: +53/-0
    • View Profile
    • Trung's Personal Website
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

My Raptor Blackbird

tle

  • Sr. Member
  • ****
  • Posts: 467
  • Karma: +53/-0
    • View Profile
    • Trung's Personal Website
Re: [APP] Discourse now runs on Linux ppc64le
« Reply #3 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, Discourse now works out-of-the-box on ppc64le
Faithful Linux enthusiast

My Raptor Blackbird

tle

  • Sr. Member
  • ****
  • Posts: 467
  • Karma: +53/-0
    • View Profile
    • Trung's Personal Website
Re: [APP] Discourse now runs on Linux ppc64le
« Reply #4 on: August 01, 2021, 09:29:16 pm »
@madscientist159 FYI
Faithful Linux enthusiast

My Raptor Blackbird