https://bugs.freedesktop.org/show_bug.cgi?id=61269
Priority: medium Bug ID: 61269 Assignee: dri-devel@lists.freedesktop.org Summary: Support libkms on FreeBSD Severity: normal Classification: Unclassified OS: FreeBSD Reporter: bugzilla@tecnocode.co.uk Hardware: All Status: NEW Version: XOrg CVS Component: libdrm Product: DRI
Created attachment 75298 --> https://bugs.freedesktop.org/attachment.cgi?id=75298&action=edit Fix detection of Intel-style atomic primitives on amd64 (patch by Brian Waters)
Series of 3 patches coming up which allow libdrm to be compiled with KMS support on FreeBSD.
https://bugs.freedesktop.org/show_bug.cgi?id=61269
--- Comment #1 from Philip Withnall bugzilla@tecnocode.co.uk --- Created attachment 75299 --> https://bugs.freedesktop.org/attachment.cgi?id=75299&action=edit Add support for FreeBSD’s libkms (patch by Konstantin Belousov)
Originally from: http://people.freebsd.org/~kib/drm/libdrm.2.patch
https://bugs.freedesktop.org/show_bug.cgi?id=61269
--- Comment #2 from Philip Withnall bugzilla@tecnocode.co.uk --- Created attachment 75300 --> https://bugs.freedesktop.org/attachment.cgi?id=75300&action=edit Replace strchrnul() with strchr()
strchrnul() doesn’t exist on FreeBSD, and is simple enough to replace with strchr().
https://bugs.freedesktop.org/show_bug.cgi?id=61269
Niclas Zeising zeising+freedesktop@daemonic.se changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #75300|0 |1 is obsolete| |
--- Comment #3 from Niclas Zeising zeising+freedesktop@daemonic.se --- Created attachment 75312 --> https://bugs.freedesktop.org/attachment.cgi?id=75312&action=edit Add local implementation of strchrnul()
Hi! Attached is a different solution to the strchrnul() issue, it adds a local implementation and a configure check to see if strchrnul() exists in libc. If it does exist in libc, that version will be used instead of the local version.
https://bugs.freedesktop.org/show_bug.cgi?id=61269
Christoph Egger christoph@debian.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #75299|0 |1 is obsolete| |
--- Comment #4 from Christoph Egger christoph@debian.org --- Created attachment 86138 --> https://bugs.freedesktop.org/attachment.cgi?id=86138&action=edit Updated "Add support for FreeBSD’s libkms (patch by Konstantin Belousov)"
Attached is an update to the libkms patch. It adds two small modifications so it works on kfreebsd as well and refreshes against libdrm 2.46. It also adds a small fix (len is used before it is assigned) without which it doesn't work for me
https://bugs.freedesktop.org/show_bug.cgi?id=61269
--- Comment #5 from emaste@freebsd.org --- What's the next step here?
https://bugs.freedesktop.org/show_bug.cgi?id=61269
--- Comment #6 from Emil Velikov emil.l.velikov@gmail.com --- Have either of these two made it to the mailing list [1] ? AFAIK most people do not look for and/or expect patches in bugzilla. Please use git am to generate both patches :)
Thanks Emil
[1] dri-devel@lists.freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=61269
GitLab Migration User gitlab-migration@fdo.invalid changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |MOVED Status|NEW |RESOLVED
--- Comment #7 from GitLab Migration User gitlab-migration@fdo.invalid --- -- GitLab Migration Automatic Message --
This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.
You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/drm/issues/10.
dri-devel@lists.freedesktop.org