Index: head/graphics/libdrm/Makefile =================================================================== --- head/graphics/libdrm/Makefile (revision 400651) +++ head/graphics/libdrm/Makefile (revision 400652) @@ -1,67 +1,74 @@ # Created by: lesi@FreeBSD.org # $FreeBSD$ PORTNAME= libdrm PORTVERSION= 2.4.65 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= graphics x11 MASTER_SITES= http://dri.freedesktop.org/libdrm/ MAINTAINER= x11@FreeBSD.org COMMENT= Userspace interface to kernel Direct Rendering Module services LIB_DEPENDS= libpciaccess.so:${PORTSDIR}/devel/libpciaccess \ libpthread-stubs.so:${PORTSDIR}/devel/libpthread-stubs USES= libtool pkgconfig tar:bzip2 GNU_CONFIGURE= yes USE_LDCONFIG= yes INSTALL_TARGET= install-strip OPTIONS_DEFINE= MANPAGES .if defined(PACKAGE_BUILDING) OPTIONS_DEFAULT+= MANPAGES .endif USES+= gmake .include # KMS support in the kernel is only build on these archs, disable others .if ${ARCH} == "amd64" || ${ARCH} == "i386" CONFIGURE_ARGS+=--enable-libkms PLIST_SUB+= KMS="" NOUVEAU="" .else CONFIGURE_ARGS+=--disable-libkms PLIST_SUB+= KMS="@comment " NOUVEAU="@comment " .endif .if ${PORT_OPTIONS:MMANPAGES} BUILD_DEPENDS+= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl USE_GNOME+= libxslt:build PLIST_SUB+= MAN="" .else CONFIGURE_ARGS+=--disable-manpages PLIST_SUB+= MAN="@comment " .endif CONFIGURE_ARGS+=--disable-vmwgfx .if ${ARCH} == amd64 || ${ARCH} == i386 PLIST_SUB+= INTEL_DRIVER="" PLIST_SUB+= RADEON_DRIVERS="" .elif ${ARCH} == ia64 || ${ARCH} == powerpc || ${ARCH} == powerpc64 PLIST_SUB+= INTEL_DRIVER="@comment " PLIST_SUB+= RADEON_DRIVERS="" .else PLIST_SUB+= INTEL_DRIVER="@comment " PLIST_SUB+= RADEON_DRIVERS="@comment " +.endif + +# This variable is not for users. So use a non-default name, intended for +# people working on DRM kernel module development. +.if !defined(LIBDRM_SKIP_RETURN_PATCH) +EXTRA_PATCHES+= ${FILESDIR}/extra-xf86drm.c .endif pre-patch: @${REINPLACE_CMD} 's|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|g; \ s,i?86|x86_64),i?86|amd64|x86_64),g' \ ${WRKSRC}/configure .include Index: head/graphics/libdrm/files/extra-xf86drm.c =================================================================== --- head/graphics/libdrm/files/extra-xf86drm.c (nonexistent) +++ head/graphics/libdrm/files/extra-xf86drm.c (revision 400652) @@ -0,0 +1,19 @@ +Error code 512 is being leaked from kernel space. While it should be +converted to either EINTR or EAGAIN in the kernel. Teach libdrm to do this +for now. Newer kernel modules will have this fixed included. + +dragonfly fixed this issue in, +http://gitweb.dragonflybsd.org/dragonfly.git/commit/b922632f623ee2cc2c1346bb3a6894a7756676aa +which will be included in the 4.4 release when it is released. + +--- xf86drm.c.orig 2015-11-02 12:26:19.910518000 +0100 ++++ xf86drm.c 2015-11-02 12:27:10.575894000 +0100 +@@ -174,7 +174,7 @@ + + do { + ret = ioctl(fd, request, arg); +- } while (ret == -1 && (errno == EINTR || errno == EAGAIN)); ++ } while (ret == -1 && (errno == EINTR || errno == EAGAIN || errno == 512)); + return ret; + } + Property changes on: head/graphics/libdrm/files/extra-xf86drm.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +1 \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property