klange / toaruos

A completely-from-scratch hobby operating system: bootloader, kernel, drivers, C library, and userspace including a composited graphical UI, dynamic linker, syntax-highlighting text editor, network stack, etc.
https://toaruos.org/
University of Illinois/NCSA Open Source License
6.03k stars 475 forks source link

Added some ports #194

Closed Dennisbonke closed 4 years ago

Dennisbonke commented 4 years ago

I know that you probably have your own port collection somewhere but these are not available to the users, except for the packages on the package manager. I have added three ports in this pull request, which can be build after building and sourcing the toolchain manually by running the build.sh script in the directory of the port. zlib and ncurses required no additions to the libc but file wanted sigaction and the regex functions, which are stubbed.
Tested by recompiling everything and running the installed programs, ncurses6-config is a bash shell script and as such not working, and file complains about the magic database being invalid, which is strange as the same database works on my host. ncurses would like a terminfo file for the toaru terminal but is functioning otherwise. I am planning on more doing more ports later on as well as enhancing the build system used for the ports, as it is a tedious thing at the moment.
Feedback on this pr and whether you want me to continue porting software would be appreciated.

klange commented 4 years ago

Some thoughts on ports:

Dennisbonke commented 4 years ago

I see. Then it is mostly a matter of providing the functions required. As far as I saw in a the porting of these programs that means that signals needs some more love. A lot of programs consider sigset and friends available, just like sigprocmask and sigaction. Maybe this is the time to finally learn how posix signals work according to spec so I can start implementing it....