Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/content/docs/Packaging/Macros/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Macros
lastUpdated: 2024-09-10T00:17:21Z
lastUpdated: 2026-11-05T14:19:00Z
description: Tools to simplify life - macros
sidebar:
order: 4
Expand All @@ -12,4 +12,6 @@ import DirectoryList from '@components/DirectoryList.astro';

Every `stone.yaml` build has access to a number of **action** and **definition** macros. With these, we can ensure a greater degree of integration and consistency in our packaging, and vastly simplify common tasks to reduce maintainer burden.

`boulder recipe macros` prints the macros available in your build environment. Pass a name to read one macro, for example `boulder recipe macros configure`.

<DirectoryList/>
7 changes: 5 additions & 2 deletions src/content/docs/Packaging/Recipes/overview.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 'Overview'
lastUpdated: 2026-10-02T15:00:00Z
lastUpdated: 2026-11-05T15:07:00Z
description: Introduction to the `stone.yaml` format
sidebar:
order: 4
Expand All @@ -15,8 +15,11 @@ Simply put, a recipe is some metadata to describe a software package, and the as
How might a `stone.yml` look like for a very trivial package, such as the [Nano editor](https://nano-editor.org)?

```yaml
# SPDX-FileCopyrightText: 2025 aerynOS Developers
# SPDX-License-Identifier: MPL-2.0

name : nano
version : 8.7
version : "8.7"
release : 38
homepage : https://www.nano-editor.org/
upstreams :
Expand Down
62 changes: 48 additions & 14 deletions src/content/docs/Packaging/Workflow/creating-a-new-recipe.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: 'Creating a new package recipe'
lastUpdated: 2026-10-02T15:00:00Z
lastUpdated: 2026-11-05T15:08:00Z
description: "Creating a new package recipe from scratch"
sidebar:
order: 6
Expand Down Expand Up @@ -78,13 +78,11 @@ This command does the following:
Using Nano as an example, the generated `stone.yaml` file will look like this:

```yaml
#
# SPDX-FileCopyrightText: © 2025- aerynOS Developers
#
# SPDX-FileCopyrightText: 2025 aerynOS Developers
# SPDX-License-Identifier: MPL-2.0
#

name : nano
version : 8.7
version : "8.7"
release : 1
homepage : https://www.nano-editor.org/dist/v8
upstreams :
Expand Down Expand Up @@ -116,7 +114,7 @@ The second is a `monitoring.yaml` file which we will address later in this guide

### Step 2 - Add core metadata fields

The `boulder recipe new` command has already made an attempt to populate the `name`, `version`, `release` and `homepage`. Please review these and correct them if necessary.
The `boulder recipe new` command has already made an attempt to populate the `name`, `version`, `release` and `homepage`. Please review these and correct them if necessary. Always quote `version`. Tooling reads it as text naming the upstream version. The number you bump for a new build is `release`.

In this case, the following changes need to be made:

Expand All @@ -126,7 +124,7 @@ In this case, the following changes need to be made:

```yaml
name : nano
version : 8.7
version : "8.7"
release : 1
homepage : https://www.nano-editor.org/
upstreams :
Expand All @@ -145,15 +143,49 @@ description : |
Keep `release` at `1` when you introduce a brand-new package. We subsequently incrementally increase it by 1 each time we submit an update to our recipe repository.
:::

### Using a git tag or commit

The Nano example above uses a release archive. This is the preferred way to package software. When upstream does not publish an archive, you can use a git tag instead. Use a git commit only when you need a revision that is not a tagged release. Please use a tag or a commit id. Branch names can change and break later builds.

To use a tag, prefix the repository URL with `git|` and set the value to the tag name. Keep `version` as the quoted release number.

```yaml
version : "1.2.3"
upstreams :
- git|https://github.com/example/project.git : v1.2.3
```

To use a commit, set the value to the full commit id. Set `version` to the upstream release that commit follows, then `~git.` and the first 7 characters of that commit id.

```yaml
version : "1.2.3~git.aabbccd"
upstreams :
- git|https://github.com/example/project.git : aabbccddeeff00112233445566778899aabbccdd
```

You can copy the commit id from the commit page on the project's website. From a local clone, you can also run:

```bash
git rev-parse HEAD
git rev-parse --short=7 HEAD
```

### Step 3 - Declare / correct the license

Find the license in upstream’s repository (often `COPYING`, `LICENSE`, or package metadata). Convert it to an [SPDX identifier](https://spdx.org/licenses/).

Nano uses `GPL-3.0-or-later`.
Nano uses `GPL-3.0-or-later`. When a package has only one license, write it on a single line:

```yaml
license : GPL-3.0-or-later
```

When it has more than one license, list each identifier:

```yaml
license :
- GPL-3.0-or-later
- LGPL-2.1-or-later
```

:::note[SPDX Licence identifier]
Expand Down Expand Up @@ -186,18 +218,20 @@ builddeps :

Nano follows the GNU autotools flow, so uses the standard macros (`%configure`, `%make`, `%make_install`). These have already been populated by `boulder recipe new` so do not need to be adapted. You can consult the [macros](/packaging/macros/) documentation for variations and additional guidance.

:::note[Listing macros]
`boulder recipe macros` prints the macros available in your build environment. Pass a name to read one macro, for example `boulder recipe macros configure`.
:::

### Step 6 · Review the finished recipe

Combining all the prior steps gives you a complete `stone.yaml`:

```yaml
#
# SPDX-FileCopyrightText: © 2025- aerynOS Developers
#
# SPDX-FileCopyrightText: 2025 aerynOS Developers
# SPDX-License-Identifier: MPL-2.0
#

name : nano
version : 8.7
version : "8.7"
release : 1
homepage : https://www.nano-editor.org/
upstreams :
Expand Down
20 changes: 15 additions & 5 deletions src/content/docs/Packaging/Workflow/updating-an-existing-recipe.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title : 'Updating an existing package recipe'
lastUpdated: 2026-10-02T15:00:00Z
lastUpdated: 2026-11-05T18:20:00Z
description: "How to update an existing package recipe"
sidebar:
order: 7
Expand Down Expand Up @@ -44,19 +44,29 @@ Please note each time you do this, you will increase the release number by one,

### Updating a package version

If you need to update the package version itself, you can use the following command:
From the package directory, `boulder up` looks up a newer release and updates `stone.yaml`. It is the short form of `boulder recipe update` with no version or upstream. Boulder reads the release information in `monitoring.yaml`, so that file needs to identify the upstream project.

```bash
boulder recipe update --ver "version name" --upstream "upstream URL" stone.yaml -w
boulder up
```

The command prints the newest version it found and the current version, then a diff of the recipe. It asks before it writes `stone.yaml`. Pass `-y` to answer yes.

When `monitoring.yaml` has no release information, or you already know the version and tarball you want, pass them yourself:

```bash
boulder recipe update --ver "version name" --upstream "upstream URL" stone.yaml
```

In the example of nano, to update to version 8.7, you would use the following command:

```bash
boulder recipe update --ver 8.7 --upstream https://www.nano-editor.org/dist/v8/nano-8.7.tar.xz stone.yaml -w
boulder recipe update --ver 8.7 --upstream https://www.nano-editor.org/dist/v8/nano-8.7.tar.xz stone.yaml
```

This command does the following:
The command prints a diff and asks before it writes the recipe. Pass `-y` to answer yes.

Either form does the following:

1) Updates the version of the package within the recipe
2) Updates the upstream location of the source code
Expand Down
Loading