summaryrefslogtreecommitdiff
path: root/include/lib.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-12-27 15:44:51 +0000
committerLeah Rowe <leah@libreboot.org>2024-12-30 00:21:02 +0000
commit01fc65a0a9d5310732b95ce3cd2c96ad01479c25 (patch)
tree3599a16960cd9d58f01d08d7689994a4f04c0a7f /include/lib.sh
parent424b0c7103b71c50396219352cc5f13a9078a461 (diff)
Mitigate Debian Trixie/Sid GCC/GNAT version mismatch
When I tested Debian Trixie, and Debian Sid, I saw that GCC in PATH pointed to gcc-14, but gnat in path pointed to GNAT-13, even if you manually install gnat-14. GNAT 14 was marked experimental, but GCC 14 was marked for use, in the apt repositories. So this patch doesn't address the mismatch when doing e.g. apt-get install gcc gnat I will address the actual package dependency in a follow-up patch, on the Debian dependencies config. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/lib.sh')
-rw-r--r--include/lib.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/lib.sh b/include/lib.sh
index 92651c84..f204309d 100644
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -95,6 +95,9 @@ if [ -z "${TMPDIR+x}" ]; then
export TMPDIR="/tmp"
export TMPDIR="$(mktemp -d -t xbmk_XXXXXXXX)"
touch lock || $err "cannot create 'lock' file"
+ rm -Rf xbmkpath || $err "cannot create xbmkpath"
+ mkdir -p xbmkpath || $err "cannot create xbmkpath"
+ export PATH="$PWD/xbmkpath:$PATH" || $err "Can't create xbmkpath"
xbmk_parent="y"
fi