Clean host path in target scripts
cover Clean host path in target scripts
From: Wenzong Fan <[email protected]>
Clean host path for:
* /usr/bin/crossscripts/tclConfig.sh
* /usr/bin/isc-config.sh
* /usr/bin/bind9-config - hardlink to isc-config.sh
* /usr/bin/compile_et
* /usr/bin/mk_cmds
* /usr/bin/bashbug
The following changes since commit 924da20c6f2f183fa7e930e4c3c6b14c090acbe5:
build-appliance-image: Update to dizzy head revision (2014-10-18 16:16:38 +0200)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib wenzong/clean-hostpath
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/clean-hostpath
Wenzong Fan (4):
bash: clean host path in bashbug
e2fsprogs: clean host path in compile_et, mk_cmds
bind: clean host path in isc-config.sh
tcl: clean host path in tclConfig.sh
meta/recipes-connectivity/bind/bind_9.9.5.bb | 7 +++++++ .../recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb | 6 ++++++ meta/recipes-devtools/tcltk/tcl_8.6.1.bb | 1 + meta/recipes-extended/bash/bash.inc | 4 ++++ 4 files changed, 18 insertions(+)
Signature · 1 line
1.7.9.5
PATCH 1/4 bash: clean host path in bashbug
From: Wenzong Fan <[email protected]>
* /usr/bin/bashbug
--- meta/recipes-extended/bash/bash.inc | 4 ++++ 1 file changed, 4 insertions(+)
meta/recipes-extended/bash/bash.inc +4 -0
@@ -38,6 +38,10 @@ do_install_append () { mv ${D}${bindir}/bash ${D}${base_bindir} fi } +do_install_append_class-target () { + # Clean host path in bashbug + sed -i -e "s,${STAGING_DIR_TARGET},,g" ${D}${bindir}/bashbug +} do_install_ptest () { make INSTALL_TEST_DIR=${D}${PTEST_PATH}/tests install-test
Signature · 1 line
1.7.9.5
PATCH 2/4 e2fsprogs: clean host path in compile_et, mk_cmds
In reply to [email protected]From: Wenzong Fan <[email protected]>
* /usr/bin/compile_et
* /usr/bin/mk_cmds
--- .../recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb | 6 ++++++ 1 file changed, 6 insertions(+)
meta/recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb +6 -0
@@ -54,6 +54,12 @@ do_install () { mv ${D}${bindir}/chattr ${D}${base_bindir}/chattr.e2fsprogs } +do_install_append_class-target() { + # Clean host path in compile_et, mk_cmds + sed -i -e "s,${S}/lib/et,,g" ${D}${bindir}/compile_et + sed -i -e "s,${S}/lib/ss,,g" ${D}${bindir}/mk_cmds +} + RDEPENDS_e2fsprogs = "e2fsprogs-badblocks" RRECOMMENDS_e2fsprogs = "e2fsprogs-mke2fs e2fsprogs-e2fsck"
Signature · 1 line
1.7.9.5
PATCH 3/4 bind: clean host path in isc-config.sh
In reply to [email protected]From: Wenzong Fan <[email protected]>
* /usr/bin/isc-config.sh
* /usr/bin/bind9-config - hardlink to isc-config.sh
--- meta/recipes-connectivity/bind/bind_9.9.5.bb | 7 +++++++ 1 file changed, 7 insertions(+)
meta/recipes-connectivity/bind/bind_9.9.5.bb +7 -0
@@ -51,6 +51,13 @@ FILES_${PN}-utils = "${bindir}/host ${bindir}/dig" FILES_${PN}-dev += "${bindir}/isc-config.h" FILES_${PN} += "${sbindir}/generate-rndc-key.sh" +do_install_prepend() { + # clean host path in isc-config.sh before the hardlink created + # by "make install": + # bind9-config -> isc-config.sh + sed -i -e "s,${STAGING_LIBDIR},${libdir}," ${S}/isc-config.sh +} + do_install_append() { rm "${D}${bindir}/nslookup" rm "${D}${mandir}/man1/nslookup.1"
Signature · 1 line
1.7.9.5
PATCH 4/4 tcl: clean host path in tclConfig.sh
In reply to [email protected]From: Wenzong Fan <[email protected]>
* /usr/bin/crossscripts/tclConfig.sh
--- meta/recipes-devtools/tcltk/tcl_8.6.1.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-devtools/tcltk/tcl_8.6.1.bb +1 -0
@@ -58,6 +58,7 @@ do_install() { sed -i "s+${WORKDIR}+${STAGING_INCDIR}+g" tclConfig.sh sed -i "s,-L${libdir},-L=${libdir},g" tclConfig.sh sed -i "s,-I${includedir},-I=${includedir},g" tclConfig.sh + sed -i "/TCL_CC/s,\(--sysroot=\).*,--sysroot= '," tclConfig.sh install -d ${D}${bindir_crossscripts} install -m 0755 tclConfig.sh ${D}${bindir_crossscripts} install -m 0755 tclConfig.sh ${D}${libdir}
Signature · 1 line
1.7.9.5
Drop the patches - Mistaken Signatures.
Wenzong
Quoted 32 lines · On 10/22/2014 09:46 AM, [email protected] wrote:
From: Wenzong Fan <[email protected]>
Clean host path for:
*
/usr/bin/crossscripts/tclConfig.sh
*/usr/bin/isc-config.sh
*/usr/bin/bind9-config- hardlink toisc-config.sh
*/usr/bin/compile_et
*/usr/bin/mk_cmds
*/usr/bin/bashbugThe following changes since commit
924da20c6f2f183fa7e930e4c3c6b14c090acbe5:build-appliance-image: Update to dizzy head revision (2014-10-18 16:16:38 +0200)are available in the git repository at:
git://git.pokylinux.org/poky-contribwenzong/clean-hostpath
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/clean-hostpathWenzong Fan (4):
bash: clean host path in bashbug
e2fsprogs: clean host path incompile_et,mk_cmds
bind: clean host path inisc-config.sh
tcl: clean host path intclConfig.shmeta/recipes-connectivity/bind/bind_9.9.5.bb | 7 +++++++ .../recipes-devtools/e2fsprogs/e2fsprogs_1.42.9.bb | 6 ++++++ meta/recipes-devtools/tcltk/tcl_8.6.1.bb | 1 + meta/recipes-extended/bash/bash.inc | 4 ++++ 4 files changed, 18 insertions(+)