libiio: add patch to fix build on buildbots
authorMichael Heimpold <mhei@heimpold.de>
Sat, 18 Nov 2017 19:41:39 +0000 (20:41 +0100)
committerMichael Heimpold <mhei@heimpold.de>
Sat, 18 Nov 2017 21:06:19 +0000 (22:06 +0100)
commit1c4f928f92df39846624e25cc718028a6813d692
treef78d21ea739e4dc8565762b9fd228e4ae38ffc5c
parentacef284695dd1e1bd43d0bc9e6940bb2bb1f966b
libiio: add patch to fix build on buildbots

On buildbots, the building directory seems to be not a subdir of
a git repo, so a variable expands into an empty string which in turn
results in a syntax error:

--snip--
  -- Looking for in6addr_any - found
  -- Found Git: /data/bowl-builder/arm_cortex-a5/build/sdk/staging_dir/host/bin/git (found version "2.1.4")
  fatal: Not a git repository (or any parent up to mount point /data)
  Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
  CMake Error at CMakeLists.txt:114 (if):
    if given arguments:

      "STREQUAL" "/data/bowl-builder/arm_cortex-a5/build/sdk/build_dir/target-arm_cortex-a5_musl_eabi/libiio-0.11"

    Unknown arguments specified

  -- Configuring incomplete, errors occurred!
--snap--

The patch quotes the if arguments and thus fixes the build.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
libs/libiio/patches/001-quote-strequal.patch [new file with mode: 0644]