When building x11-drivers/xorgxrdp in Poudriere, the build fails with 'drm.h' file not found error: ... Making all in xrdpdev /bin/sh ../libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I.. -isystem /usr/local/include -I/usr/local/include/xorg -fvisibility=hidden -I/usr/local/include/pixman-1 -I/wrkdirs/usr/ports/x11-drivers/xorgxrdp/work/xrdp-0.10.1/common -DPACKAGE_VERSION_MAJOR=0 -DPACKAGE_VERSION_MINOR=10 -DPACKAGE_VERSION_PATCHLEVEL=2 -I../module -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wall -Wwrite-strings -MT xrdpdev.lo -MD -MP -MF .deps/xrdpdev.Tpo -c -o xrdpdev.lo xrdpdev.c libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -isystem /usr/local/include -I/usr/local/include/xorg -fvisibility=hidden -I/usr/local/include/pixman-1 -I/wrkdirs/usr/ports/x11-drivers/xorgxrdp/work/xrdp-0.10.1/common -DPACKAGE_VERSION_MAJOR=0 -DPACKAGE_VERSION_MINOR=10 -DPACKAGE_VERSION_PATCHLEVEL=2 -I../module -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wall -Wwrite-strings -MT xrdpdev.lo -MD -MP -MF .deps/xrdpdev.Tpo -c xrdpdev.c -fPIC -DPIC -o .libs/xrdpdev.o xrdpdev.c:49:10: fatal error: 'drm.h' file not found 49 | #include <drm.h> | ^~~~~~~ 1 error generated. *** Error code 1 ...
Should be resolved at d20b5abe394e5f2a928b69818d07ee8c0149166f.
It is still failing to build as of 08/05
report with commit hash, not date.
Also attach the full poudriere log, not copy & paste in comment.
Created attachment 252538 [details] xorgxrdp-0.10.2.log It builds successfully for me at aa1abe685f. It seems to be your local issue.
It can be built by default, but will fail if the options are changed. $ cat /usr/local/etc/poudriere.d/make.conf x11-drivers_xorgxrdp_UNSET+= DRI3
Thanks. Anyway, I'm still waiting for the original reporter's log.
(In reply to mew14930xvi from comment #7) Exactly, with DRI3 UNSET, it fails to build. It will build with the defaults.
Created attachment 252554 [details] Build log Build log attached as requested.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=e714b6a4c526c57f37adf76efa629d065b4e3290 commit e714b6a4c526c57f37adf76efa629d065b4e3290 Author: Koichiro Iwao <meta@FreeBSD.org> AuthorDate: 2024-08-07 02:17:26 +0000 Commit: Koichiro Iwao <meta@FreeBSD.org> CommitDate: 2024-08-07 02:23:40 +0000 x11-drivers/xorgxrdp: Fix build when DRI3=off by applying patch from upstream. While here, adjust BUILD_DEPENDS for DRI3. PR: 280616 Obtained from: https://github.com/neutrinolabs/xorgxrdp/pull/330 x11-drivers/xorgxrdp/Makefile | 4 +++- x11-drivers/xorgxrdp/distinfo | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)
This is an upstream issue and has been resolved in upstream. I have backported the patch from upstream. Could you test again?
(In reply to Koichiro Iwao from comment #12) I have changed my x11-drivers_xorgxrdp/options to: # Options for xorgxrdp-0.10.2 _OPTIONS_READ=xorgxrdp-0.10.2 _FILE_COMPLETE_OPTIONS_LIST=DEBUG DRI3 OPTIONS_FILE_UNSET+=DEBUG OPTIONS_FILE_UNSET+=DRI3 The next build is scheduled for 08:54 EDT. I will let you know how it goes!
x11-drivers/xorgxrdp built successfully