Skip to content
Merged
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
3 changes: 2 additions & 1 deletion alfs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,11 @@ The following options must be set:

- `BOOK Settings → [*] Add custom tools support (NEW)`
- `BOOK Settings → Init system/[*] Systemd (NEW)`
- set `BOOK Settings → Location of local copy (mandatory)` to absolute path of `mega/alfs/lfs-git` directory.
- `BOOK Settings → XML Source of Book/(X) Local Copy`
- `General Settings → [*] Run the makefile`
- set `BOOK Settings Location of local copy (mandatory)` to absolute path of `mega/alfs/lfs-git` directory.
- set `General Settings → Build directory` to your build directory, the value of `LFS_DIR` in the previous step.
- If you want to check the source code of the packages `General Settings → [*] Retrieve source files`
- `Build Settings → Parallelism settings → [*] Use all cores`
- If you building failuer first time, in the second should select `[*] Rebuild the Makefile (see help)`.

Expand Down
1 change: 1 addition & 0 deletions alfs/custom/config/1001-kernel-6.10.5
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i ohci_hcd ; true
install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i uhci_hcd ; true

# End /etc/modprobe.d/usb.conf
EOF

xEOFx
) > tmp
Expand Down
10 changes: 5 additions & 5 deletions alfs/custom/config/1008-make-ca
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Any comments you wish to add
#
# If an error occurs when executing make-ca -g, the certificate version may be updated, and make-ca needs to be updated to the latest version.

PKG="make-ca"
PKG_VERSION="1.14"
PKG_FILE="make-ca-1.14.tar.gz"
URL="https://github.com/lfs-book/make-ca/archive/v1.14/make-ca-1.14.tar.gz"
MD5="e99d2985ead0037caedb765fd66b33f0"
PKG_VERSION="1.16"
PKG_FILE="make-ca-1.16.tar.gz"
URL="https://github.com/lfs-book/make-ca/archive/v1.16/make-ca-1.16.tar.gz"
MD5="bf1497691f72ec79d5e0456e3ac3eadc"
for i in PATCH{1..10}; do
unset $i
done
Expand Down
31 changes: 31 additions & 0 deletions alfs/custom/config/1022-libunwind
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Any comments you wish to add
# lldb depends on libunwind

PKG="libunwind"
PKG_VERSION="1.6.2"
PKG_FILE="libunwind-1.6.2.tar.gz"
URL="https://download.savannah.nongnu.org/releases/libunwind/libunwind-1.6.2.tar.gz"
MD5="f625b6a98ac1976116c71708a73dc44a"
for i in PATCH{1..10}; do
unset $i
done
# PATCH1=""
# Up to 10 patches can be added. The PATCH variable must be numbered
# even if there is only one. If the patch md5 checksum is known, add
# it after the name as in (quotes are required):
# PATCHx="patch-url md5"

( cat << "xEOFx"
# Your script here. Be aware that it is passed
# verbatim, and that none of the above variables
# will be defined when running the script. For example,
# If you want to use ${PKG_VERSION}, you have to
# redefine it here.

./configure --prefix=/usr --disable-static &&
make

make install

xEOFx
) > tmp
File renamed without changes.
27 changes: 27 additions & 0 deletions alfs/custom/config/1025-libuv
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Any comments you wish to add
#

PKG="libuv"
PKG_VERSION="1.48.0"
PKG_FILE="libuv-v1.48.0.tar.gz"
URL="https://dist.libuv.org/dist/v1.48.0/libuv-v1.48.0.tar.gz"
MD5="a808517c32ebd07c561bf21a4e30aeab"
for i in PATCH{1..10}; do
unset $i
done
# PATCH1=""
# Up to 10 patches can be added. The PATCH variable must be numbered
# even if there is only one. If the patch md5 checksum is known, add
# it after the name as in (quotes are required):
# PATCHx="patch-url md5"

( cat << "xEOFx"

sh autogen.sh &&
./configure --prefix=/usr --disable-static &&
make

make install

xEOFx
) > tmp
26 changes: 26 additions & 0 deletions alfs/custom/config/1026-libarchive
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Any comments you wish to add
#

PKG="libarchive"
PKG_VERSION="3.7.2"
PKG_FILE="libarchive-3.7.2.tar.xz"
URL="https://github.com/libarchive/libarchive/releases/download/v3.7.2/libarchive-3.7.2.tar.xz"
MD5="4f4ef6a17c7b0b484aa2c95aa6deefac"
for i in PATCH{1..10}; do
unset $i
done
# PATCH1=""
# Up to 10 patches can be added. The PATCH variable must be numbered
# even if there is only one. If the patch md5 checksum is known, add
# it after the name as in (quotes are required):
# PATCHx="patch-url md5"

( cat << "xEOFx"

./configure --prefix=/usr --disable-static &&
make

make install

xEOFx
) > tmp
28 changes: 28 additions & 0 deletions alfs/custom/config/1027-nghttp2
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Any comments you wish to add
#

PKG="nghttp2"
PKG_VERSION="1.59.0"
PKG_FILE="nghttp2-1.59.0.tar.xz"
URL="https://github.com/nghttp2/nghttp2/releases/download/v1.59.0/nghttp2-1.59.0.tar.xz"
MD5="97c1931900eee69ac6dd1e1c09f22e30"
for i in PATCH{1..10}; do
unset $i
done
# PATCH1=""
# Up to 10 patches can be added. The PATCH variable must be numbered
# even if there is only one. If the patch md5 checksum is known, add
# it after the name as in (quotes are required):
# PATCHx="patch-url md5"

( cat << "xEOFx"

./configure --prefix=/usr \
--disable-static \
--enable-lib-only \
--docdir=/usr/share/doc/nghttp2-1.59.0 &&
make
make install

xEOFx
) > tmp
34 changes: 34 additions & 0 deletions alfs/custom/config/1028-cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Any comments you wish to add
#

PKG="cmake"
PKG_VERSION="17.0.6"
PKG_FILE="cmake-3.28.3.tar.gz"
URL="https://cmake.org/files/v3.28/cmake-3.28.3.tar.gz"
MD5="6b16c82b81e1fd80b63bee9696846b21"
for i in PATCH{1..10}; do
unset $i
done
# PATCH1=""
# Up to 10 patches can be added. The PATCH variable must be numbered
# even if there is only one. If the patch md5 checksum is known, add
# it after the name as in (quotes are required):
# PATCHx="patch-url md5"

( cat << "xEOFx"

sed -i '/"lib64"/s/64//' Modules/GNUInstallDirs.cmake &&

./bootstrap --prefix=/usr \
--system-libs \
--mandir=/share/man \
--no-system-jsoncpp \
--no-system-cppdap \
--no-system-librhash \
--docdir=/share/doc/cmake-3.28.3 &&
make

make install

xEOFx
) > tmp
36 changes: 36 additions & 0 deletions alfs/custom/config/1029-llvm
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Any comments you wish to add
# llvm with lld and lldb, etc..

PKG="llvm"
PKG_VERSION="20.1.0"
PKG_FILE="llvmorg-20.1.0.tar.gz"
URL="https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-20.1.0.tar.gz"
MD5="6cea649f903b5c93ac777b8b59ac7f88"
for i in PATCH{1..10}; do
unset $i
done
# PATCH1=""
# Up to 10 patches can be added. The PATCH variable must be numbered
# even if there is only one. If the patch md5 checksum is known, add
# it after the name as in (quotes are required):
# PATCHx="patch-url md5"

( cat <<"xEOFx"

mkdir -v build &&
cd build &&

cmake ../llvm \
-G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLLVM_ENABLE_PROJECTS="clang;lld;lldb" \
-DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind;compiler-rt" \
-DLLVM_LINK_LLVM_DYLIB=ON

ninja

ninja install

xEOFx
) >tmp
36 changes: 36 additions & 0 deletions alfs/custom/config/1030-fuse3
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Any comments you wish to add
#

PKG="fuse3"
PKG_VERSION="3.16.2"
PKG_FILE="fuse-3.16.2.tar.gz"
URL="https://github.com/libfuse/libfuse/releases/download/fuse-3.16.2/fuse-3.16.2.tar.gz"
MD5="b00bf08b27ead4a9411578777e94a1cc"
for i in PATCH{1..10}; do
unset $i
done
# PATCH1=""
# Up to 10 patches can be added. The PATCH variable must be numbered
# even if there is only one. If the patch md5 checksum is known, add
# it after the name as in (quotes are required):
# PATCHx="patch-url md5"

( cat << "xEOFx"

sed -i '/^udev/,$ s/^/#/' util/meson.build &&

mkdir build &&
cd build &&

meson setup --prefix=/usr --buildtype=release .. &&
ninja
ninja install &&
chmod u+s /usr/bin/fusermount3 &&

cd .. &&
cp -Rv doc/html -T /usr/share/doc/fuse-3.16.2 &&
install -v -m644 doc/{README.NFS,kernel.txt} \
/usr/share/doc/fuse-3.16.2

xEOFx
) > tmp
5 changes: 2 additions & 3 deletions alfs/custom/config/1099-custom-config-systemd
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ done
( cat << "xEOFx"

make install-sshd



make install-dhcpcd
systemctl enable dhcpcd@enp1s0
xEOFx
) > tmp
4 changes: 2 additions & 2 deletions alfs/custom/config/1101-custom-config-fstab
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ done
( cat << "xEOFx"

# use blkid to get the uuid
uuid1=41686c57-192d-4ed8-87a2-7399482c0261
uuid2=60F7-8A4C
uuid1=5efa0d7d-02fc-402b-9781-359e12acb34d
uuid2=55A7-4F9E

# fstab
#cat > /etc/fstab << "EOF"
Expand Down
15 changes: 8 additions & 7 deletions alfs/custom/config/1102-custom-config-grub
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@ done

( cat << "xEOFx"



/usr/sbin/grub-install /dev/nbd1
/usr/sbin/grub-install --target=i386-pc /dev/nbd1

mkdir -p /boot/grub

BOOTUUID=60F7-8A4C
ROOTPARTUUID=dfd4b6d0-02
BOOTUUID=55A7-4F9E
ROOTPARTUUID=939e0e11-02

echo "# Begin /boot/grub/grub.cfg
set default=0
Expand All @@ -33,11 +31,14 @@ set timeout=5
insmod ext2

# root = /dev/nbd1p1, used to boot kernel
search --set=root --fs-uuid $BOOTUUID
# search --set=root --fs-uuid $BOOTUUID
set root=(hd0,1)

menuentry \"GNU/Linux, Linux 6.10.5-lfs-12.2\" {
# here, root is /dev/nbd1p2, used to boot the system
linux /vmlinux-6.10.5-lfs-12.2 root=$ROOTPARTUUID ro
# linux /vmlinux-6.10.5-lfs-12.2 root=$ROOTPARTUUID ro
# for unkown reason, the kernel didn't recognize the root partition, use dev/vdb2 instead
linux /vmlinux-6.10.5-lfs-12.2 root=/dev/vdb2 ro
# initrd /initrd.img-6.10.5
}
">/boot/grub/grub.cfg
Expand Down
3 changes: 1 addition & 2 deletions alfs/custom/config/2000-custom-install-rust
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ done
# PATCHx="patch-url md5"

( cat << "xEOFx"

echo "Install for user $(whoami)"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path || { echo "Curl failed. Exiting."; exit 1; }
echo 'export PATH="$PATH:$HOME/.cargo/bin"' >> /etc/profile
source /etc/profile
xEOFx
Expand Down
11 changes: 7 additions & 4 deletions alfs/custom/config/2002-custom-install-buck2
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@ done
( cat << "xEOFx"

echo "pwd: $(pwd)"
curl -LJO https://github.com/facebook/buck2/releases/download/latest/rust-project-x86_64-unknown-linux-gnu.zst
unzstd rust-project-x86_64-unknown-linux-gnu.zst
mv rust-project-x86_64-unknown-linux-gnu /usr/local/bin/buck2
curl -LJO https://github.com/facebook/buck2/releases/download/latest/buck2-x86_64-unknown-linux-gnu.zst
unzstd buck2-x86_64-unknown-linux-gnu.zst
mv buck2-x86_64-unknown-linux-gnu /usr/local/bin/buck2
chmod +x /usr/local/bin/buck2
rm rust-project-x86_64-unknown-linux-gnu.zst
rm buck2-x86_64-unknown-linux-gnu.zst
echo "buck2 installed"

# ensure buck2 is in PATH
echo 'export PATH="$PATH:/usr/local/bin"' >> /etc/profile

# install reindeer, a buck2 optional dependency
cargo install --locked --git https://github.com/facebookincubator/reindeer reindeer
xEOFx
) > tmp
23 changes: 23 additions & 0 deletions alfs/custom/config/2003-custom-replace-binutils
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# install


PKG=""
PKG_VERSION=""
PKG_FILE=""
URL=""
MD5=""
for i in PATCH{1..10}; do
unset $i
done
# PATCH1=""
# Up to 10 patches can be added. The PATCH variable must be numbered
# even if there is only one. If the patch md5 checksum is known, add
# it after the name as in (quotes are required):
# PATCHx="patch-url md5"

( cat << "xEOFx"

echo -e "\n" | passwd --stdin root

xEOFx
) > tmp
Loading