Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: ulm@g.o
Subject: Re: [gentoo-dev] [PATCH 1/2] Introduce multibuild_merge_root() to merge interim installs.
Date: Sat, 23 Mar 2013 17:28:26
Message-Id: 20130323182858.1846ba8d@pomiocik.lan
In Reply to: Re: [gentoo-dev] [PATCH 1/2] Introduce multibuild_merge_root() to merge interim installs. by Ulrich Mueller
1 On Sat, 23 Mar 2013 18:00:41 +0100
2 Ulrich Mueller <ulm@g.o> wrote:
3
4 > >>>>> On Sat, 23 Mar 2013, Michał Górny wrote:
5 >
6 > > +multibuild_merge_root() {
7 > > + [...]
8 > > + if type -P lockf &>/dev/null; then
9 > > + # On BSD, we have 'lockf' wrapper.
10 > > + tar -C "${src}" -f - -c . \
11 > > + | lockf "${lockfile}" tar -x -f - -C "${dest}"
12 > > + else
13 > > + [...]
14 > > + cp -a -l -n "${src}"/. "${dest}"/
15 >
16 > You assume that cp is GNU, if there's no lockf. Is it guaranteed that
17 > this is true on all platforms?
18
19 They're all just assumptions. If it breaks somewhere, I'll improve
20 the function.
21
22 --
23 Best regards,
24 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies