Revert some changes

This commit is contained in:
Wildan M 2025-05-31 14:17:57 +07:00
parent 167a18c23c
commit cf77f1497f
3 changed files with 11 additions and 9 deletions

View File

@ -31,7 +31,7 @@ else
endif
container_su: FORCE
podman run $(PODMAN_VOLUMES) --interactive --tty $(IMAGE_TAG) bash
podman exec --user=0 --latest --interactive --tty bash
container_clean: FORCE
rm -f build/container.tag

View File

@ -78,11 +78,6 @@ $(PREFIX)/libtool: $(PREFIX)/libtool.tar.gz
echo $(LIBTOOL_VERSION) > $@.partial/.tarball-version
mv "$@.partial" "$@"
$(PREFIX)/libtool.tar.gz:
mkdir -p "$(@D)"
wget -O $@.partial "https://gitlab.redox-os.org/redox-os/libtool/-/archive/v$(LIBTOOL_VERSION)-redox/libtool-v$(LIBTOOL_VERSION)-redox.tar.gz"
mv $@.partial $@
$(PREFIX)/libtool-build: $(PREFIX)/libtool $(CONTAINER_TAG)
ifeq ($(PODMAN_BUILD),1)
$(PODMAN_RUN) make $@
@ -129,7 +124,16 @@ $(PREFIX)/rust-install.tar.gz:
$(PREFIX)/rust-install: $(PREFIX)/rust-install.tar.gz
rm -rf "$@.partial" "$@"
mkdir -p "$@.partial"
tar --extract --file "$<" --directory "$@.partial" --strip-components=1
git clone \
--recurse-submodules \
"https://gitlab.redox-os.org/redox-os/libtool/" \
--branch "v$(LIBTOOL_VERSION)-redox" \
--depth 2 \
"$@.partial"
# rootless podman problem
chmod -R u+w $@.partial
touch "$@.partial"
mv "$@.partial" "$@"

View File

@ -4,8 +4,6 @@
# in Podman after the image has been built
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable
echo "source $HOME/.cargo/env" >> $HOME/.bashrc
source $HOME/.cargo/env
cargo +stable install --force --version 0.1.1 cargo-config
cargo +stable install --force --version 1.16.0 just