From 9975d3e6026d5d12e9a72249872918b74569999b Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 11 Sep 2026 23:39:37 +0000 Subject: [PATCH] libdata-hexdump-perl: Drop the dangling hexdump alternative Data-HexDump 0.02 installed a "hexdump" script via EXE_FILES in Makefile.PL, so registering ${bindir}/hexdump with update-alternatives was correct. Upstream 0.02_01 moved that script to eg/ and dropped EXE_FILES: * Moved hexdump script to eg/, so it won't be installed. Addresses RT#123224 from KENTNL. so since the 0.02 -> 0.04 upgrade the package installs nothing but Data/HexDump.pm and the alternative refers to a file that is never created: WARNING: libdata-hexdump-perl-0.04-r0 do_package: libdata-hexdump-perl: alternative target (/usr/bin/hexdump or /usr/bin/hexdump.libdata-hexdump-perl) does not exist, skipping... WARNING: libdata-hexdump-perl-0.04-r0 do_package: libdata-hexdump-perl: NOT adding alternative provide /usr/bin/hexdump: /usr/bin/hexdump.libdata-hexdump-perl does not exist WARNING: libdata-hexdump-perl-0.04-r0 do_package: libdata-hexdump-perl: alt_link == alt_target: /usr/bin/hexdump == /usr/bin/hexdump Drop the update-alternatives inherit and its settings to match what the recipe actually ships. The eg/hexdump example is deliberately not installed upstream, and util-linux/busybox already provide hexdump. Packaged file lists are unchanged; the package no longer carries the dead update-alternatives postinst/prerm. Signed-off-by: Khem Raj --- .../recipes-perl/libdata/libdata-hexdump-perl_0.04.bb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/meta-perl/recipes-perl/libdata/libdata-hexdump-perl_0.04.bb b/meta-perl/recipes-perl/libdata/libdata-hexdump-perl_0.04.bb index 7f9b426f3d..82f2396f3b 100644 --- a/meta-perl/recipes-perl/libdata/libdata-hexdump-perl_0.04.bb +++ b/meta-perl/recipes-perl/libdata/libdata-hexdump-perl_0.04.bb @@ -22,7 +22,7 @@ SRC_URI[sha256sum] = "bc36f404438ac36ad2b9295539227d36f99cd1623f1e347af77c594c40 S = "${UNPACKDIR}/Data-HexDump-${PV}" -inherit cpan ptest update-alternatives +inherit cpan ptest do_install_ptest () { install -d ${D}${PTEST_PATH}/t @@ -32,8 +32,3 @@ do_install_ptest () { RDEPENDS:${PN}-ptest += "perl-module-exporter perl-module-carp perl-module-filehandle" BBCLASSEXTEND = "native" - -ALTERNATIVES_PRIORITY = "100" -ALTERNATIVE:${PN} = "hexdump" -ALTERNATIVE_LINK_NAME[hexdump] = "${bindir}/hexdump" -