Skip to content

Commit

Permalink
updpatch: firefox 130.0-1
Browse files Browse the repository at this point in the history
Make patch rot less.
  • Loading branch information
hack3ric committed Sep 6, 2024
1 parent 33b2063 commit a90809e
Showing 1 changed file with 15 additions and 32 deletions.
47 changes: 15 additions & 32 deletions firefox/riscv64.patch
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
--- PKGBUILD
+++ PKGBUILD
@@ -143,7 +143,6 @@ ac_add_options --enable-optimize
@@ -120,7 +120,6 @@ ac_add_options --enable-optimize
ac_add_options --enable-rust-simd
ac_add_options --enable-linker=lld
ac_add_options --disable-install-strip
-ac_add_options --disable-elf-hack
ac_add_options --disable-bootstrap
ac_add_options --with-wasi-sysroot=/usr/share/wasi-sysroot

@@ -168,7 +167,7 @@ ac_add_options --with-system-nss
@@ -144,7 +143,7 @@ ac_add_options --with-system-nss
# Features
ac_add_options --enable-alsa
ac_add_options --enable-jack
Expand All @@ -17,39 +17,22 @@
ac_add_options --disable-updater
ac_add_options --disable-tests
END
@@ -195,34 +194,7 @@ build() {
@@ -169,6 +168,10 @@ build() {
# LTO needs more open files
ulimit -n 4096

+ cat >.mozconfig ../mozconfig
+ ./mach build --priority normal
+
+: <<COMMENT
# Do 3-tier PGO
echo "Building instrumented browser..."
- cat >.mozconfig ../mozconfig - <<END
-ac_add_options --enable-profile-generate=cross
-END
- ./mach build --priority normal
-
- echo "Profiling instrumented browser..."
- ./mach package
- LLVM_PROFDATA=llvm-profdata \
- JARLOG_FILE="$PWD/jarlog" \
- xvfb-run -s "-screen 0 1920x1080x24 -nolisten local" \
- ./mach python build/pgo/profileserver.py
-
- stat -c "Profile data found (%s bytes)" merged.profdata
- test -s merged.profdata
-
- stat -c "Jar log found (%s bytes)" jarlog
- test -s jarlog
-
- echo "Removing instrumented browser..."
- ./mach clobber objdir
-
- echo "Building optimized browser..."
- cat >.mozconfig ../mozconfig - <<END
-ac_add_options --enable-lto=cross,full
-ac_add_options --enable-profile-use=cross
-ac_add_options --with-pgo-profile-path=${PWD@Q}/merged.profdata
-ac_add_options --with-pgo-jarlog=${PWD@Q}/jarlog
-END
+ cat >.mozconfig ../mozconfig
cat >.mozconfig ../mozconfig - <<END
@@ -200,6 +203,7 @@ ac_add_options --with-pgo-profile-path=${PWD@Q}/merged.profdata
ac_add_options --with-pgo-jarlog=${PWD@Q}/jarlog
END
./mach build --priority normal
+COMMENT
}

package() {

0 comments on commit a90809e

Please sign in to comment.