From 0ff37d65cad6f1fc619d46398afce87fdbea6058 Mon Sep 17 00:00:00 2001 From: Luca Ceresoli Date: Sat, 20 Jan 2024 22:27:28 +0100 Subject: [PATCH] yocto: labs: workaround for missing space before backslash in bashinput bashinput incrrectly renders without a space before the backslash, which results in: | sudo apt install bc build-essential chrpath cpio diffstat gawk git python3 texinfo wget gdisk\ | libssl-dev lz4 the missing space between "gdisk" and "" implies that copy-pasting these lines in a terminal results in: E: Unable to locate package gdisklibssl-dev This appears as a bug in the bashinput environment word wrapping. Use the verbatim environment until a suitable fix for bashinput is implemented. Report-at: https://github.com/bootlin/training-materials/issues/221 Signed-off-by: Luca Ceresoli --- labs/yocto-first-build-stm32/yocto-first-build-stm32.tex | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/labs/yocto-first-build-stm32/yocto-first-build-stm32.tex b/labs/yocto-first-build-stm32/yocto-first-build-stm32.tex index f35b79b52c..6993b3c840 100644 --- a/labs/yocto-first-build-stm32/yocto-first-build-stm32.tex +++ b/labs/yocto-first-build-stm32/yocto-first-build-stm32.tex @@ -17,9 +17,10 @@ \section{Setup} Go to the \code{$HOME/__SESSION_NAME__-labs/} directory. Install the required packages: -\begin{bashinput} -sudo apt install bc build-essential chrpath cpio diffstat gawk git python3 texinfo wget gdisk libssl-dev lz4 -\end{bashinput} +\begin{verbatim} +sudo apt install bc build-essential chrpath cpio diffstat gawk git python3 texinfo wget \ + gdisk libssl-dev lz4 +\end{verbatim} \section{Download Yocto}