blob: b8a15845629f496b2c8f1b62d8ae11b8e6059536 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Environment
## Build environment creation
The following steps needs to be run just once for each arch and distro version.
### Setup cowbuilder chroots
This is the recommended method:
sudo mkdir -p /var/cache/pbuilder/sid-amd64
sudo -E cowbuilder --create
sudo mkdir -p /var/cache/pbuilder/bookworm-amd64
sudo -E DIST=bookworm cowbuilder --create
### Setup pbuilder chroots
If you want to setup directly using `pbuilder`:
git-pbuilder create
DIST=bookworm git-pbuilder
### Compatibility with git-buildpackage
This is a workaround while we don't find a cleaner way to fix
[this issue](http://ramblingfoo.blogspot.com.br/2012/10/howto-sudo-cowbuilder-git-buildpackage.html)
with `git-buildpackage` not getting `~/.pbuilderrc` from the local user:
( cd /var/cache/pbuilder/ && sudo ln -s sid-amd64/base.cow )
## External repository integration
If your package storage lives elsewhere, make a symlink like this:
(
mkdir /var/data/distros/debian/packages/build-area/bookworm-amd64
cd /var/cache/pbuilder/bookworm-amd64 && \
sudo rm -rf result && \
sudo ln -s /var/data/distros/debian/packages/build-area/bookworm-amd64 result
)
## Environment maintenance
These steps should be run once in a while to ensure we have an up to date packaging environment.
### Pbuilder
DIST=sid git-pbuilder update
DIST=bookworm git-pbuilder update --override-config
### Cowbuilder
DIST=sid sudo -E cowbuilder --update
DIST=bookworm sudo -E cowbuilder --update --override-config
|