Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] new package: pypy3.7
@ 2021-10-23 13:07 dkwo
  2021-10-23 13:19 ` [PR REVIEW] " Chocimier
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: dkwo @ 2021-10-23 13:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 15446 bytes --]

There is a new 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
- maturin: update to 0.11.5.
- python3-pip: update to 21.3.
- python3-tomli: do not build with python3-flit_core, it introduces a cycle
- python3-flit_core: update to 3.4.0.
- python3-tifffile: update to 2021.10.12.
- python3-gmpy2: restore package, update to 2.1.0rc1
- removed-packages: remove python3-gmpy2
- python3-resolvelib: update to 0.8.1.
- python3-pycryptodomex: update to 3.11.0.
- python3-certifi: update to 2021.10.08.
- python3-numpy-stl: update to 2.16.3.
- python3-mpmath: depend on python3-gmpy2
- python3-bokeh: update to 2.4.1.
- python-cffi: update to 1.15.0.
- python-dbus: update to 1.2.18.
- bmake: update to 20211001
- digikam: rebuild for opencv
- python3-tabulate: Update to 0.8.9
- janet: update to 1.18.0.
- New package: jpm-0.0.1
- ansible-core: update to 2.11.6.
- ansible: update to 4.6.0.
- ffsend: update to 0.2.74.
- scrpkgs/: orphan Joseph LaFreniere's packages
- srcpkgs/: adopt ansible-lint, yamllint and tokei
- outils: update to 0.10.
- xscreensaver: update to 6.02.
- yaru: update to 21.10.2, adopt.
- crun: update to 1.2.
- mkvtoolnix: update to 62.0.0
- xscreensaver: fix build on aarch64.
- timeshift: update to 21.09.1, orphan.
- ffmpeg: update to 4.4.
- webkit2gtk: update to 2.34.0
- New package: wally-udev-rules-2.1.1
- wally-cli: don't vendor udev rules
- wally-cli: update to 2.0.1.
- chromium: update to 94.0.4606.81.
- libreoffice: enable java support on x86_64-musl
- orca: patch for compatibility with Python 3.10
- libreoffice: also enable java on ppc64*
- simavr: update to 1.7
- kvantum: update to 0.20.2.
- s: update to 0.6.0.
- New package: python3-mistune2-2.0.0rc1
- New package: python3-md2gemini-1.8.1.
- doomretro: update to 4.3.
- python3-Pillow: update to 8.4.0.
- httpie: update to 2.6.0
- python3-boto3: update to 1.18.62.
- angle-grinder: update to 0.18.0.
- perl-local-lib: update to 2.000027.
- cloud-hypervisor: update to 19.0.
- git: update to 2.33.1.
- gnome-mines: update to 40.0.
- ristretto: update to 0.12.0, adopt.
- skype: update to 8.77.0.97.
- xfce4-whiskermenu-plugin: update to 2.6.1.
- nghttp2: update to 1.45.1.
- python3-regex: update to 2021.10.8.
- xbps-src: improve error message on dependencies installation
- linux5.4: update to 5.4.153.
- linux4.19: update to 4.19.211.
- Komikku: update to 0.35.1.
- libXfixes: update to 6.0.0
- moby: update to 20.10.9
- docker-cli: update to 20.10.9
- torbrowser-launcher: fix launch with python 3.10
- treewide: ignore alpha/beta/dev/rc versions in update-check
- cryptsetup: update to 2.4.1.
- vscode: update to 1.61.1
- osinfo-db: update to 20211013.
- calibre: update to 5.29.0.
- libinput: update to 1.19.1
- quodlibet: patch for python 3.10
- python3-frozendict: update to 2.0.6.
- asciinema: update to 2.1.0
- ueberzug: update to 18.1.9
- blender: update to 2.93.5
- geany-plugins: fix compilation
- rssguard: update to 4.0.4.
- legendary: update to 0.20.16.
- flintlib: update to 2.8.2.
- fzf: update to 0.27.3.
- New package: gnushogi-1.4.2
- New package: xshogi-1.4.2
- lilypond: update to 2.23.4
- lilypond-doc: udpate to 2.23.4
- New package: fairy-stockfish-14
- miniflux: update to 2.0.33.
- python3-httpx: update to 0.20.0.
- picard: fix typeerrors with python 3.10
- python3-httpx: add a missing setuptools build dep
- exiftool: update to 12.33.
- memcached: update to 1.6.10.
- New package: zutty-0.9
- inxi: update to 3.3.07
- mu4e: update to 1.6.7
- swirc: update to 3.3.2.
- chroma: update to 0.9.4.
- htop: update to 3.1.1.
- papirus-folders: update to 1.11.0.
- freeplane: update to 1.9.10.
- hopper: update to 4.9.3.
- packer: update to 1.7.6.
- New package: fsearch-0.1
- acpid: cleanup handler
- acpid: update to 2.0.33.
- dateutils: update to 0.4.9.
- New package: python3-thefuzz-0.19.0
- New package: gnome-pass-search-provider-1.0.0
- mesa: update to 21.2.4.
- apostrophe: update to 2.5.
- mksh: disable tests to prevent them from suspending xbps-src
- void-release-keys: Add 20210930 key
- linux5.14: update to 5.14.13.
- chezmoi: update to 2.7.1.
- bitlbee-discord: add fix for glib >= 2.69
- dolphin-emu: update to 5.0.15260.
- yq-go: update to 4.13.4.
- lavalauncher: update to 2.1.1.
- tectonic: update to 0.8.0.
- ca-certificates: update to 20211016+3.71.
- freeciv: update to 2.6.5.
- okular: update to 21.08.2.
- libkexiv25: update to 21.08.2.
- akonadi-calendar: update to 21.08.2.
- akonadi-contacts: update to 21.08.2.
- akonadi-import-wizard: update to 21.08.2.
- akonadi-mime: update to 21.08.2.
- akonadi-notes: update to 21.08.2.
- akonadi-search: update to 21.08.2.
- calendarsupport: update to 21.08.2.
- grantleetheme: update to 21.08.2.
- kalarmcal: update to 21.08.2.
- kcalutils: update to 21.08.2.
- kdepim-runtime: update to 21.08.2.
- kimap: update to 21.08.2.
- kldap: update to 21.08.2.
- kmail: update to 21.08.2.
- kmail-account-wizard: update to 21.08.2.
- kmailtransport: update to 21.08.2.
- kmbox: update to 21.08.2.
- kmime: update to 21.08.2.
- kontactinterface: update to 21.08.2.
- ksmtp: update to 21.08.2.
- ktnef: update to 21.08.2.
- libgravatar: update to 21.08.2.
- libkdepim: update to 21.08.2.
- libkgapi: update to 21.08.2.
- libkleo: update to 21.08.2.
- kleopatra: update to 21.08.2.
- libksieve: update to 21.08.2.
- mailcommon: update to 21.08.2.
- mailimporter: update to 21.08.2.
- messagelib: update to 21.08.2.
- pimcommon: update to 21.08.2.
- kpimtextedit: update to 21.08.2.
- kidentitymanagement: update to 21.08.2.
- akonadi5: update to 21.08.2.
- pim-data-exporter: update to 21.08.2.
- dolphin: update to 21.08.2.
- dolphin-plugins: update to 21.08.2.
- khelpcenter: update to 21.08.2.
- kate5: update to 21.08.2.
- konsole: update to 21.08.2.
- baloo-widgets5: update to 21.08.2.
- kio-extras: update to 21.08.2.
- kde5-baseapps: update to 12.08.2.
- dolphin: update to 12.08.2.
- dolphin-plugins: update to 12.08.2.
- kde5-baseapps: update to 21.08.2.
- dolphin: update to 21.08.2.
- dolphin-plugins: update to 21.08.2.
- spectacle: update to 21.08.2.
- libkipi5: update to 21.08.2.
- ark: update to 21.08.2.
- elisa: update to 21.08.2.
- kdeconnect: update to 21.08.2.
- kdegraphics-thumbnailers: update to 21.08.2.
- knights: update to 21.08.2.
- kqtquickcharts: update to 21.08.2.
- akregator: update to 21.08.2.
- eventviews: update to 21.08.2.
- incidenceeditor: update to 21.08.2.
- kaddressbook: update to 21.08.2.
- kalarm: update to 21.08.2.
- kget: update to 21.08.2.
- knotes: update to 21.08.2.
- konqueror: update to 21.08.2.
- kontact: update to 21.08.2.
- korganizer: update to 21.08.2.
- krdc: update to 21.08.2.
- krfb: update to 21.08.2.
- ktuberling: update to 21.08.2.
- libktorrent: update to 21.08.2.
- graphviz: update to 2.49.2.
- cfssl: provide version information.
- nvidia390: add patch for linux5.14
- AppStream: update to 0.14.6.
- ModemManager: update to 1.18.2.
- void-release-keys: Import 20210930 minisign key
- automake: update to 1.16.5
- hexchat-python3: missing dependency & files
- mbuffer: update to 20211018
- python3-babelfish: update to 0.6.0.
- i3: update to 4.20.
- synapse: update to 1.45.0.
- python3-watchdog: update to 2.1.6.
- autofs: update to 5.1.8.
- linux5.4: update to 5.4.154.
- linux4.19: update to 4.19.212.
- libmd: update to 1.0.4.
- knot: update to 3.1.3.
- knot-resolver: update to 5.4.2.
- flatpak: update to 1.12.2.
- seatd: update to 0.6.3.
- chezmoi: update to 2.7.2.
- remmina: update to 1.4.21.
- zim: update to 0.74.2
- zutty: update to 0.10
- loksh: update to 7.0
- notcurses: update to 2.4.7.
- chroot-git: update to 2.33.1, allow git-clone local repository
- perl-local-lib: update to 2.000028.
- linux5.10: update to 5.10.75.
- janet: update to 1.18.1.
- New package: dune-2.9.1
- coq: update to 8.14.0.
- mathcomp: rebuild for coq-8.14.0.
- New package: aspell-sk-2.01.2
- attica: update to 5.87.0.
- baloo5: update to 5.87.0.
- bluez-qt5: update to 5.87.0.
- breeze-icons: update to 5.87.0.
- extra-cmake-modules: update to 5.87.0.
- frameworkintegration: update to 5.87.0.
- kactivities5-stats: update to 5.87.0.
- kactivities5: update to 5.87.0.
- kapidox: update to 5.87.0.
- karchive: update to 5.87.0.
- kauth: update to 5.87.0.
- kbookmarks: update to 5.87.0.
- kcalendarcore: update to 5.87.0.
- kcmutils: update to 5.87.0.
- kcodecs: update to 5.87.0.
- kcompletion: update to 5.87.0.
- kconfig: update to 5.87.0.
- kconfigwidgets: update to 5.87.0.
- kcontacts: update to 5.87.0.
- kcoreaddons: update to 5.87.0.
- kcrash: update to 5.87.0.
- kdav: update to 5.87.0.
- kdbusaddons: update to 5.87.0.
- kdeclarative: update to 5.87.0.
- kded: update to 5.87.0.
- kdelibs4support: update to 5.87.0.
- kdesignerplugin: update to 5.87.0.
- kdesu: update to 5.87.0.
- kdewebkit: update to 5.87.0.
- kdnssd: update to 5.87.0.
- kdoctools: update to 5.87.0.
- kemoticons: update to 5.87.0.
- kfilemetadata5: update to 5.87.0.
- kglobalaccel: update to 5.87.0.
- kguiaddons: update to 5.87.0.
- kholidays: update to 5.87.0.
- khtml: update to 5.87.0.
- ki18n: update to 5.87.0.
- kiconthemes: update to 5.87.0.
- kidletime: update to 5.87.0.
- kimageformats: update to 5.87.0.
- kinit: update to 5.87.0.
- kio: update to 5.87.0.
- kirigami2: update to 5.87.0.
- kitemmodels: update to 5.87.0.
- kitemviews: update to 5.87.0.
- kjobwidgets: update to 5.87.0.
- kjs: update to 5.87.0.
- kjsembed: update to 5.87.0.
- kmediaplayer: update to 5.87.0.
- knewstuff: update to 5.87.0.
- knotifications: update to 5.87.0.
- knotifyconfig: update to 5.87.0.
- kpackage: update to 5.87.0.
- kparts: update to 5.87.0.
- kpeople: update to 5.87.0.
- kplotting: update to 5.87.0.
- kpty: update to 5.87.0.
- kquickcharts: update to 5.87.0.
- kross: update to 5.87.0.
- krunner: update to 5.87.0.
- kservice: update to 5.87.0.
- ksolid: update to 5.87.0.
- ktexteditor: update to 5.87.0.
- ktextwidgets: update to 5.87.0.
- kunitconversion: update to 5.87.0.
- kwallet: update to 5.87.0.
- kwayland: update to 5.87.0.
- kwidgetsaddons: update to 5.87.0.
- kwindowsystem: update to 5.87.0.
- kxmlgui: update to 5.87.0.
- kxmlrpcclient: update to 5.87.0.
- modemmanager-qt5: update to 5.87.0.
- networkmanager-qt5: update to 5.87.0.
- oxygen-icons5: update to 5.87.0.
- plasma-framework: update to 5.87.0.
- prison: update to 5.87.0.
- purpose: update to 5.87.0.
- qqc2-desktop-style: update to 5.87.0.
- sonnet: update to 5.87.0.
- syndication: update to 5.87.0.
- syntax-highlighting: update to 5.87.0.
- threadweaver: update to 5.87.0.
- bluedevil: update to 5.23.1
- breeze-gtk: update to 5.23.1
- breeze: update to 5.23.1
- kactivitymanagerd: update to 5.23.1
- kde-cli-tools: update to 5.23.1
- kde-gtk-config5: update to 5.23.1
- kdecoration: update to 5.23.1
- kdeplasma-addons5: update to 5.23.1
- kgamma5: update to 5.23.1
- khotkeys: update to 5.23.1
- kinfocenter: update to 5.23.1
- kmenuedit: update to 5.23.1
- kscreen: update to 5.23.1
- kscreenlocker: update to 5.23.1
- ksshaskpass: update to 5.23.1
- ksystemstats: update to 5.23.1
- kwallet-pam: update to 5.23.1
- kwayland-integration: update to 5.23.1
- kwayland-server: update to 5.23.1
- kwin: update to 5.23.1
- kwrited: update to 5.23.1
- layer-shell-qt: update to 5.23.1
- libkscreen: update to 5.23.1
- libksysguard: update to 5.23.1
- milou: update to 5.23.1
- oxygen: update to 5.23.1
- plasma-browser-integration: update to 5.23.1
- plasma-desktop: update to 5.23.1
- plasma-disks: update to 5.23.1
- plasma-firewall: update to 5.23.1
- plasma-integration: update to 5.23.1
- plasma-nm: update to 5.23.1
- plasma-pa: update to 5.23.1
- plasma-sdk: update to 5.23.1
- plasma-systemmonitor: update to 5.23.1
- plasma-thunderbolt: update to 5.23.1
- plasma-vault: update to 5.23.1
- plasma-workspace-wallpapers: update to 5.23.1
- plasma-workspace: update to 5.23.1
- polkit-kde-agent: update to 5.23.1
- powerdevil: update to 5.23.1
- sddm-kcm: update to 5.23.1
- systemsettings: update to 5.23.1
- xdg-desktop-portal-kde: update to 5.23.1
- kde5: update to 5.23.0.
- google-chrome: update to 95.0.4638.54
- vscode: update to 1.61.2
- saml2aws: update to 2.33.0
- stern: update to 1.20.1.
- slit: update to 1.3.0
- frp: update to 0.37.1
- gifsicle: update to 1.93
- python3-pyinfra: update to 1.4.17.
- python3-numpy: update to 1.21.3.
- python3-pandas: update to 1.3.4.
- python3-pyopencl: update to 2021.2.9.
- clib: update to 2.7.0.
- dbeaver: update to 21.2.3.
- hyperfine: update to 1.12.0
- blueman: update to 2.2.2.
- ppsspp: update to 1.12.3.
- linux5.14: update to 5.14.14.
- subfinder: update to 2.4.9
- just: update to 0.10.2
- thunderbird: update to 91.2.0.
- thunderbird-i18n: update to 91.2.0.
- pango: update to 1.48.10, adopt
- qtractor: update to 0.9.24, enable VST3 support, adopt
- yara: update to 4.1.3.
- python3-yara: update to 4.1.3.
- python3-colorclass: patch for py3.10 collections
- peframe: fix for py3.10
- vips: update to 8.11.4.
- fuzzel: update to 1.6.4.
- synapse: update to 1.45.1.
- libavif: update to 0.9.3.
- linux5.4: update to 5.4.155.
- linux4.19: update to 4.19.213.
- minikube: update to 1.23.0.
- python3-pandas: package broken on x86_64, try rebuilding
- plocate: update to 1.1.12.
- libite: update to 2.4.1.
- openradtool: update to 0.13.9.
- bash: disable test suspending xbps-src
- gifsicle: subsume "Gifsicle"
- lf: update to r26.
- zoom: update to 5.8.0.16
- teams-bin: update to 1.4.00.26453.
- New package: wike-1.6.0
- python3-mccabe: fix typo in the maintainer field
- mdcat: update to 0.23.2
- xfce4-terminal: fix homepage and ignore development releases
- go-for-it: update to 1.9.5.
- acpid: fix backlight stepping for low values of max_brightness
- i3-gaps: update to 4.20.
- mpd: update to 0.23.2.
- yt-dlp: update to 2021.10.22.
- thunderbird: try to fix build on i686.
- gthumb: update to 3.12.0
- chromium: update to 95.0.4638.54.
- thunderbird: properly resync patch
- thunderbird: fix i686 build.
- mesa: disable llvmpipe except on select architectures
- new package: pypy3.7

<!-- Mark items with [x] where applicable -->

#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] 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/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: 1795 bytes --]

From 7df239c5198304c5ad14b0de218d6031c5ff3fd3 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..7b427af87577
--- /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="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 /opt
+	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}/opt
+	ln -s /opt/${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
@ 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

end of thread, other threads:[~2022-01-02  8:34 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2021-10-26  9:03 ` dkwo
2021-10-26 18:41 ` Chocimier
2021-10-26 18:42 ` [PR REVIEW] " Chocimier
2021-10-26 18:42 ` Chocimier
2021-10-27  9:50 ` [PR PATCH] [Updated] " dkwo
2021-10-27  9:51 ` [PR REVIEW] " dkwo
2021-10-27 19:05 ` [PR PATCH] [Updated] " dkwo
2021-10-28 11:40 ` dkwo
2021-10-28 11:42 ` dkwo
2021-12-16  0:51 ` EliteTK
2021-12-16  1:01 ` ahesford
2021-12-16  2:32 ` EliteTK
2021-12-16  2:33 ` EliteTK
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

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).