Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145492326
D18754.id52581.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D18754.id52581.diff
View Options
Index: sysutils/consolekit2/Makefile
===================================================================
--- sysutils/consolekit2/Makefile
+++ sysutils/consolekit2/Makefile
@@ -15,10 +15,13 @@
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libdbus-1.so:devel/dbus \
- libpolkit-gobject-1.so:sysutils/polkit
+ libpolkit-gobject-1.so:sysutils/polkit \
+ libdrm.so:graphics/libdrm \
+ libevdev.so:devel/libevdev \
+ libudev.so:devel/libudev-devd
WRKSRC= ${WRKDIR}/ConsoleKit2-${PORTVERSION}
-USES= gettext gmake libtool localbase pathfix pkgconfig tar:bzip2
+USES= gettext gnome gmake libtool localbase pathfix pkgconfig tar:bzip2
USE_CSTD= gnu99
USE_XORG= x11
USE_GNOME= glib20 libxslt introspection:build
@@ -30,12 +33,12 @@
--localstatedir=/var \
--enable-polkit \
--enable-introspection \
+ --enable-libdrm \
+ --enable-libevdev \
+ --enable-libudev \
--without-html-dir \
--disable-udev-acl \
--disable-libcgmanager \
- --disable-libdrm \
- --disable-libevdev \
- --disable-libudev \
--without-systemdsystemunitdir
INSTALL_TARGET= install-strip
Index: sysutils/consolekit2/files/patch-src_ck-device-udev.c
===================================================================
--- /dev/null
+++ sysutils/consolekit2/files/patch-src_ck-device-udev.c
@@ -0,0 +1,19 @@
+How CK sees our drm devices:
+major 1 minor 104 subsystem # sysname 0 devnode /dev/drm/0 active ? TRUE
+
+(seems like symlinks get resolved)
+
+--- src/ck-device-udev.c.orig 2019-01-05 13:32:00 UTC
++++ src/ck-device-udev.c
+@@ -391,9 +391,9 @@ ck_device_new (guint major,
+ /* Start with other device as a default, we have special things
+ * we do with DRM and EVDEV devices so find and tag them */
+ device->category = DEVICE_OTHER;
+- if (g_strcmp0 (subsystem, "drm") == 0)
++ if (g_strcmp0 (subsystem, "drm") == 0 || strstr (device->devnode, "drm") != NULL)
+ {
+- if (g_str_has_prefix (sysname, "card"))
++ //if (g_str_has_prefix (sysname, "card"))
+ {
+ g_debug ("DEVICE_DRM");
+ device->category = DEVICE_DRM;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 21, 12:37 PM (14 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28922803
Default Alt Text
D18754.id52581.diff (2 KB)
Attached To
Mode
D18754: sysutils/consolekit2: enable drm/evdev, fix drm device recognition
Attached
Detach File
Event Timeline
Log In to Comment