mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-17 08:01:36 +00:00
- Fix segfaults, unbreak
- Add missed xorg dependency PR: ports/118808 Submitted by: Andrew Reilly <areilly@bigpond.net.au>
This commit is contained in:
parent
5b50c3211d
commit
1fffccb9b2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=215227
@ -27,7 +27,7 @@ LIB_DEPENDS= cairo.2:${PORTSDIR}/graphics/cairo \
|
||||
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
||||
png.5:${PORTSDIR}/graphics/png
|
||||
|
||||
USE_XORG= xft x11 xrender
|
||||
USE_XORG= xft x11 xrender xaw
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --prefix=${PREFIX} --enable-shared --enable-xft --enable-gl \
|
||||
--enable-xrender --enable-cairo --with-x --enable-pthread \
|
||||
@ -57,8 +57,6 @@ PLTPATCHES= # none yet for this version
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
BROKEN= Fails to install (signal 11)
|
||||
|
||||
.if defined(WITH_CGC)
|
||||
ALL_TARGET= both
|
||||
INSTALL_TARGET= install-both
|
||||
|
22
lang/drscheme/files/patch-sighand.c
Normal file
22
lang/drscheme/files/patch-sighand.c
Normal file
@ -0,0 +1,22 @@
|
||||
--- mzscheme/gc2/sighand.c.orig 2007-04-29 04:08:24.000000000 +0200
|
||||
+++ mzscheme/gc2/sighand.c 2008-06-19 04:36:23.000000000 +0200
|
||||
@@ -27,13 +27,18 @@
|
||||
/* As of 2007/04/28, this is a guess for NetBSD and OpenBSD! */
|
||||
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
# include <signal.h>
|
||||
+# include <sys/param.h>
|
||||
void fault_handler(int sn, siginfo_t *si, void *ctx)
|
||||
{
|
||||
if (!designate_modified(si->si_addr))
|
||||
abort();
|
||||
}
|
||||
# define NEED_SIGACTION
|
||||
-# define USE_SIGACTON_SIGNAL_KIND SIGBUS
|
||||
+# if defined(__FreeBSD__) && (__FreeBSD_version < 700000)
|
||||
+# define USE_SIGACTON_SIGNAL_KIND SIGBUS
|
||||
+# else
|
||||
+# define USE_SIGACTON_SIGNAL_KIND SIGSEGV
|
||||
+# endif
|
||||
#endif
|
||||
|
||||
/* ========== Solaris signal handler ========== */
|
28
lang/drscheme/files/patch-wx_keym.cxx
Normal file
28
lang/drscheme/files/patch-wx_keym.cxx
Normal file
@ -0,0 +1,28 @@
|
||||
diff -ur mred/wxme/wx_keym.cxx mred/wxme/wx_keym.cxx
|
||||
--- mred/wxme/wx_keym.cxx 2007-08-03 02:56:05.000000000 +1000
|
||||
+++ mred/wxme/wx_keym.cxx 2007-12-18 17:19:10.000000000 +1100
|
||||
@@ -512,14 +512,20 @@
|
||||
if (i >= MAX_BUF - 1)
|
||||
return 0;
|
||||
buffer[i] = keyseq[kp];
|
||||
- if (buffer[i] < 128)
|
||||
- buffer[i] = tolower(buffer[i]);
|
||||
+ if (buffer[i] < 128) {
|
||||
+ wxchar t;
|
||||
+ t = tolower(buffer[i]);
|
||||
+ buffer[i] = t;
|
||||
+ }
|
||||
}
|
||||
buffer[i] = 0;
|
||||
code = 0;
|
||||
if (buffer[1]) {
|
||||
- if (buffer[0] < 128)
|
||||
- buffer[0] = tolower(buffer[0]);
|
||||
+ if (buffer[0] < 128) {
|
||||
+ wxchar t;
|
||||
+ t = tolower(buffer[0]);
|
||||
+ buffer[0] = t;
|
||||
+ }
|
||||
for (i = 0; keylist[i].str; i++) {
|
||||
if (!wx_c_strcmp(buffer, keylist[i].str)) {
|
||||
code = keylist[i].code;
|
Loading…
Reference in New Issue
Block a user