ports/51996: devel/sdl12: Fix build for older FreeBSD versions.

Michael Nottebrock lofi at lofi.dyndns.org
Fri May 9 09:50:09 UTC 2003


>Number:         51996
>Category:       ports
>Synopsis:       devel/sdl12: Fix build for older FreeBSD versions.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 09 02:50:07 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Michael Nottebrock
>Release:        FreeBSD 5.0-RELEASE-p7 i386
>Organization:
>Environment:
System: FreeBSD lofi.dyndns.org 5.0-RELEASE-p7 FreeBSD 5.0-RELEASE-p7 #0: Sun Mar 30 03:21:55 CEST 2003 lofi at lofi.dyndns.org:/usr/obj/usr/src/sys/LOFI i386


	
>Description:
	Change a patch in the sdl12 port which conditionalizes a
	syscall depending on __FreeBSD_version. The original patch
	hasn't the right value and causes the port to fail with FreeBSD
	versions between (roughly) 4.5 and 4.7.

	Discovered by the KDE-FreeBSD buildcluster (which runs a rather
	old RELENG_4).
>How-To-Repeat:
	
>Fix:

	

--- sdl12.diff begins here ---
diff -urN sdl12.orig/files/patch-joystick::bsd::SDL_sysjoystick.c sdl12/files/patch-joystick::bsd::SDL_sysjoystick.c
--- sdl12.orig/files/patch-joystick::bsd::SDL_sysjoystick.c	Wed Apr  9 06:51:09 2003
+++ sdl12/files/patch-joystick::bsd::SDL_sysjoystick.c	Fri May  9 11:34:13 2003
@@ -43,7 +43,7 @@
  
 -#ifdef USBHID_NEW
 +#ifdef __FreeBSD__
-+# if (__FreeBSD_version >= 470000)
++# if (__FreeBSD_version >= 450004)
 +#  if (__FreeBSD_version <= 500111)
 +	len = hid_report_size(rd, r->rid, repinfo[repind].kind);
 +#  else
--- sdl12.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list