>>>>> On Sat, 23 Mar 2013, Michał Górny wrote:
>> > +multibuild_merge_root() {
>> > + [...]
>> > + if type -P lockf &>/dev/null; then
>> > + # On BSD, we have 'lockf' wrapper.
>> > + tar -C "${src}" -f - -c . \
>> > + | lockf "${lockfile}" tar -x -f - -C "${dest}"
>> > + else
>> > + [...]
>> > + cp -a -l -n "${src}"/. "${dest}"/
>>
>> You assume that cp is GNU, if there's no lockf. Is it guaranteed that
>> this is true on all platforms?
> They're all just assumptions. If it breaks somewhere, I'll improve
> the function.
Maybe explicitly testing for USERLAND would be less fragile? Or use
tar everywhere?
Ulrich