From 8556474e6a4b13967a2cb029773008cc39cbea0f Mon Sep 17 00:00:00 2001 From: David Michael Date: Tue, 28 Aug 2018 02:39:59 +0000 Subject: [PATCH] build_torcx_store: Update for newer portage versions Since EAPI=7 was supported, portage can no longer use different ROOT and SYSROOT values. The torcx images were installed into a temporary root directory after being built using the board's development files. To continue using this setup, the torcx image's packages are built as normal binary packages for the board root without being installed, then the binary packages are installed in the temporary torcx root. --- build_torcx_store | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/build_torcx_store b/build_torcx_store index b17a027775..3e1d59a9ec 100755 --- a/build_torcx_store +++ b/build_torcx_store @@ -79,12 +79,25 @@ function torcx_build() ( [ -s "${tmproot}/etc/portage/bashrc" ] && . "${tmproot}/etc/portage/bashrc" + # Build binary packages using dev files in the board root. + emerge-${BOARD} \ + --buildpkg \ + --buildpkgonly \ + --nodeps \ + --oneshot \ + --quiet \ + --root-deps=rdeps \ + "${pkg}" + + # Install the binary packages in the temporary torcx image root. emerge-${BOARD} \ --nodeps \ --oneshot \ + --quiet \ --root="${tmproot}" \ --root-deps=rdeps \ - --quiet \ + --sysroot="${tmproot}" \ + --usepkgonly \ "${pkg}" )