]> arthur.barton.de Git - bup.git/commit
Fix build error on macOS: "printf: missing format character" fix-macos-printf-format-character
authorAlexander Barton <alex@barton.de>
Sat, 10 Feb 2018 14:46:49 +0000 (15:46 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 10 Feb 2018 14:46:49 +0000 (15:46 +0100)
commit0f039d8782307ee80b715b3d286b89c8c843c2c4
treea77ea81816056009cd2f975fbd2dbada705df11d
parent80addc3f11e41101ed3a30aa17d4d8741d5592b9
Fix build error on macOS: "printf: missing format character"

Commit 3306a802a11b8d "_helpers: fix module init, and get it at least
building with py3" breaks building bup on macOS:

  $ make
  [...]
  running build_ext
  find lib/bup/build/* -maxdepth 1 -name '_helpers*.so' \
            -exec printf 'x\c' '{}' \; | wc -c | xargs test 1 -eq
  printf: missing format character
  make: *** [lib/bup/_helpers.so] Error 1

So don't count characters printed for each file found, but count the
filenames found ("lines") itself.

Tested on Debian Linux 9 and macOS 10.13.3.
Makefile