I see some X realated packages depends on KMS or enables KMS features by default. KMS is now available only for Linux. So we should disable or unKEYWORD the packages. x11-libs/libdrm enables KMS related features by default, which cause build failure on Gentoo/FreeBSD (missing ERESTART definition). Also >=x11-drivers/xf86-video-intel-2.10 requires KMS but still KEYWORDed as "~x86-fbsd". I didn't check the result because I don't have the hardware, x11-drivers/xf86-video-ati also enables the feature by default. Though the package emerged without any errors, I suspect the driver works well on FreeBSD. Reproducible: Always Steps to Reproduce: 1. emerge libkms-2.4.20 Actual Results: You may see build error with "missing ERESTART". You might avoid the error by adding "$(use_enable kernel_linux libkms)" to CONFIGURE_OPTIONS variable in the ebuild file. Expected Results: We should consider using KMS with "kernel_Linux" flag.
KMS is new way. Add that kernel_linux to all packages that supports it optionaly now. In later horizont you need to get kms into bsd, because upstream removes UMS where can.
I've fixed libdrm with remi's ack according to your suggestion; As for -intel, it emerges fine here but I don't have the hardware, apparently the latest working version on FreeBSD was 2.7.1 which is gone, could you please give a try to the versions in the tree and report if it's working ? I suspect it won't work and we'll have to drop -intel support on FreeBSD :(
I've tried. -intel-2.10.0-r1, -2.11.0: never work without KMS. -2.8.1, -2.9.1: work but without drm.
(In reply to comment #3) > I've tried. > -intel-2.10.0-r1, -2.11.0: never work without KMS. I've marked those two -x86-fbsd anything else to do or can we close this bug now?
(In reply to comment #4) > > I've tried. > > -intel-2.10.0-r1, -2.11.0: never work without KMS. > > I've marked those two -x86-fbsd Thanks, > anything else to do or can we close this bug now? I see "--enable-kms" in xf86-video-ati-6.13.0.ebuild. Though the ebuild still be compiled well and I don't check on the real hardware, I think dropping the option would be better. # and also x11-libs/libdrm enables udev, vmwgfx, nouveau and not disables intel. # I suspect these options work on FreeBSD...
*** Bug 433760 has been marked as a duplicate of this bug. ***
I have no idea what's preventing this from being closed for nearly seven years, but there's nothing for x11@ to do.
I just noticed KEYWORDS=-x86-fbsd in xf86-video-intel. It has ~amd64-fbsd, so this doesn't make sense. I've changed it to ~x86-fbsd and assume KMS has long been working on FreeBSD. commit 88a77754ec22d7033bbb4cf8afdf689149bce966 Author: Matt Turner <mattst88@gentoo.org> Date: Wed Mar 15 21:42:54 2017 -0700 x11-drivers/xf86-video-intel: Added ~x86-fbsd. Bug: https://bugs.gentoo.org/314827