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>
39 lines
1.4 KiB
Python
39 lines
1.4 KiB
Python
# 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
|
|
}
|