Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 314827 - KMS enabled for FreeBSD (or other non-Linux OS)
Summary: KMS enabled for FreeBSD (or other non-Linux OS)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
: 433760 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-12 15:10 UTC by Naohiro Aota
Modified: 2017-03-16 04:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Naohiro Aota gentoo-dev 2010-04-12 15:10:05 UTC
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.
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2010-04-13 10:10:28 UTC
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.
Comment 2 Alexis Ballier gentoo-dev 2010-04-13 10:18:58 UTC
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 :(
Comment 3 Naohiro Aota gentoo-dev 2010-04-14 22:55:10 UTC
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.
Comment 4 Alexis Ballier gentoo-dev 2010-04-25 16:34:16 UTC
(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?
Comment 5 Naohiro Aota gentoo-dev 2010-04-27 22:53:36 UTC
(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...
 
Comment 6 Matt Turner gentoo-dev 2015-02-22 21:58:10 UTC
*** Bug 433760 has been marked as a duplicate of this bug. ***
Comment 7 Matt Turner gentoo-dev 2017-02-14 19:53:50 UTC
I have no idea what's preventing this from being closed for nearly seven years, but there's nothing for x11@ to do.
Comment 8 Matt Turner gentoo-dev 2017-03-16 04:43:30 UTC
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