From e1eeb7bcf0c4861a2eba862a929439511cdce9b2 Mon Sep 17 00:00:00 2001 From: Sergey Zigachev Date: Sun, 28 Jan 2024 11:41:55 +0500 Subject: [PATCH] devel/libudev-devd: adjust drm path --- .../devel/libudev-devd/dragonfly/patch-udev-utils.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ports/devel/libudev-devd/dragonfly/patch-udev-utils.c diff --git a/ports/devel/libudev-devd/dragonfly/patch-udev-utils.c b/ports/devel/libudev-devd/dragonfly/patch-udev-utils.c new file mode 100644 index 000000000000..77bed59b0c61 --- /dev/null +++ b/ports/devel/libudev-devd/dragonfly/patch-udev-utils.c @@ -0,0 +1,12 @@ +--- udev-utils.c.orig 2023-01-16 23:20:51 UTC ++++ udev-utils.c +@@ -843,7 +843,7 @@ create_drm_handler(struct udev_device *u + + /* Get the hw.dri..busid entry */ + realpath(devpath, devbuf); +- if (sscanf(devbuf, "/dev/drm/%d", &cardnum) != 1) ++ if (sscanf(devbuf, "/dev/dri/card%d", &cardnum) != 1) + return; + + snprintf(buf, sizeof(buf), "hw.dri.%d.busid", cardnum); +