* Re: [PR REVIEW] new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
@ 2021-10-23 13:19 ` Chocimier
2021-10-23 13:19 ` Chocimier
` (19 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: Chocimier @ 2021-10-23 13:19 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 177 bytes --]
New review comment by Chocimier on void-packages repository
https://github.com/void-linux/void-packages/pull/33712#discussion_r734969004
Comment:
Use usr/lib instead of /opt.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR REVIEW] new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
2021-10-23 13:19 ` [PR REVIEW] " Chocimier
@ 2021-10-23 13:19 ` Chocimier
2021-10-23 15:27 ` dkwo
` (18 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: Chocimier @ 2021-10-23 13:19 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 160 bytes --]
New review comment by Chocimier on void-packages repository
https://github.com/void-linux/void-packages/pull/33712#discussion_r734969553
Comment:
Use bsdtar.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
2021-10-23 13:19 ` [PR REVIEW] " Chocimier
2021-10-23 13:19 ` Chocimier
@ 2021-10-23 15:27 ` dkwo
2021-10-23 16:34 ` [PR PATCH] [Updated] " dkwo
` (17 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: dkwo @ 2021-10-23 15:27 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1839 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/pull/33712#issuecomment-950168510
Comment:
Thanks, I can include those changes.
The `musl` version fails with
```
[platform:Error] pytime.c:531:1: error: conflicting types for '_PyTime_AsTimeval'
[platform:Error] 531 | _PyTime_AsTimeval(_PyTime_t t, struct timeval *tv, _PyTime_round_t round)
[platform:Error] | ^~~~~~~~~~~~~~~~~
[platform:Error] In file included from /builddir/pypy3.7-v7.3.5-src/rpython/../pypy/module/cpyext/include/Python.h:79,
[platform:Error] from pytime.c:1:
[platform:Error] /builddir/pypy3.7-v7.3.5-src/rpython/../pypy/module/cpyext/include/pytime.h:125:17: note: previous declaration of '_PyTime_AsTimeval' was here
[platform:Error] 125 | PyAPI_FUNC(int) _PyTime_AsTimeval(_PyTime_t t,
[platform:Error] | ^~~~~~~~~~~~~~~~~
[platform:Error] pytime.c:537:1: error: conflicting types for '_PyTime_AsTimeval_noraise'
[platform:Error] 537 | _PyTime_AsTimeval_noraise(_PyTime_t t, struct timeval *tv, _PyTime_round_t round)
[platform:Error] | ^~~~~~~~~~~~~~~~~~~~~~~~~
[platform:Error] In file included from /builddir/pypy3.7-v7.3.5-src/rpython/../pypy/module/cpyext/include/Python.h:79,
[platform:Error] from pytime.c:1:
[platform:Error] /builddir/pypy3.7-v7.3.5-src/rpython/../pypy/module/cpyext/include/pytime.h:130:17: note: previous declaration of '_PyTime_AsTimeval_noraise' was here
[platform:Error] 130 | PyAPI_FUNC(int) _PyTime_AsTimeval_noraise(_PyTime_t t,
[platform:Error] | ^~~~~~~~~~~~~~~~~~~~~~~~~
[platform:Error] make: *** [Makefile:950: pytime.o] Error 1
[platform:Error] make: *** Waiting for unfinished jobs....
```
Maybe there's another way to bootstrap it, without using `python2`?
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR PATCH] [Updated] new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
` (2 preceding siblings ...)
2021-10-23 15:27 ` dkwo
@ 2021-10-23 16:34 ` dkwo
2021-10-26 9:03 ` dkwo
` (16 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: dkwo @ 2021-10-23 16:34 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 425 bytes --]
There is an updated pull request by dkwo against master on the void-packages repository
https://github.com/dkwo/void-packages pypy
https://github.com/void-linux/void-packages/pull/33712
new package: pypy3.7
I've tested it a bit on `x86_64`.
It is mostly taken from #8861, let me know if there's still interest to merge it in Void.
A patch file from https://github.com/void-linux/void-packages/pull/33712.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pypy-33712.patch --]
[-- Type: text/x-diff, Size: 1813 bytes --]
From 0618d242723b19657dd53d67d0492d57a02dbc61 Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Fri, 15 Oct 2021 14:28:20 +0200
Subject: [PATCH] new package: pypy3.7
---
srcpkgs/pypy3.7/template | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 srcpkgs/pypy3.7/template
diff --git a/srcpkgs/pypy3.7/template b/srcpkgs/pypy3.7/template
new file mode 100644
index 000000000000..5ea93a5bcadd
--- /dev/null
+++ b/srcpkgs/pypy3.7/template
@@ -0,0 +1,36 @@
+# Template file for 'pypy3.7'
+pkgname=pypy3.7
+version=7.3.5
+revision=1
+wrksrc="${pkgname}-v${version}-src"
+hostmakedepends="bsdtar perl pkg-config python python-cffi"
+makedepends="bzip2-devel gdbm-devel libffi-devel liblzma-devel
+ openssl-devel ncurses-devel sqlite-devel tk-devel zlib-devel"
+short_desc="JIT-enabled implementation of Python 3.7 written in RPython"
+maintainer="dkwo <nicolopiazzalunga@gmail.com>"
+license="MIT"
+homepage="http://pypy.org"
+distfiles="https://downloads.python.org/pypy/${pkgname}-v${version}-src.tar.bz2"
+checksum=d920fe409a9ecad9d074aa8568ca5f3ed3581be66f66e5d8988b7ec66e6d99a2
+nocross="Tries to execute cross-compiled code"
+python_version=3
+
+do_build() {
+ cd pypy/goal
+ python ../../rpython/bin/rpython -Ojit --cc=${CC} \
+ --make-jobs=$XBPS_MAKEJOBS targetpypystandalone.py
+ cd ../../lib_pypy
+ ../pypy/goal/pypy3-c pypy_tools/build_cffi_imports.py
+}
+
+do_install() {
+ vdoc README.rst
+ vlicense LICENSE
+ vmkdir /usr/lib
+ vmkdir /usr/bin
+ # Upstream recommends installing under /opt and symlinking
+ python pypy/tool/release/package.py --archive-name=${pkgname} \
+ --targetdir=. --no-keep-debug
+ bsdtar -xpf ${pkgname}.tar.bz2 -C ${PKGDESTDIR}/usr/lib
+ ln -s /usr/lib/${pkgname}/bin/pypy3 ${PKGDESTDIR}/usr/bin/${pkgname}
+}
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
` (3 preceding siblings ...)
2021-10-23 16:34 ` [PR PATCH] [Updated] " dkwo
@ 2021-10-26 9:03 ` dkwo
2021-10-26 18:41 ` Chocimier
` (15 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: dkwo @ 2021-10-26 9:03 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 314 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/pull/33712#issuecomment-951733431
Comment:
Would a `pypy-bootstrap` package (made with the prebuilt bin provided by the pypy project) be acceptable, if python2 is not to be used?
One could then use this to build pypy3.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
` (4 preceding siblings ...)
2021-10-26 9:03 ` dkwo
@ 2021-10-26 18:41 ` Chocimier
2021-10-26 18:42 ` [PR REVIEW] " Chocimier
` (14 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: Chocimier @ 2021-10-26 18:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 334 bytes --]
New comment by Chocimier on void-packages repository
https://github.com/void-linux/void-packages/pull/33712#issuecomment-952210372
Comment:
Using upstream binaries is bad and would lock us to 2 of more than ten 10 architectures, using python2 looks attractive next to it. _Maybe_ it could be allowed, like gcc6 is in tree for java.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR REVIEW] new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
` (5 preceding siblings ...)
2021-10-26 18:41 ` Chocimier
@ 2021-10-26 18:42 ` Chocimier
2021-10-26 18:42 ` Chocimier
` (13 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: Chocimier @ 2021-10-26 18:42 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 210 bytes --]
New review comment by Chocimier on void-packages repository
https://github.com/void-linux/void-packages/pull/33712#discussion_r736822881
Comment:
My bad, tar is actually used by build scripts. Please revert.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR REVIEW] new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
` (6 preceding siblings ...)
2021-10-26 18:42 ` [PR REVIEW] " Chocimier
@ 2021-10-26 18:42 ` Chocimier
2021-10-27 9:50 ` [PR PATCH] [Updated] " dkwo
` (12 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: Chocimier @ 2021-10-26 18:42 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 154 bytes --]
New review comment by Chocimier on void-packages repository
https://github.com/void-linux/void-packages/pull/33712#discussion_r736823034
Comment:
https
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR PATCH] [Updated] new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
` (7 preceding siblings ...)
2021-10-26 18:42 ` Chocimier
@ 2021-10-27 9:50 ` dkwo
2021-10-27 9:51 ` [PR REVIEW] " dkwo
` (11 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: dkwo @ 2021-10-27 9:50 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 425 bytes --]
There is an updated pull request by dkwo against master on the void-packages repository
https://github.com/dkwo/void-packages pypy
https://github.com/void-linux/void-packages/pull/33712
new package: pypy3.7
I've tested it a bit on `x86_64`.
It is mostly taken from #8861, let me know if there's still interest to merge it in Void.
A patch file from https://github.com/void-linux/void-packages/pull/33712.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pypy-33712.patch --]
[-- Type: text/x-diff, Size: 1808 bytes --]
From 4b7249f0a5866de83091af1222be89e173c893e6 Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Fri, 15 Oct 2021 14:28:20 +0200
Subject: [PATCH] new package: pypy3.7
---
srcpkgs/pypy3.7/template | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 srcpkgs/pypy3.7/template
diff --git a/srcpkgs/pypy3.7/template b/srcpkgs/pypy3.7/template
new file mode 100644
index 000000000000..712f8a748b05
--- /dev/null
+++ b/srcpkgs/pypy3.7/template
@@ -0,0 +1,36 @@
+# Template file for 'pypy3.7'
+pkgname=pypy3.7
+version=7.3.5
+revision=1
+wrksrc="${pkgname}-v${version}-src"
+hostmakedepends="tar perl pkg-config python python-cffi"
+makedepends="bzip2-devel gdbm-devel libffi-devel liblzma-devel
+ openssl-devel ncurses-devel sqlite-devel tk-devel zlib-devel"
+short_desc="JIT-enabled implementation of Python 3.7 written in RPython"
+maintainer="dkwo <nicolopiazzalunga@gmail.com>"
+license="MIT"
+homepage="https://pypy.org"
+distfiles="https://downloads.python.org/pypy/${pkgname}-v${version}-src.tar.bz2"
+checksum=d920fe409a9ecad9d074aa8568ca5f3ed3581be66f66e5d8988b7ec66e6d99a2
+nocross="Tries to execute cross-compiled code"
+python_version=3
+
+do_build() {
+ cd pypy/goal
+ python ../../rpython/bin/rpython -Ojit --cc=${CC} \
+ --make-jobs=$XBPS_MAKEJOBS targetpypystandalone.py
+ cd ../../lib_pypy
+ ../pypy/goal/pypy3-c pypy_tools/build_cffi_imports.py
+}
+
+do_install() {
+ vdoc README.rst
+ vlicense LICENSE
+ vmkdir /usr/lib
+ vmkdir /usr/bin
+ # Upstream recommends installing under /opt and symlinking
+ python pypy/tool/release/package.py --archive-name=${pkgname} \
+ --targetdir=. --no-keep-debug
+ tar -xpf ${pkgname}.tar.bz2 -C ${PKGDESTDIR}/usr/lib
+ ln -s /usr/lib/${pkgname}/bin/pypy3 ${PKGDESTDIR}/usr/bin/${pkgname}
+}
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR REVIEW] new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
` (8 preceding siblings ...)
2021-10-27 9:50 ` [PR PATCH] [Updated] " dkwo
@ 2021-10-27 9:51 ` dkwo
2021-10-27 19:05 ` [PR PATCH] [Updated] " dkwo
` (10 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: dkwo @ 2021-10-27 9:51 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 148 bytes --]
New review comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/pull/33712#discussion_r737300209
Comment:
done
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR PATCH] [Updated] new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
` (9 preceding siblings ...)
2021-10-27 9:51 ` [PR REVIEW] " dkwo
@ 2021-10-27 19:05 ` dkwo
2021-10-28 11:40 ` dkwo
` (9 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: dkwo @ 2021-10-27 19:05 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 425 bytes --]
There is an updated pull request by dkwo against master on the void-packages repository
https://github.com/dkwo/void-packages pypy
https://github.com/void-linux/void-packages/pull/33712
new package: pypy3.7
I've tested it a bit on `x86_64`.
It is mostly taken from #8861, let me know if there's still interest to merge it in Void.
A patch file from https://github.com/void-linux/void-packages/pull/33712.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pypy-33712.patch --]
[-- Type: text/x-diff, Size: 3220 bytes --]
From 4b7249f0a5866de83091af1222be89e173c893e6 Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Fri, 15 Oct 2021 14:28:20 +0200
Subject: [PATCH 1/2] new package: pypy3.7
---
srcpkgs/pypy3.7/template | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 srcpkgs/pypy3.7/template
diff --git a/srcpkgs/pypy3.7/template b/srcpkgs/pypy3.7/template
new file mode 100644
index 000000000000..712f8a748b05
--- /dev/null
+++ b/srcpkgs/pypy3.7/template
@@ -0,0 +1,36 @@
+# Template file for 'pypy3.7'
+pkgname=pypy3.7
+version=7.3.5
+revision=1
+wrksrc="${pkgname}-v${version}-src"
+hostmakedepends="tar perl pkg-config python python-cffi"
+makedepends="bzip2-devel gdbm-devel libffi-devel liblzma-devel
+ openssl-devel ncurses-devel sqlite-devel tk-devel zlib-devel"
+short_desc="JIT-enabled implementation of Python 3.7 written in RPython"
+maintainer="dkwo <nicolopiazzalunga@gmail.com>"
+license="MIT"
+homepage="https://pypy.org"
+distfiles="https://downloads.python.org/pypy/${pkgname}-v${version}-src.tar.bz2"
+checksum=d920fe409a9ecad9d074aa8568ca5f3ed3581be66f66e5d8988b7ec66e6d99a2
+nocross="Tries to execute cross-compiled code"
+python_version=3
+
+do_build() {
+ cd pypy/goal
+ python ../../rpython/bin/rpython -Ojit --cc=${CC} \
+ --make-jobs=$XBPS_MAKEJOBS targetpypystandalone.py
+ cd ../../lib_pypy
+ ../pypy/goal/pypy3-c pypy_tools/build_cffi_imports.py
+}
+
+do_install() {
+ vdoc README.rst
+ vlicense LICENSE
+ vmkdir /usr/lib
+ vmkdir /usr/bin
+ # Upstream recommends installing under /opt and symlinking
+ python pypy/tool/release/package.py --archive-name=${pkgname} \
+ --targetdir=. --no-keep-debug
+ tar -xpf ${pkgname}.tar.bz2 -C ${PKGDESTDIR}/usr/lib
+ ln -s /usr/lib/${pkgname}/bin/pypy3 ${PKGDESTDIR}/usr/bin/${pkgname}
+}
From a8169f2d993874c7821448ab4dddd34e8bf44449 Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Wed, 27 Oct 2021 13:25:35 +0200
Subject: [PATCH 2/2] try musl patch
---
srcpkgs/pypy3.7/patches/musl.patch | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
create mode 100644 srcpkgs/pypy3.7/patches/musl.patch
diff --git a/srcpkgs/pypy3.7/patches/musl.patch b/srcpkgs/pypy3.7/patches/musl.patch
new file mode 100644
index 000000000000..2b672b62908b
--- /dev/null
+++ b/srcpkgs/pypy3.7/patches/musl.patch
@@ -0,0 +1,16 @@
+diff --git a/rpython/rlib/rfile.py b/rpython/rlib/rfile.py
+--- a/rpython/rlib/rfile.py
++++ b/rpython/rlib/rfile.py
+@@ -106,11 +106,11 @@
+ c_ferror = llexternal('ferror', [FILEP], rffi.INT)
+ c_clearerr = llexternal('clearerr', [FILEP], lltype.Void)
+
+-c_stdin = rffi.CExternVariable(FILEP, 'stdin', eci, c_type='FILE*',
++c_stdin = rffi.CExternVariable(FILEP, 'stdin', eci, c_type='FILE *const',
+ getter_only=True)
+-c_stdout = rffi.CExternVariable(FILEP, 'stdout', eci, c_type='FILE*',
++c_stdout = rffi.CExternVariable(FILEP, 'stdout', eci, c_type='FILE *const',
+ getter_only=True)
+-c_stderr = rffi.CExternVariable(FILEP, 'stderr', eci, c_type='FILE*',
++c_stderr = rffi.CExternVariable(FILEP, 'stderr', eci, c_type='FILE *const',
+ getter_only=True)
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR PATCH] [Updated] new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
` (10 preceding siblings ...)
2021-10-27 19:05 ` [PR PATCH] [Updated] " dkwo
@ 2021-10-28 11:40 ` dkwo
2021-10-28 11:42 ` dkwo
` (8 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: dkwo @ 2021-10-28 11:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 425 bytes --]
There is an updated pull request by dkwo against master on the void-packages repository
https://github.com/dkwo/void-packages pypy
https://github.com/void-linux/void-packages/pull/33712
new package: pypy3.7
I've tested it a bit on `x86_64`.
It is mostly taken from #8861, let me know if there's still interest to merge it in Void.
A patch file from https://github.com/void-linux/void-packages/pull/33712.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pypy-33712.patch --]
[-- Type: text/x-diff, Size: 1808 bytes --]
From b4ebf7c59a266ff3c037f5eaa6e0d65d53f4f0d8 Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Fri, 15 Oct 2021 14:28:20 +0200
Subject: [PATCH] new package: pypy3.7
---
srcpkgs/pypy3.7/template | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 srcpkgs/pypy3.7/template
diff --git a/srcpkgs/pypy3.7/template b/srcpkgs/pypy3.7/template
new file mode 100644
index 000000000000..2414fb99111b
--- /dev/null
+++ b/srcpkgs/pypy3.7/template
@@ -0,0 +1,36 @@
+# Template file for 'pypy3.7'
+pkgname=pypy3.8
+version=7.3.7
+revision=1
+wrksrc="${pkgname}-v${version}-src"
+hostmakedepends="tar perl pkg-config python python-cffi"
+makedepends="bzip2-devel gdbm-devel libffi-devel liblzma-devel
+ openssl-devel ncurses-devel sqlite-devel tk-devel zlib-devel"
+short_desc="JIT-enabled implementation of Python 3.8 written in RPython"
+maintainer="dkwo <nicolopiazzalunga@gmail.com>"
+license="MIT"
+homepage="https://pypy.org"
+distfiles="https://downloads.python.org/pypy/${pkgname}-v${version}-src.tar.bz2"
+checksum=d920fe409a9ecad9d074aa8568ca5f3ed3581be66f66e5d8988b7ec66e6d99a2
+nocross="Tries to execute cross-compiled code"
+python_version=3
+
+do_build() {
+ cd pypy/goal
+ python ../../rpython/bin/rpython -Ojit --cc=${CC} \
+ --make-jobs=$XBPS_MAKEJOBS targetpypystandalone.py
+ cd ../../lib_pypy
+ ../pypy/goal/pypy3-c pypy_tools/build_cffi_imports.py
+}
+
+do_install() {
+ vdoc README.rst
+ vlicense LICENSE
+ vmkdir /usr/lib
+ vmkdir /usr/bin
+ # Upstream recommends installing under /opt and symlinking
+ python pypy/tool/release/package.py --archive-name=${pkgname} \
+ --targetdir=. --no-keep-debug
+ tar -xpf ${pkgname}.tar.bz2 -C ${PKGDESTDIR}/usr/lib
+ ln -s /usr/lib/${pkgname}/bin/pypy3 ${PKGDESTDIR}/usr/bin/${pkgname}
+}
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR PATCH] [Updated] new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
` (11 preceding siblings ...)
2021-10-28 11:40 ` dkwo
@ 2021-10-28 11:42 ` dkwo
2021-12-16 0:51 ` EliteTK
` (7 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: dkwo @ 2021-10-28 11:42 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 425 bytes --]
There is an updated pull request by dkwo against master on the void-packages repository
https://github.com/dkwo/void-packages pypy
https://github.com/void-linux/void-packages/pull/33712
new package: pypy3.7
I've tested it a bit on `x86_64`.
It is mostly taken from #8861, let me know if there's still interest to merge it in Void.
A patch file from https://github.com/void-linux/void-packages/pull/33712.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pypy-33712.patch --]
[-- Type: text/x-diff, Size: 1808 bytes --]
From 48861d319e6bfb11b6470e4847621a35bfccc88b Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Fri, 15 Oct 2021 14:28:20 +0200
Subject: [PATCH] new package: pypy3.7
---
srcpkgs/pypy3.7/template | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 srcpkgs/pypy3.7/template
diff --git a/srcpkgs/pypy3.7/template b/srcpkgs/pypy3.7/template
new file mode 100644
index 000000000000..f8ffaa03d0b5
--- /dev/null
+++ b/srcpkgs/pypy3.7/template
@@ -0,0 +1,36 @@
+# Template file for 'pypy3.7'
+pkgname=pypy3.7
+version=7.3.7
+revision=1
+wrksrc="${pkgname}-v${version}-src"
+hostmakedepends="tar perl pkg-config python python-cffi"
+makedepends="bzip2-devel gdbm-devel libffi-devel liblzma-devel
+ openssl-devel ncurses-devel sqlite-devel tk-devel zlib-devel"
+short_desc="JIT-enabled implementation of Python 3.7 written in RPython"
+maintainer="dkwo <nicolopiazzalunga@gmail.com>"
+license="MIT"
+homepage="https://pypy.org"
+distfiles="https://downloads.python.org/pypy/${pkgname}-v${version}-src.tar.bz2"
+checksum=2ed02ac9e710859c41bc82deafb08619792bb9a27eeaa1676c741ededd214dd7
+nocross="Tries to execute cross-compiled code"
+python_version=3
+
+do_build() {
+ cd pypy/goal
+ python ../../rpython/bin/rpython -Ojit --cc=${CC} \
+ --make-jobs=$XBPS_MAKEJOBS targetpypystandalone.py
+ cd ../../lib_pypy
+ ../pypy/goal/pypy3-c pypy_tools/build_cffi_imports.py
+}
+
+do_install() {
+ vdoc README.rst
+ vlicense LICENSE
+ vmkdir /usr/lib
+ vmkdir /usr/bin
+ # Upstream recommends installing under /opt and symlinking
+ python pypy/tool/release/package.py --archive-name=${pkgname} \
+ --targetdir=. --no-keep-debug
+ tar -xpf ${pkgname}.tar.bz2 -C ${PKGDESTDIR}/usr/lib
+ ln -s /usr/lib/${pkgname}/bin/pypy3 ${PKGDESTDIR}/usr/bin/${pkgname}
+}
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
` (12 preceding siblings ...)
2021-10-28 11:42 ` dkwo
@ 2021-12-16 0:51 ` EliteTK
2021-12-16 1:01 ` ahesford
` (6 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: EliteTK @ 2021-12-16 0:51 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 481 bytes --]
New comment by EliteTK on void-packages repository
https://github.com/void-linux/void-packages/pull/33712#issuecomment-995337778
Comment:
The upstream binary would be used to cross compile (and it sounds like that's supported by passing `--platform` to the `rpython` script) for all target platforms. `pypy-bootstrap` (or whatever you want to call it) would only need to support x86_64 and i686 for it to then be possible to use it to cross compile for all architectures, right?
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
` (13 preceding siblings ...)
2021-12-16 0:51 ` EliteTK
@ 2021-12-16 1:01 ` ahesford
2021-12-16 2:32 ` EliteTK
` (5 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: ahesford @ 2021-12-16 1:01 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1186 bytes --]
New comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/33712#issuecomment-995344022
Comment:
All of these options looks have serious drawbacks. Using native, precompiled binaries to bootstrap another arch is bad because it forces us to cross compile those archs. In Void, cross compilation is an incidental implementation detail of architectures for which we can't afford or don't want to maintain build infrastructure. It should always be possible to natively build any of our archs if one is so inclined, but the precompiled pypy bootstrap breaks this.
Relying on dead cpython is also lousy. We want to get rid of the package, not force it closer to the root of the dependency tree.
If we are going to overlook this catch-22, I would prefer to avoid another cpython2 dependency. I would also like to avoid creating some new package that only exists to build pypy. The best way out, if possible, would be to fetch the prebuilt distribution for native builds as another distfile. Use the locally extracted copy to build the packaged version. For cross builds, this can go away and we just pull the native pypy into hostmakedepends.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
` (14 preceding siblings ...)
2021-12-16 1:01 ` ahesford
@ 2021-12-16 2:32 ` EliteTK
2021-12-16 2:33 ` EliteTK
` (4 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: EliteTK @ 2021-12-16 2:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
New comment by EliteTK on void-packages repository
https://github.com/void-linux/void-packages/pull/33712#issuecomment-995384130
Comment:
Some distros take the self-referential approach of just making pypy depend on itself for every build. Where at some point in the past they had some bootstrap package which was either an upstream binary or a cpython2 build of pypy which was then used to kickstart the ouroboros in perpetuity. Would this be an option? (Apparently, alpine and maybe archlinux did this.)
Alternatively, it's possible to have the pypy package have cpython2 sources in the distfiles instead of the upstream pypy and build that to then have the pypy package first build cpython2 and then pypy. This would avoid having an official cpython2 package and I think this is certainly a lot more transparent than using the upstream pypy.
@dkwo are you still interested in getting this working? If not, I can try to pick up the effort.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
` (15 preceding siblings ...)
2021-12-16 2:32 ` EliteTK
@ 2021-12-16 2:33 ` EliteTK
2021-12-16 3:06 ` ahesford
` (3 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: EliteTK @ 2021-12-16 2:33 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 948 bytes --]
New comment by EliteTK on void-packages repository
https://github.com/void-linux/void-packages/pull/33712#issuecomment-995384130
Comment:
Some distros take the self-referential approach of just making pypy depend on itself for every build. Where at some point in the past they had some bootstrap package which was either an upstream binary or a cpython2 build of pypy which was then used to kickstart the ouroboros in perpetuity. Would this be an option? (Apparently, alpine and maybe archlinux did this.)
Alternatively, it's possible to have the pypy package have cpython2 sources in the distfiles instead of the upstream pypy and use that to then have the pypy package first build cpython2 and then pypy. This would avoid having an official cpython2 package and I think this is certainly a lot more transparent than using the upstream pypy.
@dkwo are you still interested in getting this working? If not, I can try to pick up the effort.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
` (16 preceding siblings ...)
2021-12-16 2:33 ` EliteTK
@ 2021-12-16 3:06 ` ahesford
2021-12-16 9:04 ` dkwo
` (2 subsequent siblings)
20 siblings, 0 replies; 22+ messages in thread
From: ahesford @ 2021-12-16 3:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]
New comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/33712#issuecomment-995397285
Comment:
Self-referential cycles are not an option because it will break the dependency resolver and, even if it didn't, our policy requires that all packages in the repo be buildable without requiring specific pre-existing repo state. (This is an ideal, and some package changes can sometimes lead to violations of this policy, but we don't knowingly permit it.)
I can be persuaded that building a temporary cpython 2.7 in pre_build to bootstrap native pypy is reasonable option. That's not much different than how we (were, before py3.10) bootstrapping `python3` on cross builds.
Practically, because the python 2.7 package isn't going anywhere for awhile, maybe it suffices to know that we *can* build a cpython bootstrap in the template if we ever need to; just pulling the python package in hostmakedepends might be OK for now after all.
I'm not sure if using native pypy to bootstrap cross pypy is better than *always* using (and, in the future, potentially building) native cpython. Arguments on either side would be appreciated.
Of course, we can always hope that pypy solves the bootstrap problem before we have to...
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
` (17 preceding siblings ...)
2021-12-16 3:06 ` ahesford
@ 2021-12-16 9:04 ` dkwo
2022-01-02 8:34 ` dkwo
2022-01-02 8:34 ` [PR PATCH] [Closed]: " dkwo
20 siblings, 0 replies; 22+ messages in thread
From: dkwo @ 2021-12-16 9:04 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 178 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/pull/33712#issuecomment-995573600
Comment:
@EliteTK please, feel free to pick it up
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
` (18 preceding siblings ...)
2021-12-16 9:04 ` dkwo
@ 2022-01-02 8:34 ` dkwo
2022-01-02 8:34 ` [PR PATCH] [Closed]: " dkwo
20 siblings, 0 replies; 22+ messages in thread
From: dkwo @ 2022-01-02 8:34 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 210 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/pull/33712#issuecomment-1003681000
Comment:
@EliteTK I'm closing this PR, but by any means feel free to pick it up.
^ permalink raw reply [flat|nested] 22+ messages in thread
* Re: [PR PATCH] [Closed]: new package: pypy3.7
2021-10-23 13:07 [PR PATCH] new package: pypy3.7 dkwo
` (19 preceding siblings ...)
2022-01-02 8:34 ` dkwo
@ 2022-01-02 8:34 ` dkwo
20 siblings, 0 replies; 22+ messages in thread
From: dkwo @ 2022-01-02 8:34 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 278 bytes --]
There's a closed pull request on the void-packages repository
new package: pypy3.7
https://github.com/void-linux/void-packages/pull/33712
Description:
I've tested it a bit on `x86_64`.
It is mostly taken from #8861, let me know if there's still interest to merge it in Void.
^ permalink raw reply [flat|nested] 22+ messages in thread