From ab638b47bb55b4a30094f7e5e59f748c61712f19 Mon Sep 17 00:00:00 2001 From: Jared Cervantes Date: Thu, 5 Nov 2026 09:16:49 -0500 Subject: [PATCH 1/4] add git tag section Signed-off-by: Jared Cervantes --- .../docs/Packaging/Recipes/overview.md | 7 ++- .../Workflow/creating-a-new-recipe.md | 49 ++++++++++++++----- 2 files changed, 41 insertions(+), 15 deletions(-) diff --git a/src/content/docs/Packaging/Recipes/overview.md b/src/content/docs/Packaging/Recipes/overview.md index 0c3d9fbe..b5b3d6ea 100644 --- a/src/content/docs/Packaging/Recipes/overview.md +++ b/src/content/docs/Packaging/Recipes/overview.md @@ -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 @@ -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 : diff --git a/src/content/docs/Packaging/Workflow/creating-a-new-recipe.md b/src/content/docs/Packaging/Workflow/creating-a-new-recipe.md index 2f9f457b..01ccaccb 100644 --- a/src/content/docs/Packaging/Workflow/creating-a-new-recipe.md +++ b/src/content/docs/Packaging/Workflow/creating-a-new-recipe.md @@ -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 @@ -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 : @@ -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: @@ -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 : @@ -145,6 +143,33 @@ 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/). @@ -191,13 +216,11 @@ Nano follows the GNU autotools flow, so uses the standard macros (`%configure`, 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 : From b942082270e83a6e1ef26deb234c5621e661c096 Mon Sep 17 00:00:00 2001 From: Jared Cervantes Date: Thu, 5 Nov 2026 09:17:55 -0500 Subject: [PATCH 2/4] license --- .../docs/Packaging/Workflow/creating-a-new-recipe.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/content/docs/Packaging/Workflow/creating-a-new-recipe.md b/src/content/docs/Packaging/Workflow/creating-a-new-recipe.md index 01ccaccb..9c7cce18 100644 --- a/src/content/docs/Packaging/Workflow/creating-a-new-recipe.md +++ b/src/content/docs/Packaging/Workflow/creating-a-new-recipe.md @@ -174,11 +174,18 @@ git rev-parse --short=7 HEAD 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] From f2fe993df4e4fd80077727cf0220cca2665f9e94 Mon Sep 17 00:00:00 2001 From: Jared Cervantes Date: Thu, 5 Nov 2026 09:21:38 -0500 Subject: [PATCH 3/4] macros --- src/content/docs/Packaging/Macros/index.mdx | 4 +++- src/content/docs/Packaging/Workflow/creating-a-new-recipe.md | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/content/docs/Packaging/Macros/index.mdx b/src/content/docs/Packaging/Macros/index.mdx index 1159f8c8..7d7b73d7 100644 --- a/src/content/docs/Packaging/Macros/index.mdx +++ b/src/content/docs/Packaging/Macros/index.mdx @@ -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 @@ -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`. + diff --git a/src/content/docs/Packaging/Workflow/creating-a-new-recipe.md b/src/content/docs/Packaging/Workflow/creating-a-new-recipe.md index 9c7cce18..8c1d0f9f 100644 --- a/src/content/docs/Packaging/Workflow/creating-a-new-recipe.md +++ b/src/content/docs/Packaging/Workflow/creating-a-new-recipe.md @@ -218,6 +218,10 @@ 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`: From c1675afaea0d2a455e00af36e1f492cab57d2de4 Mon Sep 17 00:00:00 2001 From: Jared Cervantes Date: Thu, 5 Nov 2026 09:59:37 -0500 Subject: [PATCH 4/4] fix update package Signed-off-by: Jared Cervantes --- .../Workflow/updating-an-existing-recipe.md | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/content/docs/Packaging/Workflow/updating-an-existing-recipe.md b/src/content/docs/Packaging/Workflow/updating-an-existing-recipe.md index 5930a0c7..8959266b 100644 --- a/src/content/docs/Packaging/Workflow/updating-an-existing-recipe.md +++ b/src/content/docs/Packaging/Workflow/updating-an-existing-recipe.md @@ -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 @@ -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