added readme

phanes 2024-02-11 19:55:17 -05:00
parent 9d9010d770
commit dc14cb07ca
6 changed files with 19 additions and 6 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
stage
logs
*.tgz
.nfs*

11
README.md Normal file
View File

@ -0,0 +1,11 @@
# Dyad
An automation of the creation of a Linux sysroot closely aligned to the LFS documentation.
## Pre-Work
Dyad is developed on a a vanilla Fedora 39 system. In order to meet prerequisites to start the build, you will need to install the following packages:
```
dnf -y install make vim cmake g++ dialog
```

View File

@ -155,7 +155,7 @@ mode_build_pass1() {
# patches
logprint "Applying patches..."
patch -Np1 < "${PATCHES_DIR}/glibc-2.37-fhs-1.patch"
patch -Np1 < "${PATCHES_DIR}/glibc-${VERSION}-fhs-1.patch"
assert_zero $?
mkdir -p build

View File

@ -139,7 +139,8 @@ mode_build_temp() {
--host=${T_TRIPLET} \
--build=$(build-aux/config.guess) \
--enable-install-program=hostname \
--enable-no-install-program=kill,uptime
--enable-no-install-program=kill,uptime \
gl_cv_macro_MB_CUR_MAX_good=y
assert_zero $?
logprint "Compiling..."

View File

@ -133,7 +133,7 @@ mode_build() {
assert_zero $?
logprint "Pre-install patching..."
patch -Np1 -i ${PATCHES_DIR}/coreutils-9.1-i18n-1.patch
patch -Np1 -i ${PATCHES_DIR}/coreutils-${VERSION}-i18n-1.patch
assert_zero $?
logprint "Preconfiguring ${APPNAME}..."

View File

@ -137,8 +137,8 @@ mode_build() {
assert_zero $?
# TODO make this a patch
sed '/width -=/s/workend - string/number_length/' -i stdio-common/vfprintf-process-arg.c
assert_zero $?
#sed '/width -=/s/workend - string/number_length/' -i stdio-common/vfprintf-process-arg.c
#assert_zero $?
logprint "Entering temp build dir..."
mkdir -p build
@ -153,7 +153,7 @@ mode_build() {
../configure \
--prefix=/usr \
--disable-werror \
--enable-kernel=3.2 \
--enable-kernel=4.14 \
--enable-stack-protector=strong \
--with-headers=/usr/include \
libc_cv_slibdir=/usr/lib