Replace 'rev' directive by 'apply' and a check on 'PV' variable.
Tanikawa-san observed a regression while building 'qtsystems' with previous
commit:
(...)
Bitbake fails at qtsystems with c++ compiling errors.
Option 'rev' works only when building code from a revision control system. In bluez5_5.22.bb, source code is downloaded as tarball. "
fd0783c8bc524bc9b26514aad1f85814" is not SRCREV, it is md5 of tarball.
(...)
Change-Id: Id595d4c01912567e640d3371bbd0709e53eec748
Signed-off-by: Yannick Gicquel <yannick.gicquel@iot.bzh>
FILESEXTRAPATHS_append := ":${THISDIR}/${PN}"
+APPLY_v522 = "${@str('no' if '${PV}' != '5.22' else 'yes')}"
+
SRC_URI_append = "\
- file://0001_fix_compile_issue_when_using_in_c++.patch;rev="fd0783c8bc524bc9b26514aad1f85814" \
+ file://0001_fix_compile_issue_when_using_in_c++.patch;apply=${APPLY_v522} \
"