Skip to content

Commit

Permalink
dev-util/electron: Fixes #238
Browse files Browse the repository at this point in the history
  • Loading branch information
PF4Public committed Jun 25, 2023
1 parent 60663f2 commit 27010c3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dev-util/electron/electron-20.3.12-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
PYTHON_REQ_USE="xml"
PYTHON_REQ_USE="xml(+)"

CHROMIUM_LANGS="af am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he
hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr
Expand Down Expand Up @@ -1431,6 +1431,7 @@ src_prepare() {
"${FILESDIR}/perfetto-system-zlib.patch"
"${FILESDIR}/gtk-fix-prefers-color-scheme-query.diff"
"${FILESDIR}/restore-x86.patch"
"${FILESDIR}/python-3.11.patch"
"${DISTDIR}/${PN}-94814e869b2a9a61c80c3da22bd6b5bd0133933b.patch"
)

Expand Down
2 changes: 1 addition & 1 deletion dev-util/electron/electron-25.2.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@ COMMON_SNAPSHOT_DEPEND="
>=media-libs/alsa-lib-1.0.19:=
pulseaudio? (
|| (
media-sound/pulseaudio
media-libs/libpulse
>=media-sound/apulse-0.1.9
)
)
Expand Down
11 changes: 11 additions & 0 deletions dev-util/electron/files/python-3.11.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/tools/grit/grit/util.py
+++ b/tools/grit/grit/util.py
@@ -209,7 +209,7 @@
mode = 'rb'
encoding = None
else:
- mode = 'rU'
+ mode = 'r'

with io.open(filename, mode, encoding=encoding) as f:
return f.read()

0 comments on commit 27010c3

Please sign in to comment.