Mercurial > hgrepos > FreeBSD > ports > PyPy
comparison README @ 56:585cf5a218ad
Allow to build PyPy-v7.3.14 on FreeBSD 13.2:
This needs to handle:
- AF_NETLINK support on FreeBSD
- build of termios (with extra header termios.h)
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 07 Jan 2024 22:27:41 +0100 |
| parents | 118d389d45e0 |
| children |
comparison
equal
deleted
inserted
replaced
| 55:b1432f2f3bc4 | 56:585cf5a218ad |
|---|---|
| 37 PyPy | 37 PyPy |
| 38 ~~~~ | 38 ~~~~ |
| 39 | 39 |
| 40 Origin: lang/pypy | 40 Origin: lang/pypy |
| 41 | 41 |
| 42 Install -A gmake, binutils, expat, libunwind | 42 Install -A gmake, binutils, expat, libunwind, pkgconf |
| 43 | 43 |
| 44 Unbedingt auch sicherstellen, daß libffi und libz installiert sind | 44 Unbedingt auch sicherstellen, daß libffi und libz installiert sind |
| 45 | 45 |
| 46 Build: | 46 Build: |
| 47 | 47 |
| 124 | 124 |
| 125 pypy-gdbm und pypy-sqlite3 | 125 pypy-gdbm und pypy-sqlite3 |
| 126 ~~~~~~~~~~~~~~~~~~~~~~~~~~ | 126 ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 127 | 127 |
| 128 jeweils mit "FLAVOR=pypy" bauen | 128 jeweils mit "FLAVOR=pypy" bauen |
| 129 | |
| 130 | |
| 131 | |
| 132 Build von PyPy v7.3.14 auf FreeBSD-13.2 | |
| 133 ======================================= | |
| 134 | |
| 135 .. note:: Auch das Kommanto :command:`pkg-config` scheint nun nötig zu | |
| 136 sein laut Dokumentation. | |
| 137 | |
| 138 | |
| 139 ``AF_NETLINK`` und :file:`linux/netlink.h` | |
| 140 ------------------------------------------ | |
| 141 | |
| 142 FreeBSD-13.2 definiert im Gegensatz zu früheren Versionen nun auch | |
| 143 ``AF_NETLINK``. Aber PyPy (übrigends auch frühere Versionen) geht davon aus, | |
| 144 daß ``AF_NETLINK`` nur unter Linux definiert sein kann und includiert dann | |
| 145 fest das Include-File :file:`linux/netlink.h`; das gibt es aber unter | |
| 146 FreeBSD nicht. Stattdessen ist es hier :file:'netlink/netlink.h`. | |
| 147 | |
| 148 Deswegen in :file:`rpython/rlib/_rsocket_rffi.py` die entsprechende | |
| 149 Include-Definition patchen. | |
| 150 | |
| 151 | |
| 152 termios | |
| 153 ------- | |
| 154 | |
| 155 PyPy v7.3.14 baut nun auch das `termios`-Modul. Der entsprechende nötige | |
| 156 Header :file:`termios.h` ist aber unter FreeBSD nicht automatisch beim | |
| 157 Compilieren mit dabei. | |
| 158 | |
| 159 Deswegen in :file:`rpython/rlib/rposix.py` den Header :file:`termios.h` | |
| 160 in die Platform-Konfigurations-Includes mit aufnehmen unter FreeBSD. |
