Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jun 2004 14:01:17 +0700 (NOVST)
From:      Alexey Dokuchaev <danfe@regency.nsu.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/68162: PORT UNBREAK: x11/nvidia-driver
Message-ID:  <200406210701.i5L71H0R057578@regency.nsu.ru>
Resent-Message-ID: <200406210710.i5L7ANrw016617@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         68162
>Category:       ports
>Synopsis:       PORT UNBREAK: x11/nvidia-driver
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 21 07:10:23 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Alexey Dokuchaev
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
CNIT NSU
>Environment:
System: FreeBSD regency.nsu.ru 4.9-STABLE FreeBSD 4.9-STABLE #1: Wed Mar 3 13:17:54 NOVT 2004 root@regency.nsu.ru:/usr/src/sys/compile/REGENCY i386
>Description:
Since pkh's recent dev_t/struct cdev changes, nvidia-driver no longer
compiles on systems after 502115.  This patch fixes this misbehavior.
>How-To-Repeat:
Try to compile nvidia-driver on recent -CURRENT.
>Fix:
Apply this fix to port's Makefile:

%%%
Index: Makefile
===================================================================
RCS file: /home/pub/ftp/pub/FreeBSD/development/FreeBSD-CVS/ports/x11/nvidia-driver/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- Makefile	20 Jun 2004 08:58:35 -0000	1.14
+++ Makefile	20 Jun 2004 15:03:28 -0000
@@ -82,6 +82,11 @@
 . if ${OSVERSION} > 501106
 	@${REINPLACE_CMD} 's/PCIR_HEADERTYPE/PCIR_HDRTYPE/' ${WRKSRC}/src/nvidia_sysctl.c
 . endif
+. if ${OSVERSION} > 502115 
+.  for f in nv-freebsd.h nvidia_ctl.c nvidia_dev.c nvidia_subr.c
+	@${REINPLACE_CMD} 's/dev_t/struct cdev \*/g' ${WRKSRC}/src/${f}
+.  endfor
+. endif
 .endif
 
 pre-install:
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406210701.i5L71H0R057578>