git: fix sstate relocation for git-native
Create a wrapper for git to set GIT_EXEC_PATH and GIT_TEMPLATE_DIR so that git-native is relocatable. Fixes specific example given in [YOCTO #1137] (From OE-Core rev: 9a3e25b5a3aa5e3b6ba543c4f789f66b240b38a7) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
a6994f8413
commit
726a9d299a
|
@ -18,6 +18,12 @@ do_install () {
|
|||
GIT_PYTHON_DIR=${D}${datadir}/git-core/python
|
||||
}
|
||||
|
||||
do_install_append_virtclass-native() {
|
||||
create_wrapper ${D}/${bindir}/git \
|
||||
GIT_EXEC_PATH=${libexecdir}/git-core \
|
||||
GIT_TEMPLATE_DIR=${STAGING_DATADIR_NATIVE}/git-core/templates
|
||||
}
|
||||
|
||||
FILES_${PN} += "${datadir}/git-core ${libxecdir}/git-core/"
|
||||
FILES_${PN}-dbg += "${libexecdir}/git-core/.debug"
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require git.inc
|
||||
|
||||
PR = "r2"
|
||||
PR = "r3"
|
||||
|
||||
EXTRA_OECONF += "ac_cv_snprintf_returns_bogus=no ac_cv_c_c99_format=yes \
|
||||
ac_cv_fread_reads_directories=${ac_cv_fread_reads_directories=yes} \
|
||||
|
|
Loading…
Reference in New Issue