Fixing git command leading to an error and adjust commands where sudo

was not present.

git clone --branch releng/15.0 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
fatal: Too many arguments.

to

sudo git clone --branch releng/15.0 --depth 1 https://git.FreeBSD.org/src.git /usr/src
This commit is contained in:
LeBaronDeCharlus 2026-07-09 14:11:53 +02:00
parent 5b820df308
commit af44b276c2
10 changed files with 11 additions and 11 deletions

View file

@ -254,7 +254,7 @@ As we move forward, we'll look at examples from the actual FreeBSD kernel source
To store a complete local copy of the FreeBSD source code, you will need approximately 3.6 GB of free disk space. You can install it using Git by running the following command:
# git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
# sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
This will give you access to all source code, which we'll reference frequently throughout this book.

View file

@ -13124,7 +13124,7 @@ Before starting, ensure you have:
```bash
# If /usr/src is missing, install it:
% sudo pkg install git
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
```
3. **Build tools installed**:

View file

@ -790,7 +790,7 @@ A partir de este momento, cada vez que este libro mencione un archivo como `/usr
Clónalo con Git:
```console
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
```
Esto tardará varios minutos y descargará varios gigabytes. Cuando termine, tendrás disponible el árbol de código fuente completo del kernel.

View file

@ -254,7 +254,7 @@ A medida que avancemos, veremos ejemplos del código fuente real del kernel de F
Para almacenar una copia local completa del código fuente de FreeBSD, necesitarás aproximadamente 3,6 GB de espacio libre en disco. Puedes instalarlo con Git ejecutando el siguiente comando:
# git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
# sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
Esto te dará acceso a todo el código fuente, al que haremos referencia con frecuencia a lo largo de este libro.

View file

@ -13129,7 +13129,7 @@ Antes de comenzar, asegúrate de tener:
```bash
# If /usr/src is missing, install it:
% sudo pkg install git
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
```
3. **Herramientas de build instaladas**:

View file

@ -792,7 +792,7 @@ A partir deste ponto, sempre que este livro citar um arquivo como `/usr/src/sys/
Clone com Git:
```console
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
```
Isso levará alguns minutos e fará o download de vários gigabytes. Quando terminar, você terá a árvore completa de código-fonte do kernel disponível.

View file

@ -255,7 +255,7 @@ Por enquanto, estamos compilando apenas um arquivo de código-fonte de cada vez.
Para armazenar uma cópia local completa do código-fonte do FreeBSD, você precisará de aproximadamente 3,6 GB de espaço em disco livre. Você pode instalá-lo usando Git executando o seguinte comando:
# git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
# sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
Isso dará a você acesso a todo o código-fonte, que vamos referenciar com frequência ao longo deste livro.

View file

@ -13120,7 +13120,7 @@ Antes de começar, certifique-se de que você possui:
```bash
# If /usr/src is missing, install it:
% sudo pkg install git
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
```
3. **Ferramentas de build instaladas**:

View file

@ -256,7 +256,7 @@ Makefile是一个名为Makefile的纯文本文件,定义如何构建你的程
要存储完整的FreeBSD源代码本地副本,你需要大约3.6 GB的可用磁盘空间。你可以使用Git通过运行以下命令安装它:
# git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
# sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
这将给你访问所有源代码的权限,我们将在本书中频繁引用这些源代码。

View file

@ -12953,7 +12953,7 @@ options MALLOC_DEBUG_MAXZONES=8
```bash
# If /usr/src is missing, install it:
% sudo pkg install git
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git src /usr/src
% sudo git clone --branch releng/14.3 --depth 1 https://git.FreeBSD.org/src.git /usr/src
```
3. **已安装构建工具**: