view README @ 45:5e046980990d

Call the package.py script with WRKSRC as the CWD. This removes the need for patching sysconfig.py and package.py (PyPy3) because files that are created by the scripts in the CWD now are created in WRKSRC. This is also consistent with other build stept, where an explicit change of the CWD to WRKSRC is done.
author Franz Glasner <fzglas.hg@dom66.de>
date Sun, 09 Oct 2022 19:11:04 +0200
parents 118d389d45e0
children 585cf5a218ad
line wrap: on
line source


Notes on how to build
=====================


1. Schritt: ein erstes pypy bauen
---------------------------------

Erst einmal mit dem **alten** Ports-Verzeichnis, welches insgesamt auf
dem Stand ist, wo pypy noch offizieller Bestandteil des Ports-Trees war.

Problem: py27-setuptools ist aber aktuell in Wirklichkeit py27-setuptools44.

Deshalb tricksen und zum ersten Bauen und installieren die setuptools in
der Pkg-Db umbenennen mit "pkg set -n"


ACHTUNG: Ports-Tree auf alten Zeitpunkt stellen:
         "hg update -r 377386a46a6b"


Dependencies
~~~~~~~~~~~~

Build py27-pycparser (Origin: devel/py-pycparser):

    pkg install py27-setuptools44

    pkg set -n py27-setuptools44:py27-setuptools

    cd devel/py-pycparser
    make FLAVOR=py27 package

Install this package: pkg install py27-pycparser


PyPy
~~~~

Origin: lang/pypy

Install -A gmake, binutils, expat, libunwind

Unbedingt auch sicherstellen, daß libffi und libz installiert sind

Build:

   pkg set -n py27-setuptools44:py27-setuptools
   make rmconfig
   make build
   make package

Installieren

Dann erst einmal die setuptools wieder zurückbenennen:

    pkg set -n py27-setuptools:py27-setuptools44

Testen folgender Importe:

    import bz2
    import curses
    import pyexpat
    import zlib
    import ssl
    import cffi


2. Schritt: nochmal bauen mit "richtiger" und aktueller Ports-Umgebung
----------------------------------------------------------------------

Vorgehen im Prinzip wie beim ersten Schritt, nur den aktuellen py27-pycparser
installieren als VB und dann auch mittels "make config" das installierte
erste "pypy" als Übersetzer nehmen

ACHTUNG: Ports-Tree auf neueste Version stellen per "hg update".
         Keine setuptools-Umbenennung!


Dependencies
~~~~~~~~~~~~

Build py27-pycparser (Origin: devel/py-pycparser):

Den lassen, der kann mit

    pkg info py27-setuptools44

    cd devel/py-pycparser

Zum Bauen temporär "USES=python:2.7" einstellen.

Bauen:

    make package

Install this package: pkg install py27-pycparser


PyPy
~~~~

Mit PyPy bauen:

    make config     -> PYPY
    make build
    make package

Re-Installation:

    pkg remove pypy
    pkg install pypy

Testen folgender Importe:

    import bz2
    import curses
    import pyexpat
    import zlib
    import ssl
    import cffi
    import ctypes


pypy-gdbm und pypy-sqlite3
~~~~~~~~~~~~~~~~~~~~~~~~~~

jeweils mit "FLAVOR=pypy" bauen