From patchwork Thu May 21 12:58:25 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joao Marcos Costa X-Patchwork-Id: 88583 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80DCCCD5BAC for ; Thu, 21 May 2026 12:58:49 +0000 (UTC) Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.35795.1779368325093595048 for ; Thu, 21 May 2026 05:58:45 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@bootlin.com header.s=dkim header.b=smEAZacz; spf=pass (domain: bootlin.com, ip: 185.171.202.116, mailfrom: joaomarcos.costa@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 02349C2C64F; Thu, 21 May 2026 12:59:37 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id DBF8D60495; Thu, 21 May 2026 12:58:42 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id A24C5107E8B85; Thu, 21 May 2026 14:58:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1779368322; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=pp6/gPr+goLNLEg57cDdpBzM7Z53WJafWFM+tJ9WsfQ=; b=smEAZaczr74rEDYK0CXYAZLDId4gh7qCsm1SycwhHeUm0gXQwRCapE/gedGMw8zsW7oXYZ AlKjJaYeUkpj0xlvPdjLGwHVNHdSv6pjE0sX073UMrAEWlPeGNNyxab9epd21SlEdznBFl fgYddZnOC92EhFYCjZQbN+tMI0A9cXxqEOSiha+ufi0c1o5FHxziRO1LSxi3HJdF/n73oi j6oPsTWqW0lSrOKAUNglua1Xr7kipMptyv6zq0YLX3N4D66hNjk0l569vrGAly9bnhsezf crtyuPppJEamzqCObXbXR77bsw77KT4OPfaYo1Coy19NmQSg/bM6XqqBTW0/3Q== From: =?utf-8?q?Jo=C3=A3o_Marcos_Costa?= To: openembedded-core@lists.openembedded.org Cc: thomas.petazzoni@bootlin.com, Ross.Burton@arm.com, alex.kanavin@gmail.com, paul@pbarker.dev, richard.purdie@linuxfoundation.org, =?utf-8?q?Jo=C3=A3o_M?= =?utf-8?q?arcos_Costa?= Subject: [PATCH v2 2/5] vim-xxd: introduce new recipe for xxd Date: Thu, 21 May 2026 14:58:25 +0200 Message-ID: <20260521125828.718050-3-joaomarcos.costa@bootlin.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20260521125828.718050-1-joaomarcos.costa@bootlin.com> References: <20260521125828.718050-1-joaomarcos.costa@bootlin.com> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Thu, 21 May 2026 12:58:49 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/237509 This new recipe's main purpose is to handle xxd in the simplest way possible, stripping it from any needless tasks and/or dependencies that come from the fact it was originally provided by the same recipe as Vim. Not only this recipe is faster to build, but it still provides the very same program for both build-time and run-time, so there should be no migration needed by the recipes depend on xxd. Signed-off-by: João Marcos Costa --- meta/conf/distro/include/maintainers.inc | 1 + meta/recipes-support/vim/vim-xxd_9.2.bb | 35 ++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 meta/recipes-support/vim/vim-xxd_9.2.bb diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 24c5a9d712..dbb53c392c 100644 --- a/meta/conf/distro/include/maintainers.inc +++ b/meta/conf/distro/include/maintainers.inc @@ -869,6 +869,7 @@ RECIPE_MAINTAINER:pn-vala = "Unassigned " RECIPE_MAINTAINER:pn-valgrind = "Mingli Yu " RECIPE_MAINTAINER:pn-vim = "Unassigned " RECIPE_MAINTAINER:pn-vim-tiny = "Unassigned " +RECIPE_MAINTAINER:pn-vim-xxd = "João Marcos Costa " RECIPE_MAINTAINER:pn-virglrenderer = "Unassigned " RECIPE_MAINTAINER:pn-volatile-binds = "Chen Qi " RECIPE_MAINTAINER:pn-vte = "Unassigned " diff --git a/meta/recipes-support/vim/vim-xxd_9.2.bb b/meta/recipes-support/vim/vim-xxd_9.2.bb new file mode 100644 index 0000000000..5cfacbcea6 --- /dev/null +++ b/meta/recipes-support/vim/vim-xxd_9.2.bb @@ -0,0 +1,35 @@ +SUMMARY = "Hex dump and reverse utility from the Vim source tree" +DESCRIPTION = "xxd is a small utility usually distributed with Vim that creates hex dumps from binary data and can also convert hex dumps back to their original form." +SECTION = "console/utils" +HOMEPAGE = "https://www.vim.org/" +BUGTRACKER = "https://github.com/vim/vim/issues" + +LICENSE = "X11 | GPL-2.0-only" +LIC_FILES_CHKSUM = "\ + file://${COMMON_LICENSE_DIR}/X11;md5=87f08485cf6ba3c63a00eda8ecba7f1d \ + file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6 \ +" + +require vim-sources.inc + +inherit update-alternatives + +PROVIDES += "xxd" + +do_compile() { + cd ${S}/src/xxd; + oe_runmake xxd +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 src/xxd/xxd ${D}${bindir} +} + +RPROVIDES:${PN} += "xxd" + +ALTERNATIVE:${PN} = "xxd" +ALTERNATIVE_TARGET[xxd] = "${bindir}/xxd" +ALTERNATIVE_LINK_NAME[xxd] = "${bindir}/xxd" + +BBCLASSEXTEND = "native nativesdk"