Skip to content

Commit e3f4b7b

Browse files
committed
_posts: post about host arch flag
for void-linux/void-packages#46263
1 parent 0d94014 commit e3f4b7b

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: Changes to xbps-src Masterdir Creation and Use
3+
layout: post
4+
---
5+
6+
In an effort to simplify the usage of [`xbps-src`](https://github.com/void-linux/void-packages),
7+
there has been a small change to how masterdirs are created and used.
8+
9+
The default masterdir is now called `masterdir-<arch>`, except when `masterdir`
10+
already exists or when using xbps-src in a container (where it's still `masterdir`).
11+
12+
### Creation
13+
14+
When creating a masterdir for an alternate architecture or libc, the previous
15+
syntax was:
16+
17+
```
18+
./xbps-src -m <name> binary-bootstrap <arch>
19+
```
20+
21+
Now, the `<arch>` should be specified using the new `-A` (host architecture)
22+
flag:
23+
24+
```
25+
./xbps-src -A <arch> binary-bootstrap
26+
```
27+
28+
This will create a new masterdir called `masterdir-<arch>`.
29+
30+
Arbitrarily-named masterdirs can still be created with `-m <name>`.
31+
32+
### Usage
33+
34+
Instead of specifying the alternative masterdir directly, you can now use the
35+
`-A` (host architecture) flag to use the `masterdir-<arch>` masterdir:
36+
37+
```
38+
./xbps-src -A <arch> pkg <pkgname>
39+
```
40+
41+
Arbitrarily-named masterdirs can still be used with `-m <name>`.

0 commit comments

Comments
 (0)