summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2025-02-26 13:02:31 +0000
committerRoss Burton <ross.burton@arm.com>2025-02-27 20:28:17 +0000
commit4089a0c02122508735b3dc0fb6f9cb31968d96f0 (patch)
tree4518fb629f25f29b7d5c93036c260e9d5904046d
parenta855313be086db7e82fa2847a2c05794272d57f6 (diff)
downloadmeta-openembedded-4089a0c02122508735b3dc0fb6f9cb31968d96f0.tar.gz
zsh: modernise autoconf use
No need to manually write do_configure, the config.h.in is generated with autoheader so don't disable that, but disable aclocal as that file is hand-maintained. Signed-off-by: Ross Burton <ross.burton@arm.com>
-rw-r--r--meta-oe/recipes-shells/zsh/zsh_5.9.bb9
1 files changed, 2 insertions, 7 deletions
diff --git a/meta-oe/recipes-shells/zsh/zsh_5.9.bb b/meta-oe/recipes-shells/zsh/zsh_5.9.bb
index b0961fd789..dd960856e0 100644
--- a/meta-oe/recipes-shells/zsh/zsh_5.9.bb
+++ b/meta-oe/recipes-shells/zsh/zsh_5.9.bb
@@ -15,6 +15,8 @@ SRC_URI[sha256sum] = "9b8d1ecedd5b5e81fbf1918e876752a7dd948e05c1a0dba10ab863842d
15 15
16inherit autotools gettext update-alternatives manpages 16inherit autotools gettext update-alternatives manpages
17 17
18EXTRA_AUTORECONF += "--exclude=aclocal"
19
18EXTRA_OECONF = " \ 20EXTRA_OECONF = " \
19 --bindir=${base_bindir} \ 21 --bindir=${base_bindir} \
20 --enable-etcdir=${sysconfdir} \ 22 --enable-etcdir=${sysconfdir} \
@@ -39,16 +41,9 @@ ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh"
39ALTERNATIVE_TARGET[sh] = "${base_bindir}/${BPN}" 41ALTERNATIVE_TARGET[sh] = "${base_bindir}/${BPN}"
40ALTERNATIVE_PRIORITY = "90" 42ALTERNATIVE_PRIORITY = "90"
41 43
42export AUTOHEADER = "true"
43
44# Needed for manpages.bbclass, but they're always installed 44# Needed for manpages.bbclass, but they're always installed
45PACKAGECONFIG[manpages] = "" 45PACKAGECONFIG[manpages] = ""
46 46
47do_configure () {
48 gnu-configize --force ${S}
49 oe_runconf
50}
51
52do_install:append() { 47do_install:append() {
53 sed -i -e '1!b; s:^#!.*[ /]zsh:#!${bindir}/zsh:; s#/usr/local/bin#${bindir}#;' \ 48 sed -i -e '1!b; s:^#!.*[ /]zsh:#!${bindir}/zsh:; s#/usr/local/bin#${bindir}#;' \
54 `find ${D}/usr/share/zsh/${PV}/functions -type f` 49 `find ${D}/usr/share/zsh/${PV}/functions -type f`