WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Seamonkey 2.53.17.1.tcz corrupted  (Read 8348 times)

Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Re: Seamonkey 2.53.17.1.tcz corrupted
« Reply #15 on: November 04, 2023, 09:30:48 AM »
Should I first have to make mozconfig file before compiling? Where should I place it?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14641
Re: Seamonkey 2.53.17.1.tcz corrupted
« Reply #16 on: November 04, 2023, 09:52:56 AM »
Yes, you need to create a mozconfig and place it In the seamonkey-2.53.17.1 directory.

Note that you need prefix=/usr/local and to make a decision about alsa or pulseaudio.
« Last Edit: November 04, 2023, 09:56:31 AM by Juanito »

Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Re: Seamonkey 2.53.17.1.tcz corrupted
« Reply #17 on: November 06, 2023, 11:48:12 AM »
Hi, which one of the configure files should I execute?

Code: [Select]
tc@box:~$ cd /home/tc/seamonkey-2.53.17.1
tc@box:~/seamonkey-2.53.17.1$ sudo find / -name configure
/home/tc/seamonkey-2.53.17.1/media/libvpx/libvpx/configure
/home/tc/seamonkey-2.53.17.1/js/src/configure
/home/tc/seamonkey-2.53.17.1/js/src/ctypes/libffi/configure
/home/tc/seamonkey-2.53.17.1/intl/icu/source/configure
tc@box:~/seamonkey-2.53.17.1$ ls
AUTHORS              config/              image/
GNUmakefile          devtools/            intl/
LEGAL                docshell/            ipc/
LICENSE              dom/                 js/
README.txt           editor/              layout/
accessible/          extensions/          media/
addon-sdk/           gfx/                 moz.build
browser/             gradle/              mozilla-config.h.in
build/               gradle.properties    package-lock.json
caps/                gradlew
chrome/              hal/


Also is the config.mk the equivalent of make?

Code: [Select]
tc@box:~/seamonkey-2.53.17.1$ cd config
tc@box:~/seamonkey-2.53.17.1/config$ ls
AB_rCD.mk
Makefile.in
Moz/
MozZipFile.py
__pycache__/
autoconf-js.mk.in
autoconf.mk.in
baseconfig.mk
check_js_msg_encoding.py
check_js_opcode.py
check_macroassembler_style.py
check_source_count.py
check_spidermonkey_style.py
check_vanilla_allocations.py
[b]config.mk[/b]
createprecomplete.py
emptyvars-js.mk.in
emptyvars.mk.in
external/
faster/
find_OOM_errors.py
gcc-stl-wrapper.template.h
gcc_hidden.h
install.bat
make-stl-wrappers.py
make-system-wrappers.py
makefiles/
milestone.txt
moz.build
mozunit/
msvc-stl-wrapper.template.h
nsinstall.c
nsinstall.py
pathsub.c
pathsub.h
printconfigsetting.py
printprereleasesuffix.py
rebuild_check.py
recurse.mk
rules.mk
run-and-prefix.py
run_spidermonkey_checks.py.1463425needs1063728.later
static-checking-config.mk
stl-headers.mozbuild
system-headers.mozbuild
tests/
version.mk
version_win.pl
« Last Edit: November 06, 2023, 11:49:58 AM by cute curtis »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14641
Re: Seamonkey 2.53.17.1.tcz corrupted
« Reply #18 on: November 06, 2023, 11:53:31 AM »
Did you read the blfs instructions?

Assuming you applied the patch and executed the sed command, then:
Code: [Select]
./mach configure

Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Re: Seamonkey 2.53.17.1.tcz corrupted
« Reply #19 on: November 11, 2023, 08:33:11 AM »
hi, should I also place this in mozconfig file?

Quote
Suggested compiler flags on x86_64 (for compatibility; see also the forum thread):

export CFLAGS="-mtune=generic -Os -pipe"
export CXXFLAGS="-mtune=generic -Os -pipe"
export LDFLAGS="-Wl,-O1"

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14641
Re: Seamonkey 2.53.17.1.tcz corrupted
« Reply #20 on: November 11, 2023, 08:44:13 AM »
Those go in the terminal window - the blfs instructions recommend using clang instead of gcc and I’m not sure if they would be used/accepted by clang.

I can post a seamonkey extension if you’d like?

Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Re: Seamonkey 2.53.17.1.tcz corrupted
« Reply #21 on: November 11, 2023, 08:59:19 AM »
Well I'm not really in a hurry but that would be great! Actually I'm going to try port Chromium next. Just need to learn how to port extensions to tinycore. If this is not much maybe you could send me a share screen tutorial.

I appreciate all the support. Thanks!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14641
Re: Seamonkey 2.53.17.1.tcz corrupted
« Reply #22 on: November 11, 2023, 09:54:13 AM »

Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Re: Seamonkey 2.53.17.1.tcz corrupted
« Reply #23 on: November 11, 2023, 12:08:00 PM »
ok thanks!

Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Re: Seamonkey 2.53.17.1.tcz corrupted
« Reply #24 on: November 11, 2023, 12:14:17 PM »
I have question, why there's no --prefix=/usr/local in this line?

Code: [Select]
CC=clang CXX=clang++ ./mach configure

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14641
Re: Seamonkey 2.53.17.1.tcz corrupted
« Reply #25 on: November 11, 2023, 12:21:27 PM »
« Last Edit: November 11, 2023, 12:23:37 PM by Juanito »

Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Re: Seamonkey 2.53.17.1.tcz corrupted
« Reply #26 on: November 19, 2023, 09:29:58 AM »
Hi, I've got error both in patching and sed

Code: [Select]
tc@box:~/lab$ patch -Np1 -i seamonkey-2.53.17.1-consolidated_fixes-1.patch
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Submitted By:            Douglas R. Reno <renodr at linuxfromscratch dot org>
|Date:                    2023-10-16
|Initial Package Version: 2.53.17.1
|Origin:                  Upstream (in https://gitlab.com/frg/seamonkey-253-patches)
|Upstream Status:         Applied
|Description:             Fixes several CVEs in Seamonkey's bundled copy of libvpx,
|                         including CVE-2023-44488, CVE-2023-5217, CVE-2019-9232,
|                         CVE-2019-9325, CVE-2023-9371, and CVE-2023-9433.
|                         Thank you Ken for the original patches, yours are almost
|                         identical to what upstream has in the imminent 2.53.18
|                         release.
|
|diff -Naurp seamonkey-2.53.17.1.orig/media/libvpx/libvpx/test/decode_api_test.cc seamonkey-2.          53.17.1/media/libvpx/libvpx/test/decode_api_test.cc
|--- seamonkey-2.53.17.1.orig/media/libvpx/libvpx/test/decode_api_test.cc       2020-10-20 14:          17:58.000000000 -0500
|+++ seamonkey-2.53.17.1/media/libvpx/libvpx/test/decode_api_test.cc    2023-10-16 12:39:06.94          7145620 -0500
--------------------------
File to patch:

Code: [Select]
tc@box:~$ cd /home/tc/lab
tc@box:~/lab$ sed -e '1012 s/stderr=devnull/stderr=subprocess.DEVNULL/' -e '1013
 s/OSError/(OSError, subprocess.CalledProcessError)/' -i third_party/python/dist
ro/distro.py
sed: can't read third_party/python/distro/distro.py: No such file or directory

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14641
Re: Seamonkey 2.53.17.1.tcz corrupted
« Reply #27 on: November 20, 2023, 04:50:16 AM »
You need to be in the correct place in the directory structure, then download the source code and the patch:
Code: [Select]
cd /home/tc/lab
wget https://archive.mozilla.org/pub/seamonkey/releases/2.53.17.1/source/seamonkey-2.53.17.1.source.tar.xz
wget https://www.linuxfromscratch.org/patches/blfs/svn/seamonkey-2.53.17.1-consolidated_fixes-1.patch

..then untar the source code and change directory into the top level of the source:
Code: [Select]
tar xf seamonkey-2.53.17.1.source.tar.xz
cd seamonkey-2.53.17.1

..now apply the patch and sed commands:
Code: [Select]
patch -Np1 -i ../seamonkey-2.53.17.1-consolidated_fixes-1.patch
sed -e '1012 s/stderr=devnull/stderr=subprocess.DEVNULL/' -e '1013 s/OSError/(OSError, subprocess.CalledProcessError)/' -i third_party/python/distro/distro.py

Offline cute curtis

  • Full Member
  • ***
  • Posts: 102
  • Welcome In Da Club
Re: Seamonkey 2.53.17.1.tcz corrupted
« Reply #28 on: November 21, 2023, 03:44:15 AM »
I've got error with mozconfig

Code: [Select]
tc@box:~$ cd /home/tc/lab/seamonkey-2.53.17.1
tc@box:~/lab/seamonkey-2.53.17.1$ patch -Np1 -i ../seamonkey-2.53.17.1-consolida
ted_fixes-1.patch
patching file media/libvpx/libvpx/test/decode_api_test.cc
patching file media/libvpx/libvpx/third_party/libwebm/mkvparser/mkvparser.cc
patching file media/libvpx/libvpx/vp8/decoder/dboolhuff.h
patching file media/libvpx/libvpx/vp8/encoder/onyx_if.c
patching file media/libvpx/libvpx/vp9/common/vp9_alloccommon.c
patching file media/libvpx/libvpx/vp9/encoder/vp9_encoder.c
patching file media/libvpx/libvpx/vp9/vp9_dx_iface.c
patching file media/libvpx/libvpx/vpx_dsp/bitreader_buffer.c
patching file media/libvpx/libvpx/vpx_dsp/bitreader.h
tc@box:~/lab/seamonkey-2.53.17.1$ sed -e '1012 s/stderr=devnull/stderr=subproces
s.DEVNULL/' -e '1013 s/OSError/(OSError, subprocess.CalledProcessError)/' -i thi
rd_party/python/distro/distro.py
tc@box:~/lab/seamonkey-2.53.17.1$ CC=clang CXX=clang++ ./mach configure
Error loading mozconfig: /home/tc/lab/seamonkey-2.53.17.1/mozconfig

Evaluation of your mozconfig exited with an error. This could be triggered
by a command inside your mozconfig failing. Please change your mozconfig
to not error and/or to catch errors in executed commands.

mozconfig output:

/home/tc/lab/seamonkey-2.53.17.1/python/mozbuild/mozbuild/mozconfig_loader: /home/tc/lab/seamonkey-2.53.17.1/mozconfig: line 2:
: not found

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14641
Re: Seamonkey 2.53.17.1.tcz corrupted
« Reply #29 on: November 21, 2023, 04:44:34 AM »
Did you make the symlink:
Code: [Select]
sudo ln -s /lib /lib64