Fix use of version number in recipe to make it future-proof. 65/6365/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Tue, 16 Aug 2016 07:11:02 +0000 (09:11 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Tue, 16 Aug 2016 07:11:02 +0000 (09:11 +0200)
Instead of hardcoding 6.0, we can use ${PV} instead.

Change-Id: I95c36058302c4f5d8dc0b8f0814d68270b17cf34
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
meta-ivi-common/recipes-multimedia/pulseaudio/pulseaudio_%.bbappend

index 9964a8b..541fe42 100644 (file)
@@ -6,7 +6,7 @@ do_install_append() {
        # Install pulseaudio systemd service
        if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
               install -m 644 -p -D ${WORKDIR}/build/src/pulseaudio.service ${D}${systemd_user_unitdir}/pulseaudio.service
-              install -m 644 -p -D ${WORKDIR}/pulseaudio-6.0/src/daemon/systemd/user/pulseaudio.socket ${D}${systemd_user_unitdir}/pulseaudio.socket
+              install -m 644 -p -D ${WORKDIR}/pulseaudio-${PV}/src/daemon/systemd/user/pulseaudio.socket ${D}${systemd_user_unitdir}/pulseaudio.socket
 
               # Execute these manually on behalf of systemctl script (from systemd-systemctl-native.bb)
               # because it does not support systemd's user mode.