diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-11-09 21:21:11 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-11 13:43:40 +0000 |
| commit | 6c7cf08dbf9125b7d5bf71c664b6ec52857a989a (patch) | |
| tree | 8b3beccfec4f1c16981de9c1a47c69ca409b5f47 | |
| parent | c3ad78032870f0f30ac8f85e220f7a0f768715cc (diff) | |
| download | poky-6c7cf08dbf9125b7d5bf71c664b6ec52857a989a.tar.gz | |
vala: install vapigen-wrapper into /usr/bin/crosscripts and stage only that
Staging the whole /usr/bin is not correct, as it pulls in also
all the vala's cross binaries, which may be discovered by other recipes
and things will go wrong then.
(From OE-Core rev: 52629d9db0344146ff4734632b17bd731e247fd5)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-devtools/vala/vala.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/recipes-devtools/vala/vala.inc b/meta/recipes-devtools/vala/vala.inc index 974baa33f5..d3daee37dc 100644 --- a/meta/recipes-devtools/vala/vala.inc +++ b/meta/recipes-devtools/vala/vala.inc | |||
| @@ -42,20 +42,20 @@ EXTRA_OECONF += " --disable-valadoc" | |||
| 42 | # Vapigen wrapper needs to be available system-wide, because it will be used | 42 | # Vapigen wrapper needs to be available system-wide, because it will be used |
| 43 | # to build vapi files from all other packages with vala support | 43 | # to build vapi files from all other packages with vala support |
| 44 | do_install:append:class-target() { | 44 | do_install:append:class-target() { |
| 45 | install -d ${D}${bindir}/ | 45 | install -d ${D}${bindir_crossscripts}/ |
| 46 | install ${B}/vapigen-wrapper ${D}${bindir}/ | 46 | install ${B}/vapigen-wrapper ${D}${bindir_crossscripts}/ |
| 47 | } | 47 | } |
| 48 | 48 | ||
| 49 | # Put vapigen wrapper into target sysroot so that it can be used when building | 49 | # Put vapigen wrapper into target sysroot so that it can be used when building |
| 50 | # vapi files. | 50 | # vapi files. |
| 51 | SYSROOT_DIRS:append:class-target = " ${bindir}" | 51 | SYSROOT_DIRS += "${bindir_crossscripts}" |
| 52 | 52 | ||
| 53 | SYSROOT_PREPROCESS_FUNCS:append:class-target = " vapigen_sysroot_preprocess" | 53 | SYSROOT_PREPROCESS_FUNCS:append:class-target = " vapigen_sysroot_preprocess" |
| 54 | vapigen_sysroot_preprocess() { | 54 | vapigen_sysroot_preprocess() { |
| 55 | # Tweak the vapigen name in the vapigen pkgconfig file, so that it picks | 55 | # Tweak the vapigen name in the vapigen pkgconfig file, so that it picks |
| 56 | # up our wrapper. | 56 | # up our wrapper. |
| 57 | sed -i \ | 57 | sed -i \ |
| 58 | -e "s|vapigen=.*|vapigen=${bindir}/vapigen-wrapper|" \ | 58 | -e "s|vapigen=.*|vapigen=${bindir_crossscripts}/vapigen-wrapper|" \ |
| 59 | ${SYSROOT_DESTDIR}${libdir}/pkgconfig/vapigen-${SHRT_VER}.pc | 59 | ${SYSROOT_DESTDIR}${libdir}/pkgconfig/vapigen-${SHRT_VER}.pc |
| 60 | } | 60 | } |
| 61 | 61 | ||
| @@ -64,5 +64,5 @@ SSTATE_SCAN_FILES += "vapigen-wrapper" | |||
| 64 | PACKAGE_PREPROCESS_FUNCS += "vala_package_preprocess" | 64 | PACKAGE_PREPROCESS_FUNCS += "vala_package_preprocess" |
| 65 | 65 | ||
| 66 | vala_package_preprocess () { | 66 | vala_package_preprocess () { |
| 67 | sed -i -e 's:${RECIPE_SYSROOT}::g;' ${PKGD}${bindir}/vapigen-wrapper | 67 | sed -i -e 's:${RECIPE_SYSROOT}::g;' ${PKGD}${bindir_crossscripts}/vapigen-wrapper |
| 68 | } | 68 | } |
