summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/which/which_2.23.bb
diff options
context:
space:
mode:
authorAlexander Kanavin <alex@linutronix.de>2025-09-25 12:53:39 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-10-01 10:52:54 +0100
commitcf0cf92200be69a498a4f29e20701966f030ccce (patch)
tree183791c395a9c1fc9cbe61ff30aa891fb06372ee /meta/recipes-extended/which/which_2.23.bb
parent702c515a7568b10bb208635d1d747b529e810690 (diff)
downloadpoky-cf0cf92200be69a498a4f29e20701966f030ccce.tar.gz
which: update 2.21 -> 2.23, build with meson
This (and 2.22) is a first release in many years. Rather than try to use upstream's absurdly overblown, incompatible build system (see below), I added a small-ish meson file. This means: - drop tweaks and dependency on cwautomacros as that is no longer used - drop patch as configure.ac has been rewritten, and the recipe is using meson anyway - drop --disable-iberty for the same reason In this realease, cwautomacros has been replaced by an equally custom, weird set of macros, written by 'which' maintainer: https://github.com/CarloWood/cwm4 - one effect of that is that autoreconf isn't happy with which's configure.ac and won't run; one is supposed to use a custom script instead: https://github.com/CarloWood/cwm4/blob/master/scripts/bootstrap.sh - alas, that script is not shipped in tarballs; the maintainer wants everyone to trust their 200k configure script (hello xz backdoor) - building from git (where the script exists) is not impossible, but that has no version tags All this 'special handling' for what, exactly? Five .c files to produce one single-function executable, and one manpage. Wich should all be in coreutils to begin with. GNU's attachment to autotools defies reason. (From OE-Core rev: 600545a0ef313e7df5a0f25eba17b73b0f410489) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/which/which_2.23.bb')
-rw-r--r--meta/recipes-extended/which/which_2.23.bb32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-extended/which/which_2.23.bb b/meta/recipes-extended/which/which_2.23.bb
new file mode 100644
index 0000000000..0bbc3510d8
--- /dev/null
+++ b/meta/recipes-extended/which/which_2.23.bb
@@ -0,0 +1,32 @@
1SUMMARY = "Displays the full path of shell commands"
2DESCRIPTION = "Which is a utility that prints out the full path of the \
3executables that bash(1) would execute when the passed \
4program names would have been entered on the shell prompt. \
5It does this by using the exact same algorithm as bash."
6SECTION = "libs"
7HOMEPAGE = "https://carlowood.github.io/which/"
8
9LICENSE = "GPL-3.0-or-later"
10LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504\
11 file://which.c;beginline=1;endline=17;md5=a9963693af2272e7a8df6f231164e7a2"
12
13inherit meson update-alternatives
14
15SRC_URI = "${GNU_MIRROR}/which/which-${PV}.tar.gz \
16 file://meson.build \
17 file://0001-getopt-Fix-signature-of-getenv-function.patch \
18 "
19
20SRC_URI[sha256sum] = "a2c558226fc4d9e4ce331bd2fd3c3f17f955115d2c00e447618a4ef9978a2a73"
21
22do_configure:prepend() {
23 cp ${UNPACKDIR}/meson.build ${S}
24}
25
26ALTERNATIVE:${PN} = "which"
27ALTERNATIVE_PRIORITY = "100"
28
29ALTERNATIVE:${PN}-doc = "which.1"
30ALTERNATIVE_LINK_NAME[which.1] = "${mandir}/man1/which.1"
31
32BBCLASSEXTEND = "nativesdk"