FreeBSD Bugzilla – Attachment 166943 Details for
Bug 207162
[PATCH] games/xmris: Fix runtime error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
games_xmris.diff
games_xmris.diff (text/plain), 10.47 KB, created by
tkato432
on 2016-02-13 18:33:07 UTC
(
hide
)
Description:
games_xmris.diff
Filename:
MIME Type:
Creator:
tkato432
Created:
2016-02-13 18:33:07 UTC
Size:
10.47 KB
patch
obsolete
>diff -urN /usr/ports/games/xmris/Makefile games/xmris/Makefile >--- /usr/ports/games/xmris/Makefile 2015-08-24 04:03:51.091031000 +0900 >+++ games/xmris/Makefile 2016-02-14 00:00:00.000000000 +0900 >@@ -11,17 +11,14 @@ > MAINTAINER= ports@FreeBSD.org > COMMENT= Version of the Mr Do video arcade game for X11 > >-BROKEN= fails to run >- > USES= imake tar:tgz > USE_XORG= x11 xext xaw xmu xt sm ice >-MAKE_ARGS= XAPPLOADDIR=${PREFIX}/lib/X11/app-defaults >-ALL_TARGET= xmris xmred >+ALL_TARGET= xmris xmred Xmris.ad > > DESKTOP_ENTRIES="XMRis" "" "" "${PORTNAME}" "" "" > > post-build: >- @${LN} -sf Xmris-ad.src ${WRKSRC}/Xmris >+ @${LN} -sf Xmris.ad ${WRKSRC}/Xmris > > do-install: > .for i in xmred xmris >@@ -37,9 +34,9 @@ > @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/app-defaults > (cd ${WRKSRC} && ${INSTALL_DATA} Xmris \ > ${STAGEDIR}${PREFIX}/lib/X11/app-defaults) >- @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/xmris >- (cd ${WRKSRC} && ${INSTALL_DATA} *.gdn \ >- ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/xmris) > @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xmris >+ (cd ${WRKSRC} && ${INSTALL_DATA} *.gdn \ >+ ${STAGEDIR}${PREFIX}/lib/X11/xmris) >+ @${MKDIR} ${STAGEDIR}/var/games/xmris > > .include <bsd.port.mk> >diff -urN /usr/ports/games/xmris/files/patch-Imakefile games/xmris/files/patch-Imakefile >--- /usr/ports/games/xmris/files/patch-Imakefile 1970-01-01 09:00:00.000000000 +0900 >+++ games/xmris/files/patch-Imakefile 2016-02-14 00:00:00.000000000 +0900 >@@ -0,0 +1,23 @@ >+--- Imakefile.orig 1995-12-22 12:05:52 UTC >++++ Imakefile >+@@ -59,7 +59,7 @@ EXTRA_LOAD_FLAGS = -lV3 >+ XCOMM system environment >+ XCOMM >+ XCOMM don't you have gettimeofday? >+-TIME = >++TIME = -DPOSIX >+ XCOMM TIME = -DUSETIME >+ XCOMM don't you have lockf or flock? >+ LOCK = >+@@ -71,9 +71,9 @@ XCOMM >+ /* #define thefont "-*-courier-*-r-*-*-18-*-*-*-m-*-*-*" */ >+ XCOMM where is the high score file? >+ XCOMM SCORE = $(LOCAL)/lib/$(APP) >+-SCORE = $(LIBDIR)/$(APP) >++SCORE = /var/games/$(APP) >+ /* to install default gardens not in app_defaults/$(APP) >+-/* #define InstallDefaultGardens $(SCORE)/gardens */ >++#define InstallDefaultGardens $(LIBDIR)/$(APP) >+ >+ XCOMM The following defines are needed for some implementations and/or sites. >+ XCOMM It is xmkmf's job to get these right in the first place. >diff -urN /usr/ports/games/xmris/files/patch-Xmris-ad.src games/xmris/files/patch-Xmris-ad.src >--- /usr/ports/games/xmris/files/patch-Xmris-ad.src 1970-01-01 09:00:00.000000000 +0900 >+++ games/xmris/files/patch-Xmris-ad.src 2016-02-14 00:00:00.000000000 +0900 >@@ -0,0 +1,11 @@ >+--- Xmris-ad.src.orig 1995-12-22 12:05:55 UTC >++++ Xmris-ad.src >+@@ -18,7 +18,7 @@ >+ *Monochrome: no >+ *Gender: he >+ *Random: no >+-*Busywait: no >++*Busywait: yes >+ *UserName: no >+ *Font: FONT >+ *Static: no >diff -urN /usr/ports/games/xmris/files/patch-aa games/xmris/files/patch-aa >--- /usr/ports/games/xmris/files/patch-aa 2015-08-24 04:03:51.116327000 +0900 >+++ games/xmris/files/patch-aa 1970-01-01 09:00:00.000000000 +0900 >@@ -1,13 +0,0 @@ >---- all.c.orig Fri Dec 22 13:05:56 1995 >-+++ all.c Sat Oct 19 22:49:11 2002 >-@@ -637,8 +637,10 @@ >- * returns the error string, or NULL >- */ >- { >-+#ifndef __FreeBSD__ >- extern int sys_nerr; >- extern char *sys_errlist[]; >-+#endif >- >- int error; >- >diff -urN /usr/ports/games/xmris/files/patch-ab games/xmris/files/patch-ab >--- /usr/ports/games/xmris/files/patch-ab 2015-08-24 04:03:51.124772000 +0900 >+++ games/xmris/files/patch-ab 1970-01-01 09:00:00.000000000 +0900 >@@ -1,19 +0,0 @@ >-*** Xmris-ad.src.orig Fri Dec 22 04:05:55 1995 >---- Xmris-ad.src Thu Dec 5 16:18:55 1996 >-*************** >-*** 18,24 **** >- *Monochrome: no >- *Gender: he >- *Random: no >-! *Busywait: no >- *UserName: no >- *Font: FONT >- *Static: no >---- 18,24 ---- >- *Monochrome: no >- *Gender: he >- *Random: no >-! *Busywait: yes >- *UserName: no >- *Font: FONT >- *Static: no >diff -urN /usr/ports/games/xmris/files/patch-all.c games/xmris/files/patch-all.c >--- /usr/ports/games/xmris/files/patch-all.c 1970-01-01 09:00:00.000000000 +0900 >+++ games/xmris/files/patch-all.c 2016-02-14 00:00:00.000000000 +0900 >@@ -0,0 +1,13 @@ >+--- all.c.orig 1995-12-22 12:05:56 UTC >++++ all.c >+@@ -637,8 +637,10 @@ FUNCARG((stream), >+ * returns the error string, or NULL >+ */ >+ { >++#ifndef __FreeBSD__ >+ extern int sys_nerr; >+ extern char *sys_errlist[]; >++#endif >+ >+ int error; >+ >diff -urN /usr/ports/games/xmris/files/patch-draw.c games/xmris/files/patch-draw.c >--- /usr/ports/games/xmris/files/patch-draw.c 1970-01-01 09:00:00.000000000 +0900 >+++ games/xmris/files/patch-draw.c 2016-02-14 00:00:00.000000000 +0900 >@@ -0,0 +1,20 @@ >+--- draw.c.orig 1995-12-22 12:07:19 UTC >++++ draw.c >+@@ -1030,14 +1030,14 @@ ARGSEP char CONST *parent >+ stream = fopen(filename, "r"); >+ } >+ if(!stream) >+- /*{{{ try in app-defaults/xmris/<file>*/ >++ /*{{{ try in xmris/<file>*/ >+ { >+ char CONST *lib; >+ >+ lib = XtResolvePathname(display.display, >+- "app-defaults/xmris", name, NULL, NULL, NULL, 0, NULL); >++ "xmris", name, NULL, NULL, NULL, 0, NULL); >+ if(!lib) >+- lib = XtResolvePathname(display.display, "app-defaults/xmris", >++ lib = XtResolvePathname(display.display, "xmris", >+ name, FILE_SUFFIX, NULL, NULL, 0, NULL); >+ if(!lib && data.dir) >+ lib = XtResolvePathname(display.display, data.dir, name, >diff -urN /usr/ports/games/xmris/files/patch-scoring.c games/xmris/files/patch-scoring.c >--- /usr/ports/games/xmris/files/patch-scoring.c 1970-01-01 09:00:00.000000000 +0900 >+++ games/xmris/files/patch-scoring.c 2016-02-14 00:00:00.000000000 +0900 >@@ -0,0 +1,20 @@ >+--- scoring.c.orig 1995-12-22 12:08:10 UTC >++++ scoring.c >+@@ -208,7 +208,7 @@ ARGSEP uid_t uid >+ { >+ if(current_uid != effective_uid) >+ set_euid((current_uid = effective_uid)); >+- filed = open(locking_file, O_CREAT | O_EXCL, 0666); >++ filed = open(locking_file, O_CREAT | O_EXCL, 0660); >+ if(filed >= 0) >+ break; >+ if(errno == EINTR) >+@@ -259,7 +259,7 @@ ARGSEP uid_t uid >+ #endif /* USELOCKFILE */ >+ #ifndef TRANSPUTER >+ if(stream && flag & 4 && effective_uid == real_uid) >+- chmod(name, 0666); /* not everyone has fchmod */ >++ chmod(name, 0660); /* not everyone has fchmod */ >+ if(current_uid != real_uid) >+ set_euid((current_uid = real_uid)); >+ #endif /* TRANSPUTER */ >diff -urN /usr/ports/games/xmris/files/patch-timer.c games/xmris/files/patch-timer.c >--- /usr/ports/games/xmris/files/patch-timer.c 1970-01-01 09:00:00.000000000 +0900 >+++ games/xmris/files/patch-timer.c 2016-02-14 00:00:00.000000000 +0900 >@@ -0,0 +1,11 @@ >+--- timer.c.orig 1995-12-22 12:08:21 UTC >++++ timer.c >+@@ -85,7 +85,7 @@ >+ sigprocmask(SIG_BLOCK, &temp, (maskp)); \ >+ } >+ # define signal_release(maskp) sigprocmask(SIG_SETMASK, maskp, (MASK *)NULL) >+-# define signal_pause(maskp) sigpause(*(maskp)) >++# define signal_pause(maskp) sigsuspend(maskp) >+ #else >+ # ifdef __hpux /* hpux is a weird mixture of BSD & SYSV */ >+ /* don't know if this is right */ >diff -urN /usr/ports/games/xmris/files/patch-xmred.man games/xmris/files/patch-xmred.man >--- /usr/ports/games/xmris/files/patch-xmred.man 1970-01-01 09:00:00.000000000 +0900 >+++ games/xmris/files/patch-xmred.man 2016-02-14 00:00:00.000000000 +0900 >@@ -0,0 +1,29 @@ >+--- xmred.man.orig 1995-12-22 12:08:24 UTC >++++ xmred.man >+@@ -1,13 +1,13 @@ >+-. Copyright (C) 1993 Nathan Sidwell >+-. RCS $Id: xmred.man,v 4.6 1995/12/14 13:53:27 nathan Exp $ >++.\" Copyright (C) 1993 Nathan Sidwell >++.\" RCS $Id: xmred.man,v 4.6 1995/12/14 13:53:27 nathan Exp $ >+ .TH XMRED 6 "20 December 1993" "X Version 11" >+-.IX xmred#(n) "" "\fLxmred\fP(n)" >++.\" .IX xmred#(n) "" "\fLxmred\fP(n)" >+ .SH NAME >+ xmred - garden editor for xmris >+ .SH SYNOPSIS >+ .B xmred >+ [-option ...] [-toolkitoption ...] >+-.IX xmred#(n) "" "\fLxmred\fP(n) \(em video game editor" >++.\" .IX xmred#(n) "" "\fLxmred\fP(n) \(em video game editor" >+ .SH DESCRIPTION >+ .PP >+ Mr Ed is a tool for creating and editing alternate gardens for Mr Is. >+@@ -70,7 +70,7 @@ This controls where the initial path is. >+ of a centre and four edges. Depending on the exact location of the pointer, >+ you will select either the centre, or an edge. Filling a path will place a >+ random apple in the filled location. The four locations immediately below the >+-'EXTRA' letters must be clear. >++\fIEXTRA\fR letters must be clear. >+ .TP >+ .B Player >+ This controls where the player starts from. There must be exactly one >diff -urN /usr/ports/games/xmris/files/patch-xmris.man games/xmris/files/patch-xmris.man >--- /usr/ports/games/xmris/files/patch-xmris.man 1970-01-01 09:00:00.000000000 +0900 >+++ games/xmris/files/patch-xmris.man 2016-02-14 00:00:00.000000000 +0900 >@@ -0,0 +1,31 @@ >+--- xmris.man.orig 1995-12-22 12:08:29 UTC >++++ xmris.man >+@@ -1,7 +1,7 @@ >+-. Copyright (C) 1995, 1994, 1993, 1992 Nathan Sidwell >+-. RCS $Id: xmris.man,v 4.17 1995/12/14 13:53:27 nathan Exp $ >++.\" Copyright (C) 1995, 1994, 1993, 1992 Nathan Sidwell >++.\" RCS $Id: xmris.man,v 4.17 1995/12/14 13:53:27 nathan Exp $ >+ .TH XMRIS 6 "12 December 1995" "X Version 11" >+-.IX xmris#(n) "" "\fLxmris\fP(n)" >++.\" .IX xmris#(n) "" "\fLxmris\fP(n)" >+ .SH NAME >+ xmris - video game for X >+ .SH SYNOPSIS >+@@ -10,7 +10,7 @@ xmris - video game for X >+ .LP >+ .B xmsit >+ [-option ...] [-toolkitoption ...] >+-.IX xmris#(n) "" "\fLxmris\fP(n) \(em video game" >++.\" .IX xmris#(n) "" "\fLxmris\fP(n) \(em video game" >+ .SH DESCRIPTION >+ .PP >+ Mr Is is a version of the Mr Do video arcade game for the X Window >+@@ -986,7 +986,7 @@ requested time. This has to be detected, >+ .PP >+ The visual class name conversion is performed by a standard toolkit >+ routine. It accepts only American spelling, the English spelling of >+-'grey' and 'colour' are not allowed. >++\fIgrey\fR and \fIcolour\fR are not allowed. >+ .SH COPYRIGHT >+ Copyright (C) 1995, 1994, 1993, 1992 Nathan Sidwell. >+ .SH AUTHOR >diff -urN /usr/ports/games/xmris/pkg-plist games/xmris/pkg-plist >--- /usr/ports/games/xmris/pkg-plist 2016-01-28 05:03:06.899752000 +0900 >+++ games/xmris/pkg-plist 2016-02-14 00:00:00.000000000 +0900 >@@ -1,16 +1,12 @@ >-@group games >-@mode 2555 >-bin/xmris >-bin/xmsit >-bin/xmred >-@mode >-@group >+@(,games,2555) bin/xmris >+@(,games,2555) bin/xmsit >+@(,games,2555) bin/xmred > man/man6/xmred.6.gz > man/man6/xmris.6.gz > man/man6/xmsit.6.gz > lib/X11/app-defaults/Xmris >-lib/X11/app-defaults/xmris/alphabet.gdn >-lib/X11/app-defaults/xmris/digits.gdn >-lib/X11/app-defaults/xmris/puzzle.gdn >-lib/X11/app-defaults/xmris/xmred.gdn >-@dir(,games,775) lib/X11/xmris >+lib/X11/xmris/alphabet.gdn >+lib/X11/xmris/digits.gdn >+lib/X11/xmris/puzzle.gdn >+lib/X11/xmris/xmred.gdn >+@dir(,games,755) /var/games/xmris
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 207162
: 166943