diff options
author | Yuqian Yang <crupest@crupest.life> | 2025-03-03 23:29:38 +0800 |
---|---|---|
committer | Yuqian Yang <crupest@crupest.life> | 2025-03-03 23:29:38 +0800 |
commit | 4bf9b57cca977760a89bda7b419a85ca471ba1ce (patch) | |
tree | 1a50b7716ec7369d2dfeaa885d8c055226bcf734 /www/content | |
parent | cfa5ea2f4a8fd79136cfe95ad1fdfe88d52eece8 (diff) | |
download | crupest-4bf9b57cca977760a89bda7b419a85ca471ba1ce.tar.gz crupest-4bf9b57cca977760a89bda7b419a85ca471ba1ce.tar.bz2 crupest-4bf9b57cca977760a89bda7b419a85ca471ba1ce.zip |
feat(www): hurd and todos.
Diffstat (limited to 'www/content')
-rw-r--r-- | www/content/hurd.md | 5 | ||||
-rw-r--r-- | www/content/hurd/_index.md | 182 | ||||
-rw-r--r-- | www/content/hurd/todos.md | 54 | ||||
-rw-r--r-- | www/content/todos.md | 4 |
4 files changed, 239 insertions, 6 deletions
diff --git a/www/content/hurd.md b/www/content/hurd.md deleted file mode 100644 index 67cf6f8..0000000 --- a/www/content/hurd.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: "Hurd" -date: 2025-03-03T15:34:41+08:00 -lastmod: 2025-03-03T15:34:41+08:00 ---- diff --git a/www/content/hurd/_index.md b/www/content/hurd/_index.md new file mode 100644 index 0000000..b4c727c --- /dev/null +++ b/www/content/hurd/_index.md @@ -0,0 +1,182 @@ +--- +title: "Hurd" +date: 2025-03-03T15:34:41+08:00 +lastmod: 2025-03-03T23:28:46+08:00 +layout: single +--- + +{{< mono >}} + +[TODOS](/hurd/todos) + +{{< /mono >}} + +## links + +{{< mono >}} + +| name | link | +| --- | --- | +| kernel-list-archive | <https://lists.gnu.org/archive/html/bug-hurd/> | +| debian-list-archive | <https://lists.debian.org/debian-hurd/> | +| irc-archive | <https://logs.guix.gnu.org/hurd/> | +| kernel-home | <https://www.gnu.org/software/hurd/index.html> | +| debian-home | <https://www.debian.org/ports/hurd/> | + +{{< /mono >}} + +refs: + +{{< mono >}} + +| name | link | +| --- | --- | +| c | <https://en.cppreference.com/w/c> | +| posix latest | <https://pubs.opengroup.org/onlinepubs/9799919799/> | +| posix 2013 | <https://pubs.opengroup.org/onlinepubs/9699919799.2013edition/> | +| posix 2008 | <https://pubs.opengroup.org/onlinepubs/9699919799.2008edition/> | +| glibc | <https://sourceware.org/glibc/manual/2.41/html_mono/libc.html> | + +{{< /mono >}} + +## *_MAX patch + +TODO: Move to separate page. + +```c +#include <errno.h> +#include <stdlib.h> +#include <unistd.h> + +static inline char *xreadlink(const char *restrict path) { + char *buffer; + size_t allocated = 128; + ssize_t len; + + while (1) { + buffer = (char *)malloc(allocated); + if (!buffer) { + return NULL; + } + len = readlink(path, buffer, allocated); + if (len < (ssize_t)allocated) { + return buffer; + } + free(buffer); + if (len >= (ssize_t)allocated) { + allocated *= 2; + continue; + } + return NULL; + } +} + +static inline char *xgethostname() { + long max_host_name; + char *buffer; + + max_host_name = sysconf(_SC_HOST_NAME_MAX); + buffer = malloc(max_host_name + 1); + + if (gethostname(buffer, max_host_name + 1)) { + free(buffer); + return NULL; + } + + buffer[max_host_name] = '\0'; + return buffer; +} + +static inline char *xgetcwd() { + char *buffer; + size_t allocated = 128; + + while (1) { + buffer = (char *)malloc(allocated); + if (!buffer) { + return NULL; + } + getcwd(buffer, allocated); + if (buffer) + return buffer; + free(buffer); + if (errno == ERANGE) { + allocated *= 2; + continue; + } + return NULL; + } +} +``` + +## git repos + +{{< link-group >}} +hurd +cru: <https://crupest.life/git/cru-hurd/hurd.git> +upstream: <https://git.savannah.gnu.org/git/hurd/hurd.git> +debian: <https://salsa.debian.org/hurd-team/hurd> +{{< /link-group >}} + +{{< link-group >}} +gnumach +cru: <https://crupest.life/git/cru-hurd/gnumach.git> +upstream: <https://git.savannah.gnu.org/git/hurd/gnumach.git> +debian: <https://salsa.debian.org/hurd-team/gnumach> +{{< /link-group >}} + +{{< link-group >}} +mig +cru: <https://crupest.life/git/cru-hurd/mig.git> +upstream: <https://git.savannah.gnu.org/git/hurd/mig.git> +debian: <https://salsa.debian.org/hurd-team/mig> +{{< /link-group >}} + +{{< link-group >}} +glibc +cru: <https://crupest.life/git/cru-hurd/glibc.git> +upstream: <git://sourceware.org/git/glibc.git> +debian: <https://salsa.debian.org/glibc-team/glibc> +mirror: <https://mirrors.tuna.tsinghua.edu.cn/git/glibc.git> +{{< /link-group >}} + +{{< link-group >}} +web +cru: <https://crupest.life/git/cru-hurd/web.git> +upstream: <https://git.savannah.gnu.org/git/hurd/web.git> +{{< /link-group >}} + +## cheatsheet + +Start qemu + +```sh +qemu-system-x86_64 -enable-kvm -m 4G -net nic -net user,hostfwd=tcp::3222-:22 -vga vmware -drive cache=writeback,file=[...] +``` + +Configure/Setup network + +```sh +settrans -fgap /servers/socket/2 /hurd/pfinet -i /dev/eth0 -a 10.0.2.15 -g 10.0.2.2 -m 255.255.255.0 +fsysopts /servers/socket/2 /hurd/pfinet -i /dev/eth0 -a 10.0.2.15 -g 10.0.2.2 -m 255.255.255.0 +fsysopts /server/socket/2 -a 10.0.2.15 -g 10.0.2.2 -m 255.255.255.0 +``` + +Setup apt + +```sh +apt-get --allow-unauthenticated --allow-insecure-repositories update +apt-get --allow-unauthenticated upgrade +``` + +## mailing lists / irc + +{{< mono >}} + +| name | address | +| --- | --- | +| hurd | <bug-hurd@gnu.org> | +| debian | <debian-hurd@lists.debian.org> | +| irc | librechat #hurd | + +{{< /mono >}} diff --git a/www/content/hurd/todos.md b/www/content/hurd/todos.md new file mode 100644 index 0000000..d95bfb9 --- /dev/null +++ b/www/content/hurd/todos.md @@ -0,0 +1,54 @@ +--- +title: "Hurd Todos" +date: 2025-03-03T21:22:35+08:00 +lastmod: 2025-03-03T23:28:46+08:00 +params: + css: + - todos +--- + +## Porting + +### {{< todo name=pam state=working >}} + +{{< link-group >}} +git +cru: <https://crupest.life/git/love-hurd/pam.git> +debian: <https://salsa.debian.org/vorlon/pam> +upstream: <https://github.com/linux-pam/linux-pam> +{{< /link-group >}} + +{{< link-group >}} +mail +<https://lists.debian.org/debian-hurd/2025/02/msg00018.html> +{{< /link-group >}} + +### {{< todo name=abseil state=working >}} + +{{< link-group >}} +git +cru: <https://crupest.life/git/cru-hurd/abseil.git> +upstream: <https://github.com/abseil/abseil-cpp> +debian: <https://salsa.debian.org/debian/abseil> +{{< /link-group >}} + +{{< link-group >}} +mail +<https://lists.debian.org/debian-hurd/2025/02/msg00011.html>\ +<https://lists.debian.org/debian-hurd/2025/02/msg00035.html> +{{< /link-group >}} + +### {{< todo name=libgav1 state=done >}} + +{{< link-group >}} +git +my: <https://crupest.life/git/love-hurd/libgav1.git> +debian: <https://salsa.debian.org/multimedia-team/libgav1> +upstream: <https://chromium.googlesource.com/codecs/libgav1/> +{{< /link-group >}} + +{{< link-group >}} +misc +mail: <https://lists.debian.org/debian-hurd/2025/02/msg00016.html> +gerrit: <https://chromium-review.googlesource.com/c/codecs/libgav1/+/6239812> +{{< /link-group >}} diff --git a/www/content/todos.md b/www/content/todos.md index da7cc0f..a790e24 100644 --- a/www/content/todos.md +++ b/www/content/todos.md @@ -1,5 +1,7 @@ --- title: "Todos" date: 2025-03-03T15:34:53+08:00 -lastmod: 2025-03-03T15:34:53+08:00 +lastmod: 2025-03-03T23:28:46+08:00 --- + +[Hurd](/hurd/todos) |