kenz-gelsoft / gecko-dev

Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
https://firefox-source-docs.mozilla.org/setup/index.html
Other
16 stars 2 forks source link

HaikuPorts packaging #71

Open kenz-gelsoft opened 3 weeks ago

kenz-gelsoft commented 3 weeks ago

For ./mach bootstrap

https://firefox-source-docs.mozilla.org/mobile/android/index.html#bootstrap-setup

We have silent setup option.

--application-choice="Firefox for Desktop"

https://searchfox.org/mozilla-esr128/source/python/mozboot/mozboot/mach_commands.py#19

https://searchfox.org/mozilla-esr128/source/build/moz.configure/bootstrap.configure#276

Can change build system state directory from ~/.mozbuild?

Yes.

https://searchfox.org/mozilla-esr128/source/build/mach_initialize.py#450

kenz-gelsoft commented 2 weeks ago

Fails installing Glean everytime and it slows down try and error. Can I disable it easily?

with following patch

~/src/haikuports/www-client/forefix/work-128.1.0.0/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e> git show
commit 8ea2113eb23bcd49c0a898427f31aea938639ea2 (HEAD -> haikuport)
Author: KENZ <KENZ.gelsoft@gmail.com>
Date:   Sat Nov 2 11:59:57 2024 +0900

    applying patch gecko-dev-128.1.0.0.patch

diff --git a/mach b/mach
old mode 100644
new mode 100755
diff --git a/python/sites/mach.txt b/python/sites/mach.txt
index f1876ed..6e93585 100644
--- a/python/sites/mach.txt
+++ b/python/sites/mach.txt
@@ -96,7 +96,7 @@ vendored:third_party/python/wheel
 vendored:third_party/python/zipp
 # glean-sdk may not be installable if a wheel isn't available
 # and it has to be built from source.
-pypi-optional:glean-sdk==60.1.1:telemetry will not be collected
+#pypi-optional:glean-sdk==60.1.1:telemetry will not be collected
 # Mach gracefully handles the case where `psutil` is unavailable.
 # We aren't (yet) able to pin packages in automation, so we have to
 # support down to the oldest locally-installed version (5.4.2).
~/src/haikuports/www-client/forefix> cat patches/gecko-dev-128.1.0.0.patch 
diff --git a/python/sites/mach.txt b/python/sites/mach.txt
index 6e93585..9791a14 100644
--- a/python/sites/mach.txt
+++ b/python/sites/mach.txt
@@ -100,5 +100,5 @@ vendored:third_party/python/zipp
 # Mach gracefully handles the case where `psutil` is unavailable.
 # We aren't (yet) able to pin packages in automation, so we have to
 # support down to the oldest locally-installed version (5.4.2).
-pypi-optional:psutil>=5.4.2,<=5.9.4:telemetry will be missing some data
+#pypi-optional:psutil>=5.4.2,<=5.9.4:telemetry will be missing some data
 pypi-optional:zstandard>=0.11.1,<=0.22.0:zstd archives will not be possible to extract
kenz-gelsoft commented 2 weeks ago

Refer other packaging for build time dependencies

kenz-gelsoft commented 2 weeks ago
libevent_devel-2.1.12-5 from repository system is already installed.
Nothing to do.
Your version of Rust (1.79.0) is new enough.
error: No such remote 'origin'
Setting up artifact sysroot-wasm32-wasi.tar.zst
Downloading artifact to local cache: /boot/home/.mozbuild/toolchains/4af9caa832be1c2f-sysroot-wasm32-wasi.tar.zst
Downloading... 0.0 %
Downloading... 100.0 %
Error running mach:

    mach --log-no-times artifact toolchain --from-task Dq5UW6uRQE2iW2TC1GAmLg:public/build/sysroot-wasm32-wasi.tar.zst

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke ``./mach busted`` to check if this issue is already on file. If it
isn't, please use ``./mach busted file artifact`` to report it. If ``./mach busted`` is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

ModuleNotFoundError: No module named 'zstandard'

  File "/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/python/mozbuild/mozbuild/artifact_commands.py", line 590, in artifact_toolchain
    unpack_file(local)
  File "/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/python/mozbuild/mozbuild/action/tooltool.py", line 988, in unpack_file
    import zstandard
Warning: Command '['bash', '-c', '. /wrapper-script']' returned non-zero exit status 1.
cleaning 'chroot/boot' folder
keeping chroot folder /boot/home/src/haikuports/www-client/forefix/work-128.1.0.0 intact for inspection
Error: Build has failed - stopping.
~/src/haikuports/www-client/forefix> 
kenz-gelsoft commented 2 weeks ago

It start building with haikuporter but cargo failing to link binary?

 1:05.83 clang: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]
 1:06.38 error: could not exec the linker `/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/build/cargo-linker`
 1:06.38   |
 1:06.38   = note: Permission denied (os error -2147483646)
 1:06.42   = note: LC_ALL="C" PATH="/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/bin:/boot/home/.mozbuild/srcdirs/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e-dddbf92525aa/_virtualenvs/build/bin:/boot/home/.mozbuild/srcdirs/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e-dddbf92525aa/_virtualenvs/mach/bin:/boot/home/bin:.:/boot/home/config/non-packaged/bin:/boot/home/config/bin:/boot/system/non-packaged/bin:/bin:/boot/system/apps:/boot/system/preferences:/boot/home/.cargo/bin" VSLANG="1033" "/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/build/cargo-linker" "-m64" "/tmp/rustc6BEjhv/symbols.o" "/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/build/proc-macro2-6d8cf91412e6f0e4/build_script_build-6d8cf91412e6f0e4.build_script_build.f8c2ea8c6d773fa2-cgu.0.rcgu.o" "/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/build/proc-macro2-6d8cf91412e6f0e4/build_script_build-6d8cf91412e6f0e4.build_script_build.f8c2ea8c6d773fa2-cgu.1.rcgu.o" "/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/build/proc-macro2-6d8cf91412e6f0e4/build_script_build-6d8cf91412e6f0e4.1bmwesdwtktuccqw.rcgu.o" "-Wl,--as-needed" "-L" "/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/deps" "-L" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib" "-Wl,-Bstatic" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libstd-6042999d3c949dac.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libpanic_unwind-d10e8b1c382ee5a7.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libobject-98b0262fdbc9f8f4.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libmemchr-ff62bfbca926848b.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libaddr2line-18f10aee463b256e.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libgimli-bfb9a85fe79a95bb.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/librustc_demangle-08b3bbd3b7dc126b.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libstd_detect-8007f159bfbd8366.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libhashbrown-c0789ad0b5c9ca16.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/librustc_std_workspace_alloc-babc3448e617da79.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libminiz_oxide-c44e161f19ebd248.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libadler-5fc4e82b86ac8d4b.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libunwind-015dafaacb8d9514.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libcfg_if-5a6ad784fdcf8df1.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/liblibc-de1b104ec4d746e1.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/liballoc-1ee2cb2462431c2f.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/librustc_std_workspace_core-c1a97ddd293821f6.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libcore-809c8fd19f6a4bcc.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libcompiler_builtins-1ae9ecea3a211471.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lroot" "-lnetwork" "-lbsd" "-lgnu" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib" "-o" "/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/build/proc-macro2-6d8cf91412e6f0e4/build_script_build-6d8cf91412e6f0e4" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-debug" "-nodefaultlibs"
 1:06.59 error: could not compile `proc-macro2` (build script) due to 1 previous error
 1:06.65 clang++: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]
kenz-gelsoft commented 2 weeks ago

And need specifying configure paths with haikuports specific ones.

kenz-gelsoft commented 2 weeks ago

cargo linker fails reliably

 0:48.81 clang++: warning: argument unused during compilation: '-fstack-clash-protection' [-Wunused-command-line-argument]
 0:49.52    Compiling proc-macro2 v1.0.74
 0:52.24 error: could not exec the linker `/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/build/cargo-linker`
 0:52.24   |
 0:52.25   = note: Permission denied (os error -2147483646)
 0:52.33   = note: LC_ALL="C" PATH="/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/bin:/boot/home/.mozbuild/srcdirs/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e-dddbf92525aa/_virtualenvs/build/bin:/boot/home/.mozbuild/srcdirs/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e-dddbf92525aa/_virtualenvs/mach/bin:/boot/home/bin:.:/boot/home/config/non-packaged/bin:/boot/home/config/bin:/boot/system/non-packaged/bin:/bin:/boot/system/apps:/boot/system/preferences:/boot/home/.cargo/bin" VSLANG="1033" "/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/build/cargo-linker" "-m64" "/tmp/rustcdGmDP3/symbols.o" "/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/build/proc-macro2-6d8cf91412e6f0e4/build_script_build-6d8cf91412e6f0e4.build_script_build.f8c2ea8c6d773fa2-cgu.0.rcgu.o" "/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/build/proc-macro2-6d8cf91412e6f0e4/build_script_build-6d8cf91412e6f0e4.build_script_build.f8c2ea8c6d773fa2-cgu.1.rcgu.o" "/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/build/proc-macro2-6d8cf91412e6f0e4/build_script_build-6d8cf91412e6f0e4.1bmwesdwtktuccqw.rcgu.o" "-Wl,--as-needed" "-L" "/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/deps" "-L" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib" "-Wl,-Bstatic" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libstd-6042999d3c949dac.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libpanic_unwind-d10e8b1c382ee5a7.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libobject-98b0262fdbc9f8f4.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libmemchr-ff62bfbca926848b.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libaddr2line-18f10aee463b256e.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libgimli-bfb9a85fe79a95bb.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/librustc_demangle-08b3bbd3b7dc126b.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libstd_detect-8007f159bfbd8366.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libhashbrown-c0789ad0b5c9ca16.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/librustc_std_workspace_alloc-babc3448e617da79.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libminiz_oxide-c44e161f19ebd248.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libadler-5fc4e82b86ac8d4b.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libunwind-015dafaacb8d9514.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libcfg_if-5a6ad784fdcf8df1.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/liblibc-de1b104ec4d746e1.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/liballoc-1ee2cb2462431c2f.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/librustc_std_workspace_core-c1a97ddd293821f6.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libcore-809c8fd19f6a4bcc.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libcompiler_builtins-1ae9ecea3a211471.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lroot" "-lnetwork" "-lbsd" "-lgnu" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib" "-o" "/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/build/proc-macro2-6d8cf91412e6f0e4/build_script_build-6d8cf91412e6f0e4" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-debug" "-nodefaultlibs"
 0:52.49 error: could not compile `proc-macro2` (build script) due to 1 previous error
 0:53.27 dom/media/eme

—-

0:52.33 = note: LC_ALL="C"

PATH=" /boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/bin :/boot/home/.mozbuild/srcdirs/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e-dddbf92525aa/_virtualenvs/build/bin :/boot/home/.mozbuild/srcdirs/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e-dddbf92525aa/_virtualenvs/mach/bin :/boot/home/bin :. :/boot/home/config/non-packaged/bin :/boot/home/config/bin :/boot/system/non-packaged/bin :/bin :/boot/system/apps :/boot/system/preferences :/boot/home/.cargo/bin"

. VSLANG="1033"

"/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/build/cargo-linker"

not executable

~/src/haikuports/www-client/forefix/work-128.1.0.0> ls -lah sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/build/cargo-linker
-rw-r--r-- 1 user root 2.5K 11月  2 00:08 sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/build/cargo-linker

"-m64" "/tmp/rustcdGmDP3/symbols.o"

~/src/haikuports/www-client/forefix/work-128.1.0.0> ls -lah tmp/rustcdGmDP3
ls: cannot access 'tmp/rustcdGmDP3': No such file or directory
~/src/haikuports/www-client/forefix/work-128.1.0.0> ls -lah /tmp/rustcdGmDP3
ls: cannot access '/tmp/rustcdGmDP3': No such file or directory

"/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/build/proc-macro2-6d8cf91412e6f0e4/build_script_build-6d8cf91412e6f0e4.build_script_build.f8c2ea8c6d773fa2-cgu.0.rcgu.o" "/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/build/proc-macro2-6d8cf91412e6f0e4/build_script_build-6d8cf91412e6f0e4.build_script_build.f8c2ea8c6d773fa2-cgu.1.rcgu.o" "/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/build/proc-macro2-6d8cf91412e6f0e4/build_script_build-6d8cf91412e6f0e4.1bmwesdwtktuccqw.rcgu.o"

~/src/haikuports/www-client/forefix/work-128.1.0.0> ls -lah sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/build/proc-macro2-6d8cf91412e6f0e4/
total 78K
drwxr-xr-x 1 user root 2.0K 11月  3 14:24 .
drwxr-xr-x 1 user root 7.0K 11月  3 12:55 ..
-rw-r--r-- 1 user root 2.7K 11月  3 14:21 build_script_build-6d8cf91412e6f0e4.1bmwesdwtktuccqw.rcgu.o
-rw-r--r-- 1 user root  27K 11月  3 14:21 build_script_build-6d8cf91412e6f0e4.build_script_build.f8c2ea8c6d773fa2-cgu.0.rcgu.o
-rw-r--r-- 1 user root  19K 11月  3 14:21 build_script_build-6d8cf91412e6f0e4.build_script_build.f8c2ea8c6d773fa2-cgu.1.rcgu.o
-rw-r--r-- 1 user root  629 11月  3 14:21 build_script_build-6d8cf91412e6f0e4.d

"-Wl,--as-needed" "-L" "/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/deps"

~/src/haikuports/www-client/forefix/work-128.1.0.0> ls -lah sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/deps
total 12K
drwxr-xr-x 1 user root 2.0K 11月  3 12:55 .
drwxr-xr-x 1 user root 2.0K 11月  3 12:55 ..

"-L" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib" "-Wl,-Bstatic" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libstd-6042999d3c949dac.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libpanic_unwind-d10e8b1c382ee5a7.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libobject-98b0262fdbc9f8f4.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libmemchr-ff62bfbca926848b.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libaddr2line-18f10aee463b256e.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libgimli-bfb9a85fe79a95bb.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/librustc_demangle-08b3bbd3b7dc126b.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libstd_detect-8007f159bfbd8366.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libhashbrown-c0789ad0b5c9ca16.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/librustc_std_workspace_alloc-babc3448e617da79.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libminiz_oxide-c44e161f19ebd248.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libadler-5fc4e82b86ac8d4b.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libunwind-015dafaacb8d9514.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libcfg_if-5a6ad784fdcf8df1.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/liblibc-de1b104ec4d746e1.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/liballoc-1ee2cb2462431c2f.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/librustc_std_workspace_core-c1a97ddd293821f6.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libcore-809c8fd19f6a4bcc.rlib" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/libcompiler_builtins-1ae9ecea3a211471.rlib"

~/src/haikuports/www-client/forefix/work-128.1.0.0> ls -lah system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib/
total 96M
dr-xr-xr-x 1 user root    0  6月 24 05:15 .
dr-xr-xr-x 1 user root    0  6月 24 05:29 ..
-r--r--r-- 1 user root 403K  6月 24 05:15 libaddr2line-18f10aee463b256e.rlib
-r--r--r-- 1 user root  31K  6月 24 05:15 libadler-5fc4e82b86ac8d4b.rlib
-r--r--r-- 1 user root 5.3M  6月 24 05:15 liballoc-1ee2cb2462431c2f.rlib
-r--r--r-- 1 user root 9.1K  6月 24 05:15 libcfg_if-5a6ad784fdcf8df1.rlib
-r--r--r-- 1 user root 1.3M  6月 24 05:15 libcompiler_builtins-1ae9ecea3a211471.rlib
-r--r--r-- 1 user root  45M  6月 24 05:15 libcore-809c8fd19f6a4bcc.rlib
-r--r--r-- 1 user root 426K  6月 24 05:15 libgetopts-dac2146b956c4229.rlib
-r--r--r-- 1 user root 5.4M  6月 24 05:15 libgimli-bfb9a85fe79a95bb.rlib
-r--r--r-- 1 user root 1.5M  6月 24 05:15 libhashbrown-c0789ad0b5c9ca16.rlib
-r--r--r-- 1 user root 1.1M  6月 24 05:15 liblibc-de1b104ec4d746e1.rlib
-r--r--r-- 1 user root 781K  6月 24 05:15 libmemchr-ff62bfbca926848b.rlib
-r--r--r-- 1 user root 292K  6月 24 05:15 libminiz_oxide-c44e161f19ebd248.rlib
-r--r--r-- 1 user root 7.9M  6月 24 05:15 libobject-98b0262fdbc9f8f4.rlib
-r--r--r-- 1 user root 9.6K  6月 24 05:15 libpanic_abort-2437fde15092c109.rlib
-r--r--r-- 1 user root  23K  6月 24 05:15 libpanic_unwind-d10e8b1c382ee5a7.rlib
-r--r--r-- 1 user root 2.9M  6月 24 05:15 libproc_macro-78bd542c73236fb5.rlib
-r--r--r-- 1 user root 344K  6月 24 05:15 librustc_demangle-08b3bbd3b7dc126b.rlib
-r--r--r-- 1 user root 5.6K  6月 24 05:15 librustc_std_workspace_alloc-babc3448e617da79.rlib
-r--r--r-- 1 user root 8.2K  6月 24 05:15 librustc_std_workspace_core-c1a97ddd293821f6.rlib
-r--r--r-- 1 user root 9.9K  6月 24 05:15 librustc_std_workspace_std-d606641fe22352e7.rlib
-r--r--r-- 1 user root  11M  6月 24 05:15 libstd-6042999d3c949dac.rlib
-r--r--r-- 1 user root 8.3M  6月 24 05:15 libstd-6042999d3c949dac.so
-r--r--r-- 1 user root 403K  6月 24 05:15 libstd_detect-8007f159bfbd8366.rlib
-r--r--r-- 1 user root 5.6K  6月 24 05:15 libsysroot-9c7679d67e83c662.rlib
-r--r--r-- 1 user root 3.8M  6月 24 05:15 libtest-c0218b42106a3f6f.rlib
-r--r--r-- 1 user root  43K  6月 24 05:15 libunicode_width-f79d12ccfe0bc4f7.rlib
-r--r--r-- 1 user root  38K  6月 24 05:15 libunwind-015dafaacb8d9514.rlib

"-Wl,-Bdynamic" "-lgcc_s" "-lroot" "-lnetwork" "-lbsd" "-lgnu" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib"

~/src/haikuports/www-client/forefix/work-128.1.0.0> ls -la boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib
ls: cannot access 'boot/system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib': No such file or directory
~/src/haikuports/www-client/forefix/work-128.1.0.0> ls -la system/develop/tools/rust/lib/rustlib/x86_64-unknown-haiku/lib
total 97516
dr-xr-xr-x 1 user root        0  6月 24 05:15 .
dr-xr-xr-x 1 user root        0  6月 24 05:29 ..
-r--r--r-- 1 user root   412364  6月 24 05:15 libaddr2line-18f10aee463b256e.rlib
-r--r--r-- 1 user root    31580  6月 24 05:15 libadler-5fc4e82b86ac8d4b.rlib
-r--r--r-- 1 user root  5556454  6月 24 05:15 liballoc-1ee2cb2462431c2f.rlib
-r--r--r-- 1 user root     9294  6月 24 05:15 libcfg_if-5a6ad784fdcf8df1.rlib
-r--r--r-- 1 user root  1332682  6月 24 05:15 libcompiler_builtins-1ae9ecea3a211471.rlib
-r--r--r-- 1 user root 46583904  6月 24 05:15 libcore-809c8fd19f6a4bcc.rlib
-r--r--r-- 1 user root   435774  6月 24 05:15 libgetopts-dac2146b956c4229.rlib
-r--r--r-- 1 user root  5654158  6月 24 05:15 libgimli-bfb9a85fe79a95bb.rlib
-r--r--r-- 1 user root  1504890  6月 24 05:15 libhashbrown-c0789ad0b5c9ca16.rlib
-r--r--r-- 1 user root  1105434  6月 24 05:15 liblibc-de1b104ec4d746e1.rlib
-r--r--r-- 1 user root   799244  6月 24 05:15 libmemchr-ff62bfbca926848b.rlib
-r--r--r-- 1 user root   297998  6月 24 05:15 libminiz_oxide-c44e161f19ebd248.rlib
-r--r--r-- 1 user root  8193990  6月 24 05:15 libobject-98b0262fdbc9f8f4.rlib
-r--r--r-- 1 user root     9748  6月 24 05:15 libpanic_abort-2437fde15092c109.rlib
-r--r--r-- 1 user root    22846  6月 24 05:15 libpanic_unwind-d10e8b1c382ee5a7.rlib
-r--r--r-- 1 user root  2986528  6月 24 05:15 libproc_macro-78bd542c73236fb5.rlib
-r--r--r-- 1 user root   351908  6月 24 05:15 librustc_demangle-08b3bbd3b7dc126b.rlib
-r--r--r-- 1 user root     5644  6月 24 05:15 librustc_std_workspace_alloc-babc3448e617da79.rlib
-r--r--r-- 1 user root     8330  6月 24 05:15 librustc_std_workspace_core-c1a97ddd293821f6.rlib
-r--r--r-- 1 user root    10048  6月 24 05:15 librustc_std_workspace_std-d606641fe22352e7.rlib
-r--r--r-- 1 user root 11353700  6月 24 05:15 libstd-6042999d3c949dac.rlib
-r--r--r-- 1 user root  8695896  6月 24 05:15 libstd-6042999d3c949dac.so
-r--r--r-- 1 user root   412008  6月 24 05:15 libstd_detect-8007f159bfbd8366.rlib
-r--r--r-- 1 user root     5640  6月 24 05:15 libsysroot-9c7679d67e83c662.rlib
-r--r--r-- 1 user root  3984452  6月 24 05:15 libtest-c0218b42106a3f6f.rlib
-r--r--r-- 1 user root    43944  6月 24 05:15 libunicode_width-f79d12ccfe0bc4f7.rlib
-r--r--r-- 1 user root    37926  6月 24 05:15 libunwind-015dafaacb8d9514.rlib

"-o" "/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/build/proc-macro2-6d8cf91412e6f0e4/build_script_build-6d8cf91412e6f0e4"

~/src/haikuports/www-client/forefix/work-128.1.0.0> ls -lah sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/build/proc-macro2-6d8cf91412e6f0e4/build_script_build-6d8cf91412e6f0e4*
-rw-r--r-- 1 user root 2.7K 11月  3 14:21 sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/build/proc-macro2-6d8cf91412e6f0e4/build_script_build-6d8cf91412e6f0e4.1bmwesdwtktuccqw.rcgu.o
-rw-r--r-- 1 user root  27K 11月  3 14:21 sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/build/proc-macro2-6d8cf91412e6f0e4/build_script_build-6d8cf91412e6f0e4.build_script_build.f8c2ea8c6d773fa2-cgu.0.rcgu.o
-rw-r--r-- 1 user root  19K 11月  3 14:21 sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/build/proc-macro2-6d8cf91412e6f0e4/build_script_build-6d8cf91412e6f0e4.build_script_build.f8c2ea8c6d773fa2-cgu.1.rcgu.o
-rw-r--r-- 1 user root  629 11月  3 14:21 sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/release/build/proc-macro2-6d8cf91412e6f0e4/build_script_build-6d8cf91412e6f0e4.d

"-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,--strip-debug" "-nodefaultlibs"

kenz-gelsoft commented 2 weeks ago
47:50.64 We know it took a while, but your build finally finished successfully!
47:50.64 If you are building Firefox often, SCCache can save you a lot of time. You can learn more here: https://firefox-source-docs.mozilla.org/setup/configuring_build_options.html#sccache
To take your build for a test drive, run: |mach run|
For more information on what to do now, see https://firefox-source-docs.mozilla.org/setup/contributing_code.html
Collecting files to be packaged ...
 0:00.23 /bin/make -C . -j12 -s -w install
 0:00.27 make: Entering directory '/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku'
 0:00.28 make[1]: Entering directory '/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/browser/installer'
 0:00.28 BUILDSTATUS@browser/installer START_file_generate multilocale.txt
 0:00.41 BUILDSTATUS@browser/installer END_file_generate multilocale.txt
 0:04.99 Generating XPT artifacts archive (Forefix-128.1.0.en-US.haiku-x86_64.xpt_artifacts.zip)
 0:04.99 BUILDSTATUS@browser/installer START_zip Forefix-128.1.0.en-US.haiku-x86_64.xpt_artifacts.zip
 0:05.14 BUILDSTATUS@browser/installer END_zip Forefix-128.1.0.en-US.haiku-x86_64.xpt_artifacts.zip
 0:05.14 ../../config/nsinstall: cannot make directory /packages/forefix-128.1.0.0-1/.self: Read-only file system
 0:05.14 /sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/toolkit/mozapps/installer/packager.mk:167: recipe for target 'install' failed
 0:05.14 make[1]: *** [install] Error 1
 0:05.14 make[1]: Leaving directory '/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku/browser/installer'
 0:05.14 /sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/browser/build.mk:15: recipe for target 'install' failed
 0:05.14 make: *** [install] Error 2
 0:05.14 make: Leaving directory '/sources/gecko-dev-8fb7f2c21739214acee7b8c2981b14c2a25bcb8e/obj-x86_64-unknown-haiku'
Warning: Command '['bash', '-c', '. /wrapper-script']' returned non-zero exit status 2.
cleaning 'chroot/boot' folder
keeping chroot folder /boot/home/src/haikuports/www-client/forefix/work-128.1.0.0 intact for inspection
Error: Build has failed - stopping.
~/src/haikuports> 

Indeed .self dir is not writable

~/src/haikuports/www-client/forefix/work-128.1.0.0/packages/forefix-128.1.0.0-1/.self> ls -lah
total 3.2M
dr-xr-xr-x 1 user root    0 11月  2 23:09 .
drwxr-xr-x 1 user root 2.0K  4月 27  2023 ..
-r-xr-xr-x 1 user root 604K 11月  2 14:17 Deskbar
-r-xr-xr-x 1 user root  12K 11月  2 14:17 Tracker
dr-xr-xr-x 1 user root    0 11月  2 14:27 add-ons
dr-xr-xr-x 1 user root    0 11月  2 14:27 apps
dr-xr-xr-x 1 user root    0 11月  2 14:27 bin
dr-xr-xr-x 1 user root    0 11月  2 14:27 boot
drwxr-xr-x 1 user root 2.0K 10月 19 06:58 cache
dr-xr-xr-x 1 user root    0 11月  2 14:27 data
dr-xr-xr-x 1 user root    0 11月  2 14:27 demos
dr-xr-xr-x 1 user root    0 11月  2 14:30 develop
dr-xr-xr-x 1 user root    0 11月  2 14:27 documentation
-r-xr-xr-x 1 user root 300K 11月  2 14:09 haiku_loader.bios_ia32
-r-xr-xr-x 1 user root 2.1M 11月  2 14:10 kernel_x86_64
dr-xr-xr-x 1 user root    0 11月  2 14:27 lib
drwxr-xr-x 1 user root 2.0K  8月  1 23:59 non-packaged
dr-xr-xr-x 1 user root    0 11月  3 08:25 package-links
drwxr-xr-x 1 user root  36K 11月  4 05:56 packages
dr-xr-xr-x 1 user root    0 11月  2 14:27 preferences
-r-xr-xr-x 1 user root 154K 11月  2 14:25 runtime_loader
dr-xr-xr-x 1 user root    0 11月  2 14:27 servers
drwxr-xr-x 1 user root 2.0K 10月 19 06:51 settings
drwxr-xr-x 1 user root 2.0K  4月 27  2023 var
kenz-gelsoft commented 2 weeks ago

solution not found. I don't use $prefix for now

kenz-gelsoft commented 2 weeks ago
kenz-gelsoft commented 2 weeks ago
 0:10.23 W Notification center failed: Install notify-send (usually part of the libnotify package) to get a notification when the build finishes.
name                    bezilla
version                 128.1.0.0-1
architecture            x86_64
summary                 "Unofficial Haiku port of Mozilla Firefox"
description             "BeZilla is an open source web browser. It achieves balance between ease of use and customization, catering to the needs of both casual and power users."
packager                "KENZ <KENZ.gelsoft@gmail.com>"
vendor                  "Haiku Project"
licenses {
        "MPL v2.0"
}
copyrights {
        "1995-2024 Mozilla Developers and Contributors"
}
provides {
        bezilla= 128.1.0.0
        app:bezilla= 128.1.0.0
        cmd:bezilla= 128.1.0.0
}
requires {
        haiku >= r1~beta5_hrev58293-1
        lib:libatk_1.0 >= 0.23809.1
        lib:libcairo >= 2.11800.0
        lib:libcairo_gobject >= 2.11800.0
        lib:libgdk_3 >= 3.2404.30
        lib:libgdk_pixbuf_2.0 >= 0.4200.9
        lib:libglib_2.0 >= 0.7800.0
        lib:libgtk_3 >= 3.2404.30
        lib:libharfbuzz >= 0.60830.0
        lib:libintl >= 8.4.0
        lib:libnspr4 >= 4.34.1
        lib:libpango_1.0 >= 0.5400.0
        lib:libpangocairo_1.0 >= 0.5400.0
        lib:libpng16 >= 16.44.0
        lib:libz >= 1.3.1
}
urls {
        "https://github.com/kenz-gelsoft/gecko-dev"
}
source-urls {
# Download
        "https://github.com/kenz-gelsoft/gecko-dev/archive/d0eb35d161ff69c4b616d23e2a9594af2060d9ef.zip"
# Location 2
        "https://ports-mirror.haiku-os.org/bezilla/d0eb35d161ff69c4b616d23e2a9594af2060d9ef.zip"
}
mimesetting files for package bezilla-128.1.0.0-1-x86_64.hpkg ...
creating package bezilla-128.1.0.0-1-x86_64.hpkg ...
----- Package Info ----------------
header size:                     80
heap size:                 85931688
TOC size:                      3577
package attributes size:       1171
total size:                85931768
-----------------------------------
waiting for build package bezilla-128.1.0.0-1 to be deactivated
cleaning chroot folder
grabbing bezilla-128.1.0.0-1-x86_64.hpkg and moving it to /boot/home/src/haikuports/packages/bezilla-128.1.0.0-1-x86_64.hpkg
~/src/haikuports>