No description
The previous version of this hook skipped ./bootstrap entirely, on the assumption that the source was a released tarball and therefore already bootstrapped. It is not -- it is a git checkout, so skipping bootstrap removed configure itself: PKGBUILD: line 43: ./configure: No such file or directory That made things worse than the failure it was meant to fix, and it was my assumption that was wrong, not the package. What has to go is the check, not the bootstrap. grep is the only package here that INSPECTS the version of the m4 macros its host provides and refuses to proceed on Ubuntu's serial -- on any Ubuntu host, x86 included. The check lives in the extracted source, so it is removed from prepare(). The hook now verifies BOTH that the check is gone and that ./bootstrap is still invoked, so this particular mistake cannot come back silently. --- FR --- La version precedente de ce crochet sautait ./bootstrap entierement, en supposant que la source etait une archive de version, donc deja amorcee. Elle ne l est pas -- c est un depot git, et sauter bootstrap supprimait configure lui-meme : PKGBUILD: line 43: ./configure: No such file or directory Cela empirait l etat au lieu de le corriger, et c est mon hypothese qui etait fausse, pas le paquet. Ce qu il faut retirer, c est la verification, pas l amorcage. grep est le seul paquet ici a EXAMINER la version des macros m4 de son hote et a refuser la serie d Ubuntu -- sur n importe quel hote Ubuntu, x86 compris. La verification vit dans la source extraite : elle est donc retiree depuis prepare(). Le crochet controle desormais A LA FOIS que la verification a disparu et que ./bootstrap est toujours appele, pour que cette erreur precise ne puisse pas revenir en silence. Assisted-by: Claude Opus 5 |
||
|---|---|---|
| .github/workflows | ||
| arch-kernel | ||
| boot | ||
| patches | ||
| scripts | ||
| .env.example | ||
| .gitignore | ||
| CODEOWNERS | ||
| Containerfile | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| TODO.md | ||
Arch Linux s390x
A port of Arch Linux to IBM s390x mainframe architecture with systemd support.
Boots a full Arch Linux system on IBM mainframes (or QEMU s390x emulation) using a hybrid build: cross-compilation for the kernel, native s390x compilation on z/VM for userspace.
Quick Start
make container # build dev container (first time)
cp .env.example .env # configure z/VM access
make all # build kernel + initramfs + systemd
make test-systemd # boot it
What Works
- Arch Linux kernel 6.18.6-arch1 with Arch patches, cross-compiled
- Initramfs via modified mkinitcpio
- Static busybox built natively on z/VM, 2.3MB
- Root filesystem with ext4, switch_root to real rootfs
- Systemd as PID 1
Pacman, bash, and GNU coreutils are not yet ported.
Build System
The build uses two tiers:
Cross-compilation (x86_64 host): Kernel is built in a Fedora 43 container with s390x-linux-gnu-gcc. Initramfs is generated with a patched mkinitcpio that handles cross-architecture binary injection.
Native compilation (s390x z/VM): Busybox and systemd must be built on real s390x hardware. The z/VM system runs RHEL 9.6 with GCC 11.5.0. Scripts handle SSH deployment and retrieval automatically via .env configuration.