From 9b56183e665086ec8b2675f596cb3bdce1cfea32 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 2 Sep 2020 15:34:10 -0700 Subject: 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 --- meta-perl/recipes-perl/libdata/libdata-hexdump-perl_0.02.bb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'meta-perl') 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 S = "${WORKDIR}/Data-HexDump-${PV}" -inherit cpan ptest +inherit cpan ptest update-alternatives do_install_ptest () { install -d ${D}${PTEST_PATH}/t @@ -31,3 +31,8 @@ do_install_ptest () { } BBCLASSEXTEND = "native" + +ALTERNATIVES_PRIORITY = "100" +ALTERNATIVE_${PN} = "hexdump" +ALTERNATIVE_LINK_NAME[hexdump] = "${bindir}/hexdump" + -- cgit 1.2.3-korg