Date: Monday, January 9, 2023 @ 16:20:56
Author: archange
Revision: 1382111
FS#77049 produce debug packages
Modified:
electron20/trunk/PKGBUILD
----------+
PKGBUILD | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-09 15:42:33 UTC (rev 1382110)
+++ PKGBUILD 2023-01-09 16:20:56 UTC (rev 1382111)
@@ -6,7 +6,7 @@
_chromiumver=104.0.5112.124
_gcc_patchset=2
# shellcheck disable=SC2034
-pkgrel=2
+pkgrel=3
_major_ver=${pkgver%%.*}
if [[ ${_use_suffix} != 0 ]]; then
@@ -42,7 +42,7 @@
provides=("electron${_major_ver}")
fi
# shellcheck disable=SC2034
-options=('!lto') # Electron adds its own flags for ThinLTO
+options=('debug' '!lto') # Electron adds its own flags for ThinLTO
# shellcheck disable=SC2034
source=('git+https://github.com/electron/electron.git'
'git+https://chromium.googlesource.com/chromium/tools/depot_tools.git#branch=main'
@@ -256,7 +256,7 @@
custom_toolchain = "//build/toolchain/linux/unbundle:default"
host_toolchain = "//build/toolchain/linux/unbundle:default"
clang_use_chrome_plugins = false
- symbol_level = 0
+ symbol_level = 0 # sufficient for backtraces on x86(_64)
chrome_pgo_phase = 2
treat_warnings_as_errors = false
rtc_use_pipewire = true
@@ -270,9 +270,6 @@
gn gen out/Release \
--args="import(\"//electron/build/args/release.gn\") ${GN_EXTRA_ARGS}"
ninja -C out/Release electron
- # Strip before zip to avoid
- # zipfile.LargeZipFile: Filesize would require ZIP64 extensions
- strip -s out/Release/electron
ninja -C out/Release electron_dist_zip
# ninja -C out/Release third_party/electron_node:headers
}