diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-09-02 15:34:10 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-09-03 07:54:13 -0700 |
commit | 9b56183e665086ec8b2675f596cb3bdce1cfea32 (patch) | |
tree | b70500179e10e2a6e67aa640cea34c2ff0120ca5 | |
parent | 8efb6e7d69254158a21cac76564944e8631c4c87 (diff) | |
download | meta-openembedded-9b56183e665086ec8b2675f596cb3bdce1cfea32.tar.gz |
libdata-hexdump-perl: Use update alternatives for hexdump
Hexdump can come from busybox or util-linux, therefore its better to
define it via u-a so it can live along with these packages
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-perl/recipes-perl/libdata/libdata-hexdump-perl_0.02.bb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta-perl/recipes-perl/libdata/libdata-hexdump-perl_0.02.bb b/meta-perl/recipes-perl/libdata/libdata-hexdump-perl_0.02.bb index 6ab5a42043..44c651c4c2 100644 --- a/meta-perl/recipes-perl/libdata/libdata-hexdump-perl_0.02.bb +++ b/meta-perl/recipes-perl/libdata/libdata-hexdump-perl_0.02.bb | |||
@@ -23,7 +23,7 @@ SRC_URI[sha256sum] = "1a9d843e7f667c1c6f77c67af5d77e7462ff23b41937cb17454d03535c | |||
23 | 23 | ||
24 | S = "${WORKDIR}/Data-HexDump-${PV}" | 24 | S = "${WORKDIR}/Data-HexDump-${PV}" |
25 | 25 | ||
26 | inherit cpan ptest | 26 | inherit cpan ptest update-alternatives |
27 | 27 | ||
28 | do_install_ptest () { | 28 | do_install_ptest () { |
29 | install -d ${D}${PTEST_PATH}/t | 29 | install -d ${D}${PTEST_PATH}/t |
@@ -31,3 +31,8 @@ do_install_ptest () { | |||
31 | } | 31 | } |
32 | 32 | ||
33 | BBCLASSEXTEND = "native" | 33 | BBCLASSEXTEND = "native" |
34 | |||
35 | ALTERNATIVES_PRIORITY = "100" | ||
36 | ALTERNATIVE_${PN} = "hexdump" | ||
37 | ALTERNATIVE_LINK_NAME[hexdump] = "${bindir}/hexdump" | ||
38 | |||