Skip to content

Commit

Permalink
_posts: post about host arch flag
Browse files Browse the repository at this point in the history
  • Loading branch information
classabbyamp committed Jan 22, 2024
1 parent 0d94014 commit 2fd950c
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions _posts/2024-01-22-xbps-src-host-arch.md
Original file line number Diff line number Diff line change
@@ -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-<arch>`, 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 <name> binary-bootstrap <arch>
```

Now, the `<arch>` should be specified using the new `-A` (host architecture)
flag:

```
./xbps-src -A <arch> binary-bootstrap
```

This will create a new masterdir called `masterdir-<arch>` in the root of your
void-packages repository checkout.

Arbitrarily-named masterdirs can still be created with `-m <name>`.

### Usage

Instead of specifying the alternative masterdir directly, you can now use the
`-A` (host architecture) flag to use the `masterdir-<arch>` masterdir:

```
./xbps-src -A <arch> pkg <pkgname>
```

Arbitrarily-named masterdirs can still be used with `-m <name>`.

0 comments on commit 2fd950c

Please sign in to comment.