Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap Guix on top of live-bootstrap #469

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion steps/curl-8.5.0/pass2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ src_prepare() {
}

src_configure() {
LDFLAGS="-static" ./configure \
./configure \
--prefix="${PREFIX}" \
--libdir="${LIBDIR}" \
--build=i386-unknown-linux-musl \
Expand Down
2 changes: 0 additions & 2 deletions steps/gcc-10.4.0/pass1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,13 @@ src_configure() {
# For this GCC, we only build one stage, as extra is superfluous,
# since we build GCC 12 straight after.
CFLAGS="-std=gnu11" \
LDFLAGS="-static" \
../configure \
--prefix="${PREFIX}" \
--libdir="${LIBDIR}" \
--build=i386-unknown-linux-musl \
--target=i386-unknown-linux-musl \
--host=i386-unknown-linux-musl \
--disable-bootstrap \
--enable-static \
--program-transform-name= \
--enable-languages=c,c++ \
--with-system-zlib \
Expand Down
4 changes: 1 addition & 3 deletions steps/gcc-13.1.0/pass1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,13 @@ src_configure() {
mkdir build
cd build

LDFLAGS="-static" \
../configure \
--prefix="${PREFIX}" \
--libdir="${LIBDIR}" \
--build=i386-unknown-linux-musl \
--target=i386-unknown-linux-musl \
--host=i386-unknown-linux-musl \
--enable-bootstrap \
--enable-static \
--disable-plugins \
--disable-libssp \
--disable-libsanitizer \
Expand All @@ -95,5 +93,5 @@ src_configure() {
}

src_compile() {
make "${MAKEJOBS}" BOOT_LDFLAGS="-static"
make "${MAKEJOBS}"
}
1 change: 1 addition & 0 deletions steps/gcc-4.7.4/pass1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ src_configure() {
--target=i386-unknown-linux-musl \
--host=i386-unknown-linux-musl \
--disable-shared \
--disable-plugin \
--program-transform-name= \
--enable-languages=c,c++ \
--disable-sjlj-exceptions \
Expand Down
2 changes: 1 addition & 1 deletion steps/guile-3.0.9/pass1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ src_configure() {
--prefix="${PREFIX}" \
--libdir="${LIBDIR}" \
--build=i386-unknown-linux-musl \
--disable-shared \
--enable-shared \
--disable-jit
popd
done
Expand Down
2 changes: 2 additions & 0 deletions steps/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ build: bash-5.2.15
improve: open_console ( CONSOLES == True )
build: xz-5.4.1
build: file-5.44
# TODO this shouldn't be needed, but we somehow have a regular file as /dev/null without this, which breaks libtool configure
improve: populate_device_nodes
build: libtool-2.4.7
build: tar-1.34
build: coreutils-9.4
Expand Down
2 changes: 1 addition & 1 deletion steps/musl-1.2.4/pass2.sh
9 changes: 6 additions & 3 deletions steps/musl-1.2.4/pass3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ src_configure() {
--host=i386-unknown-linux-musl \
--prefix="${PREFIX}" \
--libdir="${LIBDIR}" \
--includedir="${PREFIX}/include/"
--includedir="${PREFIX}/include/" \
--enable-static \
--enable-shared
}

src_compile() {
Expand All @@ -23,12 +25,13 @@ src_install() {
rm "${DESTDIR}/lib/ld-musl-i386.so.1"
rmdir "${DESTDIR}/lib"
mkdir -p "${DESTDIR}${PREFIX}/lib"
ln -sr "${DESTDIR}${LIBDIR}/libc.so" "${DESTDIR}${PREFIX}/lib/ld-musl-i386.so.1"
ln -s "i386-unknown-linux-musl/libc.so" "${DESTDIR}${PREFIX}/lib/ld-musl-i386.so.1"
ln -s "i386-unknown-linux-musl/libc.so" "${DESTDIR}${PREFIX}/lib/ld-linux.so.2"

# Make startup objects available in /usr/lib
# Expected by GCC 10+
for i in crt1.o crti.o crtn.o Scrt1.o rcrt1.o; do
ln -sr "${DESTDIR}${LIBDIR}/${i}" "${DESTDIR}${PREFIX}/lib/${i}"
ln -s "i386-unknown-linux-musl/${i}" "${DESTDIR}${PREFIX}/lib/${i}"
done

# Add symlink for ldd
Expand Down
2 changes: 1 addition & 1 deletion steps/openssl-3.0.13/pass1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ src_prepare() {
src_configure() {
./config --prefix="${PREFIX}" \
--libdir="${LIBDIR}" \
no-shared linux-generic32
linux-generic32
}

src_compile() {
Expand Down
4 changes: 1 addition & 3 deletions steps/python-3.11.1/pass1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,12 @@ src_configure() {
MACHDEP=linux ac_sys_system=Linux \
CPPFLAGS="-U__DATE__ -U__TIME__" \
PKG_CONFIG_PATH="${LIBDIR}/pkgconfig/" \
LDFLAGS="-static" \
./configure \
--build=i386-unknown-linux-musl \
--host=i386-unknown-linux-musl \
--prefix="${PREFIX}" \
--libdir="${LIBDIR}" \
--with-system-ffi \
--disable-shared
--with-system-ffi
}

src_compile() {
Expand Down
2 changes: 1 addition & 1 deletion steps/zlib-1.2.13/pass1.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
# SPDX-License-Identifier: GPL-3.0-or-later

src_configure() {
./configure --prefix="${PREFIX}" --libdir="${LIBDIR}" --static
./configure --prefix="${PREFIX}" --libdir="${LIBDIR}"
}
Loading