diff options
| author | Ross Burton <ross.burton@arm.com> | 2024-11-13 15:55:06 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-14 11:56:54 +0000 |
| commit | 8a78ab6253df766ef4b915b4b7f1880483c1b730 (patch) | |
| tree | 02757e0848775ad2e7abeab436840579287e2d4f /meta | |
| parent | bcf502d7d3729df996dea96e8e9c4ae91381f406 (diff) | |
| download | poky-8a78ab6253df766ef4b915b4b7f1880483c1b730.tar.gz | |
matchbox-terminal: add x-terminal-emulator RPROVIDES and alternative
Add a RPROVIDES for virtual-x-terminal-emulator, so that:
- Packages can RDEPEND on virtual-x-terminal-emulator and know that they
have installed a terminal
- The x-terminal-emulator binary will (via alternatives) run a terminal
We don't bother with PROVIDES because nobody needs to DEPEND on a terminal,
the entire point of this is that the actual binary is interchangable.
(From OE-Core rev: e1261ed6c3af803371f7a53eff18015828947d30)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-sato/matchbox-terminal/matchbox-terminal_0.2.bb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/recipes-sato/matchbox-terminal/matchbox-terminal_0.2.bb b/meta/recipes-sato/matchbox-terminal/matchbox-terminal_0.2.bb index f91c593f78..c9b01b3cfd 100644 --- a/meta/recipes-sato/matchbox-terminal/matchbox-terminal_0.2.bb +++ b/meta/recipes-sato/matchbox-terminal/matchbox-terminal_0.2.bb | |||
| @@ -16,6 +16,11 @@ PV = "0.2+git" | |||
| 16 | 16 | ||
| 17 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |
| 18 | 18 | ||
| 19 | inherit autotools pkgconfig features_check | 19 | inherit autotools pkgconfig features_check update-alternatives |
| 20 | 20 | ||
| 21 | ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" | 21 | ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}" |
| 22 | |||
| 23 | RPROVIDES:${PN} = "virtual-x-terminal-emulator" | ||
| 24 | ALTERNATIVE:${PN} = "x-terminal-emulator" | ||
| 25 | ALTERNATIVE_TARGET[x-terminal-emulator] = "${bindir}/matchbox-terminal" | ||
| 26 | ALTERNATIVE_PRIORITY[x-terminal-emulator] = "20" | ||
