Thanks Anton: that's true.

If you prefer so, I can send another series, or feel free to directly correct it if it's more practical for you.

On a side note: my real pain point yesterday was the way packages are built via Docker, because I feel it could be better. Unfortunately, I have not been able to find a simple solution yet, so I just sent this small series.

Basically, due to the way volumes are mounted by contrib/docker{deb,rpm}:

    $DOCKER run [...] -v $PWD/..:/mnt [...]

the container owns the working directory, and pollutes it while building. Probably, the only desired side effect of a build on the host's file system should be the generation of {deb,rpm}s in /packages, instead. Everything else should stay in the ephemeral container.

This causes troubles, for example, when tests fail while building. In that case the /debian directory does not get deleted, and subsequent builds fail with the error "debian control directory already exists".

On systems in which Docker must be run as root (for example, CentOS), this way of mounting volumes also results in files owned by root, which feels a bit weird.

Summarizing: I would try to find a more robust way of generating packages, but it will take some time.

On 15/04/2018 08:59, Anton Shestakov wrote:
On Sat, 14 Apr 2018 18:31:24 +0200
Antonio Muci via Mercurial-devel<>

# HG changeset patch
# User Antonio Muci<>
# Date 1523714275 -7200
#      Sat Apr 14 15:57:55 2018 +0200
# Node ID 3c8463e542db60db1ad234ec80f39e290ed17658
# Parent  1541e1a8e87de9bd6b869ed498ad8e9b93c59d4d
makefile: mkdir is not needed on templatized docker builds

this imitates e63dfbbdbd07 and is a small addition to 231690dba9b4 and
Nit: after the first line, regular sentences start (they need capital
letters and punctuation).

Otherwise, this series LGTM.

Mercurial-devel mailing list

Reply via email to