fix(mk/prefix.mk): correct ltversion

The script `build-aux/git-version-gen` needs sufficient depth to
correctly determine the version. Also it has to be in tree, otherwise
the version is reported as 'UNKNOWN', breaking some packages.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
This commit is contained in:
Anhad Singh 2024-12-21 01:09:52 +11:00
parent 6450defff0
commit f8d2c7ed4b
No known key found for this signature in database
GPG key ID: 80E0357347554B89

View file

@ -78,7 +78,7 @@ $(PREFIX)/libtool:
--recurse-submodules \
"https://gitlab.redox-os.org/andypython/libtool/" \
--branch "v$(LIBTOOL_VERSION)-redox" \
--depth 1 \
--depth 2 \
"$@.partial"
touch "$@.partial"
@ -89,18 +89,17 @@ ifeq ($(PODMAN_BUILD),1)
$(PODMAN_RUN) $(MAKE) $@
else
mkdir -p "$@.partial"
cd "$(PREFIX)/libtool" && \
cd "$@.partial" && \
cp -rp $(abspath $(PREFIX)/libtool)/. ./ && \
./bootstrap \
--skip-po \
--skip-git \
--force \
--gnulib-srcdir=./gnulib
cd "$@.partial" && \
"$(ROOT)/$</configure" \
--target="$(TARGET)" \
--prefix=$(abspath $(PREFIX)/sysroot) \
&& \
$(MAKE) -j `$(NPROC)`
--gnulib-srcdir=./gnulib && \
"$(ROOT)/$</configure" \
--target="$(TARGET)" \
--prefix=$(abspath $(PREFIX)/sysroot) && \
$(MAKE) -j `$(NPROC)`
touch "$@.partial"
mv "$@.partial" "$@"
endif