Remove do_install_append() from zsh recipe.
do_install_append() removes a lot of useful functionality from the zsh shell. If a user requires this limited shell, they can add it in a bbappend file.
--- meta-oe/recipes-extended/zsh/zsh_5.0.5.bb | 4 ---- 1 file changed, 4 deletions(-)
meta-oe/recipes-extended/zsh/zsh_5.0.5.bb +0 -4
@@ -44,10 +44,6 @@ do_configure () { oe_runconf } -do_install_append () { - rm -fr ${D}/usr/share -} - pkg_postinst_${PN} () { touch $D${sysconfdir}/shells grep -q "bin/zsh" $D${sysconfdir}/shells || echo /bin/zsh >> $D${sysconfdir}/shells
Signature · 1 line
1.9.1
Quoted 1 line · Cody Piersall
do_install_append()removes a lot of useful functionality from the zsh shell.
What exactly is this "useful functionality" ?
Maybe it could be put in a separate package.
Quoted 28 lines
If a user requires this limited shell, they can add it in a bbappend file.
--- meta-oe/recipes-extended/zsh/zsh_5.0.5.bb | 4 ---- 1 file changed, 4 deletions(-)meta-oe/recipes-extended/zsh/zsh_5.0.5.bb +0
-5@@ -44,10 +44,6 @@ do_configure () { oe_runconf } -do_install_append () { - rm -fr ${D}/usr/share -} - pkg_postinst_${PN} () { touch $D${sysconfdir}/shells grep -q "bin/zsh" $D${sysconfdir}/shells || echo /bin/zsh >> $D${sysconfdir}/shells --1.9.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Hi Andre,
Thanks for the response.
Quoted 2 lines · Andre McCurdy
Quoted 1 line · Cody Piersall
do_install_append()removes a lot of useful functionality from the zsh
shell.
Quoted 4 lines
What exactly is this "useful functionality" ?
Maybe it could be put in a separate package.
The recipe currently in meta-oe removes a lot of features that make zsh a powerful shell.
A lot of zsh's nice interactive functionality is provided by files that live in/usr/share/zsh: things like typing "cd <TAB>" only completing on directories,
integration/completion with git commands, completion for various unix utilities. The big
drawback is that it takes up 5.5M of disk space. For my platform this isn't an issue, but
it could be for other people.
Unfortunately, the recipe I posted does not actually even work -- I posted before testing
(I didn't set FILES correctly, and some things were expecting zsh to be in /bin instead of/usr/bin). Sorry for wasting anyone's time if you tried it out. I have a working/tested
version now:
(quoted diff) +0 -0
b/meta-oe/recipes-extended/zsh/zsh_5.0.5.bb
index 39b2d95..1c06ef0 100644
meta-oe/recipes-extended/zsh/zsh_5.0.5.bb +0 -0
@@ -34,6 +34,7 @@ EXTRA_OEMAKE = "-e MAKEFLAGS="
ALTERNATIVE_${PN} = "sh" ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh" +ALTERNATIVE_LINK_NAME[zsh] = "${base_bindir}/zsh" ALTERNATIVE_TARGET[sh] = "${base_bindir}/${BPN}" ALTERNATIVE_PRIORITY = "100"
@@ -45,7 +46,10 @@ do_configure () {
}do_install_append () {
- rm -fr ${D}/usr/share
+ if ! [ -e ${D}/bin/zsh ]; then
+ mkdir -p ${D}/bin
+ ln -s ${bindir}/zsh ${D}/bin/zsh
+ fi
}
pkg_postinst_${PN} () {
@@ -59,3 +63,8 @@ FILES_${PN}-dbg += "\
${libdir}/${PN}/${PV}/${PN}/db/.debug/*.so \
${libdir}/${PN}/${PV}/${PN}/net/.debug/*.so \
"
+
+FILES_${PN} += "\
+ ${datadir}/${PN} \
+ ${base_bindir}/zsh \
+"
Cody
Quoted 23 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Cody Piersall
Sent: den 28 mars 2017 20:30
To: openembeded-devel
Subject: Re: [oe] [meta-OE] Removedo_install_append()from zsh recipe.Hi Andre,
Thanks for the response.
Quoted 1 line · Andre McCurdy
On Fri, Mar 24, 2017 at 9:16 AM, Cody Piersall <[email protected]>
Quoted 1 line · wrote:
Quoted 1 line
do_install_append()removes a lot of useful functionality from thezsh
shell.Quoted 4 lines
What exactly is this "useful functionality" ?
Maybe it could be put in a separate package.
Quoted 12 lines
The recipe currently in meta-oe removes a lot of features that make zsh a
powerful shell.
A lot of zsh's nice interactive functionality is provided by files that live in/usr/share/zsh: things like typing "cd <TAB>" only completing on directories,
integration/completion with git commands, completion for various unix utilities. The big
drawback is that it takes up 5.5M of disk space. For my platform this isn't an issue, but
it could be for other people.
It definitely sounds as it should be packaged in a separate package then, e.g., ${PN}-extras.
Quoted 18 lines
Unfortunately, the recipe I posted does not actually even work -- I posted
before testing
(I didn't set FILES correctly, and some things were expecting zsh to be in
/bin instead of/usr/bin). Sorry for wasting anyone's time if you tried it out. I have a
working/tested
version now:meta-oe/recipes-extended/zsh/zsh_5.0.5.bb +0
-0@@ -34,6 +34,7 @@ EXTRA_OEMAKE = "-e MAKEFLAGS="
Quoted 3 lines
ALTERNATIVE_${PN} = "sh" ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh" +ALTERNATIVE_LINK_NAME[zsh] = "${base_bindir}/zsh"
That does not do anything since there is no zsh in ALTERNATIVE_${PN}. And there should not be any need for it.
meta-oe/recipes-extended/zsh/zsh_5.0.5.bb do_configure () { · line 52
Quoted 11 lines
ALTERNATIVE_TARGET[sh] = "${base_bindir}/${BPN}"
ALTERNATIVE_PRIORITY= "100"meta-oe/recipes-extended/zsh/zsh_5.0.5.bb +4
-1@@ -45,7 +46,10 @@ do_configure () { } do_install_append () { - rm -fr ${D}/usr/share + if ! [ -e ${D}/bin/zsh ]; then + mkdir -p ${D}/bin + ln -s ${bindir}/zsh ${D}/bin/zsh + fi }
Please rewrite as:
do_install_append() {
if [ ! -e ${D}${base_bindir}/zsh ]; then
mkdir -p ${D}${base_bindir}
ln -s ${bindir}/zsh ${D}${base_bindir}/zsh
fi
}meta-oe/recipes-extended/zsh/zsh_5.0.5.bb
Quoted 9 lines
meta-oe/recipes-extended/zsh/zsh_5.0.5.bb +0
-0pkg_postinst_${PN} () {@@ -59,3 +63,8 @@ FILES_${PN}-dbg += "\ ${libdir}/${PN}/${PV}/${PN}/db/.debug/*.so \ ${libdir}/${PN}/${PV}/${PN}/net/.debug/*.so \"
meta-oe/recipes-extended/zsh/zsh_5.0.5.bb +4
-0+ +FILES_${PN} += "\ + ${datadir}/${PN} \ + ${base_bindir}/zsh \
No need to add ${base_bindir}/zsh as FILES_${PN} contains ${base_bindir}/* by default.
Quoted 3 lines
+"
Cody
//Peter