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 |
> They're all just assumptions. If it breaks somewhere, I'll improve |
17 |
> the function. |
18 |
|
19 |
Maybe explicitly testing for USERLAND would be less fragile? Or use |
20 |
tar everywhere? |
21 |
|
22 |
Ulrich |