pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/48735: x11/libdrm 2.4.53 libkms_vmwgfx.c fix for ERESTART undefined for userland on DragonFly 3.7
>Number: 48735
>Category: pkg
>Synopsis: x11/libdrm 2.4.53 libkms_vmwgfx.c fix for ERESTART undefined
>for userland on DragonFly 3.7
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Apr 12 05:25:00 +0000 2014
>Originator: David Shao
>Release: DragonFly 3.7-DEVELOPMENT
>Organization:
>Environment:
DragonFly 3.7-DEVELOPMENT DragonFly v3.7.1.1070.g15160-DEVELOPMENT #2: Fri Apr
11 20:47:07 PDT 2014 xxxxx@:/usr/obj/usr/src/sys/X86_64_GENERIC x86_64
>Description:
For current cvs pkgsrc on DragonFly 3.7-DEVELOPMENT and perhaps other BSDs,
ERESTART is not defined for userland programs instead being defined in errno.h
only for
#if defined(_KERNEL) || defined(_KERNEL_STRUCTURES)
In any case the DragonFly value of (-1) for ERESTART differs from Linux's. As
DragonFly does not even implement KMS for VMWare vmx graphics its value can
basically be anything as long as it is defined. Without some definition
building libdrm 2.4.53 fails with
Making all in libkms
CC linux.lo
CC intel.lo
CC dumb.lo
CC api.lo
CC vmwgfx.lo
vmwgfx.c: In function 'vmwgfx_bo_create':
vmwgfx.c:107:20: error: 'ERESTART' undeclared (first use in this function)
vmwgfx.c:107:20: note: each undeclared identifier is reported only once for
each function it appears in
>How-To-Repeat:
>Fix:
Adding the following patch and regenerating the checksums with
bmake makepatchsum
allows libdrm to be built. Of course in the DragonFly context the value of 85
is meaningless and can be replaced with almost anything.
$NetBSD$
--- libkms/vmwgfx.c.orig 2013-08-12 18:01:22.000000000 +0000
+++ libkms/vmwgfx.c
@@ -38,6 +38,10 @@
#include "xf86drm.h"
#include "vmwgfx_drm.h"
+#ifndef ERESTART
+#define ERESTART 85
+#endif
+
struct vmwgfx_bo
{
struct kms_bo base;
Home |
Main Index |
Thread Index |
Old Index