Skip to content

Commit

Permalink
electron24: use python3.11 to build
Browse files Browse the repository at this point in the history
  • Loading branch information
ahesford committed Oct 12, 2023
1 parent 9af4a81 commit 0ca3610
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions srcpkgs/electron24/template
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ hostmakedepends="$(vopt_if clang "clang lld") python pkgconf perl gperf bison ni
pciutils-devel ffmpeg-devel libxml2-devel libglib-devel yarn openjdk libxslt-devel
opus-devel libXcursor-devel libXcomposite-devel libXtst-devel libXrandr-devel libXScrnSaver-devel
alsa-lib-devel re2-devel snappy-devel mit-krb5-devel $(vopt_if pulseaudio pulseaudio-devel)
$(vopt_if sndio sndio-devel) jq"
$(vopt_if sndio sndio-devel) jq python3.11"
makedepends="libpng-devel gtk+-devel gtk+3-devel nss-devel pciutils-devel
libXi-devel libgcrypt-devel libgnome-keyring-devel cups-devel elfutils-devel
libXcomposite-devel speech-dispatcher-devel libXrandr-devel mit-krb5-devel
Expand Down Expand Up @@ -206,6 +206,8 @@ post_patch() {
}

pre_configure() {
ln -s "/usr/bin/python3.11" "${XBPS_WRAPPERDIR}/python3"

cd "$wrksrc/$build_wrksrc"

# https://groups.google.com/a/chromium.org/d/topic/chromium-packagers/9JX1N2nf4PU/discussion
Expand Down Expand Up @@ -275,8 +277,8 @@ pre_configure() {


msg_normal "Replacing gn files\n"
python3 build/linux/unbundle/replace_gn_files.py --system-libraries \
$use_system
python3.11 build/linux/unbundle/replace_gn_files.py \
--system-libraries $use_system
third_party/libaddressinput/chromium/tools/update-strings.py

# Satisfy some scripts that use git describe to figure out the electron version
Expand Down

0 comments on commit 0ca3610

Please sign in to comment.