summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-08-17 22:27:17 -0500
committerIván Ávalos <avalos@disroot.org>2022-08-17 22:27:17 -0500
commite2d9c8ff20043faea6dc5e7354dff0d8a2a5c084 (patch)
treed7bae8f363de65f6375d8d19ba1b82a73d8f64b1
parent3c5694e2fc30a846f438b05579ba827725e04c11 (diff)
downloadabslibre-wip-icecat-armv7h.tar.gz
abslibre-wip-icecat-armv7h.tar.bz2
abslibre-wip-icecat-armv7h.zip
First attempt to fix armv7h buildwip-icecat-armv7h
-rw-r--r--libre/icecat/PKGBUILD10
-rw-r--r--libre/icecat/fix-rustc-armv7h.patch12
2 files changed, 18 insertions, 4 deletions
diff --git a/libre/icecat/PKGBUILD b/libre/icecat/PKGBUILD
index e2d101649..425619e32 100644
--- a/libre/icecat/PKGBUILD
+++ b/libre/icecat/PKGBUILD
@@ -49,7 +49,7 @@ source=(https://repo.parabola.nu/other/${pkgname}/${pkgname}-${_upstream_ver}.ta
icecat.desktop icecat-safe.desktop
0001-Use-remoting-name-for-GDK-application-names.patch
)
-source_armv7h=(arm.patch
+source_armv7h=(fix-rustc-armv7h.patch
build-arm-libopus.patch)
source_i686=(avoid-libxul-OOM-python-check.patch
rust-static-disable-network-test-on-static-libraries.patch)
@@ -59,7 +59,7 @@ sha256sums=('f2a149d562b0b441f4df1e395d00a36717f56001acf7f05d40ebab0088069661'
'33dd309eeb99ec730c97ba844bf6ce6c7840f7d27da19c82389cdefee8c20208'
'a7f5ae9f018678a391739365329a5a5b527b536bc9aac441c73ae811d2fa530d'
)
-sha256sums_armv7h=('bc00516032330760444939c516a60c78f868631e1b37f075f0fe71a53737b966'
+sha256sums_armv7h=('aa8abfcabedde8fd8d06142db97c9de1d7446e579bc2746fcea09b3d7e60485f'
'2d4d91f7e35d0860225084e37ec320ca6cae669f6c9c8fe7735cdbd542e3a7c9')
sha256sums_i686=('2f0c81a38c4578f68f5456b618fe84a78974072821488173eb55e0e72287e353'
'10c5276eab2e87f400a6ec15d7ffbef3b0407ee888dea36f1128927ca55b9041')
@@ -185,8 +185,10 @@ END
# EME is disabled anyway in the built package, but better check if it exists for ARM each new release.
sed -i 's|ac_add_options --disable-eme||' ../mozconfig
- echo "applying arm.patch"
- patch -p1 -i ../arm.patch
+ # echo "applying arm.patch"
+ # patch -p1 -i ../arm.patch
+ echo "applying fix-rustc-armv7h.patch"
+ patch -p1 -i ../fix-rustc-armv7h.patch
echo "applying build-arm-libopus.patch"
patch -p1 -i ../build-arm-libopus.patch
;;
diff --git a/libre/icecat/fix-rustc-armv7h.patch b/libre/icecat/fix-rustc-armv7h.patch
new file mode 100644
index 000000000..a083ca505
--- /dev/null
+++ b/libre/icecat/fix-rustc-armv7h.patch
@@ -0,0 +1,12 @@
+diff --git a/Cargo.toml b/Cargo.toml
+index 74658ce..a3455d1 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -58,6 +58,7 @@ opt-level = 2
+ rpath = false
+ debug-assertions = false
+ panic = "abort"
++codegen-units = 1
+
+ # Optimize build dependencies, because bindgen and proc macros / style
+ # compilation take more to run than to build otherwise.