[oe-commits] [meta-openembedded] 54/67: gpsd: fix /etc/default/gpsd ALTERNATIVES logic

git at git.openembedded.org git at git.openembedded.org
Sun Nov 19 21:23:32 UTC 2017


This is an automated email from the git hooks/post-receive script.

armin_kuster pushed a commit to branch master-next
in repository meta-openembedded.

commit c55e8b815c9d7cf86217f0eed1d440c19e499f72
Author: Martin Kelly <mkelly at xevo.com>
AuthorDate: Wed Nov 15 13:21:36 2017 -0800

    gpsd: fix /etc/default/gpsd ALTERNATIVES logic
    
    The ALTERNATIVES logic for the /etc/default/gpsd file is broken,
    specifying ALTERNATIVE_LINK without brackets. In addition, it refers to
    ALTERNATIVE_PATH, which update-alternatives.bbclass doesn't use.
    
    With this patch, /etc/default/gpsd correctly gets a default link
    pointing to /etc/default/gpsd.default. Currently, no such link gets
    created, and gpsd starts off disabled by default since it's missing this
    config file.
    
    Signed-off-by: Martin Kelly <mkelly at xevo.com>
    Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
index e23d630..26d7486 100644
--- a/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
+++ b/meta-oe/recipes-navigation/gpsd/gpsd_3.16.bb
@@ -136,6 +136,5 @@ SYSTEMD_SERVICE_${PN} = "${PN}.socket"
 
 
 ALTERNATIVE_${PN} = "gpsd-defaults"
-ALTERNATIVE_PATH = "${sysconfdir}/default/gpsd.default"
-ALTERNATIVE_LINK = "${sysconfdir}/default/gpsd"
-ALTERNATIVE_TARGET = "${sysconfdir}/default/gpsd.default"
+ALTERNATIVE_LINK_NAME[gpsd-defaults] = "${sysconfdir}/default/gpsd"
+ALTERNATIVE_TARGET[gpsd-defaults] = "${sysconfdir}/default/gpsd.default"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list