SeaLion - A web browser for 32-bit PowerPC Linux (Void / Debian 11)

AmigaOne X1000 platform specific issues related to Linux only.
User avatar
xeno74
Posts: 10698
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: SeaLion - A web browser for 32-bit PowerPC Linux (Void / Debian 11)

Post by xeno74 »

FYI:
Jeroen Diederen wrote: Sealion 33.6.1 ppc64 works too in MintPPC/Debian sid. I have to do in /usr/lib/powerpc64-linux-gnu

Code: Select all

sudo ln -s libffi.so.8 libffi.so.6
User avatar
Hypex
Beta Tester
Beta Tester
Posts: 909
Joined: Mon Dec 20, 2010 2:23 pm
Location: Vic. Australia.

Re: SeaLion - A web browser for 32-bit PowerPC Linux (Void / Debian 11)

Post by Hypex »

I read about that trick somewhere. I was going to try it but didn't want to get caught out in case differences caused faults. So looked for a proper binary of that version.
User avatar
xeno74
Posts: 10698
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: SeaLion - A web browser for 32-bit PowerPC Linux (Void / Debian 11)

Post by xeno74 »

Hi All,

I created a new build environment for SeaLion last week.

With this new build environment, I compiled the latest SeaLion with the new UXP version UXP-RB_20250602.

Download: github.com

.mozconfig:

Code: Select all

export CC="gcc -m32"
export CXX="g++ -m32"
mk_add_options PYTHON=/usr/bin/python2
mk_add_options AUTOCONF=/usr/bin/autoconf-2.13

# Set GTK Version to 2 or 3
_GTK_VERSION=2

ac_add_options --target=powerpc-linux-gnu
ac_add_options --host=powerpc-linux-gnu 
ac_add_options --with-system-jpeg 
ac_add_options --enable-application=navigator
ac_add_options --enable-optimize
ac_add_options --enable-jxl
ac_add_options --enable-strip
ac_add_options --enable-default-toolkit=cairo-gtk2 
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-crashreporter
ac_add_options --disable-webrtc
ac_add_options --disable-necko-wifi
ac_add_options --disable-safe-browsing
ac_add_options --disable-devtools
ac_add_options --disable-pulseaudio
ac_add_options --disable-jemalloc
ac_add_options --disable-updater
ac_add_options --disable-gconf 
ac_add_options --disable-gamepad
ac_add_options --disable-precompiled-startupcache 
ac_add_options --disable-gold

export MOZ_TELEMETRY_REPORTING=0
export MOZ_ADDON_SIGNING=0
export MOZ_REQUIRE_SIGNING=0
Image

Cheers,
Christian
User avatar
xeno74
Posts: 10698
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: SeaLion - A web browser for 32-bit PowerPC Linux (Void / Debian 11)

Post by xeno74 »

I have compiled an x86_64 package as well.

Download: github.com

Image
User avatar
xeno74
Posts: 10698
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: SeaLion - A web browser for 32-bit PowerPC Linux (Void / Debian 11)

Post by xeno74 »

Hi All,

A new ViewTube add-on is available.

Installation instructions:
  1. Download the SeaLion-Extras.zip package.
  2. Unpack it and install the addon greasemonkey-3.10.0.1rc3pre-sw.xpi
  3. Download the new ViewTube SeaLion and Brassmonkey package
  4. Delete the old folder gm_scripts
    rm -rf /home/<your user directory>/.wicknix/sealion/<profile directory>/gm_scripts
  5. Unpack the package and copy the folder gm_scripts to /home/<your user directory>/.wicknix/sealion/<profile directory>/
    For example:

    Code: Select all

    cp -R Downloads/gm_scripts /home/amigaone/.wicknix/sealion/iykmgak4.default/
  6. Restart SeaLion
Cheers,
Christian
User avatar
xeno74
Posts: 10698
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: SeaLion - A web browser for 32-bit PowerPC Linux (Void / Debian 11)

Post by xeno74 »

36AEAF02-B03F-4DB9-861C-A2FEDA615E0F.png
SeaLion 33.8.1.2 is available. :-)

Download and further information: github.com
User avatar
xeno74
Posts: 10698
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: SeaLion - A web browser for 32-bit PowerPC Linux (Void / Debian 11)

Post by xeno74 »

For Linux PPC64:
  1. Code: Select all

    git clone https://repo.palemoon.org/MoonchildProductions/UXP.git uxp
  2. Code: Select all

    cd uxp
  3. Code: Select all

    git revert 1b0fde3e10fa987b1c875ffa3c9fa9d286a56c94
    Output:

    Code: Select all

    master 62189eb97d] Revert "Issue #1531 - Bump minimum required GCC version to 9.1"
     3 files changed, 6 insertions(+), 6 deletions(-)
    
  4. Code: Select all

    tar zxvf SeaLion-33.6.1.tar.gz
  5. Code: Select all

    mv uxp SeaLion-33.6.1/platform
  6. Code: Select all

    cp mozconfig SeaLion-33.6.1/.mozconfig
    .mozconfig:

    Code: Select all

    export CC="gcc -flax-vector-conversions -O3 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -maltivec -mabi=altivec"
    export CXX="g++ -flax-vector-conversions -fpermissive -O3 -falign-loops=16 -falign-functions=16 -falign-labels=16 -falign-jumps=16 -maltivec -mabi=altivec"
    
    mk_add_options AUTOCONF=/usr/bin/autoconf-2.13
    
    # Set GTK Version to 2 or 3
    _GTK_VERSION=2
    
    ac_add_options --target=powerpc64-linux-gnu
    ac_add_options --host=powerpc64-linux-gnu
    ac_add_options --with-system-jpeg 
    ac_add_options --enable-application=navigator
    ac_add_options --enable-optimize
    ac_add_options --enable-jxl
    ac_add_options --enable-strip
    ac_add_options --enable-default-toolkit=cairo-gtk2 
    ac_add_options --disable-tests
    ac_add_options --disable-debug
    ac_add_options --disable-crashreporter
    ac_add_options --disable-webrtc
    ac_add_options --disable-necko-wifi
    ac_add_options --disable-safe-browsing
    ac_add_options --disable-devtools
    ac_add_options --disable-pulseaudio
    ac_add_options --disable-jemalloc
    ac_add_options --disable-updater
    ac_add_options --disable-gconf 
    ac_add_options --disable-gamepad
    ac_add_options --disable-precompiled-startupcache
    
    export MOZ_TELEMETRY_REPORTING=0
    export MOZ_ADDON_SIGNING=0
    export MOZ_REQUIRE_SIGNING=0
    
  7. Remove the following line from the file "platform/security/nss/lib/freebl/freebl.gyp":

    Code: Select all

          'target_name': 'gcm-aes-ppc_c_lib',
          'type': 'static_library',
          'sources': [
            'gcm-ppc.c',
    -        'sha512-p8.s',
          ],
          'dependencies': [
    
  8. Bump version to 33.8.1.2

    Code: Select all

    vim navigator/config/version.txt
    
  9. Upgrading of GCC to version 8.3.1:

    Code: Select all

    sudo dnf update gcc-c++
  10. ./mach build
  11. ./mach run
  12. ./mach package
User avatar
xeno74
Posts: 10698
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: SeaLion - A web browser for 32-bit PowerPC Linux (Void / Debian 11)

Post by xeno74 »

Here is the Linux PPC64 version of SeaLion 33.8.1.2: github.com

SeaLion_33.8.1.2_Linux_PPC64_AltiVec.png
User avatar
xeno74
Posts: 10698
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: SeaLion - A web browser for 32-bit PowerPC Linux (Void / Debian 11)

Post by xeno74 »

Patches for Arctic Fox/Musl. Also for SeaLion.

git.adelielinux.org

I use the following patches for SeaLion/musl for Adélie Linux.

hunspell.patch:

Code: Select all

On musl libc, #define free is dangerous.

Upstream-URL: https://github.com/rmottola/Arctic-Fox/issues/100

--- Arctic-Fox-45.1/extensions/spellcheck/hunspell/glue/hunspell_alloc_hooks.h.old	2024-09-30 19:54:44.000000000 +0000
+++ Arctic-Fox-45.1/extensions/spellcheck/hunspell/glue/hunspell_alloc_hooks.h	2024-10-22 21:46:00.494798524 +0000
@@ -47,6 +47,8 @@
  * allocated using C memory allocation functions.
  */
 
+#include <sched.h>
+#include "mozilla/Logging.h"
 #include "mozilla/mozalloc.h"
 #include "mozHunspellAllocator.h"
stackwalk-x86-ppc.patch:

Code: Select all

--- Arctic-Fox-45.1/mozglue/misc/StackWalk.cpp.old	2024-09-30 19:54:44.000000000 +0000
+++ Arctic-Fox-45.1/mozglue/misc/StackWalk.cpp	2024-10-21 11:28:48.295293788 +0000
@@ -42,10 +42,7 @@
   (defined(XP_DARWIN) && \
    (defined(__i386) || defined(__ppc__) || defined(HAVE__UNWIND_BACKTRACE)))
 
-#define MOZ_STACKWALK_SUPPORTS_LINUX \
-  (defined(linux) && \
-   ((defined(__GNUC__) && (defined(__i386) || defined(PPC))) || \
-    defined(HAVE__UNWIND_BACKTRACE)))
+#define MOZ_STACKWALK_SUPPORTS_LINUX 0
 
 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1)
 #define HAVE___LIBC_STACK_END 1
In addition, I had to compile Python2 for Adélie Linux.

.mozconfig

Code: Select all

export CC="gcc -m32"
export CXX="g++ -m32"
mk_add_options PYTHON=/usr/local/bin/python2
mk_add_options AUTOCONF=/usr/bin/autoconf-2.13

# Set GTK Version to 2 or 3
_GTK_VERSION=2

ac_add_options --target=powerpc-linux-gnu
ac_add_options --host=powerpc-linux-gnu 
ac_add_options --with-system-jpeg 
ac_add_options --enable-application=navigator
ac_add_options --enable-optimize
ac_add_options --enable-jxl
ac_add_options --enable-strip
ac_add_options --enable-default-toolkit=cairo-gtk2 
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-crashreporter
ac_add_options --disable-webrtc
ac_add_options --disable-necko-wifi
ac_add_options --disable-safe-browsing
ac_add_options --disable-devtools
ac_add_options --disable-pulseaudio
ac_add_options --disable-jemalloc
ac_add_options --disable-updater
ac_add_options --disable-gconf 
ac_add_options --disable-gamepad
ac_add_options --disable-precompiled-startupcache 
ac_add_options --disable-gold

export MOZ_TELEMETRY_REPORTING=0
export MOZ_ADDON_SIGNING=0
export MOZ_REQUIRE_SIGNING=0
User avatar
xeno74
Posts: 10698
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: SeaLion - A web browser for 32-bit PowerPC Linux (Void / Debian 11)

Post by xeno74 »

And here is the Linux PPC/musl version of SeaLion 33.8.1.2: github.com

SeaLion_33.8.1.2_PowerPC_musl.png
Post Reply