Skip to content

Commit 044acc2

Browse files
committed
package/cog: fix installation of dbus policy file depending on version.
1 parent 6b2fefe commit 044acc2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

package/cog/cog.mk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,14 @@ COG_CONF_OPTS_CMAKE += -DCOG_PLATFORM_DRM=OFF
8787
endif
8888

8989
ifeq ($(BR2_PACKAGE_COG_USE_SYSTEM_DBUS),y)
90+
ifeq ($(BR2_PACKAGE_WPEWEBKIT2_38),y)
91+
COG_DBUS_POLICY_FILE = $(@D)/build/com.igalia.Cog.conf
92+
else
93+
COG_DBUS_POLICY_FILE = $(@D)/com.igalia.Cog.conf
94+
endif
9095
define COG_INSTALL_DBUS_POLICY
9196
$(RM) $(TARGET_DIR)/etc/dbus-1/systemd.d/com.igalia.Cog.conf
92-
$(INSTALL) -D -m 0644 $(@D)/com.igalia.Cog.conf $(TARGET_DIR)/usr/share/dbus-1/system.d/
97+
$(INSTALL) -D -m 0644 $(COG_DBUS_POLICY_FILE) $(TARGET_DIR)/usr/share/dbus-1/system.d/
9398
endef
9499
COG_POST_INSTALL_TARGET_HOOKS += COG_INSTALL_DBUS_POLICY
95100
COG_CONF_OPTS_CMAKE += -DCOG_DBUS_SYSTEM_BUS=ON

0 commit comments

Comments
 (0)