diff options
author | Ian Delaney <idella4@gentoo.org> | 2016-01-13 13:04:28 +0800 |
---|---|---|
committer | Ian Delaney <idella4@gentoo.org> | 2016-01-13 13:05:03 +0800 |
commit | 4330b52986b655353b9aa63d7479537a9beee9f1 (patch) | |
tree | fbda5ab4f0cd148a90bbc5a5a3d77fb52b034ded /app-office/magicpoint/files | |
parent | games-fps/ut2004-action: EAPI=5 (diff) | |
download | gentoo-4330b52986b655353b9aa63d7479537a9beee9f1.tar.gz gentoo-4330b52986b655353b9aa63d7479537a9beee9f1.tar.bz2 gentoo-4330b52986b655353b9aa63d7479537a9beee9f1.zip |
app-office/magicpoint: bump to vn. 1.13a_p20121015, a snapshot
ebuild prepared, with support, by user Peter Stuge, now entered as the
proxy maintainer under the proxy-maintainers herd in metadata.
Also new use flag 'contrib' added to metadata,
ebuild and patches submitted all vua the gentoo bug, though the package
remains pmasked for removal. Yet to be negotiated with pertinent devs
Gentoo bug: #486248
Package-Manager: portage-2.2.26
Diffstat (limited to 'app-office/magicpoint/files')
6 files changed, 322 insertions, 0 deletions
diff --git a/app-office/magicpoint/files/magicpoint-1.13a_p20121015-any-giflib.patch b/app-office/magicpoint/files/magicpoint-1.13a_p20121015-any-giflib.patch new file mode 100644 index 000000000000..0e7903a8dcf0 --- /dev/null +++ b/app-office/magicpoint/files/magicpoint-1.13a_p20121015-any-giflib.patch @@ -0,0 +1,140 @@ +--- kit.orig/image/gif.c 2000-03-07 07:59:56.000000000 +0100 ++++ kit/image/gif.c 2016-01-12 17:35:49.792443794 +0100 +@@ -18,6 +18,18 @@ + #include "image.h" + #include <gif_lib.h> + ++static void stderrGifError(GifFileType *gifp, int e) { ++#if defined(GIFLIB_MAJOR) /* added in 4.2.0 along with GifError{,String}() */ ++# if GIFLIB_MAJOR >= 5 ++ fprintf(stderr, "\nGIF-LIB error: %s.\n", GifErrorString(gifp ? gifp->Error : e)); ++# else ++ fprintf(stderr, "\nGIF-LIB error: %s.\n", GifErrorString()); ++# endif ++#else ++ PrintGifError(); ++#endif ++} ++ + static void + tellAboutImage(name, gifp) + char *name; +@@ -49,10 +61,17 @@ + GifFileType *GifFile; + ColorMapObject *ColorMap; + GifColorType *ColorMapEntry; ++ int gerr = 0; + ++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5 ++ GifFile = DGifOpenFileName(fullname, &gerr); ++#else + GifFile = DGifOpenFileName(fullname); +- if (GifFile == NULL) ++#endif ++ if (GifFile == NULL) { ++ stderrGifError(GifFile, gerr); + return NULL; ++ } + + if ((ScreenBuffer = (GifRowType *) + malloc(GifFile->SHeight * sizeof(GifRowType *))) == NULL) { +@@ -87,13 +106,13 @@ + /* Scan the content of the GIF file and load the image(s) in: */ + do { + if (DGifGetRecordType(GifFile, &RecordType) == GIF_ERROR) { +- PrintGifError(); ++ stderrGifError(GifFile, 0); + exit(-1); + } + switch (RecordType) { + case IMAGE_DESC_RECORD_TYPE: + if (DGifGetImageDesc(GifFile) == GIF_ERROR) { +- PrintGifError(); ++ stderrGifError(GifFile, 0); + exit(-1); + } + Row = GifFile->Image.Top; /* Image Position relative to Screen. */ +@@ -113,7 +132,7 @@ + j += InterlacedJumps[i]) { + if (DGifGetLine(GifFile, &ScreenBuffer[j][Col], + Width) == GIF_ERROR) { +- PrintGifError(); ++ stderrGifError(GifFile, 0); + exit(-1); + } + } +@@ -122,7 +141,7 @@ + for (i = 0; i < Height; i++) { + if (DGifGetLine(GifFile, &ScreenBuffer[Row++][Col], + Width) == GIF_ERROR) { +- PrintGifError(); ++ stderrGifError(GifFile, 0); + exit(-1); + } + } +@@ -131,7 +150,7 @@ + case EXTENSION_RECORD_TYPE: + /* Skip any extension blocks in file: */ + if (DGifGetExtension(GifFile, &ExtCode, &Extension) == GIF_ERROR) { +- PrintGifError(); ++ stderrGifError(GifFile, 0); + exit(-1); + } + /* very adhoc transparency support */ +@@ -141,7 +160,7 @@ + } + while (Extension != NULL) { + if (DGifGetExtensionNext(GifFile, &Extension) == GIF_ERROR) { +- PrintGifError(); ++ stderrGifError(GifFile, 0); + exit(-1); + } + } +@@ -179,8 +198,21 @@ + pixline[x] = GifRow[x]; + } + ++#if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1)) ++ if (DGifCloseFile(GifFile, &gerr) == GIF_ERROR) { ++ stderrGifError(NULL, gerr); ++#else + if (DGifCloseFile(GifFile) == GIF_ERROR) { +- PrintGifError(); ++# if defined(GIFLIB_MAJOR) ++# if GIFLIB_MAJOR >= 5 ++ stderrGifError(GifFile, 0); ++# else ++ stderrGifError(NULL, GifError()); ++# endif ++# else ++ stderrGifError(NULL, 0); ++# endif ++#endif + exit(-1); + } + +@@ -195,12 +227,22 @@ + { + GifFileType *gifp; + int ret; ++ int gerr = 0; + ++#if defined(GIFLIB_MAJOR) && GIFLIB_MAJOR >= 5 ++ gifp = DGifOpenFileName(fullname, &gerr); ++#else + gifp = DGifOpenFileName(fullname); +- if (gifp == NULL) ++#endif ++ if (gifp == NULL) { ++ stderrGifError(gifp, gerr); + ret = 0; +- else { ++ } else { ++#if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1)) ++ DGifCloseFile(gifp, &gerr); ++#else + DGifCloseFile(gifp); ++#endif + tellAboutImage(name); + ret = 1; + } diff --git a/app-office/magicpoint/files/magicpoint-1.13a_p20121015-draw-charset.patch b/app-office/magicpoint/files/magicpoint-1.13a_p20121015-draw-charset.patch new file mode 100644 index 000000000000..056b7ef02d87 --- /dev/null +++ b/app-office/magicpoint/files/magicpoint-1.13a_p20121015-draw-charset.patch @@ -0,0 +1,11 @@ +--- kit.orig/draw.c 2012-10-14 20:25:10.000000000 +0200 ++++ kit/draw.c 2016-01-12 16:45:54.123549077 +0100 +@@ -2847,7 +2847,7 @@ + char *seed; + char *registry; + +- if (code >= 0xa0 && ((!argregistry || !argregistry[0]) && mgp_charset)) ++ if (code >= 0xa0 && ((!argregistry || !argregistry[0]) && mgp_charset[0])) + registry = mgp_charset; + else + registry = argregistry; diff --git a/app-office/magicpoint/files/magicpoint-1.13a_p20121015-draw-stringtoolong.patch b/app-office/magicpoint/files/magicpoint-1.13a_p20121015-draw-stringtoolong.patch new file mode 100644 index 000000000000..d965cb027cc0 --- /dev/null +++ b/app-office/magicpoint/files/magicpoint-1.13a_p20121015-draw-stringtoolong.patch @@ -0,0 +1,13 @@ +--- kit.orig/draw.c 2012-10-14 20:25:10.000000000 +0200 ++++ kit/draw.c 2016-01-12 18:01:53.090388852 +0100 +@@ -1379,6 +1379,10 @@ + } + + q = draw_fragment(state, p, q - p, registry, charset16); ++ if (q == p) { ++ fprintf(stderr, "String '%s' too long for window!\n", p); ++ exit(1); ++ } + + p = q; + } diff --git a/app-office/magicpoint/files/magicpoint-1.13a_p20121015-gif-dimension.patch b/app-office/magicpoint/files/magicpoint-1.13a_p20121015-gif-dimension.patch new file mode 100644 index 000000000000..c95aa2dae411 --- /dev/null +++ b/app-office/magicpoint/files/magicpoint-1.13a_p20121015-gif-dimension.patch @@ -0,0 +1,11 @@ +--- kit.orig/image/gif.c 2016-01-12 16:54:40.469530579 +0100 ++++ kit/image/gif.c 2016-01-12 16:56:10.676527408 +0100 +@@ -122,7 +122,7 @@ + if (GifFile->Image.Left + GifFile->Image.Width > GifFile->SWidth || + GifFile->Image.Top + GifFile->Image.Height > GifFile->SHeight) { + fprintf(stderr, +-"Image %d is not confined to screen dimension, aborted.\n"); ++"Image %s is not confined to screen dimension, aborted.\n", fullname); + exit(-2); + } + if (GifFile->Image.Interlace) { diff --git a/app-office/magicpoint/files/magicpoint-1.13a_p20121015-implicit-declaration.patch b/app-office/magicpoint/files/magicpoint-1.13a_p20121015-implicit-declaration.patch new file mode 100644 index 000000000000..141353953e00 --- /dev/null +++ b/app-office/magicpoint/files/magicpoint-1.13a_p20121015-implicit-declaration.patch @@ -0,0 +1,136 @@ +diff -ru kit.orig/contrib/xwintoppm/dsimple.c kit/contrib/xwintoppm/dsimple.c +--- kit.orig/contrib/xwintoppm/dsimple.c 1998-02-13 08:48:29.000000000 +0100 ++++ kit/contrib/xwintoppm/dsimple.c 2016-01-12 14:30:21.199834909 +0100 +@@ -48,10 +48,12 @@ + #endif + + extern Bool silent; ++extern void usage(); + unsigned long Resolve_Color(); + Pixmap Bitmap_To_Pixmap(); + Window Select_Window(); + void out(); ++void outl(); + void blip(); + Window Window_With_Name(); + void Fatal_Error(); +@@ -495,6 +497,7 @@ + * printf with up to 7 arguments. + */ + /* VARARGS1 */ ++void + outl(msg, arg0,arg1,arg2,arg3,arg4,arg5,arg6) + char *msg; + char *arg0, *arg1, *arg2, *arg3, *arg4, *arg5, *arg6; +diff -ru kit.orig/contrib/xwintoppm/xwintoppm.c kit/contrib/xwintoppm/xwintoppm.c +--- kit.orig/contrib/xwintoppm/xwintoppm.c 1998-08-26 07:30:16.000000000 +0200 ++++ kit/contrib/xwintoppm/xwintoppm.c 2016-01-12 14:29:46.892836115 +0100 +@@ -139,6 +139,13 @@ + extern int (*_XErrorFunction)(); + extern int _XDefaultError(); + ++void usage(); ++void Error(char *); ++void Window_Dump(Window, FILE *); ++extern void outl(); ++int Image_Size(XImage *); ++int Get_XColors(XWindowAttributes *, XColor **); ++ + static long parse_long (s) + char *s; + { +@@ -281,6 +288,7 @@ + * writting. + */ + ++void + Window_Dump(window, out) + Window window; + FILE *out; +@@ -609,6 +617,7 @@ + /* + * Report the syntax for calling xwd. + */ ++void + usage() + { + fprintf (stderr, +@@ -623,6 +632,7 @@ + * Error - Fatal xwd error. + */ + ++void + Error(string) + char *string; /* Error description string. */ + { +diff -ru kit.orig/ctlwords.c kit/ctlwords.c +--- kit.orig/ctlwords.c 1999-02-15 00:02:25.000000000 +0100 ++++ kit/ctlwords.c 2016-01-12 14:14:20.395868676 +0100 +@@ -24,6 +24,7 @@ + + #include <stdio.h> + #include <string.h> ++#include <stdlib.h> + + main(int argc, char *argv[]) + { +diff -ru kit.orig/draw.c kit/draw.c +--- kit.orig/draw.c 2012-10-14 20:25:10.000000000 +0200 ++++ kit/draw.c 2016-01-12 14:15:12.847866833 +0100 +@@ -140,6 +140,8 @@ + static void get_background_pixmap __P((struct ctrl *, struct render_state *)); + static void regist_background_pixmap __P((XImageInfo *, Image *)); + #ifdef MNG ++void mngload(char *, int, int, int, int); ++void mngpreload(struct render_state *, char *, int *, int *); + static void process_anim __P((struct render_state *, struct ctrl *)); + static void obj_draw_anim __P((struct render_state *, + u_int, u_int, struct render_object *)); +diff -ru kit.orig/image/image.h kit/image/image.h +--- kit.orig/image/image.h 2004-07-28 17:47:31.000000000 +0200 ++++ kit/image/image.h 2016-01-12 16:38:12.310565307 +0100 +@@ -10,6 +10,7 @@ + + #include "copyright.h" + #include <stdio.h> ++#include <stdlib.h> + + #if defined(SYSV) || defined(VMS) || 1 + #include <string.h> +diff -ru kit.orig/image/window.c kit/image/window.c +--- kit.orig/image/window.c 2004-07-28 17:47:31.000000000 +0200 ++++ kit/image/window.c 2016-01-12 14:19:03.347858732 +0100 +@@ -16,8 +16,8 @@ + #include <signal.h> + #include <errno.h> + #include <sys/types.h> +-#ifdef SYSV +-#include <unistd.h> ++#ifdef HAVE_UNISTD_H ++# include <unistd.h> + #endif + #if TIME_WITH_SYS_TIME + # include <sys/time.h> +@@ -32,9 +32,6 @@ + #if HAVE_SYS_SELECT_H + # include <sys/select.h> + #endif +-#ifdef __APPLE__ +-#include <unistd.h> +-#endif + + /* SUPPRESS 560 */ + +diff -ru kit.orig/mgp.h kit/mgp.h +--- kit.orig/mgp.h 2010-05-04 00:28:00.000000000 +0200 ++++ kit/mgp.h 2016-01-12 14:16:47.967863490 +0100 +@@ -831,6 +831,9 @@ + #ifndef HAVE_USLEEP + extern void usleep __P((u_int)); + #endif ++#ifndef HAVE_STRLCPY ++extern size_t strlcpy __P((char *, const char *, size_t)); ++#endif + + #ifdef FREETYPE + #define RASTERLIB diff --git a/app-office/magicpoint/files/magicpoint-1.13a_p20121015-parse-empty.patch b/app-office/magicpoint/files/magicpoint-1.13a_p20121015-parse-empty.patch new file mode 100644 index 000000000000..f3d38ccde03a --- /dev/null +++ b/app-office/magicpoint/files/magicpoint-1.13a_p20121015-parse-empty.patch @@ -0,0 +1,11 @@ +--- kit.orig/parse.c 2010-05-04 00:28:00.000000000 +0200 ++++ kit/parse.c 2016-01-12 19:20:41.882222658 +0100 +@@ -1258,7 +1258,7 @@ + */ + { + int textseen; +- int contseen; ++ int contseen = 0; + for (page = 1; page <= maxpage; page++) { + line = page_attribute[page].pg_linenum; + for (l = 0; l <= line; l++) { |