mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-08 17:39:24 +00:00
xfce4-session: get rid of machine-host
OE-Core's base-file does add hostname to hosts since: commit 31e6d08f20a804fccb958e19045d8f9e9806071a Author: Chen Qi <Qi.Chen@windriver.com> Date: Tue Jan 8 17:12:52 2019 +0800 netbase/base-files: move /etc/hosts from netbase to base-files Move /etc/hosts to base-files, and also add entry to it according to hostname setting. This fixes the problem of commands like `hostname -f' failing due to lack of such entry. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -20,7 +20,3 @@ LAYERDEPENDS_xfce-layer += "meta-python"
|
|||||||
LAYERDEPENDS_xfce-layer += "networking-layer"
|
LAYERDEPENDS_xfce-layer += "networking-layer"
|
||||||
|
|
||||||
LAYERSERIES_COMPAT_xfce-layer = "thud warrior"
|
LAYERSERIES_COMPAT_xfce-layer = "thud warrior"
|
||||||
|
|
||||||
SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
|
|
||||||
xfce4-session->machine-host \
|
|
||||||
"
|
|
||||||
|
|||||||
@@ -1,17 +0,0 @@
|
|||||||
SUMMARY = "Meta package adding machine name to known hosts"
|
|
||||||
LICENSE = "MIT"
|
|
||||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
|
||||||
|
|
||||||
ALLOW_EMPTY_${PN} = "1"
|
|
||||||
|
|
||||||
LOCALHOSTMACHINE = "127.0.0.1 ${MACHINE}"
|
|
||||||
|
|
||||||
# on some machines starting applications as xfce4-terminal take ages without
|
|
||||||
# machine name in hosts
|
|
||||||
pkg_postinst_${PN} () {
|
|
||||||
if ! grep -q '${LOCALHOSTMACHINE}' $D/etc/hosts ; then
|
|
||||||
echo '${LOCALHOSTMACHINE}' >> $D/etc/hosts
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
||||||
@@ -30,5 +30,3 @@ FILES_${PN} += " \
|
|||||||
FILES_${PN} += " \
|
FILES_${PN} += " \
|
||||||
${libdir}/xfce4/session/splash-engines/*.la \
|
${libdir}/xfce4/session/splash-engines/*.la \
|
||||||
"
|
"
|
||||||
|
|
||||||
RDEPENDS_${PN} += "machine-host"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user