Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_posts: post about host arch flag #224

Merged
merged 1 commit into from
Jan 23, 2024
Merged
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
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>`.