ports/109184: Recent upgrade of accessx accidently deleted some patches

Stephen Montgomery-Smith stephen at cauchy.math.missouri.edu
Thu Feb 15 01:00:13 UTC 2007


>Number:         109184
>Category:       ports
>Synopsis:       Recent upgrade of accessx accidently deleted some patches
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 15 01:00:12 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Stephen Montgomery-Smith
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD cauchy 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Feb 9 19:34:31 CST 2007 stephen at cauchy:/usr/obj/usr/src/sys/cauchy i386


	
>Description:

The x11/accessx port was just upgraded to 0.951.

But patch-Access.C and patch-Access.h were accidently deleted, and they 
shouldn't have been.

>How-To-Repeat:
	
>Fix:

Put this into /usr/ports/x11/accessx/files

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	patch-Access.C
#	patch-Access.h
#
echo x - patch-Access.C
sed 's/^X//' >patch-Access.C << 'END-of-patch-Access.C'
X--- Access.C.orig	Tue Mar 13 23:39:55 2001
X+++ Access.C	Tue Jan 30 22:18:00 2007
X@@ -21,6 +21,8 @@
X #include <X11/XKBlib.h>
X #include "Access.h"
X 
X+using namespace std;
X+
X //
X // Access()
X //
X@@ -152,7 +154,7 @@
X     //Get the state of the keyboard.
X 
X     XkbDescPtr xkb = XkbGetMap(display, 0, XkbUseCoreKbd);
X-    if ((int)xkb == BadAlloc || xkb == NULL)
X+    if (xkb == NULL)
X       {
X 	return 5; /*AccessKeyboardQueryFailure;*/
X       }
X@@ -261,7 +263,7 @@
X     //Get the state of the keyboard.
X 
X     XkbDescPtr xkb = XkbGetMap(display, 0, XkbUseCoreKbd);
X-    if ((int)xkb == BadAlloc || xkb == NULL)
X+    if (xkb == NULL)
X       {
X 	return 5; /*AccessKeyboardQueryFailure;*/
X       }
END-of-patch-Access.C
echo x - patch-Access.h
sed 's/^X//' >patch-Access.h << 'END-of-patch-Access.h'
X--- Access.h-orig	Sun Nov 17 19:34:23 2002
X+++ Access.h	Sun Nov 17 19:34:34 2002
X@@ -20,7 +20,7 @@
X  *
X  */
X 
X-#include <iostream.h>
X+#include <iostream>
X #include <math.h>
X 
X inline char* onoroff(int val)
END-of-patch-Access.h
exit


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



More information about the freebsd-ports-bugs mailing list