mirror of
https://github.com/YellowJacketLinux/lfs-buildscripts.git
synced 2025-02-02 23:07:18 +08:00
more Chapter 8 stuff
This commit is contained in:
parent
808ed37bbd
commit
280f7c8859
@ -132,6 +132,100 @@ else
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash CH08.48-libelf.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed CH08.48-libelf.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "LFS Chapter 8 Libelf Complete"
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash CH08.49-libffi.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed CH08.49-libffi.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "LFS Chapter 8 Libffi Complete"
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash CH08.50-python.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed CH08.50-python.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "LFS Chapter 8 Python Complete"
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash CH08.51-flit-core.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed CH08.51-flit-core.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "LFS Chapter 8 Flit-Core Complete"
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash CH08.52-wheel.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed CH08.52-wheel.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "LFS Chapter 8 Wheel Complete"
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash CH08.53-setuptools.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed CH08.53-setuptools.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "LFS Chapter 8 Setuptools Complete"
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash CH08.54-ninja.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed CH08.54-ninja.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "LFS Chapter 8 Ninja Complete"
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash CH08.55-meson.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed CH08.55-ninja.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "LFS Chapter 8 Meson Complete"
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
/bin/bash CH08.56-coreutils.sh
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "failed CH08.56-coreutils.sh"
|
||||
exit 1
|
||||
else
|
||||
echo "LFS Chapter 8 Coreutils Complete"
|
||||
sleep 3
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
34
CH8Build/CH08.48-libelf.sh
Normal file
34
CH8Build/CH08.48-libelf.sh
Normal file
@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="/sources"
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d elfutils-${elfutils_version} ] && rm -rf elfutils-${elfutils_version}
|
||||
|
||||
tar -jxf ${elfutils_tarball}
|
||||
|
||||
cd elfutils-${elfutils_version}
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--disable-debuginfod \
|
||||
--enable-libdebuginfod=dummy
|
||||
|
||||
make
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building libelf"
|
||||
fi
|
||||
|
||||
echo "running elfutils make check"
|
||||
make check > ${GLSOURCES}/elfutils.check 2>&1
|
||||
|
||||
make -C libelf install
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing libelf"
|
||||
fi
|
||||
install -m644 config/libelf.pc /usr/lib/pkgconfig
|
||||
rm -f /usr/lib/libelf.a
|
||||
|
||||
|
34
CH8Build/CH08.49-libffi.sh
Normal file
34
CH8Build/CH08.49-libffi.sh
Normal file
@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
|
||||
# See https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/x86-Options.html
|
||||
# for gcc-arch
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="/sources"
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d libffi-${libffi_version} ] && rm -rf libffi-${libffi_version}
|
||||
|
||||
tar -zxf ${libffi_tarball}
|
||||
|
||||
cd libffi-${libffi_version}
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--disable-static \
|
||||
--with-gcc-arch=native
|
||||
|
||||
make
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building libffi"
|
||||
fi
|
||||
|
||||
echo "running libffi make check"
|
||||
make check > ${GLSOURCES}/libffi.check 2>&1
|
||||
|
||||
make install
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing libffi"
|
||||
fi
|
||||
|
47
CH8Build/CH08.50-python.sh
Normal file
47
CH8Build/CH08.50-python.sh
Normal file
@ -0,0 +1,47 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="/sources"
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d Python-${python_version} ] && rm -rf Python-${python_version}
|
||||
|
||||
tar -Jxf ${python_tarball}
|
||||
|
||||
cd Python-${python_version}
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--enable-shared \
|
||||
--with-system-expat \
|
||||
--enable-optimizations
|
||||
|
||||
make
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building Python"
|
||||
fi
|
||||
|
||||
echo "running Python make test. Could be time consuming."
|
||||
make test TESTOPTS="--timeout 120" > ${GLSOURCES}/python.check 2>&1
|
||||
|
||||
make install
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing Python"
|
||||
fi
|
||||
|
||||
# this will not be used for RPM packaging
|
||||
|
||||
cat > /etc/pip.conf << EOF
|
||||
[global]
|
||||
root-user-action = ignore
|
||||
disable-pip-version-check = true
|
||||
EOF
|
||||
|
||||
install -dm755 /usr/share/doc/python-${python_version}/html
|
||||
|
||||
tar --no-same-owner \
|
||||
-xvf ../python-${python_version}-docs-html.tar.bz2
|
||||
cp -R --no-preserve=mode python-${python_version}-docs-html/* \
|
||||
/usr/share/doc/python-${python_version}/html
|
||||
|
24
CH8Build/CH08.51-flit-core.sh
Normal file
24
CH8Build/CH08.51-flit-core.sh
Normal file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="/sources"
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d flit_core-${flit_core_version} ] && rm -rf flit_core-${flit_core_version}
|
||||
|
||||
tar -zxf ${flit_core_tarball}
|
||||
|
||||
cd flit_core-${flit_core_version}
|
||||
|
||||
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building flit_core"
|
||||
fi
|
||||
|
||||
pip3 install --no-index --no-user --find-links dist flit_core
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing xz"
|
||||
fi
|
||||
|
24
CH8Build/CH08.52-wheel.sh
Normal file
24
CH8Build/CH08.52-wheel.sh
Normal file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="/sources"
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d wheel-${wheel_version} ] && rm -rf wheel-${wheel_version}
|
||||
|
||||
tar -zxf ${wheel_tarball}
|
||||
|
||||
cd wheel-${wheel_version}
|
||||
|
||||
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building wheel"
|
||||
fi
|
||||
|
||||
pip3 install --no-index --find-links=dist wheel
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing wheel"
|
||||
fi
|
||||
|
24
CH8Build/CH08.53-setuptools.sh
Normal file
24
CH8Build/CH08.53-setuptools.sh
Normal file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="/sources"
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d setuptools-${setuptools_version} ] && rm -rf setuptools-${setuptools_version}
|
||||
|
||||
tar -zxf ${setuptoools_tarball}
|
||||
|
||||
cd setuptools-${setuptools_version}
|
||||
|
||||
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building setuptools"
|
||||
fi
|
||||
|
||||
pip3 install --no-index --find-links dist setuptools
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing setuptools"
|
||||
fi
|
||||
|
29
CH8Build/CH08.54-ninja.sh
Normal file
29
CH8Build/CH08.54-ninja.sh
Normal file
@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="/sources"
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d ninja-${ninja_version} ] && rm -rf ninja-${ninja_version}
|
||||
|
||||
tar -zxf ${ninja_tarball}
|
||||
|
||||
cd ninja-${ninja_version}
|
||||
|
||||
sed -i '/int Guess/a \
|
||||
int j = 0;\
|
||||
char* jobs = getenv( "NINJAJOBS" );\
|
||||
if ( jobs != NULL ) j = atoi( jobs );\
|
||||
if ( j > 0 ) return j;\
|
||||
' src/ninja.cc
|
||||
|
||||
python3 configure.py --bootstrap
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building ninja"
|
||||
fi
|
||||
|
||||
install -m755 ninja /usr/bin/
|
||||
install -Dm644 misc/bash-completion /usr/share/bash-completion/completions/ninja
|
||||
install -Dm644 misc/zsh-completion /usr/share/zsh/site-functions/_ninja
|
26
CH8Build/CH08.55-meson.sh
Normal file
26
CH8Build/CH08.55-meson.sh
Normal file
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="/sources"
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d meson-${meson_version} ] && rm -rf meson-${meson_version}
|
||||
|
||||
tar -zxf ${meson_tarball}
|
||||
|
||||
cd meson-${meson_version}
|
||||
|
||||
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building meson"
|
||||
fi
|
||||
|
||||
pip3 install --no-index --find-links dist meson
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing meson"
|
||||
fi
|
||||
|
||||
install -Dm644 data/shell-completions/bash/meson /usr/share/bash-completion/completions/meson
|
||||
install -Dm644 data/shell-completions/zsh/_meson /usr/share/zsh/site-functions/_meson
|
36
CH8Build/CH08.56-coreutils.sh
Normal file
36
CH8Build/CH08.56-coreutils.sh
Normal file
@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
|
||||
source versions.sh
|
||||
|
||||
GLSOURCES="/sources"
|
||||
|
||||
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
|
||||
|
||||
[ -d coreutils-${coreutils_version} ] && rm -rf coreutils-${coreutils_version}
|
||||
|
||||
tar -Jxf ${coreutils_tarball}
|
||||
|
||||
cd coreutils-${coreutils_version}
|
||||
|
||||
patch -Np1 -i ../${coreutils_patch_file}
|
||||
|
||||
autoreconf -fiv
|
||||
|
||||
FORCE_UNSAFE_CONFIGURE=1 ./configure \
|
||||
--prefix=/usr \
|
||||
--enable-no-install-program=kill,uptime
|
||||
|
||||
make
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed building coreutils"
|
||||
fi
|
||||
|
||||
make install
|
||||
if [ $? -ne 0 ]; then
|
||||
myfail "Failed installing coreutils"
|
||||
fi
|
||||
|
||||
mv /usr/bin/chroot /usr/sbin
|
||||
mv /usr/share/man/man1/chroot.1 /usr/share/man/man8/chroot.8
|
||||
sed -i 's/"1"/"8"/' /usr/share/man/man8/chroot.8
|
||||
|
Loading…
Reference in New Issue
Block a user