summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
ef211f8)
Apparently the use of -printf was causing the error: "printf: missing
format character" with FreeBSD 11.1-RELEASE. Change the helpers lib
count to rely on -print0 and tr, which should be more portable, but
still be undisturbed by unusual paths.
Thanks to Curtis Dunham for reporting the problem and proposing an
alternate solution.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
cd lib/bup && \
LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" "$(bup_python)" csetup.py build
# Make sure there's just the one file we expect before we copy it.
cd lib/bup && \
LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" "$(bup_python)" csetup.py build
# Make sure there's just the one file we expect before we copy it.
- find lib/bup/build/* -maxdepth 1 -name '_helpers*$(SOEXT)' \
- -exec printf 'x' '{}' \; | wc -c | xargs test 1 -eq
+ find lib/bup/build/* -maxdepth 1 -name '_helpers*$(SOEXT)' -print0 \
+ | tr -C -d '\000' | wc -c | xargs test 1 -eq
cp lib/bup/build/*/_helpers*$(SOEXT) "$@"
lib/bup/_checkout.py:
cp lib/bup/build/*/_helpers*$(SOEXT) "$@"
lib/bup/_checkout.py: