-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow creating interactive build container
- Loading branch information
1 parent
5c18a0f
commit cdb2eb0
Showing
7 changed files
with
70 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#! /bin/bash | ||
|
||
set -euo pipefail | ||
|
||
orig_cwd="$(readlink -f .)" | ||
|
||
this_dir="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")"/ | ||
|
||
bash "$this_dir"/create-build-container.sh -u "$(id -u):$(id -g)" -- bash scripts/build-in-container.sh | ||
|
||
# done! | ||
# you should now have the binary in your current working directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#! /bin/bash | ||
|
||
set -euo pipefail | ||
|
||
wget https://github.com/libfuse/libfuse/releases/download/fuse-3.15.0/fuse-3.15.0.tar.xz | ||
echo "70589cfd5e1cff7ccd6ac91c86c01be340b227285c5e200baa284e401eea2ca0 fuse-3.15.0.tar.xz" | sha256sum -c - | ||
tar xf fuse-3.*.tar.xz | ||
pushd fuse-3*/ | ||
patch -p1 < /tmp/patches/libfuse/mount.c.diff | ||
mkdir build | ||
cd build | ||
meson setup --prefix=/usr .. | ||
meson configure --default-library static | ||
ninja -v install | ||
popd | ||
rm -r fuse-* | ||
|
||
# Minimize binary size | ||
export CFLAGS="-ffunction-sections -fdata-sections -Os" | ||
|
||
wget "https://github.com/vasi/squashfuse/archive/e51978c.tar.gz" | ||
echo "f544029ad30d8fbde4e4540c574b8cdc6d38b94df025a98d8551a9441f07d341 e51978c.tar.gz" | sha256sum -c - | ||
tar xf e51978c.tar.gz | ||
pushd squashfuse-*/ | ||
./autogen.sh | ||
./configure CFLAGS="${CFLAGS} -no-pie" LDFLAGS=-static | ||
make -j"$(nproc)" | ||
make install | ||
/usr/bin/install -c -m 644 ./*.h '/usr/local/include/squashfuse' | ||
popd | ||
rm -r e51978c* squashfuse* |
File renamed without changes.