* [PR PATCH] 0ad: patch for Python 3.11
@ 2022-11-28 16:54 sgn
2022-11-28 17:42 ` CameronNemo
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: sgn @ 2022-11-28 16:54 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1237 bytes --]
There is a new pull request by sgn against master on the void-packages repository
https://github.com/sgn/void-packages 0ad-python-3.11
https://github.com/void-linux/void-packages/pull/40823
0ad: patch for Python 3.11
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **NO**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/40823.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-0ad-python-3.11-40823.patch --]
[-- Type: text/x-diff, Size: 6545 bytes --]
From b60808a930c9169a92116febadb1a80a60aa715a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
<congdanhqx@gmail.com>
Date: Mon, 28 Nov 2022 23:52:56 +0700
Subject: [PATCH] 0ad: patch for Python 3.11
---
srcpkgs/0ad/files/python-3.11.patch | 81 +++++++++++++++++++++++++++
srcpkgs/0ad/patches/python-3.11.patch | 11 ++++
srcpkgs/0ad/template | 11 +++-
3 files changed, 101 insertions(+), 2 deletions(-)
create mode 100644 srcpkgs/0ad/files/python-3.11.patch
create mode 100644 srcpkgs/0ad/patches/python-3.11.patch
diff --git a/srcpkgs/0ad/files/python-3.11.patch b/srcpkgs/0ad/files/python-3.11.patch
new file mode 100644
index 000000000000..3cb99d542f12
--- /dev/null
+++ b/srcpkgs/0ad/files/python-3.11.patch
@@ -0,0 +1,81 @@
+From 95f1e91ef71d912be5f6dddb6fac68671d850fd6 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= <fzatlouk@redhat.com>
+Date: Sun, 24 Jul 2022 11:11:01 +0200
+Subject: [PATCH] Python/Build: Use r instead of rU file read modes
+
+Fixes Python 3.11 build
+---
+ python/mozbuild/mozbuild/action/process_define_files.py | 2 +-
+ python/mozbuild/mozbuild/preprocessor.py | 6 +++---
+ python/mozbuild/mozbuild/util.py | 4 +++-
+ 3 files changed, 7 insertions(+), 5 deletions(-)
+
+diff --git a/python/mozbuild/mozbuild/action/process_define_files.py b/python/mozbuild/mozbuild/action/process_define_files.py
+index 6fff0d1..de2bcf4 100644
+--- a/python/mozbuild/mozbuild/action/process_define_files.py
++++ b/python/mozbuild/mozbuild/action/process_define_files.py
+@@ -36,7 +36,7 @@ def process_define_file(output, input):
+ not config.substs.get('JS_STANDALONE'):
+ config = PartialConfigEnvironment(mozpath.join(topobjdir, 'js', 'src'))
+
+- with open(path, 'rU') as input:
++ with open(path, 'r') as input:
+ r = re.compile('^\s*#\s*(?P<cmd>[a-z]+)(?:\s+(?P<name>\S+)(?:\s+(?P<value>\S+))?)?', re.U)
+ for l in input:
+ m = r.match(l)
+diff --git a/python/mozbuild/mozbuild/preprocessor.py b/python/mozbuild/mozbuild/preprocessor.py
+index 0e3a750..66f5cf7 100644
+--- a/python/mozbuild/mozbuild/preprocessor.py
++++ b/python/mozbuild/mozbuild/preprocessor.py
+@@ -517,7 +517,7 @@ class Preprocessor:
+
+ if args:
+ for f in args:
+- with io.open(f, 'rU', encoding='utf-8') as input:
++ with io.open(f, 'r', encoding='utf-8') as input:
+ self.processFile(input=input, output=out)
+ if depfile:
+ mk = Makefile()
+@@ -807,7 +807,7 @@ class Preprocessor:
+ args = self.applyFilters(args)
+ if not os.path.isabs(args):
+ args = os.path.join(self.curdir, args)
+- args = io.open(args, 'rU', encoding='utf-8')
++ args = io.open(args, 'r', encoding='utf-8')
+ except Preprocessor.Error:
+ raise
+ except Exception:
+@@ -862,7 +862,7 @@ def preprocess(includes=[sys.stdin], defines={},
+ pp = Preprocessor(defines=defines,
+ marker=marker)
+ for f in includes:
+- with io.open(f, 'rU', encoding='utf-8') as input:
++ with io.open(f, 'r', encoding='utf-8') as input:
+ pp.processFile(input=input, output=output)
+ return pp.includes
+
+diff --git a/python/mozbuild/mozbuild/util.py b/python/mozbuild/mozbuild/util.py
+index 044cf64..eb992ce 100644
+--- a/python/mozbuild/mozbuild/util.py
++++ b/python/mozbuild/mozbuild/util.py
+@@ -54,6 +54,8 @@ def exec_(object, globals=None, locals=None):
+
+
+ def _open(path, mode):
++ if mode == "rU":
++ mode = "r"
+ if 'b' in mode:
+ return io.open(path, mode)
+ return io.open(path, mode, encoding='utf-8', newline='\n')
+@@ -220,7 +222,7 @@ class FileAvoidWrite(BytesIO):
+ still occur, as well as diff capture if requested.
+ """
+
+- def __init__(self, filename, capture_diff=False, dry_run=False, readmode='rU'):
++ def __init__(self, filename, capture_diff=False, dry_run=False, readmode='r'):
+ BytesIO.__init__(self)
+ self.name = filename
+ assert type(capture_diff) == bool
+--
+2.37.1
+
diff --git a/srcpkgs/0ad/patches/python-3.11.patch b/srcpkgs/0ad/patches/python-3.11.patch
new file mode 100644
index 000000000000..d213bd4c2d07
--- /dev/null
+++ b/srcpkgs/0ad/patches/python-3.11.patch
@@ -0,0 +1,11 @@
+Index: 0ad-0.0.26/libraries/source/spidermonkey/patch.sh
+===================================================================
+--- 0ad-0.0.26.orig/libraries/source/spidermonkey/patch.sh
++++ 0ad-0.0.26/libraries/source/spidermonkey/patch.sh
+@@ -85,3 +85,6 @@ then
+ # https://svnweb.freebsd.org/ports/head/lang/spidermonkey78/files/patch-third__party_rust_cc_src_lib.rs?view=log
+ patch -p1 < ../FixFreeBSDRustThirdPartyOSDetection.diff
+ fi
++
++patch -p1 <../python-3.11.patch
++patch -p1 <../1654457-virtualenv.patch
diff --git a/srcpkgs/0ad/template b/srcpkgs/0ad/template
index 38039b475ef2..147c4277b99f 100644
--- a/srcpkgs/0ad/template
+++ b/srcpkgs/0ad/template
@@ -12,11 +12,15 @@ short_desc="Historically-based real-time strategy game"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="GPL-2.0-or-later, CC-BY-SA-3.0, MPL-2.0, MIT"
homepage="https://play0ad.com"
-distfiles="https://releases.wildfiregames.com/${pkgname}-${version}-alpha-unix-build.tar.xz"
-checksum=2e1c6df7e3312e77c5f82788664cffc3a78d3bf60606c00039275e1d13c0ee4b
+distfiles="https://releases.wildfiregames.com/${pkgname}-${version}-alpha-unix-build.tar.xz
+ https://github.com/mozilla/gecko-dev/commit/38543a6397c499743baeeab0a44d2b827f8a716b.patch>1654457-virtualenv.patch"
+checksum="2e1c6df7e3312e77c5f82788664cffc3a78d3bf60606c00039275e1d13c0ee4b
+ 0a44cebd9399ba742e7cb79a255a55caf8af19712baff21d009ef25a9619cb2e"
nocross="uses bundled third-party libraries that do not cross-compile"
lib32disabled=yes
+skip_extraction="1654457-virtualenv.patch"
+
CXXFLAGS="-fpermissive"
# Use BFD linker to avoid erroneous detection of llvm pr8927 with *-musl
LDFLAGS="-fuse-ld=bfd"
@@ -32,6 +36,9 @@ post_patch() {
echo "TARGET_LINK_LIBRARIES(nvcore execinfo)" >> \
libraries/source/nvtt/src/src/nvcore/CMakeLists.txt
fi
+ cp ${FILESDIR}/python-3.11.patch libraries/source/spidermonkey/
+ cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/1654457-virtualenv.patch \
+ libraries/source/spidermonkey/
}
do_configure() {
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 0ad: patch for Python 3.11
2022-11-28 16:54 [PR PATCH] 0ad: patch for Python 3.11 sgn
@ 2022-11-28 17:42 ` CameronNemo
2022-11-28 17:46 ` [PR PATCH] [Updated] " sgn
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: CameronNemo @ 2022-11-28 17:42 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 229 bytes --]
New comment by CameronNemo on void-packages repository
https://github.com/void-linux/void-packages/pull/40823#issuecomment-1329492522
Comment:
>Running as root will mess up file permissions. Aborting ...
in `do_build`. Hmm.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] 0ad: patch for Python 3.11
2022-11-28 16:54 [PR PATCH] 0ad: patch for Python 3.11 sgn
2022-11-28 17:42 ` CameronNemo
@ 2022-11-28 17:46 ` sgn
2022-11-28 17:58 ` sgn
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: sgn @ 2022-11-28 17:46 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1242 bytes --]
There is an updated pull request by sgn against master on the void-packages repository
https://github.com/sgn/void-packages 0ad-python-3.11
https://github.com/void-linux/void-packages/pull/40823
0ad: patch for Python 3.11
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **NO**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/40823.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-0ad-python-3.11-40823.patch --]
[-- Type: text/x-diff, Size: 7982 bytes --]
From 318ad0f02a76d5141bf288b6200c95a0f0f26544 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
<congdanhqx@gmail.com>
Date: Mon, 28 Nov 2022 23:52:56 +0700
Subject: [PATCH] 0ad: patch for Python 3.11
---
srcpkgs/0ad/files/python-3.11.patch | 81 +++++++++++++++++++++++++
srcpkgs/0ad/patches/no-check-root.patch | 15 +++++
srcpkgs/0ad/patches/python-3.11.patch | 30 +++++++++
srcpkgs/0ad/template | 11 +++-
4 files changed, 135 insertions(+), 2 deletions(-)
create mode 100644 srcpkgs/0ad/files/python-3.11.patch
create mode 100644 srcpkgs/0ad/patches/no-check-root.patch
create mode 100644 srcpkgs/0ad/patches/python-3.11.patch
diff --git a/srcpkgs/0ad/files/python-3.11.patch b/srcpkgs/0ad/files/python-3.11.patch
new file mode 100644
index 000000000000..3cb99d542f12
--- /dev/null
+++ b/srcpkgs/0ad/files/python-3.11.patch
@@ -0,0 +1,81 @@
+From 95f1e91ef71d912be5f6dddb6fac68671d850fd6 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= <fzatlouk@redhat.com>
+Date: Sun, 24 Jul 2022 11:11:01 +0200
+Subject: [PATCH] Python/Build: Use r instead of rU file read modes
+
+Fixes Python 3.11 build
+---
+ python/mozbuild/mozbuild/action/process_define_files.py | 2 +-
+ python/mozbuild/mozbuild/preprocessor.py | 6 +++---
+ python/mozbuild/mozbuild/util.py | 4 +++-
+ 3 files changed, 7 insertions(+), 5 deletions(-)
+
+diff --git a/python/mozbuild/mozbuild/action/process_define_files.py b/python/mozbuild/mozbuild/action/process_define_files.py
+index 6fff0d1..de2bcf4 100644
+--- a/python/mozbuild/mozbuild/action/process_define_files.py
++++ b/python/mozbuild/mozbuild/action/process_define_files.py
+@@ -36,7 +36,7 @@ def process_define_file(output, input):
+ not config.substs.get('JS_STANDALONE'):
+ config = PartialConfigEnvironment(mozpath.join(topobjdir, 'js', 'src'))
+
+- with open(path, 'rU') as input:
++ with open(path, 'r') as input:
+ r = re.compile('^\s*#\s*(?P<cmd>[a-z]+)(?:\s+(?P<name>\S+)(?:\s+(?P<value>\S+))?)?', re.U)
+ for l in input:
+ m = r.match(l)
+diff --git a/python/mozbuild/mozbuild/preprocessor.py b/python/mozbuild/mozbuild/preprocessor.py
+index 0e3a750..66f5cf7 100644
+--- a/python/mozbuild/mozbuild/preprocessor.py
++++ b/python/mozbuild/mozbuild/preprocessor.py
+@@ -517,7 +517,7 @@ class Preprocessor:
+
+ if args:
+ for f in args:
+- with io.open(f, 'rU', encoding='utf-8') as input:
++ with io.open(f, 'r', encoding='utf-8') as input:
+ self.processFile(input=input, output=out)
+ if depfile:
+ mk = Makefile()
+@@ -807,7 +807,7 @@ class Preprocessor:
+ args = self.applyFilters(args)
+ if not os.path.isabs(args):
+ args = os.path.join(self.curdir, args)
+- args = io.open(args, 'rU', encoding='utf-8')
++ args = io.open(args, 'r', encoding='utf-8')
+ except Preprocessor.Error:
+ raise
+ except Exception:
+@@ -862,7 +862,7 @@ def preprocess(includes=[sys.stdin], defines={},
+ pp = Preprocessor(defines=defines,
+ marker=marker)
+ for f in includes:
+- with io.open(f, 'rU', encoding='utf-8') as input:
++ with io.open(f, 'r', encoding='utf-8') as input:
+ pp.processFile(input=input, output=output)
+ return pp.includes
+
+diff --git a/python/mozbuild/mozbuild/util.py b/python/mozbuild/mozbuild/util.py
+index 044cf64..eb992ce 100644
+--- a/python/mozbuild/mozbuild/util.py
++++ b/python/mozbuild/mozbuild/util.py
+@@ -54,6 +54,8 @@ def exec_(object, globals=None, locals=None):
+
+
+ def _open(path, mode):
++ if mode == "rU":
++ mode = "r"
+ if 'b' in mode:
+ return io.open(path, mode)
+ return io.open(path, mode, encoding='utf-8', newline='\n')
+@@ -220,7 +222,7 @@ class FileAvoidWrite(BytesIO):
+ still occur, as well as diff capture if requested.
+ """
+
+- def __init__(self, filename, capture_diff=False, dry_run=False, readmode='rU'):
++ def __init__(self, filename, capture_diff=False, dry_run=False, readmode='r'):
+ BytesIO.__init__(self)
+ self.name = filename
+ assert type(capture_diff) == bool
+--
+2.37.1
+
diff --git a/srcpkgs/0ad/patches/no-check-root.patch b/srcpkgs/0ad/patches/no-check-root.patch
new file mode 100644
index 000000000000..633c33dc9c6e
--- /dev/null
+++ b/srcpkgs/0ad/patches/no-check-root.patch
@@ -0,0 +1,15 @@
+Index: 0ad-0.0.26/build/workspaces/update-workspaces.sh
+===================================================================
+--- 0ad-0.0.26.orig/build/workspaces/update-workspaces.sh
++++ 0ad-0.0.26/build/workspaces/update-workspaces.sh
+@@ -1,10 +1,5 @@
+ #!/bin/sh
+
+-if [ "$(id -u)" = "0" ]; then
+- echo "Running as root will mess up file permissions. Aborting ..." 1>&2
+- exit 1
+-fi
+-
+ die()
+ {
+ echo ERROR: $*
diff --git a/srcpkgs/0ad/patches/python-3.11.patch b/srcpkgs/0ad/patches/python-3.11.patch
new file mode 100644
index 000000000000..a1144923b124
--- /dev/null
+++ b/srcpkgs/0ad/patches/python-3.11.patch
@@ -0,0 +1,30 @@
+Index: 0ad-0.0.26/libraries/source/spidermonkey/patch.sh
+===================================================================
+--- 0ad-0.0.26.orig/libraries/source/spidermonkey/patch.sh
++++ 0ad-0.0.26/libraries/source/spidermonkey/patch.sh
+@@ -2,6 +2,16 @@
+ # Apply patches if needed
+ # This script gets called from build.sh.
+
++PATH=/usr/libexec/chroot-git:$PATH
++git init . -b for-build
++git config user.name 'Void Linux'
++git config user.email 'none@voidlinux.org'
++git add . >/dev/null 2>&1
++git commit -m needs-git-because-virtual-env-has-binaries-diff
++
++git am --keep-cr ../1654457-virtualenv.patch
++git am --keep-cr ../python-3.11.patch
++
+ # SM78 fails to create virtual envs on macs with python > 3.7
+ # Unfortunately, 3.7 is mostly unavailable on ARM macs.
+ # Therefore, replace the custom script with a more up-to-date version from pip
+@@ -26,7 +36,7 @@ else
+ #
+ # It is assumed that the updated version fetched for macOS systems
+ # above does not have this problem.
+- patch -p1 < ../FixVirtualenvForPython310.diff
++ : patch -p1 < ../FixVirtualenvForPython310.diff
+ fi
+
+ # Mozglue symbols need to be linked against static builds.
diff --git a/srcpkgs/0ad/template b/srcpkgs/0ad/template
index 38039b475ef2..c07b5ad510ca 100644
--- a/srcpkgs/0ad/template
+++ b/srcpkgs/0ad/template
@@ -12,11 +12,15 @@ short_desc="Historically-based real-time strategy game"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="GPL-2.0-or-later, CC-BY-SA-3.0, MPL-2.0, MIT"
homepage="https://play0ad.com"
-distfiles="https://releases.wildfiregames.com/${pkgname}-${version}-alpha-unix-build.tar.xz"
-checksum=2e1c6df7e3312e77c5f82788664cffc3a78d3bf60606c00039275e1d13c0ee4b
+distfiles="https://releases.wildfiregames.com/${pkgname}-${version}-alpha-unix-build.tar.xz
+ https://github.com/mozilla/gecko-dev/commit/74641307d32a59806b75cd2b8c7161aca50d5cb7.patch>1654457-virtualenv.patch"
+checksum="2e1c6df7e3312e77c5f82788664cffc3a78d3bf60606c00039275e1d13c0ee4b
+ f18fa3adae7acb07a49148354b6804028e6c9d7344991622fb7c00f638173e03"
nocross="uses bundled third-party libraries that do not cross-compile"
lib32disabled=yes
+skip_extraction="1654457-virtualenv.patch"
+
CXXFLAGS="-fpermissive"
# Use BFD linker to avoid erroneous detection of llvm pr8927 with *-musl
LDFLAGS="-fuse-ld=bfd"
@@ -32,6 +36,9 @@ post_patch() {
echo "TARGET_LINK_LIBRARIES(nvcore execinfo)" >> \
libraries/source/nvtt/src/src/nvcore/CMakeLists.txt
fi
+ cp ${FILESDIR}/python-3.11.patch libraries/source/spidermonkey/
+ cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/1654457-virtualenv.patch \
+ libraries/source/spidermonkey/
}
do_configure() {
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] 0ad: patch for Python 3.11
2022-11-28 16:54 [PR PATCH] 0ad: patch for Python 3.11 sgn
2022-11-28 17:42 ` CameronNemo
2022-11-28 17:46 ` [PR PATCH] [Updated] " sgn
@ 2022-11-28 17:58 ` sgn
2022-11-29 0:31 ` sgn
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: sgn @ 2022-11-28 17:58 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1242 bytes --]
There is an updated pull request by sgn against master on the void-packages repository
https://github.com/sgn/void-packages 0ad-python-3.11
https://github.com/void-linux/void-packages/pull/40823
0ad: patch for Python 3.11
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **NO**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/40823.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-0ad-python-3.11-40823.patch --]
[-- Type: text/x-diff, Size: 9890 bytes --]
From 318ad0f02a76d5141bf288b6200c95a0f0f26544 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
<congdanhqx@gmail.com>
Date: Mon, 28 Nov 2022 23:52:56 +0700
Subject: [PATCH 1/2] 0ad: patch for Python 3.11
---
srcpkgs/0ad/files/python-3.11.patch | 81 +++++++++++++++++++++++++
srcpkgs/0ad/patches/no-check-root.patch | 15 +++++
srcpkgs/0ad/patches/python-3.11.patch | 30 +++++++++
srcpkgs/0ad/template | 11 +++-
4 files changed, 135 insertions(+), 2 deletions(-)
create mode 100644 srcpkgs/0ad/files/python-3.11.patch
create mode 100644 srcpkgs/0ad/patches/no-check-root.patch
create mode 100644 srcpkgs/0ad/patches/python-3.11.patch
diff --git a/srcpkgs/0ad/files/python-3.11.patch b/srcpkgs/0ad/files/python-3.11.patch
new file mode 100644
index 000000000000..3cb99d542f12
--- /dev/null
+++ b/srcpkgs/0ad/files/python-3.11.patch
@@ -0,0 +1,81 @@
+From 95f1e91ef71d912be5f6dddb6fac68671d850fd6 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= <fzatlouk@redhat.com>
+Date: Sun, 24 Jul 2022 11:11:01 +0200
+Subject: [PATCH] Python/Build: Use r instead of rU file read modes
+
+Fixes Python 3.11 build
+---
+ python/mozbuild/mozbuild/action/process_define_files.py | 2 +-
+ python/mozbuild/mozbuild/preprocessor.py | 6 +++---
+ python/mozbuild/mozbuild/util.py | 4 +++-
+ 3 files changed, 7 insertions(+), 5 deletions(-)
+
+diff --git a/python/mozbuild/mozbuild/action/process_define_files.py b/python/mozbuild/mozbuild/action/process_define_files.py
+index 6fff0d1..de2bcf4 100644
+--- a/python/mozbuild/mozbuild/action/process_define_files.py
++++ b/python/mozbuild/mozbuild/action/process_define_files.py
+@@ -36,7 +36,7 @@ def process_define_file(output, input):
+ not config.substs.get('JS_STANDALONE'):
+ config = PartialConfigEnvironment(mozpath.join(topobjdir, 'js', 'src'))
+
+- with open(path, 'rU') as input:
++ with open(path, 'r') as input:
+ r = re.compile('^\s*#\s*(?P<cmd>[a-z]+)(?:\s+(?P<name>\S+)(?:\s+(?P<value>\S+))?)?', re.U)
+ for l in input:
+ m = r.match(l)
+diff --git a/python/mozbuild/mozbuild/preprocessor.py b/python/mozbuild/mozbuild/preprocessor.py
+index 0e3a750..66f5cf7 100644
+--- a/python/mozbuild/mozbuild/preprocessor.py
++++ b/python/mozbuild/mozbuild/preprocessor.py
+@@ -517,7 +517,7 @@ class Preprocessor:
+
+ if args:
+ for f in args:
+- with io.open(f, 'rU', encoding='utf-8') as input:
++ with io.open(f, 'r', encoding='utf-8') as input:
+ self.processFile(input=input, output=out)
+ if depfile:
+ mk = Makefile()
+@@ -807,7 +807,7 @@ class Preprocessor:
+ args = self.applyFilters(args)
+ if not os.path.isabs(args):
+ args = os.path.join(self.curdir, args)
+- args = io.open(args, 'rU', encoding='utf-8')
++ args = io.open(args, 'r', encoding='utf-8')
+ except Preprocessor.Error:
+ raise
+ except Exception:
+@@ -862,7 +862,7 @@ def preprocess(includes=[sys.stdin], defines={},
+ pp = Preprocessor(defines=defines,
+ marker=marker)
+ for f in includes:
+- with io.open(f, 'rU', encoding='utf-8') as input:
++ with io.open(f, 'r', encoding='utf-8') as input:
+ pp.processFile(input=input, output=output)
+ return pp.includes
+
+diff --git a/python/mozbuild/mozbuild/util.py b/python/mozbuild/mozbuild/util.py
+index 044cf64..eb992ce 100644
+--- a/python/mozbuild/mozbuild/util.py
++++ b/python/mozbuild/mozbuild/util.py
+@@ -54,6 +54,8 @@ def exec_(object, globals=None, locals=None):
+
+
+ def _open(path, mode):
++ if mode == "rU":
++ mode = "r"
+ if 'b' in mode:
+ return io.open(path, mode)
+ return io.open(path, mode, encoding='utf-8', newline='\n')
+@@ -220,7 +222,7 @@ class FileAvoidWrite(BytesIO):
+ still occur, as well as diff capture if requested.
+ """
+
+- def __init__(self, filename, capture_diff=False, dry_run=False, readmode='rU'):
++ def __init__(self, filename, capture_diff=False, dry_run=False, readmode='r'):
+ BytesIO.__init__(self)
+ self.name = filename
+ assert type(capture_diff) == bool
+--
+2.37.1
+
diff --git a/srcpkgs/0ad/patches/no-check-root.patch b/srcpkgs/0ad/patches/no-check-root.patch
new file mode 100644
index 000000000000..633c33dc9c6e
--- /dev/null
+++ b/srcpkgs/0ad/patches/no-check-root.patch
@@ -0,0 +1,15 @@
+Index: 0ad-0.0.26/build/workspaces/update-workspaces.sh
+===================================================================
+--- 0ad-0.0.26.orig/build/workspaces/update-workspaces.sh
++++ 0ad-0.0.26/build/workspaces/update-workspaces.sh
+@@ -1,10 +1,5 @@
+ #!/bin/sh
+
+-if [ "$(id -u)" = "0" ]; then
+- echo "Running as root will mess up file permissions. Aborting ..." 1>&2
+- exit 1
+-fi
+-
+ die()
+ {
+ echo ERROR: $*
diff --git a/srcpkgs/0ad/patches/python-3.11.patch b/srcpkgs/0ad/patches/python-3.11.patch
new file mode 100644
index 000000000000..a1144923b124
--- /dev/null
+++ b/srcpkgs/0ad/patches/python-3.11.patch
@@ -0,0 +1,30 @@
+Index: 0ad-0.0.26/libraries/source/spidermonkey/patch.sh
+===================================================================
+--- 0ad-0.0.26.orig/libraries/source/spidermonkey/patch.sh
++++ 0ad-0.0.26/libraries/source/spidermonkey/patch.sh
+@@ -2,6 +2,16 @@
+ # Apply patches if needed
+ # This script gets called from build.sh.
+
++PATH=/usr/libexec/chroot-git:$PATH
++git init . -b for-build
++git config user.name 'Void Linux'
++git config user.email 'none@voidlinux.org'
++git add . >/dev/null 2>&1
++git commit -m needs-git-because-virtual-env-has-binaries-diff
++
++git am --keep-cr ../1654457-virtualenv.patch
++git am --keep-cr ../python-3.11.patch
++
+ # SM78 fails to create virtual envs on macs with python > 3.7
+ # Unfortunately, 3.7 is mostly unavailable on ARM macs.
+ # Therefore, replace the custom script with a more up-to-date version from pip
+@@ -26,7 +36,7 @@ else
+ #
+ # It is assumed that the updated version fetched for macOS systems
+ # above does not have this problem.
+- patch -p1 < ../FixVirtualenvForPython310.diff
++ : patch -p1 < ../FixVirtualenvForPython310.diff
+ fi
+
+ # Mozglue symbols need to be linked against static builds.
diff --git a/srcpkgs/0ad/template b/srcpkgs/0ad/template
index 38039b475ef2..c07b5ad510ca 100644
--- a/srcpkgs/0ad/template
+++ b/srcpkgs/0ad/template
@@ -12,11 +12,15 @@ short_desc="Historically-based real-time strategy game"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="GPL-2.0-or-later, CC-BY-SA-3.0, MPL-2.0, MIT"
homepage="https://play0ad.com"
-distfiles="https://releases.wildfiregames.com/${pkgname}-${version}-alpha-unix-build.tar.xz"
-checksum=2e1c6df7e3312e77c5f82788664cffc3a78d3bf60606c00039275e1d13c0ee4b
+distfiles="https://releases.wildfiregames.com/${pkgname}-${version}-alpha-unix-build.tar.xz
+ https://github.com/mozilla/gecko-dev/commit/74641307d32a59806b75cd2b8c7161aca50d5cb7.patch>1654457-virtualenv.patch"
+checksum="2e1c6df7e3312e77c5f82788664cffc3a78d3bf60606c00039275e1d13c0ee4b
+ f18fa3adae7acb07a49148354b6804028e6c9d7344991622fb7c00f638173e03"
nocross="uses bundled third-party libraries that do not cross-compile"
lib32disabled=yes
+skip_extraction="1654457-virtualenv.patch"
+
CXXFLAGS="-fpermissive"
# Use BFD linker to avoid erroneous detection of llvm pr8927 with *-musl
LDFLAGS="-fuse-ld=bfd"
@@ -32,6 +36,9 @@ post_patch() {
echo "TARGET_LINK_LIBRARIES(nvcore execinfo)" >> \
libraries/source/nvtt/src/src/nvcore/CMakeLists.txt
fi
+ cp ${FILESDIR}/python-3.11.patch libraries/source/spidermonkey/
+ cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/1654457-virtualenv.patch \
+ libraries/source/spidermonkey/
}
do_configure() {
From 2a9ccad6c01d3c466c47d55821555c4264e05cfb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
<congdanhqx@gmail.com>
Date: Tue, 29 Nov 2022 00:58:10 +0700
Subject: [PATCH 2/2] fixup! 0ad: patch for Python 3.11
---
srcpkgs/0ad/patches/python-3.11.patch | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/srcpkgs/0ad/patches/python-3.11.patch b/srcpkgs/0ad/patches/python-3.11.patch
index a1144923b124..104a862cea8c 100644
--- a/srcpkgs/0ad/patches/python-3.11.patch
+++ b/srcpkgs/0ad/patches/python-3.11.patch
@@ -2,14 +2,19 @@ Index: 0ad-0.0.26/libraries/source/spidermonkey/patch.sh
===================================================================
--- 0ad-0.0.26.orig/libraries/source/spidermonkey/patch.sh
+++ 0ad-0.0.26/libraries/source/spidermonkey/patch.sh
-@@ -2,6 +2,16 @@
+@@ -2,6 +2,21 @@
# Apply patches if needed
# This script gets called from build.sh.
++unset GIT_DIR
++HOME=/tmp
+PATH=/usr/libexec/chroot-git:$PATH
++GIT_CEILING_DIRECTORIES="$(cd .. && pwd)"
++export GIT_CEILING_DIRECTORIES HOME
++git config --global --add safe.directory "$PWD"
++git config --global user.name 'Void Linux'
++git config --global user.email 'none@voidlinux.org'
+git init . -b for-build
-+git config user.name 'Void Linux'
-+git config user.email 'none@voidlinux.org'
+git add . >/dev/null 2>&1
+git commit -m needs-git-because-virtual-env-has-binaries-diff
+
@@ -19,7 +24,7 @@ Index: 0ad-0.0.26/libraries/source/spidermonkey/patch.sh
# SM78 fails to create virtual envs on macs with python > 3.7
# Unfortunately, 3.7 is mostly unavailable on ARM macs.
# Therefore, replace the custom script with a more up-to-date version from pip
-@@ -26,7 +36,7 @@ else
+@@ -26,7 +41,7 @@ else
#
# It is assumed that the updated version fetched for macOS systems
# above does not have this problem.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Updated] 0ad: patch for Python 3.11
2022-11-28 16:54 [PR PATCH] 0ad: patch for Python 3.11 sgn
` (2 preceding siblings ...)
2022-11-28 17:58 ` sgn
@ 2022-11-29 0:31 ` sgn
2022-11-29 1:33 ` [PR PATCH] [Merged]: " sgn
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: sgn @ 2022-11-29 0:31 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1242 bytes --]
There is an updated pull request by sgn against master on the void-packages repository
https://github.com/sgn/void-packages 0ad-python-3.11
https://github.com/void-linux/void-packages/pull/40823
0ad: patch for Python 3.11
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **NO**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/40823.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-0ad-python-3.11-40823.patch --]
[-- Type: text/x-diff, Size: 8162 bytes --]
From 847f601247da480064c440695b9c56990b0a10c5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
<congdanhqx@gmail.com>
Date: Mon, 28 Nov 2022 23:52:56 +0700
Subject: [PATCH] 0ad: patch for Python 3.11
---
srcpkgs/0ad/files/python-3.11.patch | 81 +++++++++++++++++++++++++
srcpkgs/0ad/patches/no-check-root.patch | 15 +++++
srcpkgs/0ad/patches/python-3.11.patch | 35 +++++++++++
srcpkgs/0ad/template | 11 +++-
4 files changed, 140 insertions(+), 2 deletions(-)
create mode 100644 srcpkgs/0ad/files/python-3.11.patch
create mode 100644 srcpkgs/0ad/patches/no-check-root.patch
create mode 100644 srcpkgs/0ad/patches/python-3.11.patch
diff --git a/srcpkgs/0ad/files/python-3.11.patch b/srcpkgs/0ad/files/python-3.11.patch
new file mode 100644
index 000000000000..3cb99d542f12
--- /dev/null
+++ b/srcpkgs/0ad/files/python-3.11.patch
@@ -0,0 +1,81 @@
+From 95f1e91ef71d912be5f6dddb6fac68671d850fd6 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= <fzatlouk@redhat.com>
+Date: Sun, 24 Jul 2022 11:11:01 +0200
+Subject: [PATCH] Python/Build: Use r instead of rU file read modes
+
+Fixes Python 3.11 build
+---
+ python/mozbuild/mozbuild/action/process_define_files.py | 2 +-
+ python/mozbuild/mozbuild/preprocessor.py | 6 +++---
+ python/mozbuild/mozbuild/util.py | 4 +++-
+ 3 files changed, 7 insertions(+), 5 deletions(-)
+
+diff --git a/python/mozbuild/mozbuild/action/process_define_files.py b/python/mozbuild/mozbuild/action/process_define_files.py
+index 6fff0d1..de2bcf4 100644
+--- a/python/mozbuild/mozbuild/action/process_define_files.py
++++ b/python/mozbuild/mozbuild/action/process_define_files.py
+@@ -36,7 +36,7 @@ def process_define_file(output, input):
+ not config.substs.get('JS_STANDALONE'):
+ config = PartialConfigEnvironment(mozpath.join(topobjdir, 'js', 'src'))
+
+- with open(path, 'rU') as input:
++ with open(path, 'r') as input:
+ r = re.compile('^\s*#\s*(?P<cmd>[a-z]+)(?:\s+(?P<name>\S+)(?:\s+(?P<value>\S+))?)?', re.U)
+ for l in input:
+ m = r.match(l)
+diff --git a/python/mozbuild/mozbuild/preprocessor.py b/python/mozbuild/mozbuild/preprocessor.py
+index 0e3a750..66f5cf7 100644
+--- a/python/mozbuild/mozbuild/preprocessor.py
++++ b/python/mozbuild/mozbuild/preprocessor.py
+@@ -517,7 +517,7 @@ class Preprocessor:
+
+ if args:
+ for f in args:
+- with io.open(f, 'rU', encoding='utf-8') as input:
++ with io.open(f, 'r', encoding='utf-8') as input:
+ self.processFile(input=input, output=out)
+ if depfile:
+ mk = Makefile()
+@@ -807,7 +807,7 @@ class Preprocessor:
+ args = self.applyFilters(args)
+ if not os.path.isabs(args):
+ args = os.path.join(self.curdir, args)
+- args = io.open(args, 'rU', encoding='utf-8')
++ args = io.open(args, 'r', encoding='utf-8')
+ except Preprocessor.Error:
+ raise
+ except Exception:
+@@ -862,7 +862,7 @@ def preprocess(includes=[sys.stdin], defines={},
+ pp = Preprocessor(defines=defines,
+ marker=marker)
+ for f in includes:
+- with io.open(f, 'rU', encoding='utf-8') as input:
++ with io.open(f, 'r', encoding='utf-8') as input:
+ pp.processFile(input=input, output=output)
+ return pp.includes
+
+diff --git a/python/mozbuild/mozbuild/util.py b/python/mozbuild/mozbuild/util.py
+index 044cf64..eb992ce 100644
+--- a/python/mozbuild/mozbuild/util.py
++++ b/python/mozbuild/mozbuild/util.py
+@@ -54,6 +54,8 @@ def exec_(object, globals=None, locals=None):
+
+
+ def _open(path, mode):
++ if mode == "rU":
++ mode = "r"
+ if 'b' in mode:
+ return io.open(path, mode)
+ return io.open(path, mode, encoding='utf-8', newline='\n')
+@@ -220,7 +222,7 @@ class FileAvoidWrite(BytesIO):
+ still occur, as well as diff capture if requested.
+ """
+
+- def __init__(self, filename, capture_diff=False, dry_run=False, readmode='rU'):
++ def __init__(self, filename, capture_diff=False, dry_run=False, readmode='r'):
+ BytesIO.__init__(self)
+ self.name = filename
+ assert type(capture_diff) == bool
+--
+2.37.1
+
diff --git a/srcpkgs/0ad/patches/no-check-root.patch b/srcpkgs/0ad/patches/no-check-root.patch
new file mode 100644
index 000000000000..633c33dc9c6e
--- /dev/null
+++ b/srcpkgs/0ad/patches/no-check-root.patch
@@ -0,0 +1,15 @@
+Index: 0ad-0.0.26/build/workspaces/update-workspaces.sh
+===================================================================
+--- 0ad-0.0.26.orig/build/workspaces/update-workspaces.sh
++++ 0ad-0.0.26/build/workspaces/update-workspaces.sh
+@@ -1,10 +1,5 @@
+ #!/bin/sh
+
+-if [ "$(id -u)" = "0" ]; then
+- echo "Running as root will mess up file permissions. Aborting ..." 1>&2
+- exit 1
+-fi
+-
+ die()
+ {
+ echo ERROR: $*
diff --git a/srcpkgs/0ad/patches/python-3.11.patch b/srcpkgs/0ad/patches/python-3.11.patch
new file mode 100644
index 000000000000..104a862cea8c
--- /dev/null
+++ b/srcpkgs/0ad/patches/python-3.11.patch
@@ -0,0 +1,35 @@
+Index: 0ad-0.0.26/libraries/source/spidermonkey/patch.sh
+===================================================================
+--- 0ad-0.0.26.orig/libraries/source/spidermonkey/patch.sh
++++ 0ad-0.0.26/libraries/source/spidermonkey/patch.sh
+@@ -2,6 +2,21 @@
+ # Apply patches if needed
+ # This script gets called from build.sh.
+
++unset GIT_DIR
++HOME=/tmp
++PATH=/usr/libexec/chroot-git:$PATH
++GIT_CEILING_DIRECTORIES="$(cd .. && pwd)"
++export GIT_CEILING_DIRECTORIES HOME
++git config --global --add safe.directory "$PWD"
++git config --global user.name 'Void Linux'
++git config --global user.email 'none@voidlinux.org'
++git init . -b for-build
++git add . >/dev/null 2>&1
++git commit -m needs-git-because-virtual-env-has-binaries-diff
++
++git am --keep-cr ../1654457-virtualenv.patch
++git am --keep-cr ../python-3.11.patch
++
+ # SM78 fails to create virtual envs on macs with python > 3.7
+ # Unfortunately, 3.7 is mostly unavailable on ARM macs.
+ # Therefore, replace the custom script with a more up-to-date version from pip
+@@ -26,7 +41,7 @@ else
+ #
+ # It is assumed that the updated version fetched for macOS systems
+ # above does not have this problem.
+- patch -p1 < ../FixVirtualenvForPython310.diff
++ : patch -p1 < ../FixVirtualenvForPython310.diff
+ fi
+
+ # Mozglue symbols need to be linked against static builds.
diff --git a/srcpkgs/0ad/template b/srcpkgs/0ad/template
index 38039b475ef2..c07b5ad510ca 100644
--- a/srcpkgs/0ad/template
+++ b/srcpkgs/0ad/template
@@ -12,11 +12,15 @@ short_desc="Historically-based real-time strategy game"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="GPL-2.0-or-later, CC-BY-SA-3.0, MPL-2.0, MIT"
homepage="https://play0ad.com"
-distfiles="https://releases.wildfiregames.com/${pkgname}-${version}-alpha-unix-build.tar.xz"
-checksum=2e1c6df7e3312e77c5f82788664cffc3a78d3bf60606c00039275e1d13c0ee4b
+distfiles="https://releases.wildfiregames.com/${pkgname}-${version}-alpha-unix-build.tar.xz
+ https://github.com/mozilla/gecko-dev/commit/74641307d32a59806b75cd2b8c7161aca50d5cb7.patch>1654457-virtualenv.patch"
+checksum="2e1c6df7e3312e77c5f82788664cffc3a78d3bf60606c00039275e1d13c0ee4b
+ f18fa3adae7acb07a49148354b6804028e6c9d7344991622fb7c00f638173e03"
nocross="uses bundled third-party libraries that do not cross-compile"
lib32disabled=yes
+skip_extraction="1654457-virtualenv.patch"
+
CXXFLAGS="-fpermissive"
# Use BFD linker to avoid erroneous detection of llvm pr8927 with *-musl
LDFLAGS="-fuse-ld=bfd"
@@ -32,6 +36,9 @@ post_patch() {
echo "TARGET_LINK_LIBRARIES(nvcore execinfo)" >> \
libraries/source/nvtt/src/src/nvcore/CMakeLists.txt
fi
+ cp ${FILESDIR}/python-3.11.patch libraries/source/spidermonkey/
+ cp ${XBPS_SRCDISTDIR}/${pkgname}-${version}/1654457-virtualenv.patch \
+ libraries/source/spidermonkey/
}
do_configure() {
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PR PATCH] [Merged]: 0ad: patch for Python 3.11
2022-11-28 16:54 [PR PATCH] 0ad: patch for Python 3.11 sgn
` (3 preceding siblings ...)
2022-11-29 0:31 ` sgn
@ 2022-11-29 1:33 ` sgn
2023-01-11 20:47 ` ricoazzurro
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: sgn @ 2022-11-29 1:33 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1086 bytes --]
There's a merged pull request on the void-packages repository
0ad: patch for Python 3.11
https://github.com/void-linux/void-packages/pull/40823
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **NO**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 0ad: patch for Python 3.11
2022-11-28 16:54 [PR PATCH] 0ad: patch for Python 3.11 sgn
` (4 preceding siblings ...)
2022-11-29 1:33 ` [PR PATCH] [Merged]: " sgn
@ 2023-01-11 20:47 ` ricoazzurro
2023-01-11 20:51 ` ricoazzurro
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: ricoazzurro @ 2023-01-11 20:47 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 195 bytes --]
New comment by ricoazzurro on void-packages repository
https://github.com/void-linux/void-packages/pull/40823#issuecomment-1379465266
Comment:
request a new fix, seems 0ad updated mozjs to 91.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 0ad: patch for Python 3.11
2022-11-28 16:54 [PR PATCH] 0ad: patch for Python 3.11 sgn
` (5 preceding siblings ...)
2023-01-11 20:47 ` ricoazzurro
@ 2023-01-11 20:51 ` ricoazzurro
2023-01-11 23:03 ` ricoazzurro
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: ricoazzurro @ 2023-01-11 20:51 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 341 bytes --]
New comment by ricoazzurro on void-packages repository
https://github.com/void-linux/void-packages/pull/40823#issuecomment-1379465266
Comment:
request a new fix, seems 0ad updated mozjs to 91.
https://github.com/0ad/0ad/commit/9513e7eb79b00417d8979e7eaf95db807ed08c5a#diff-78c86d0250ab7af6f8abac40b2ee8df8830ec664c3fbdfbe20e6e2bc41110a38
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 0ad: patch for Python 3.11
2022-11-28 16:54 [PR PATCH] 0ad: patch for Python 3.11 sgn
` (6 preceding siblings ...)
2023-01-11 20:51 ` ricoazzurro
@ 2023-01-11 23:03 ` ricoazzurro
2023-01-11 23:04 ` ricoazzurro
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: ricoazzurro @ 2023-01-11 23:03 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 675 bytes --]
New comment by ricoazzurro on void-packages repository
https://github.com/void-linux/void-packages/pull/40823#issuecomment-1379465266
Comment:
request a new fix, seems 0ad updated mozjs to 91.
https://github.com/0ad/0ad/commit/9513e7eb79b00417d8979e7eaf95db807ed08c5a#diff-78c86d0250ab7af6f8abac40b2ee8df8830ec664c3fbdfbe20e6e2bc41110a38
my ungly fix,
libraries/source/spidermonkey/patch.sh
`#!/bin/sh
set -e
pip3 install --upgrade -t virtualenv virtualenv
export PYTHONPATH="$(pwd)/virtualenv:$PYTHONPATH"
patch -p1 < ../FixVirtualEnv.diff
grep -rl \"rU\" | xargs sed -i 's/"rU"/"r"/'
# Apply patches if needed
# This script gets called from build.sh.
`
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 0ad: patch for Python 3.11
2022-11-28 16:54 [PR PATCH] 0ad: patch for Python 3.11 sgn
` (7 preceding siblings ...)
2023-01-11 23:03 ` ricoazzurro
@ 2023-01-11 23:04 ` ricoazzurro
2023-01-11 23:05 ` ricoazzurro
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: ricoazzurro @ 2023-01-11 23:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 683 bytes --]
New comment by ricoazzurro on void-packages repository
https://github.com/void-linux/void-packages/pull/40823#issuecomment-1379465266
Comment:
request a new fix, seems 0ad updated mozjs to 91.
https://github.com/0ad/0ad/commit/9513e7eb79b00417d8979e7eaf95db807ed08c5a#diff-78c86d0250ab7af6f8abac40b2ee8df8830ec664c3fbdfbe20e6e2bc41110a38
my ungly fix,
libraries/source/spidermonkey/patch.sh
```#!/bin/sh
set -e
pip3 install --upgrade -t virtualenv virtualenv
export PYTHONPATH="$(pwd)/virtualenv:$PYTHONPATH"
patch -p1 < ../FixVirtualEnv.diff
grep -rl \"rU\" | xargs sed -i 's/"rU"/"r"/'
# Apply patches if needed
# This script gets called from build.sh.
```
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 0ad: patch for Python 3.11
2022-11-28 16:54 [PR PATCH] 0ad: patch for Python 3.11 sgn
` (8 preceding siblings ...)
2023-01-11 23:04 ` ricoazzurro
@ 2023-01-11 23:05 ` ricoazzurro
2023-01-12 3:18 ` sgn
2023-01-12 12:10 ` ricoazzurro
11 siblings, 0 replies; 13+ messages in thread
From: ricoazzurro @ 2023-01-11 23:05 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 682 bytes --]
New comment by ricoazzurro on void-packages repository
https://github.com/void-linux/void-packages/pull/40823#issuecomment-1379465266
Comment:
request a new fix, seems 0ad updated mozjs to 91.
https://github.com/0ad/0ad/commit/9513e7eb79b00417d8979e7eaf95db807ed08c5a#diff-78c86d0250ab7af6f8abac40b2ee8df8830ec664c3fbdfbe20e6e2bc41110a38
my ugly fix,
libraries/source/spidermonkey/patch.sh
```#!/bin/sh
set -e
pip3 install --upgrade -t virtualenv virtualenv
export PYTHONPATH="$(pwd)/virtualenv:$PYTHONPATH"
patch -p1 < ../FixVirtualEnv.diff
grep -rl \"rU\" | xargs sed -i 's/"rU"/"r"/'
# Apply patches if needed
# This script gets called from build.sh.
```
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 0ad: patch for Python 3.11
2022-11-28 16:54 [PR PATCH] 0ad: patch for Python 3.11 sgn
` (9 preceding siblings ...)
2023-01-11 23:05 ` ricoazzurro
@ 2023-01-12 3:18 ` sgn
2023-01-12 12:10 ` ricoazzurro
11 siblings, 0 replies; 13+ messages in thread
From: sgn @ 2023-01-12 3:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 163 bytes --]
New comment by sgn on void-packages repository
https://github.com/void-linux/void-packages/pull/40823#issuecomment-1379760537
Comment:
Why do we need a new fix?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: 0ad: patch for Python 3.11
2022-11-28 16:54 [PR PATCH] 0ad: patch for Python 3.11 sgn
` (10 preceding siblings ...)
2023-01-12 3:18 ` sgn
@ 2023-01-12 12:10 ` ricoazzurro
11 siblings, 0 replies; 13+ messages in thread
From: ricoazzurro @ 2023-01-12 12:10 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 682 bytes --]
New comment by ricoazzurro on void-packages repository
https://github.com/void-linux/void-packages/pull/40823#issuecomment-1379465266
Comment:
request a new fix, seems 0ad updated mozjs to 91.
https://github.com/0ad/0ad/commit/9513e7eb79b00417d8979e7eaf95db807ed08c5a#diff-78c86d0250ab7af6f8abac40b2ee8df8830ec664c3fbdfbe20e6e2bc41110a38
my ugly fix,
libraries/source/spidermonkey/patch.sh
```#!/bin/sh
set -e
pip3 install --upgrade -t virtualenv virtualenv
export PYTHONPATH="$(pwd)/virtualenv:$PYTHONPATH"
patch -p1 < ../FixVirtualEnv.diff
grep -rl \"rU\" | xargs sed -i 's/"rU"/"r"/'
# Apply patches if needed
# This script gets called from build.sh.
```
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2023-01-12 12:10 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-28 16:54 [PR PATCH] 0ad: patch for Python 3.11 sgn
2022-11-28 17:42 ` CameronNemo
2022-11-28 17:46 ` [PR PATCH] [Updated] " sgn
2022-11-28 17:58 ` sgn
2022-11-29 0:31 ` sgn
2022-11-29 1:33 ` [PR PATCH] [Merged]: " sgn
2023-01-11 20:47 ` ricoazzurro
2023-01-11 20:51 ` ricoazzurro
2023-01-11 23:03 ` ricoazzurro
2023-01-11 23:04 ` ricoazzurro
2023-01-11 23:05 ` ricoazzurro
2023-01-12 3:18 ` sgn
2023-01-12 12:10 ` ricoazzurro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).