Initial import: build and boot Everest Linux in QEMU
everest.sh builds Everest's signed packages in an Alpine container, publishes the base, extra and extra-src repositories, installs the system with glacier-bootstrap into an initramfs and boots it in QEMU. The image carries glacier, a toolchain and the repositories, and builds packages from source inside the VM. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
f687558b66
43 files changed
+2058
No files matched your search
@@ -0,0 +1,16 @@
|
||||
Everest's recipes (BUILD_DESIGN.txt in libglacier-ng)
|
||||
|
||||
extra-src/NAME/recipe libconfig, read by the library
|
||||
extra-src/NAME/build optional shell hooks: prepare,
|
||||
configure, compile, package
|
||||
extra-src/NAME/patches/*.patch optional, applied in PATCHES order
|
||||
|
||||
Pack and publish (a NAME-src repo is signed like a binary one):
|
||||
|
||||
glacier-ng/tests/mkgrcp -o OUT extra-src/*/
|
||||
grepo -s KEY.sec -r extra-src OUT
|
||||
|
||||
Build them in Docker: see libglacier-ng's DOCKER_BUILDS.txt.
|
||||
|
||||
In hooks, install under $PREFIX (where the package will be linked:
|
||||
/glacier/sys/links for extra), never a literal /usr.
|
||||
@@ -0,0 +1,12 @@
|
||||
NAME = "bash";
|
||||
VER = "5.3.0";
|
||||
REPO = "extra";
|
||||
DESC = "The GNU Bourne-again shell";
|
||||
MAINT = "liamwaldron@everestlinux.org";
|
||||
COPYRIGHT = "GNU GPL 3.0";
|
||||
SOURCES = (
|
||||
{ URL = "https://ftp.gnu.org/gnu/bash/bash-5.3.tar.gz";
|
||||
SHA256 = "sha256:0d5cd86965f869a26cf64f4b71be7b96f90a3ba8b3d74e27e8e9d9d5550f31ba"; }
|
||||
);
|
||||
# bash's bundled gettext doesn't compile on musl; its malloc misbehaves there.
|
||||
CONFIGURE = [ "--disable-nls", "--without-bash-malloc" ];
|
||||
@@ -0,0 +1,23 @@
|
||||
# Toolchain packages are built for /usr, not PREFIX: they are build
|
||||
# layers, which always sit at /usr (BUILD_DESIGN.txt section 13), and
|
||||
# on the running system gcc finds its parts relative to itself.
|
||||
# ld also searches /glacier/sys/links/lib, where extra's libraries are.
|
||||
T=x86_64-everest-linux-musl
|
||||
|
||||
configure() {
|
||||
mkdir -p build && cd build
|
||||
../configure --prefix=/usr --build=$T --host=$T --target=$T \
|
||||
--disable-nls --disable-werror --disable-multilib \
|
||||
--enable-deterministic-archives --enable-ld=default \
|
||||
--enable-plugins --enable-64-bit-bfd --disable-gprofng \
|
||||
--disable-gdb --disable-gdbserver --disable-sim \
|
||||
--with-system-zlib --without-zstd \
|
||||
--with-lib-path=/usr/lib:/glacier/sys/links/lib
|
||||
}
|
||||
|
||||
compile() { make; }
|
||||
|
||||
package() {
|
||||
make DESTDIR="$DESTDIR" install-strip
|
||||
rm -f "$DESTDIR/usr/share/info/dir"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
NAME = "binutils";
|
||||
VER = "2.47.0";
|
||||
REPO = "extra";
|
||||
DESC = "Assembler, linker and binary tools";
|
||||
MAINT = "liamwaldron@everestlinux.org";
|
||||
COPYRIGHT = "GPL-3.0-or-later";
|
||||
SOURCES = (
|
||||
{ URL = "https://ftp.gnu.org/gnu/binutils/binutils-2.47.tar.xz";
|
||||
SHA256 = "sha256:154ab23b60070e8f27013c22977f1129425d67d1e8acd6e13010e617811e4cff"; }
|
||||
);
|
||||
BUILD = "hooks";
|
||||
DEPS = ( { NAME = "musl"; VER = "1.2.5"; }, { NAME = "zlib"; VER = "1.3.2"; } );
|
||||
@@ -0,0 +1,38 @@
|
||||
# A toolchain package: built for /usr, not PREFIX (see binutils). The
|
||||
# same configuration as Everest's binary gcc (scripts/container.sh),
|
||||
# whose runtime libraries are the separate gcc-libs package (base), so
|
||||
# they are left out here. --with-local-prefix: headers of extra's
|
||||
# packages, in /glacier/sys/links/include, are searched too.
|
||||
T=x86_64-everest-linux-musl
|
||||
|
||||
prepare() {
|
||||
cd gcc-16.2.0
|
||||
for p in gmp-6.3.0 mpfr-4.2.2 mpc-1.3.1 isl-0.24; do
|
||||
ln -s "../$p" "${p%%-*}"
|
||||
done
|
||||
# One libdir: x86_64 would otherwise put its libraries in lib64.
|
||||
sed -i 's,m64=../lib64,m64=../lib,' gcc/config/i386/t-linux64
|
||||
}
|
||||
|
||||
configure() {
|
||||
mkdir build && cd build
|
||||
../configure --prefix=/usr --build=$T --host=$T --target=$T \
|
||||
--enable-languages=c,c++ --disable-multilib --disable-bootstrap \
|
||||
--disable-nls --disable-libsanitizer --disable-libssp \
|
||||
--disable-symvers --enable-default-pie --enable-default-ssp \
|
||||
--enable-shared --enable-threads=posix --enable-__cxa_atexit \
|
||||
--enable-checking=release --with-system-zlib \
|
||||
--with-local-prefix=/glacier/sys/links \
|
||||
--with-pkgversion="Everest"
|
||||
}
|
||||
|
||||
compile() { make; }
|
||||
|
||||
package() {
|
||||
make DESTDIR="$DESTDIR" install-strip
|
||||
rm -f "$DESTDIR/usr/share/info/dir"
|
||||
# POSIX's name for the C compiler: plain Makefiles (zstd's) call cc.
|
||||
ln -s gcc "$DESTDIR/usr/bin/cc"
|
||||
# gcc-libs' files (libcc1, GDB's plugin, stays here)
|
||||
find "$DESTDIR/usr/lib" -maxdepth 1 -name 'lib*.so.*' ! -name '*.py' ! -name 'libcc1.*' -delete
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
NAME = "gcc";
|
||||
VER = "16.2.0";
|
||||
REPO = "extra";
|
||||
DESC = "The GNU C and C++ compilers";
|
||||
MAINT = "liamwaldron@everestlinux.org";
|
||||
COPYRIGHT = "GPL-3.0-or-later";
|
||||
# gmp, mpfr, mpc and isl are built into gcc; their hashes match the
|
||||
# sha512s in gcc's own contrib/prerequisites.sha512.
|
||||
SOURCES = (
|
||||
{ URL = "https://ftp.gnu.org/gnu/gcc/gcc-16.2.0/gcc-16.2.0.tar.xz";
|
||||
SHA256 = "sha256:e6738e29597f733270731aa90600f37ffdc045079dfc27ec7e8192cc81085c3e"; },
|
||||
{ URL = "https://gcc.gnu.org/pub/gcc/infrastructure/gmp-6.3.0.tar.bz2";
|
||||
SHA256 = "sha256:ac28211a7cfb609bae2e2c8d6058d66c8fe96434f740cf6fe2e47b000d1c20cb"; },
|
||||
{ URL = "https://gcc.gnu.org/pub/gcc/infrastructure/mpfr-4.2.2.tar.bz2";
|
||||
SHA256 = "sha256:9ad62c7dc910303cd384ff8f1f4767a655124980bb6d8650fe62c815a231bb7b"; },
|
||||
{ URL = "https://gcc.gnu.org/pub/gcc/infrastructure/mpc-1.3.1.tar.gz";
|
||||
SHA256 = "sha256:ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8"; },
|
||||
{ URL = "https://gcc.gnu.org/pub/gcc/infrastructure/isl-0.24.tar.bz2";
|
||||
SHA256 = "sha256:fcf78dd9656c10eb8cf9fbd5f59a0b6b01386205fe1934b3b287a0a1898145c0"; }
|
||||
);
|
||||
BUILD = "hooks";
|
||||
DEPS = ( { NAME = "musl"; VER = "1.2.5"; }, { NAME = "gcc-libs"; VER = "16.2.0"; },
|
||||
{ NAME = "binutils"; VER = "2.47.0"; }, { NAME = "zlib"; VER = "1.3.2"; } );
|
||||
@@ -0,0 +1,13 @@
|
||||
NAME = "less";
|
||||
VER = "710.0.0";
|
||||
REPO = "extra";
|
||||
DESC = "Terminal pager";
|
||||
MAINT = "liamwaldron7009@protonmail.com";
|
||||
COPYRIGHT = "GPL-3.0-or-later OR BSD-2-Clause";
|
||||
SOURCES = (
|
||||
{ URL = "https://www.greenwoodsoftware.com/less/less-710.tar.gz";
|
||||
SHA256 = "sha256:d1008fb78dcae1323ddab664bcb352a61f022b1b131bd8018548e021d975ec7a"; }
|
||||
);
|
||||
BUILD = "autotools";
|
||||
CONFIGURE = [ "--with-regex=posix" ];
|
||||
DEPS = ( { NAME = "ncurses"; VER = "6.6.0"; } );
|
||||
@@ -0,0 +1,9 @@
|
||||
# In /usr/include, where gcc looks (a toolchain package, see binutils).
|
||||
# make headers_install without its rsync: the .h files of the
|
||||
# generated usr/include.
|
||||
package() {
|
||||
make headers
|
||||
find usr/include -type f ! -name '*.h' -delete
|
||||
mkdir -p "$DESTDIR/usr"
|
||||
cp -R usr/include "$DESTDIR/usr/"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
NAME = "linux-headers";
|
||||
VER = "6.12.112";
|
||||
REPO = "extra";
|
||||
DESC = "Linux kernel headers for userspace";
|
||||
MAINT = "liamwaldron@everestlinux.org";
|
||||
COPYRIGHT = "GPL-2.0-only";
|
||||
SOURCES = (
|
||||
{ URL = "https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.12.112.tar.xz";
|
||||
SHA256 = "sha256:164dc9d1f6c93c61a15e1f071c48379b467f2b17c469cce7223471968208ed03"; }
|
||||
);
|
||||
BUILD = "hooks";
|
||||
@@ -0,0 +1,14 @@
|
||||
# Lua has no configure step: its module search path is compiled in
|
||||
# from LUA_ROOT, so point it at PREFIX.
|
||||
prepare() {
|
||||
sed -i "s|^\(#define LUA_ROOT[[:space:]]*\)\"/usr/local/\"|\1\"$PREFIX/\"|" src/luaconf.h
|
||||
grep -q "^#define LUA_ROOT[[:space:]]*\"$PREFIX/\"" src/luaconf.h
|
||||
}
|
||||
|
||||
compile() {
|
||||
make linux MYCFLAGS="$CFLAGS" MYLDFLAGS="$LDFLAGS"
|
||||
}
|
||||
|
||||
package() {
|
||||
make install INSTALL_TOP="$DESTDIR$PREFIX" INSTALL_MAN="$DESTDIR$PREFIX/share/man/man1"
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
NAME = "lua";
|
||||
VER = "5.4.9";
|
||||
REPO = "extra";
|
||||
DESC = "Lua scripting language";
|
||||
MAINT = "liamwaldron7009@protonmail.com";
|
||||
COPYRIGHT = "MIT";
|
||||
SOURCES = (
|
||||
{ URL = "https://www.lua.org/ftp/lua-5.4.9.tar.gz";
|
||||
SHA256 = "sha256:2335b6c582a52654f94612bf10d2f4672805d05329aa6568b1d8cd9e5c6fb8e6"; }
|
||||
);
|
||||
BUILD = "hooks";
|
||||
@@ -0,0 +1,11 @@
|
||||
# A toolchain package: built for /usr, not PREFIX (see binutils).
|
||||
# gnu17: make 4.4.1's old-style declarations aren't C23 (gcc's default).
|
||||
configure() {
|
||||
./configure --prefix=/usr --disable-nls --without-guile \
|
||||
CFLAGS="${CFLAGS:--O2} -std=gnu17"
|
||||
}
|
||||
compile() { make; }
|
||||
package() {
|
||||
make DESTDIR="$DESTDIR" install
|
||||
rm -f "$DESTDIR/usr/share/info/dir"
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
NAME = "make";
|
||||
VER = "4.4.1";
|
||||
REPO = "extra";
|
||||
DESC = "GNU make";
|
||||
MAINT = "liamwaldron@everestlinux.org";
|
||||
COPYRIGHT = "GPL-3.0-or-later";
|
||||
SOURCES = (
|
||||
{ URL = "https://ftp.gnu.org/gnu/make/make-4.4.1.tar.gz";
|
||||
SHA256 = "sha256:dd16fb1d67bfab79a72f5e8390735c49e3e8e70b4945a15ab1f81ddb78658fb3"; }
|
||||
);
|
||||
BUILD = "hooks";
|
||||
DEPS = ( { NAME = "musl"; VER = "1.2.5"; } );
|
||||
@@ -0,0 +1,18 @@
|
||||
# The paths below depend on PREFIX, so they can't be static CONFIGURE
|
||||
# arguments. terminfo is looked up in the package's own copy first.
|
||||
configure() {
|
||||
configure_args ./configure --prefix="$PREFIX" --sysconfdir=/etc \
|
||||
--mandir="$PREFIX/share/man" \
|
||||
--with-pkg-config-libdir="$PREFIX/lib/pkgconfig" \
|
||||
--with-terminfo-dirs="$PREFIX/share/terminfo:/etc/terminfo:/usr/share/terminfo"
|
||||
}
|
||||
|
||||
# Only the wide-character library is built: link the usual names to it.
|
||||
package() {
|
||||
make install DESTDIR="$DESTDIR"
|
||||
cd "$DESTDIR$PREFIX/lib"
|
||||
for l in ncurses curses tinfo; do
|
||||
ln -s libncursesw.so lib$l.so
|
||||
done
|
||||
ln -s ncursesw.pc pkgconfig/ncurses.pc
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
NAME = "ncurses";
|
||||
VER = "6.6.0";
|
||||
REPO = "extra";
|
||||
DESC = "Terminal handling library and terminfo database";
|
||||
MAINT = "liamwaldron7009@protonmail.com";
|
||||
COPYRIGHT = "MIT";
|
||||
SOURCES = (
|
||||
{ URL = "https://ftp.gnu.org/gnu/ncurses/ncurses-6.6.tar.gz";
|
||||
SHA256 = "sha256:355b4cbbed880b0381a04c46617b7656e362585d52e9cf84a67e2009b749ff11"; }
|
||||
);
|
||||
BUILD = "autotools";
|
||||
CONFIGURE = [ "--with-shared", "--without-debug", "--without-normal",
|
||||
"--without-ada", "--without-tests", "--enable-widec",
|
||||
"--enable-overwrite", "--enable-pc-files" ];
|
||||
TRAITS = (
|
||||
{ NAME = "cxx"; DEFAULT = false;
|
||||
ON = [ "--with-cxx-binding", "--with-cxx-shared" ];
|
||||
OFF = [ "--without-cxx-binding" ]; }
|
||||
);
|
||||
@@ -0,0 +1,19 @@
|
||||
NAME = "vim";
|
||||
VER = "9.2.1209";
|
||||
REPO = "extra";
|
||||
DESC = "Vi IMproved, a programmer's text editor";
|
||||
MAINT = "liamwaldron7009@protonmail.com";
|
||||
COPYRIGHT = "Vim";
|
||||
SOURCES = (
|
||||
{ URL = "https://github.com/vim/vim/archive/refs/tags/v9.2.1209.tar.gz";
|
||||
SHA256 = "sha256:75b58bd42067312721fd22da5bcb78f735bea5d59ec7d79cdf45ea85f956a53c"; }
|
||||
);
|
||||
BUILD = "autotools";
|
||||
CONFIGURE = [ "--with-tlib=ncursesw", "--disable-gui", "--without-x",
|
||||
"--disable-nls", "--disable-canberra", "--disable-libsodium",
|
||||
"--enable-multibyte" ];
|
||||
TRAITS = (
|
||||
{ NAME = "huge"; DEFAULT = true;
|
||||
ON = [ "--with-features=huge" ]; OFF = [ "--with-features=normal" ]; }
|
||||
);
|
||||
DEPS = ( { NAME = "ncurses"; VER = "6.6.0"; } );
|
||||
@@ -0,0 +1,4 @@
|
||||
# The same make variables for install, or it rebuilds with autodetection.
|
||||
package() {
|
||||
configure_args make install PREFIX="$PREFIX" DESTDIR="$DESTDIR"
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
NAME = "zstd";
|
||||
VER = "1.5.7";
|
||||
REPO = "extra";
|
||||
DESC = "Zstandard compression library and tool";
|
||||
MAINT = "liamwaldron7009@protonmail.com";
|
||||
COPYRIGHT = "BSD-3-Clause OR GPL-2.0-only";
|
||||
SOURCES = (
|
||||
{ URL = "https://github.com/facebook/zstd/releases/download/v1.5.7/zstd-1.5.7.tar.gz";
|
||||
SHA256 = "sha256:eb33e51f49a15e023950cd7825ca74a4a2b43db8354825ac24fc1b7ee09e6fa3"; }
|
||||
);
|
||||
BUILD = "make";
|
||||
# Don't link whatever compression libraries the build root happens to have.
|
||||
CONFIGURE = [ "HAVE_ZLIB=0", "HAVE_LZMA=0", "HAVE_LZ4=0" ];
|
||||
Reference in new issue
Block a user