package/sysrepo: fix install path for systemd units
authorYann E. MORIN <yann.morin.1998@free.fr>
Wed, 18 Dec 2019 17:24:06 +0000 (18:24 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Wed, 18 Dec 2019 17:27:41 +0000 (18:27 +0100)
The relative paths currently used to install the systemd units causes an
incorrect installation, where units are installed in (notice the double
usr in the paths):

    target/usr/usr/lib/systemd/system/sysrepod.service
    staging/usr/usr/lib/systemd/system/sysrepod.service

Fix that by using an absolute path.

Signed-off-by: Jérémy Rosen <jeremy.rosen@smile.fr>
[yann.morin.1998@free.fr:
  - split into its own commit
  - expand commit log
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/sysrepo/sysrepo.mk

index 216e517526e396553f20a8aff99d0adaef8992dc..cc4f8e406f85eec02d66546c022d2806bae7d9bc 100644 (file)
@@ -24,7 +24,7 @@ SYSREPO_CONF_OPTS = \
        -DCALL_SYSREPOCFG_BIN=$(HOST_DIR)/bin/sysrepocfg \
        -DBUILD_EXAMPLES=$(if $(BR2_PACKAGE_SYSREPO_EXAMPLES),ON,OFF) \
        $(if $(BR2_INIT_SYSTEMD),-DWITH_SYSTEMD=ON) \
-       $(if $(BR2_INIT_SYSTEMD),-DSYSTEMD_UNIT_DIR=usr/lib/systemd/system)
+       $(if $(BR2_INIT_SYSTEMD),-DSYSTEMD_UNIT_DIR=/usr/lib/systemd/system)
 
 # On ARM, this is needed to prevent unaligned memory access with an optimized
 # build .. https://github.com/sysrepo/sysrepo/issues/947