Author Topic: How to build Seamonkey?  (Read 3293 times)

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 8
  • -Receive: 95
  • Posts: 1162
    • View Profile
Re: How to build Seamonkey?
« Reply #45 on: June 13, 2017, 04:29:54 am »
The message is normal and just means that the rebase was unneeded. You can look at https://github.com/bitwiseworks/mozilla-os2/commits/master for activity upstream and then do the checkout master & rebase steps to bring your branch to the same level as the master (Bitwise).

Laurenz Sommer

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 10
  • Posts: 53
    • View Profile
Re: How to build Seamonkey?
« Reply #46 on: June 14, 2017, 12:28:41 am »
OK, so I have already added the patch to my repository with git add and git commit?
I see, powerful means confusing me with power :-[ ;D
I will dig through some tutorials and in conjunction with your crash course it hopefully will be enough for me.

Laurenz Sommer

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 10
  • Posts: 53
    • View Profile
Re: How to build Seamonkey?
« Reply #47 on: June 18, 2017, 01:53:52 pm »
I have verified my setup on another laptop; in the hope it might be helpful to someone:
The following packages need to be installed either via 'yum install' or ANPM's Quick install:
Code: [Select]
netlabs-exp
nasm gcc gcc-wlink gcc-wrc kbuild-make m4 grep gawk perl python findutils tar pkgconfig perl-PathTools pthread-devel
exceptq exceptq-devel autoconf213 autoconf nspr-devel nss-devel libicu-devel pixman-devel cairo-devel pango-devel
fontconfig-devel freetype-devel libkai-devel libvpx-devel libjpeg-turbo-devel libpng-devel zlib-devel bzip2-devel
hunspell-devel libcx-devel expat-devel python-test ffmpeg-devel libtool libtool-ltdl-devel gettext-devel
git
mercurial
Install the OS/2 Developer's Toolkit, this may be done with yum, too.
In the config.sys set VIRTUALADDRESSLIMIT=3072.
Reboot, so changes applied to your config.sys become active.
Install lxlite from http://home.earthlink.net/%7Esteve53/betas/lxlt135-shl-20121201.zip into your PATH.
Follow Dave's instructions to download the sources: https://bitbucket.org/dryeo/dry-comm-esr31/src/ad7137973e042eb45ca5fb35764ebafb2db40f4c/BUILD.OS2?at=default&fileviewer=file-view-default. If you get an 'File or directory not found' error it might be possible that you have to set HOSTNAME in your environment settings.
Download all attached files, edit them  so the paths match your environment. Move config.site to \usr\local\share.
Open a command shell in \cc-31\mozilla, execute sh.exe in this command shell. In sh execute the following:
Code: [Select]
autoconf213
(cd js/src && autoconf213)
(cd js/src/ctypes/libffi && autoreconf -fi)
(cd nsprpub && autoconf)
In /cc-31 open a command shell (use cmd.exe, not 4os2, and pay attention that the environment setting COMSPEC is set to C:\os2\ cmd.exe). Run mozenv.cmd and build_suite.cmd. After the build process completes run smxqs.cmd, cd into obj-sm and execute 'make package'.
The zip package is in \cc-31\obj-sm\dist.
The build process took about 5 and a half hour on a laptop with an Intel CoreDuo 1,83 GHz and 2 GiB RAM; 8 and a half hour with a Pentium M 2,13 GHz and 1280 MiB RAM.

This instruction might be wrong, incomplete or completely useless. Especially it is likely that some of the RPM packages are not necessary.
Thanks to everyone, who helped me finding out the steps.
« Last Edit: June 19, 2017, 12:20:33 am by Laurenz Sommer »

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 8
  • -Receive: 95
  • Posts: 1162
    • View Profile
Re: How to build Seamonkey?
« Reply #48 on: June 18, 2017, 06:45:46 pm »
Thanks Laurenz,
Minor edits, now seem to need
Code: [Select]
autoreconf -f -ito correctly set up js/src/ctypes/libffi
And currently our headers need adjusting as described in https://github.com/bitwiseworks/mozilla-os2/issues/188#issuecomment-294180407 which should eventually be fixed.

Laurenz Sommer

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 10
  • Posts: 53
    • View Profile
Re: How to build Seamonkey?
« Reply #49 on: June 18, 2017, 09:09:43 pm »
Oh, yes I forgot about autoreconf.
The problem with param.h is fixed, with the up to date libc-devel from netlabs-exp no editing was needed when I built SeaMonkey yesterday.
I'll edit my post obove when I'm home, right now I'm traveling by train and post with my mobile phone made in 2003 :D

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 8
  • -Receive: 95
  • Posts: 1162
    • View Profile
Re: How to build Seamonkey?
« Reply #50 on: June 19, 2017, 07:53:22 am »
For completeness, here are the files needed to build Thunderbird, Firefox and as a bonus, InstantBird (untested with 45esr, the mozconfig worked for 38)
To build Thunderbird is almost exactly the same process as building SeaMonkey except using the Thunderbird (tb) files instead of the suite ones. Firefox is built the same way except the build_ff.cmd and mozconfig.ff need to be in mozilla/ and run from there. No xqs support in Firefox currently.
Note that at the end, you can do make install instead of make package. Make install will install in \usr\local\lib\$name but can be modified by changing the $PREFIX.

Jochen Schäfer

  • Jr. Member
  • **
  • Thank You
  • -Given: 11
  • -Receive: 7
  • Posts: 91
    • View Profile
Re: How to build Seamonkey?
« Reply #51 on: June 19, 2017, 08:52:22 am »
In /cc-31 open a command shell (use cmd.exe, not 4os2, and pay attention that the environment setting COMSPEC is set to C:\os2\ cmd.exe).
What was the problem with 4os2 again? I saw some hints in this thread, but no explanations why one should only use CMD for dev.

Laurenz Sommer

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 10
  • Posts: 53
    • View Profile
Re: How to build Seamonkey?
« Reply #52 on: June 19, 2017, 02:00:18 pm »
What was the problem with 4os2 again? I saw some hints in this thread, but no explanations why one should only use CMD for dev.
With SET COMSPEC=C:\OS2\4OS2.EXE only one processor core was utilised while building. Another problem with 4os2 in COMSPEC not related to development of Firefox/SeaMonkey: When you start an exe from a REXX program compiled with rexx2exe, 4os2 tries to execute the exe as an REXX script, not as a binary executable and fails of course.
When executing 'make package' in 4os2 it hung after compressing xul.dll with lxlite.

Jochen Schäfer

  • Jr. Member
  • **
  • Thank You
  • -Given: 11
  • -Receive: 7
  • Posts: 91
    • View Profile
Re: How to build Seamonkey?
« Reply #53 on: June 19, 2017, 03:37:39 pm »
Thanks for the explanations. I will heed them.  ;D

Laurenz Sommer

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 10
  • Posts: 53
    • View Profile
Re: How to build Seamonkey?
« Reply #54 on: June 27, 2017, 05:58:44 pm »
To put this to an end: I was not successful in creating a fully translated SeaMonkey. This seems to be caused by a platform independent bug since version 2.42 (see https://bugzilla.mozilla.org/show_bug.cgi?id=1231349). Nevertheless I was able to build a German language package thanks to Frank-Rainer Grahl's instructions. I have uploaded it to Hobbes http://hobbes.nmsu.edu/h-search.php?key=seamonkey-2_42_9esr_de_langpack.zip&pushbutton=Search.
If someone needs a language package for a different language send me a PM, I'll see what I can do.

guzzi

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 12
  • Posts: 255
    • View Profile
Re: How to build Seamonkey?
« Reply #55 on: June 28, 2017, 12:16:51 am »
Using the English language version myself but know for a fact that there are some people who'd really appreciate a Dutch NLS.

Jochen Schäfer

  • Jr. Member
  • **
  • Thank You
  • -Given: 11
  • -Receive: 7
  • Posts: 91
    • View Profile
Re: How to build Seamonkey?
« Reply #56 on: June 28, 2017, 08:15:15 am »
Laurenz, you got yourself a job ;-)

Laurenz Sommer

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 10
  • Posts: 53
    • View Profile
Re: How to build Seamonkey?
« Reply #57 on: June 28, 2017, 12:23:32 pm »
Laurenz, you got yourself a job ;-)
I see :) I will open a new thread, I guess most people won't read it here.

Laurenz Sommer

  • Jr. Member
  • **
  • Thank You
  • -Given: 5
  • -Receive: 10
  • Posts: 53
    • View Profile
Re: How to build Seamonkey?
« Reply #58 on: July 09, 2017, 11:31:40 am »
Another thing worth to mention: Before you throw your computer out of the window because you keep getting the error
Code: [Select]
UnicodeDecodeError: 'utf8' codec can't decode byte 0x8e in position 16: invalid start byte you should check your environment settings:
In my case it was
Code: [Select]
SET DESKTOP=C:\ARBEITSOBERFLÄCHE but any environment setting with an umlaut, for example
Code: [Select]
SET DASISTEINTEST=ACHTUNGUMLAUTÖ, does work very "well", too  >:(.
Most likely this problem will also appear with other characters like e. g. é.

André Heldoorn

  • Sr. Member
  • ****
  • Thank You
  • -Given: 61
  • -Receive: 10
  • Posts: 322
    • View Profile
Re: How to build Seamonkey?
« Reply #59 on: July 09, 2017, 11:29:11 pm »
Code: [Select]
SET DESKTOP=C:\ARBEITSOBERFLÄCHE

Code: [Select]
CD \
MD é
CD é
DIR

If the result isn't the expected result, then C:\ARBEITSOBERFLAECHE may be a better choice anyway.