mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-31 18:02:57 +02:00
electron19: use python3.11 to build
This commit is contained in:
parent
d14cf9fba7
commit
684c75079a
1 changed files with 9 additions and 3 deletions
|
@ -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
|
pciutils-devel ffmpeg-devel libxml2-devel libglib-devel yarn openjdk libxslt-devel
|
||||||
opus-devel libXcursor-devel libXcomposite-devel libXtst-devel libXrandr-devel libXScrnSaver-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)
|
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
|
makedepends="libpng-devel gtk+-devel gtk+3-devel nss-devel pciutils-devel
|
||||||
libXi-devel libgcrypt-devel libgnome-keyring-devel cups-devel elfutils-devel
|
libXi-devel libgcrypt-devel libgnome-keyring-devel cups-devel elfutils-devel
|
||||||
libXcomposite-devel speech-dispatcher-devel libXrandr-devel mit-krb5-devel
|
libXcomposite-devel speech-dispatcher-devel libXrandr-devel mit-krb5-devel
|
||||||
|
@ -190,6 +190,8 @@ post_patch() {
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
|
ln -s "/usr/bin/python3.11" "${XBPS_WRAPPERDIR}/python3"
|
||||||
|
|
||||||
cd "$wrksrc/$build_wrksrc"
|
cd "$wrksrc/$build_wrksrc"
|
||||||
|
|
||||||
# https://groups.google.com/a/chromium.org/d/topic/chromium-packagers/9JX1N2nf4PU/discussion
|
# https://groups.google.com/a/chromium.org/d/topic/chromium-packagers/9JX1N2nf4PU/discussion
|
||||||
|
@ -262,8 +264,8 @@ pre_configure() {
|
||||||
|
|
||||||
|
|
||||||
msg_normal "Replacing gn files\n"
|
msg_normal "Replacing gn files\n"
|
||||||
python3 build/linux/unbundle/replace_gn_files.py --system-libraries \
|
python3.11 build/linux/unbundle/replace_gn_files.py \
|
||||||
$use_system
|
--system-libraries $use_system
|
||||||
third_party/libaddressinput/chromium/tools/update-strings.py
|
third_party/libaddressinput/chromium/tools/update-strings.py
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -399,6 +401,10 @@ do_build() {
|
||||||
export BUILD_AR="$AR_host"
|
export BUILD_AR="$AR_host"
|
||||||
export BUILD_NM="$NM_host"
|
export BUILD_NM="$NM_host"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Prevent ERR_OSSL_EVP_UNSUPPORTED
|
||||||
|
export NODE_OPTIONS=--openssl-legacy-provider
|
||||||
|
|
||||||
msg_normal "Ninja turtles GO!\n"
|
msg_normal "Ninja turtles GO!\n"
|
||||||
ninja ${makejobs} -C out/$_buildtype electron third_party/electron_node:headers
|
ninja ${makejobs} -C out/$_buildtype electron third_party/electron_node:headers
|
||||||
# finish rest of the build
|
# finish rest of the build
|
||||||
|
|
Loading…
Add table
Reference in a new issue