through man-db

This commit is contained in:
YellowJacketLinux 2024-10-06 18:35:03 -07:00
parent 54b327f1ba
commit cd27507762
6 changed files with 238 additions and 0 deletions

View 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 MarkupSafe-${markupsafe_version} ] && rm -rf MarkupSafe-${markupsafe_version}
tar -zxf ${markupsafe_tarball}
cd MarkupSafe-${markupsafe_version}
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
if [ $? -ne 0 ]; then
myfail "Failed building MarkupSafe"
fi
pip3 install --no-index --no-user --find-links dist Markupsafe
if [ $? -ne 0 ]; then
myfail "Failed installing MarkupSafe"
fi

View 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 jinja2-${jinja2_version} ] && rm -rf jinja2-${jinja2_version}
tar -zxf ${jinja2_tarball}
cd jinja2-${jinja2_version}
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
if [ $? -ne 0 ]; then
myfail "Failed building jinja2"
fi
pip3 install --no-index --no-user --find-links dist Jinja2
if [ $? -ne 0 ]; then
myfail "Failed installing jinja2"
fi

View File

@ -0,0 +1,61 @@
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d systemd-${systemd_version} ] && rm -rf systemd-${systemd_version}
tar -zxf ${systemd_tarball}
cd systemd-${systemd_version}
sed -i -e 's/GROUP="render"/GROUP="video"/' \
-e 's/GROUP="sgx", //' rules.d/50-udev-default.rules.in
mkdir build && cd build
meson setup .. \
--prefix=/usr \
--buildtype=release \
-D default-dnssec=no \
-D firstboot=false \
-D install-tests=false \
-D ldconfig=false \
-D sysusers=false \
-D rpmmacrosdir=no \
-D homed=disabled \
-D userdb=false \
-D man=disabled \
-D mode=release \
-D pamconfdir=no \
-D dev-kvm-mode=0660 \
-D nobody-group=nogroup \
-D sysupdate=disabled \
-D ukify=disabled \
-D docdir=/usr/share/doc/systemd-${systemd_version}
ninja
if [ $? -ne 0 ]; then
myfail "Failed building systemd"
fi
echo 'NAME="Linux From Scratch"' > /etc/os-release
echo "running systemd ninja test"
ninja test > ${GLSOURCES}/systemd.check 2>&1
ninja install
if [ $? -ne 0 ]; then
myfail "Failed installing systemd"
fi
tar -xf ../../${systemd_man_tarball} \
--no-same-owner --strip-components=1 \
-C /usr/share/man
systemd-machine-id-setup
systemctl preset-all

40
CH8Build/CH08.75-dbus.sh Normal file
View File

@ -0,0 +1,40 @@
#!/bin/bash
source versions.sh
GLSOURCES="/sources"
pushd $GLSOURCES > /dev/null 2>&1 || myfail "Failed to move to ${GLSOURCES}"
[ -d dbus-${dbus_version} ] && rm -rf dbus-${dbus_version}
tar -Jxf ${dbus_tarball}
cd dbus-${dbus_version}
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--runstatedir=/run \
--enable-user-session \
--disable-static \
--disable-doxygen-docs \
--disable-xml-docs \
--docdir=/usr/share/doc/dbus-${dbus_version} \
--with-system-socket=/run/dbus/system_bus_socket
make
if [ $? -ne 0 ]; then
myfail "Failed building dbus"
fi
echo "running dbus make check"
make check > ${GLSOURCES}/dbus.check 2>&1
make install
if [ $? -ne 0 ]; then
myfail "Failed installing dbus"
fi
ls -sf /etc/machine-id /var/lib/dbus

36
CH8Build/CH08.76-mandb.sh Normal file
View 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 man-db-${mandb_version} ] && rm -rf man-db-${mandb_version}
tar -Jxf ${mandb_tarball}
cd man-db-${mandb_version}
./configure --prefix=/usr \
--docdir=/usr/share/doc/man-db-${mandb_version} \
--sysconfdir=/etc \
--disable-setuid \
--enable-cache-owner=bin \
--with-browser=/usr/bin/lynx \
--with-vgrind=/usr/bin/vgrind \
--with-grap=/usr/bin/grap
make
if [ $? -ne 0 ]; then
myfail "Failed building man-db"
fi
echo "running man-db make check"
make check > ${GLSOURCES}/man-db.check 2>&1
make install
if [ $? -ne 0 ]; then
myfail "Failed installing man-db"
fi

View File

@ -388,6 +388,59 @@ else
sleep 3
fi
/bin/bash CH08.72-markupsafe.sh
if [ $? -ne 0 ]; then
echo "failed CH08.72-markupsafe.sh"
exit 1
else
echo "LFS Chapter 8 MarkupSafe Complete"
sleep 3
fi
/bin/bash CH08.73-jinja2.sh
if [ $? -ne 0 ]; then
echo "failed CH08.73-jinja2.sh"
exit 1
else
echo "LFS Chapter 8 Jinja2 Complete"
sleep 3
fi
/bin/bash CH08.74-systemd.sh
if [ $? -ne 0 ]; then
echo "failed CH08.74-systemd.sh"
exit 1
else
echo "LFS Chapter 8 SystemD Complete"
sleep 3
fi
/bin/bash CH08.75-dbus.sh
if [ $? -ne 0 ]; then
echo "failed CH08.75-dbus.sh"
exit 1
else
echo "LFS Chapter 8 D-Bus Complete"
sleep 3
fi
/bin/bash CH08.76-mandb.sh
if [ $? -ne 0 ]; then
echo "failed CH08.76-mandb.sh"
exit 1
else
echo "LFS Chapter 8 Man-DB Complete"
sleep 3
fi