diff --git a/_posts/2024-01-22-xbps-src-host-arch.md b/_posts/2024-01-22-xbps-src-host-arch.md new file mode 100644 index 0000000..1ad167e --- /dev/null +++ b/_posts/2024-01-22-xbps-src-host-arch.md @@ -0,0 +1,43 @@ +--- +title: Changes to xbps-src Masterdir Creation and Use +layout: post +--- + +In an effort to simplify the usage of [`xbps-src`](https://github.com/void-linux/void-packages), +there has been a small change to how masterdirs (the containers xbps-src uses +to build packages) are created and used. + +The default masterdir is now called `masterdir-`, except when `masterdir` +already exists or when using xbps-src in a container (where it's still `masterdir`). + +### Creation + +When creating a masterdir for an alternate architecture or libc, the previous +syntax was: + +``` +./xbps-src -m binary-bootstrap +``` + +Now, the `` should be specified using the new `-A` (host architecture) +flag: + +``` +./xbps-src -A binary-bootstrap +``` + +This will create a new masterdir called `masterdir-` in the root of your +void-packages repository checkout. + +Arbitrarily-named masterdirs can still be created with `-m `. + +### Usage + +Instead of specifying the alternative masterdir directly, you can now use the +`-A` (host architecture) flag to use the `masterdir-` masterdir: + +``` +./xbps-src -A pkg +``` + +Arbitrarily-named masterdirs can still be used with `-m `.