Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: Re: [gentoo-dev] [PATCH 1/2] Introduce multibuild_merge_root() to merge interim installs.
Date: Sat, 23 Mar 2013 17:00:59
Message-Id: 20813.57273.945749.854552@a1i15.kph.uni-mainz.de
In Reply to: [gentoo-dev] [PATCH 1/2] Introduce multibuild_merge_root() to merge interim installs. by "Michał Górny"
1 >>>>> On Sat, 23 Mar 2013, Micha³ Górny wrote:
2
3 > +multibuild_merge_root() {
4 > + [...]
5 > + if type -P lockf &>/dev/null; then
6 > + # On BSD, we have 'lockf' wrapper.
7 > + tar -C "${src}" -f - -c . \
8 > + | lockf "${lockfile}" tar -x -f - -C "${dest}"
9 > + else
10 > + [...]
11 > + cp -a -l -n "${src}"/. "${dest}"/
12
13 You assume that cp is GNU, if there's no lockf. Is it guaranteed that
14 this is true on all platforms?
15
16 Ulrich

Replies