1 |
pva 14/06/09 14:12:16 |
2 |
|
3 |
Added: xfig-3.2.5c-crash-on-exit.patch |
4 |
xfig-3.2.5c-darwin.patch xfig-3.2.5c-spelling.patch |
5 |
xfig-3.2.5c-XAW3D1_5E_notlocal.patch |
6 |
Log: |
7 |
Version bump, bug 487712 wrt Martin Walch. Took back ebuild. |
8 |
|
9 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key F1989B07) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 media-gfx/xfig/files/xfig-3.2.5c-crash-on-exit.patch |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xfig/files/xfig-3.2.5c-crash-on-exit.patch?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xfig/files/xfig-3.2.5c-crash-on-exit.patch?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: xfig-3.2.5c-crash-on-exit.patch |
18 |
=================================================================== |
19 |
commit 56f0caaae3cc3fdbf6eaa21fc419c951c53a156d |
20 |
Author: Peter Volkov <peter.volkov@×××××.com> |
21 |
Date: Mon Jun 9 12:36:12 2014 +0400 |
22 |
|
23 |
Fix crash on exit (regression of xfig.3.2.5c) |
24 |
|
25 |
diff --git a/u_free.c b/u_free.c |
26 |
index 18d517a..4a5080f 100755 |
27 |
--- a/u_free.c |
28 |
+++ b/u_free.c |
29 |
@@ -270,8 +270,6 @@ void free_Fonts(void) |
30 |
XUnloadFont(tool_d, nf->fid); |
31 |
if (nf->fstruct != NULL) |
32 |
XFreeFont(tool_d, nf->fstruct); |
33 |
- if (nf->fset != NULL) |
34 |
- XFreeFontSet(tool_d, nf->fset); |
35 |
nf = nf->next; |
36 |
} |
37 |
} |
38 |
|
39 |
|
40 |
|
41 |
1.1 media-gfx/xfig/files/xfig-3.2.5c-darwin.patch |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xfig/files/xfig-3.2.5c-darwin.patch?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xfig/files/xfig-3.2.5c-darwin.patch?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: xfig-3.2.5c-darwin.patch |
47 |
=================================================================== |
48 |
diff --git a/fig.h b/fig.h |
49 |
index ca00aef..a3605b0 100644 |
50 |
--- a/fig.h |
51 |
+++ b/fig.h |
52 |
@@ -375,7 +375,7 @@ extern double drand48(); |
53 |
extern long random(); |
54 |
extern void srandom(unsigned int); |
55 |
|
56 |
-#elif !defined(__osf__) && !defined(__CYGWIN__) && !defined(linux) && !defined(__FreeBSD__) && !defined(__GLIBC__) |
57 |
+#elif !defined(__osf__) && !defined(__CYGWIN__) && !defined(linux) && !defined(__FreeBSD__) && !defined(__DARWIN__) && !defined(__GLIBC__) |
58 |
extern void srandom(int); |
59 |
|
60 |
#endif |
61 |
diff --git a/w_keyboard.c b/w_keyboard.c |
62 |
index 427d60c..03a3f76 100644 |
63 |
--- a/w_keyboard.c |
64 |
+++ b/w_keyboard.c |
65 |
@@ -41,7 +41,7 @@ |
66 |
#define REG_NOERROR 0 |
67 |
#endif |
68 |
|
69 |
-#if defined(__FreeBSD__) && !defined(REG_NOERROR) |
70 |
+#if (defined(__FreeBSD__) || defined(__DARWIN__)) && !defined(REG_NOERROR) |
71 |
#define REG_NOERROR 0 |
72 |
#endif |
73 |
|
74 |
|
75 |
|
76 |
|
77 |
1.1 media-gfx/xfig/files/xfig-3.2.5c-spelling.patch |
78 |
|
79 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xfig/files/xfig-3.2.5c-spelling.patch?rev=1.1&view=markup |
80 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xfig/files/xfig-3.2.5c-spelling.patch?rev=1.1&content-type=text/plain |
81 |
|
82 |
Index: xfig-3.2.5c-spelling.patch |
83 |
=================================================================== |
84 |
#! /bin/sh /usr/share/dpatch/dpatch-run |
85 |
## 31_spelling.dpatch by Roland Rosenfeld <roland@××××××.org> |
86 |
## |
87 |
## All lines beginning with `## DP:' are a description of the patch. |
88 |
## DP: Fix spelling errors in binary. |
89 |
|
90 |
@DPATCH@ |
91 |
diff -urNad xfig~/f_load.c xfig/f_load.c |
92 |
--- xfig~/f_load.c |
93 |
+++ xfig/f_load.c |
94 |
@@ -373,5 +373,5 @@ |
95 |
/* Format error; relevant error message is already delivered */ |
96 |
; |
97 |
else |
98 |
- file_msg("File \"%s\" is not accessable; %s.", file, strerror(err)); |
99 |
+ file_msg("File \"%s\" is not accessible; %s.", file, strerror(err)); |
100 |
} |
101 |
|
102 |
|
103 |
|
104 |
1.1 media-gfx/xfig/files/xfig-3.2.5c-XAW3D1_5E_notlocal.patch |
105 |
|
106 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xfig/files/xfig-3.2.5c-XAW3D1_5E_notlocal.patch?rev=1.1&view=markup |
107 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/xfig/files/xfig-3.2.5c-XAW3D1_5E_notlocal.patch?rev=1.1&content-type=text/plain |
108 |
|
109 |
Index: xfig-3.2.5c-XAW3D1_5E_notlocal.patch |
110 |
=================================================================== |
111 |
From be8cf541743060921f629d5bfe990d985ecf1813 Mon Sep 17 00:00:00 2001 |
112 |
From: Vladislav Zavjalov <slazav@××××××××.org> |
113 |
Origin: http://git.altlinux.org/people/slazav/packages/?p=xfig.git;a=patch;h=be8cf541743060921f629d5bfe990d985ecf1813 |
114 |
Date: Wed, 29 May 2013 02:18:13 +0400 |
115 |
Subject: [PATCH] Don't use local SimpleMenu.c with XAW3D1_5E |
116 |
Bug-Debian: http://bugs.debian.org/296703 |
117 |
|
118 |
--- |
119 |
xfig/SmeCascade.h | 5 +++++ |
120 |
xfig/SmeCascadeP.h | 5 +++++ |
121 |
xfig/w_menuentry.h | 4 ++++ |
122 |
xfig/w_util.c | 2 ++ |
123 |
4 files changed, 16 insertions(+), 0 deletions(-) |
124 |
|
125 |
--- a/SmeCascade.h |
126 |
+++ b/SmeCascade.h |
127 |
@@ -27,7 +27,12 @@ |
128 |
#else |
129 |
#include <X11/Xaw/Sme.h> |
130 |
#endif |
131 |
+ |
132 |
+#ifdef XAW3D1_5E |
133 |
+#include <X11/Xaw3d/SmeBSB.h> |
134 |
+#else |
135 |
#include "SmeBSB.h" |
136 |
+#endif |
137 |
|
138 |
/**************************************************************** |
139 |
* |
140 |
--- a/SmeCascadeP.h |
141 |
+++ b/SmeCascadeP.h |
142 |
@@ -32,8 +32,12 @@ |
143 |
#include <X11/Xaw/SmeP.h> |
144 |
#endif |
145 |
|
146 |
+#ifdef XAW3D1_5E |
147 |
+#include <X11/Xaw3d/SmeBSBP.h> |
148 |
+#else |
149 |
#include "SmeBSBP.h" |
150 |
#include "SmeCascade.h" |
151 |
+#endif |
152 |
|
153 |
/************************************************************ |
154 |
* |
155 |
--- a/w_menuentry.h |
156 |
+++ b/w_menuentry.h |
157 |
@@ -30,7 +30,11 @@ |
158 |
#include <X11/Xaw/Sme.h> |
159 |
#endif |
160 |
|
161 |
+#ifdef XAW3D1_5E |
162 |
+#include <X11/Xaw3d/SmeBSB.h> |
163 |
+#else |
164 |
#include "SmeBSB.h" |
165 |
+#endif |
166 |
|
167 |
/**************************************************************** |
168 |
* |
169 |
--- a/w_util.c |
170 |
+++ b/w_util.c |
171 |
@@ -351,7 +351,9 @@ |
172 |
* (use -1 if no line desired) |
173 |
*/ |
174 |
|
175 |
+#ifndef XAW3D1_5E |
176 |
#include "SmeCascade.h" |
177 |
+#endif /* XAW3D1_5E */ |
178 |
|
179 |
#include "d_text.h" |
180 |
#include "e_placelib.h" |