[OE-core] [PATCH 2/3] systemd: spin libnss_myhostname to package of its own

Koen Kooi koen at dominion.thruhere.net
Mon Mar 11 14:02:26 UTC 2013


Op 10 mrt. 2013, om 00:54 heeft Khem Raj <raj.khem at gmail.com> het volgende geschreven:

> Fix packaging warning
> 
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> ---
> meta/recipes-core/systemd/systemd_198.bb |    5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/recipes-core/systemd/systemd_198.bb b/meta/recipes-core/systemd/systemd_198.bb
> index c57ee52..381a67b 100644
> --- a/meta/recipes-core/systemd/systemd_198.bb
> +++ b/meta/recipes-core/systemd/systemd_198.bb
> @@ -98,7 +98,9 @@ do_install() {
> }
> 
> python populate_packages_prepend (){
> -    systemdlibdir = d.getVar("base_libdir", True)
> +    systemdbaselibdir = d.getVar("base_libdir", True)
> +    do_split_packages(d, systemdbaselibdir, '^lib(.*)\.so\.*', 'lib%s', 'Systemd %s library', extra_depends='', allow_links=True)
> +    systemdlibdir = d.getVar("libdir", True)

libnss-myhostname is not a systemd library, but a plugin for the nameservice switcher, it is the proper way to get localhost to resolve so you don't need to hack netbase like this: http://git.linaro.org/gitweb?p=openembedded/meta-linaro.git;a=commitdiff;h=d1fe025991f73b1cdc53d18af8afdf6d650b3b14


>     do_split_packages(d, systemdlibdir, '^lib(.*)\.so\.*', 'lib%s', 'Systemd %s library', extra_depends='', allow_links=True)
> }
> PACKAGES_DYNAMIC += "^lib(udev|gudev|systemd).*"
> @@ -146,7 +148,6 @@ FILES_${PN} = " ${base_bindir}/* \
>                 ${systemd_unitdir}/system/* \
>                 /lib/udev/rules.d/99-systemd.rules \
>                 ${base_libdir}/security/*.so \
> -                ${libdir}/libnss_myhostname.so.2 \
>                 /cgroup \
>                 ${bindir}/systemd* \
>                 ${bindir}/localectl \
> -- 
> 1.7.9.5
> 
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core





More information about the Openembedded-core mailing list