ladybird/Ports
Linus Groh 39af1f8519 Ports: Add Python 3.9
The current version of our Python port (3.6.0) is over four years old by
now and has (or had, I haven't actually tried it in a while) some
limitations - time for an upgrade! The latest Python release is 3.9.1,
so I used that version. It's a from-scratch port, no patches are taken
from the previous port to ensure the smallest possible amount of code is
patched. The BuildPython.sh script is useful so I kept it, with some
tweaks. I added a short document explaining each patch to ease judging
their underlying problem and necessity in the future.

Compared to the old Python port, this one does support both the time
module as well as threading (at least _thread) just fine. Importing
modules written in C (everything in /usr/local/lib/python3.9/lib-dynload)
currently asserts in Serenity's dynamic loader, which is unfortunate but
probably solvable. Possibly related to #4642. I didn't try building
Python statically, which might be one possibility to circumvent this
issue.

I also renamed the directory to just "python3", which is analogous to
the Python 3.x package most Linux distributions provide. That implicitly
means that we likely will not support multiple versions of the Python
port at any given time, but again, neither do many other systems by
default. Recent versions are usually backwards compatible anyway though,
so having the latest shouldn't be a problem.
On the other hand bumping the version should now be be as simple as
updating the variables in version.sh, given that no new patches are
required.

These core modules to currently not build - I chose to ignore that for
now rather than adding more patches to make them work somehow, which
means they're fully unavailable. This should probably be fixed in
Serenity itself.

    _ctypes, _decimal, _socket, mmap, resource, termios

These optional modules requiring 3rd-party dependencies do currently not
build (even with depends="ncurses openssl zlib"). Especially the absence
of a readline port makes the REPL a bit painful to use. :^)

    _bz2, _curses, _curses_panel, _dbm, _gdbm, _hashlib, _lzma, _sqlite3,
    _ssl, _tkinter, _uuid, nis, ossaudiodev, readline, spwd, zlib

I did some work on LibC and LibM beforehand to add at least stubs of
missing required functions, it still encounters an ASSERT_NOT_REACHED()
/ TODO() every now and then, notably frexp() (implementations of that
can be found online easily if you want to get that working right now).
But then again that's our fault and not this port's. :^)
2021-01-18 22:28:56 +01:00
..
bash Ports: Make bash link again 2020-05-18 11:29:08 +02:00
bc
binutils Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
byacc
c-ray Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
curl
dash Ports: Add dash shell 2020-05-10 19:42:48 +02:00
diffutils
doom
dropbear Ports: Remove dropbear patch that removed calls to seteuid() 2020-06-19 20:34:59 +02:00
ed
editline Ports: Add editline library (#2532) 2020-06-08 21:38:13 +02:00
figlet
flex
frotz Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
gcc Ports: Tweak configuration flags of gcc port to support shared binaries 2020-12-24 21:46:35 +01:00
git Ports: Remove some no-longer-needed patches for git :^) 2021-01-12 13:50:39 +01:00
gnuplot Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
grep LibGfx+Ports: Add missing newlines at the end of file. 2021-01-03 17:12:50 +01:00
indent TextEditor+Meta+Ports+Shell: Remove blank lines at the end of some files 2021-01-03 17:12:50 +01:00
jot Add the libpuffy helper library and jot, patch, and printf utils 2020-03-14 22:24:37 +01:00
jq Ports: Add jq :^) 2020-07-12 01:19:48 +02:00
klong
less LibGfx+Ports: Add missing newlines at the end of file. 2021-01-03 17:12:50 +01:00
libarchive
libexpat LibGfx+Ports: Add missing newlines at the end of file. 2021-01-03 17:12:50 +01:00
libffi Ports: Add libffi 2020-09-10 19:57:38 +02:00
libiconv LibGfx+Ports: Add missing newlines at the end of file. 2021-01-03 17:12:50 +01:00
libpuffy Add the libpuffy helper library and jot, patch, and printf utils 2020-03-14 22:24:37 +01:00
links
lua Ports: Install lua to /usr/local 2020-09-07 13:34:44 +02:00
m4 LibGfx+Ports: Add missing newlines at the end of file. 2021-01-03 17:12:50 +01:00
make Ports: Bump GNU make to version 4.3 2020-12-15 01:06:18 +01:00
mandoc LibGfx+Ports: Add missing newlines at the end of file. 2021-01-03 17:12:50 +01:00
mawk
mbedtls LibGfx+Ports: Add missing newlines at the end of file. 2021-01-03 17:12:50 +01:00
mrsh
nano Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
nasm
ncurses Ports: Bump ncurses to version 6.2 2020-12-15 00:38:57 +01:00
neofetch Ports: Use "jq" in neofetch for /proc/{cpuinfo,memstat} 2020-07-12 17:45:38 +02:00
nesalizer
ninja LibC+Kernel: Start implementing sysconf 2020-07-15 00:07:20 +02:00
nyancat
openssh Ports: Add OpenSSH port 2020-09-27 01:02:11 +02:00
openssl Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
patch Add the libpuffy helper library and jot, patch, and printf utils 2020-03-14 22:24:37 +01:00
pcre2
pkgconf Ports: Add pkgconf (#3757) 2020-10-13 13:53:17 +02:00
printf Add the libpuffy helper library and jot, patch, and printf utils 2020-03-14 22:24:37 +01:00
python3 Ports: Add Python 3.9 2021-01-18 22:28:56 +01:00
quake Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
rsync Ports: Rename a few .diff files to .patch 2021-01-17 08:43:46 +01:00
SDL2
sed LibGfx+Ports: Add missing newlines at the end of file. 2021-01-03 17:12:50 +01:00
sl Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
stress-ng Ports: Rename a few .diff files to .patch 2021-01-17 08:43:46 +01:00
termcap Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
tinycc
tr Ports: Add tr utility 2020-05-10 19:41:35 +02:00
vim Ports: Build ncurses with --with-tlib=tinfo 2020-03-04 23:59:02 +01:00
vttest Ports: Bump version of the "vttest" port 2020-09-01 17:48:37 +02:00
zlib
zstd Ports: Add zstd port 2020-03-14 22:25:22 +01:00
.gitignore Ports: Add OpenSSH port 2020-09-27 01:02:11 +02:00
.port_include.sh Ports: Rename a few .diff files to .patch 2021-01-17 08:43:46 +01:00
build_all.sh LibGfx+Ports: Add missing newlines at the end of file. 2021-01-03 17:12:50 +01:00
README.md

What's this?

Serenity has software patched to run on it. These shell scripts will allow you to build that sort of software, easily. For example, if you want to install SDL2, simply run its package.sh script. Note that you should have already built Serenity, and be in a Serenity build environment.

Using ports scripts

To do everything, just run the script: ./package.sh To do a single step, you can specify it: ./package.sh build

How do I contribute?

Port software, and add new scripts to build it of course :)