* [gentoo-commits] repo/gentoo:master commit in: media-gfx/xfig/files/
@ 2016-12-28 16:49 Göktürk Yüksek
0 siblings, 0 replies; 4+ messages in thread
From: Göktürk Yüksek @ 2016-12-28 16:49 UTC (permalink / raw
To: gentoo-commits
commit: 259f780a0cb56182531c874df7dac505b209cbd9
Author: Michael Mair-Keimberger (asterix) <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Wed Dec 28 16:02:15 2016 +0000
Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
CommitDate: Wed Dec 28 16:47:32 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=259f780a
media-gfx/xfig: remove unused patches
.../xfig/files/xfig-3.2.5b-CVE-2010-4262.patch | 22 --
media-gfx/xfig/files/xfig-3.2.5b-darwin.patch | 22 --
| 332 ---------------------
.../xfig/files/xfig-3.2.5b-figparserstack.patch | 61 ----
.../xfig/files/xfig-3.2.5b-fix-eps-reading.patch | 46 ---
media-gfx/xfig/files/xfig-3.2.5b-libpng-1.5.patch | 70 -----
media-gfx/xfig/files/xfig-3.2.5b-spelling.patch | 29 --
.../xfig/files/xfig-3.2.5b-zoom-during-edit.patch | 22 --
8 files changed, 604 deletions(-)
diff --git a/media-gfx/xfig/files/xfig-3.2.5b-CVE-2010-4262.patch b/media-gfx/xfig/files/xfig-3.2.5b-CVE-2010-4262.patch
deleted file mode 100644
index eb85513..00000000
--- a/media-gfx/xfig/files/xfig-3.2.5b-CVE-2010-4262.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- w_msgpanel.c
-+++ w_msgpanel.c 2010-12-03 14:21:07.931926127 +0000
-@@ -60,7 +60,7 @@ DeclareStaticArgs(12);
- /* for the popup message (file_msg) window */
-
- static int file_msg_length=0;
--static char tmpstr[300];
-+static char tmpstr[512];
- static Widget file_msg_panel,
- file_msg_win, file_msg_dismiss;
-
-@@ -582,8 +582,8 @@ file_msg(char *format,...)
- }
-
- va_start(ap, format);
-- /* format the string */
-- vsprintf(tmpstr, format, ap);
-+ /* format the string (but leave room for \n and \0) */
-+ vsnprintf(tmpstr, sizeof(tmpstr)-2, format, ap);
- va_end(ap);
-
- strcat(tmpstr,"\n");
diff --git a/media-gfx/xfig/files/xfig-3.2.5b-darwin.patch b/media-gfx/xfig/files/xfig-3.2.5b-darwin.patch
deleted file mode 100644
index 0c4fa29..00000000
--- a/media-gfx/xfig/files/xfig-3.2.5b-darwin.patch
+++ /dev/null
@@ -1,22 +0,0 @@
---- fig.h
-+++ fig.h
-@@ -374,7 +374,7 @@
- extern long random();
- extern void srandom(unsigned int);
-
--#elif !defined(__osf__) && !defined(__CYGWIN__) && !defined(linux) && !defined(__FreeBSD__) && !defined(__GLIBC__)
-+#elif !defined(__osf__) && !defined(__CYGWIN__) && !defined(linux) && !defined(__FreeBSD__) && !defined(__DARWIN__) && !defined(__GLIBC__)
- extern void srandom(int);
-
- #endif
---- w_keyboard.c
-+++ w_keyboard.c
-@@ -41,7 +41,7 @@
- #define REG_NOERROR REG_OKAY
- #endif
-
--#if defined(__FreeBSD__) && !defined(REG_NOERROR)
-+#if (defined(__FreeBSD__) || defined(__DARWIN__)) && !defined(REG_NOERROR)
- #define REG_NOERROR 0
- #endif
-
diff --git a/media-gfx/xfig/files/xfig-3.2.5b-edit-menu.patch b/media-gfx/xfig/files/xfig-3.2.5b-edit-menu.patch
deleted file mode 100644
index ea396f1..00000000
--- a/media-gfx/xfig/files/xfig-3.2.5b-edit-menu.patch
+++ /dev/null
@@ -1,332 +0,0 @@
-diff -Naur /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/Imakefile /root/xfig.3.2.5b/Imakefile
---- /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/Imakefile 2012-04-20 09:46:26.217957716 +0200
-+++ /root/xfig.3.2.5b/Imakefile 2012-04-20 09:16:28.744362135 +0200
-@@ -251,7 +251,7 @@
- #endif /* USEJPEG */
-
- #ifdef I18N
--I18N_DEFS = -DI18N -DSETLOCALE
-+I18N_DEFS = -DI18N -DSETLOCALE -DXAW_INTERNATIONALIZATION
- I18N_SRC = w_i18n.c
- I18N_OBJ = w_i18n.o
- #endif
-diff -Naur /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/e_edit.c /root/xfig.3.2.5b/e_edit.c
---- /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/e_edit.c 2007-04-04 18:18:32.000000000 +0200
-+++ /root/xfig.3.2.5b/e_edit.c 2012-04-20 10:02:04.209542848 +0200
-@@ -3211,7 +3211,7 @@
- XtAddCallback(but1, XtNcallback,
- (XtCallbackProc) grab_button, (XtPointer) NULL);
-
-- if ( cur_image_editor != NULL && *cur_image_editor != (char) NULL) {
-+ if ( cur_image_editor != NULL && *cur_image_editor != '\0' ) {
- FirstArg(XtNlabel,"Edit Image");
- NextArg(XtNfromHoriz, but1);
- NextArg(XtNfromVert, label);
-@@ -3501,7 +3501,7 @@
- {
- Widget but_spline[3];
- Dimension label_height, label_width;
-- int i, dist;
-+ int i, dist;
-
- static char use_item[]="Edit the behavior\nof the control point";
-
-@@ -3598,7 +3598,7 @@
- below = but_spline[i] = XtCreateManagedWidget(sfactor_type[i].label,
- commandWidgetClass, form, Args, ArgCount);
- XtAddCallback(but_spline[i], XtNcallback,
-- (XtCallbackProc) toggle_sfactor_type, (XtPointer) i);
-+ (XtCallbackProc) toggle_sfactor_type, (XtPointer) (intptr_t) i);
- XtSetArg(Args[0], XtNfromVert, below); /* here are the direct */
- XtSetArg(Args[1], XtNvertDistance, 3 * dist); /* accesses to Args */
- }
-@@ -3608,7 +3608,7 @@
- static void
- toggle_sfactor_type(Widget panel_local, XtPointer _sfactor_index, XtPointer call_data)
- {
-- int sfactor_index = (int) _sfactor_index;
-+ int sfactor_index = (int) (intptr_t) _sfactor_index;
-
- update_sfactor_value(sfactor_type[sfactor_index].value);
- XawScrollbarSetThumb(sfactor_bar,
-@@ -3629,10 +3629,10 @@
- static void
- scroll_sfactor_value(Widget panel_local, XtPointer closure, XtPointer _num_pixels)
- {
-- int *num_pixels = (int *) _num_pixels;
-+ int num_pixels = (int) (intptr_t) _num_pixels;
-
- update_sfactor_value(sub_sfactor->s +
-- (STEP_VALUE * SFACTOR_SIGN((int) num_pixels)));
-+ (STEP_VALUE * SFACTOR_SIGN(num_pixels)));
- XawScrollbarSetThumb(panel_local, SFACTOR_TO_PERCENTAGE(sub_sfactor->s),
- THUMB_H);
- }
-@@ -4031,7 +4031,6 @@
- Widget
- color_selection_panel(char *label, char *wname, char *name, Widget parent, Widget below, Widget beside, Widget *button, Widget *popup, int color, XtCallbackProc callback)
- {
--
- FirstArg(XtNfromVert, below);
- NextArg(XtNborderWidth, 0);
- NextArg(XtNtop, XtChainBottom);
-@@ -4057,7 +4056,7 @@
- * callback
- */
- /* also set the label */
-- (callback)(below, (XtPointer) color, NULL);
-+ (callback)(below, (XtPointer) (intptr_t) color, NULL);
- *popup = make_color_popup_menu(below, name, callback, NO_TRANSP, NO_BACKG);
-
- return *button;
-@@ -4658,7 +4657,7 @@
- int ival;
- double val;
-
-- new_points_units = (int) new_unit;
-+ new_points_units = (int) (intptr_t) new_unit;
- if (points_units == new_points_units)
- return;
-
-@@ -4739,7 +4738,7 @@
- FirstArg(XtNlabel, XtName(w));
- SetValues(arc_type_panel);
-
-- generic_vals.arc_type = (int) new_style;
-+ generic_vals.arc_type = (int) (intptr_t) new_style;
- /* if now a pie-wedge type, make the arrow panels insensitive */
- if (generic_vals.arc_type == T_PIE_WEDGE_ARC) {
- /* unmanage arrow forms */
-@@ -4865,7 +4864,7 @@
- static void
- pen_color_select(Widget w, XtPointer new_color, XtPointer call_data)
- {
-- pen_color = (Color) new_color;
-+ pen_color = (Color) (intptr_t) new_color;
- color_select(pen_col_button, pen_color);
- if (pen_color_popup) {
- XtPopdown(pen_color_popup);
-@@ -4875,7 +4874,7 @@
- static void
- fill_color_select(Widget w, XtPointer new_color, XtPointer call_data)
- {
-- fill_color = (Color) new_color;
-+ fill_color = (Color) (intptr_t) new_color;
- color_select(fill_col_button, fill_color);
- if (fill_color_popup) {
- XtPopdown(fill_color_popup);
-@@ -4927,7 +4926,7 @@
- {
- FirstArg(XtNlabel, XtName(w));
- SetValues(hidden_text_panel);
-- hidden_text_flag = (int) new_hidden_text;
-+ hidden_text_flag = (int) (intptr_t) new_hidden_text;
- }
-
- static void
-@@ -4935,7 +4934,7 @@
- {
- FirstArg(XtNlabel, XtName(w));
- SetValues(rigid_text_panel);
-- rigid_text_flag = (int) new_rigid_text;
-+ rigid_text_flag = (int) (intptr_t) new_rigid_text;
- }
-
- static void
-@@ -4943,7 +4942,7 @@
- {
- FirstArg(XtNlabel, XtName(w));
- SetValues(special_text_panel);
-- special_text_flag = (int) new_special_text;
-+ special_text_flag = (int) (intptr_t) new_special_text;
- }
-
- static void
-@@ -4951,7 +4950,7 @@
- {
- FirstArg(XtNlabel, XtName(w));
- SetValues(textjust_panel);
-- textjust = (int) new_textjust;
-+ textjust = (int) (intptr_t) new_textjust;
- }
-
- static void
-@@ -4963,7 +4962,7 @@
-
- FirstArg(XtNlabel, XtName(w));
- SetValues(flip_pic_panel);
-- flip_pic_flag = (int) new_flipflag;
-+ flip_pic_flag = (int) (intptr_t) new_flipflag;
- p1.x = panel_get_dim_value(x1_panel);
- p1.y = panel_get_dim_value(y1_panel);
- p2.x = panel_get_dim_value(x2_panel);
-@@ -4996,7 +4995,7 @@
- FirstArg(XtNlabel, XtName(w));
- SetValues(rotation_panel);
- /* get new rotation (0 = 0 degrees, 1 = 90, 2 = 180, 3 = 270) */
-- rotation = (int) new_rotation;
-+ rotation = (int) (intptr_t) new_rotation;
-
- /* get the two opposite corners */
- p1.x = panel_get_dim_value(x1_panel);
-@@ -5104,7 +5103,7 @@
-
- FirstArg(XtNlabel, XtName(w));
- SetValues(fill_style_button);
-- fill_flag = (int) new_fillflag;
-+ fill_flag = (int) (intptr_t) new_fillflag;
-
- if (fill_flag == 0) {
- /* no fill; blank out fill density value and pattern */
-diff -Naur /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/u_draw.c /root/xfig.3.2.5b/u_draw.c
---- /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/u_draw.c 2007-04-04 18:18:32.000000000 +0200
-+++ /root/xfig.3.2.5b/u_draw.c 2012-04-20 09:20:31.379714332 +0200
-@@ -603,7 +603,7 @@
- /* is it a picture object or a Fig figure? */
- if (line->type == T_PICTURE) {
- if (line->pic->pic_cache) {
-- if ((line->pic->pic_cache->bitmap != (Pixmap) NULL) && active_layer(line->depth)) {
-+ if ((line->pic->pic_cache->bitmap != NULL) && active_layer(line->depth)) {
- /* only draw the picture if there is a pixmap AND this layer is active */
- draw_pic_pixmap(line, op);
- return;
-diff -Naur /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/w_cmdpanel.c /root/xfig.3.2.5b/w_cmdpanel.c
---- /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/w_cmdpanel.c 2008-07-17 17:50:06.000000000 +0200
-+++ /root/xfig.3.2.5b/w_cmdpanel.c 2012-04-20 09:54:55.595198185 +0200
-@@ -1581,7 +1581,7 @@
- beside = XtCreateManagedWidget("char_button", commandWidgetClass,
- character_map_panel, Args, ArgCount);
- /* add callback to paste character into current text */
-- XtAddCallback(beside, XtNcallback, paste_char, (XtPointer) i);
-+ XtAddCallback(beside, XtNcallback, paste_char, (XtPointer) (intptr_t) i);
- /* skip empty entries and 127 (delete) */
- if (i==126) {
- below = beside;
-diff -Naur /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/w_color.c /root/xfig.3.2.5b/w_color.c
---- /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/w_color.c 2007-04-04 18:18:32.000000000 +0200
-+++ /root/xfig.3.2.5b/w_color.c 2012-04-20 09:23:24.738775166 +0200
-@@ -334,7 +334,7 @@
- } else {
- NextArg(XtNstate, True); /* start with edit pen */
- }
-- NextArg(XtNradioData, (XtPointer) (i+1)); /* can't use 0 */
-+ NextArg(XtNradioData, (XtPointer) (intptr_t) (i+1)); /* can't use 0 */
- mixedEdit[i] = XtCreateManagedWidget("mixedEdit", toggleWidgetClass,
- mixedForm[i], Args, ArgCount);
- XtAddCallback(mixedEdit[i], XtNcallback, switch_edit, (XtPointer) 0);
-@@ -807,7 +807,7 @@
- set_slider_sensitivity();
-
- /* activate the one the user pressed (pen or fill) */
-- XawToggleSetCurrent(mixedEdit[0],(XtPointer) (func==I_PEN_COLOR? 1:2));
-+ XawToggleSetCurrent(mixedEdit[0],(XtPointer) (intptr_t) (func==I_PEN_COLOR? 1:2));
- }
-
- void restore_mixed_colors(void)
-diff -Naur /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/w_export.c /root/xfig.3.2.5b/w_export.c
---- /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/w_export.c 2007-09-19 21:32:30.000000000 +0200
-+++ /root/xfig.3.2.5b/w_export.c 2012-04-20 09:24:09.181867729 +0200
-@@ -384,7 +384,7 @@
- change_orient();
- appres.landscape = (int) client_data;
- /* make sure that paper size is appropriate */
-- papersize_select(export_papersize_panel, (XtPointer) appres.papersize, (XtPointer) 0);
-+ papersize_select(export_papersize_panel, (XtPointer) (intptr_t) appres.papersize, (XtPointer) 0);
- }
- }
-
-diff -Naur /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/w_fontpanel.c /root/xfig.3.2.5b/w_fontpanel.c
---- /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/w_fontpanel.c 2007-04-04 18:18:32.000000000 +0200
-+++ /root/xfig.3.2.5b/w_fontpanel.c 2012-04-20 09:26:50.774325641 +0200
-@@ -142,14 +142,14 @@
- ps_fontmenu_items[i].type = MENU_IMAGESTRING; /* put the fontnames in
- * menu */
- ps_fontmenu_items[i].label = ps_fontinfo[i].name;
-- ps_fontmenu_items[i].info = (caddr_t) (i - 1); /* index for font # */
-+ ps_fontmenu_items[i].info = (caddr_t) (intptr_t) (i - 1); /* index for font # */
- }
-
- for (i = 0; i < NUM_LATEX_FONTS; i++) {
- latex_fontmenu_items[i].type = MENU_IMAGESTRING; /* put the fontnames in
- * menu */
- latex_fontmenu_items[i].label = latex_fontinfo[i].name;
-- latex_fontmenu_items[i].info = (caddr_t) i; /* index for font # */
-+ latex_fontmenu_items[i].info = (caddr_t) (intptr_t) i; /* index for font # */
- }
-
- pane_actions = XtParseTranslationTable("<EnterWindow>:set()\n\
-@@ -352,9 +352,9 @@
- char *font_name = mi->label;
-
- if (*flag_sel)
-- *font_ps_sel = (int) mi->info; /* set ps font to one selected */
-+ *font_ps_sel = (int) (intptr_t) mi->info; /* set ps font to one selected */
- else
-- *font_latex_sel = (int) mi->info; /* set latex font to one
-+ *font_latex_sel = (int) (intptr_t) mi->info; /* set latex font to one
- * selected */
- put_msg("Font: %s", font_name);
- /* put image of font in indicator window */
-diff -Naur /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/w_indpanel.c /root/xfig.3.2.5b/w_indpanel.c
---- /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/w_indpanel.c 2009-03-30 17:54:00.000000000 +0200
-+++ /root/xfig.3.2.5b/w_indpanel.c 2012-04-20 09:34:38.181793478 +0200
-@@ -2692,7 +2692,7 @@
- /* "Ticks" checkbutton */
- below = CreateCheckbutton("Show ticks", "ticks", tickform, below, (Widget) NULL,
- MANAGE, LARGE_CHK, &dimline_ticks,
-- dimline_panel_preview, (Widget) NULL);
-+ dimline_panel_preview, (Widget*) NULL);
-
- /* Tick Thickness label */
- FirstArg(XtNlabel, "Thickness");
-diff -Naur /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/w_print.c /root/xfig.3.2.5b/w_print.c
---- /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/w_print.c 2009-04-20 18:26:14.000000000 +0200
-+++ /root/xfig.3.2.5b/w_print.c 2012-04-20 09:36:11.004623947 +0200
-@@ -407,7 +407,7 @@
- change_orient();
- appres.landscape = (int) new_orient;
- /* make sure that paper size is appropriate */
-- papersize_select(print_papersize_panel, (XtPointer) appres.papersize, (XtPointer) 0);
-+ papersize_select(print_papersize_panel, (XtPointer) (intptr_t) appres.papersize, (XtPointer) 0);
- }
- }
-
-@@ -771,7 +771,7 @@
- for (i = 0; i < XtNumber(paper_sizes); i++) {
- entry = XtCreateManagedWidget(paper_sizes[i].fname, smeBSBObjectClass,
- papersize_menu, NULL, ZERO);
-- XtAddCallback(entry, XtNcallback, papersize_select, (XtPointer) i);
-+ XtAddCallback(entry, XtNcallback, papersize_select, (XtPointer) (intptr_t) i);
- }
-
- /* Orientation */
-diff -Naur /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/w_util.c /root/xfig.3.2.5b/w_util.c
---- /var/tmp/portage/media-gfx/xfig-3.2.5b-r2/work/xfig.3.2.5b/w_util.c 2009-03-30 17:52:38.000000000 +0200
-+++ /root/xfig.3.2.5b/w_util.c 2012-04-20 09:37:37.764153931 +0200
-@@ -378,7 +378,7 @@
- }
- entry = XtCreateManagedWidget(entries[i], smeBSBObjectClass, pulldown_menu,
- NULL, ZERO);
-- XtAddCallback(entry, XtNcallback, callback, (XtPointer) i);
-+ XtAddCallback(entry, XtNcallback, callback, (XtPointer) (intptr_t) i);
- }
- return pulldown_menu;
- }
-@@ -488,7 +488,7 @@
- NextArg(XtNbackground, black_color.pixel);
- }
- entry = XtCreateManagedWidget(buf, commandWidgetClass, pop_form, Args, ArgCount);
-- XtAddCallback(entry, XtNcallback, callback, (XtPointer) i);
-+ XtAddCallback(entry, XtNcallback, callback, (XtPointer) (intptr_t) i);
- }
-
- /* make a scrollable viewport in case all the buttons don't fit */
-@@ -545,7 +545,7 @@
- }
- entry = XtCreateManagedWidget(buf, commandWidgetClass, color_box,
- Args, ArgCount);
-- XtAddCallback(entry, XtNcallback, callback, (XtPointer) i);
-+ XtAddCallback(entry, XtNcallback, callback, (XtPointer) (intptr_t) i);
- }
-
- /* make the cancel button */
diff --git a/media-gfx/xfig/files/xfig-3.2.5b-figparserstack.patch b/media-gfx/xfig/files/xfig-3.2.5b-figparserstack.patch
deleted file mode 100644
index 7f46682..00000000
--- a/media-gfx/xfig/files/xfig-3.2.5b-figparserstack.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 30_figparserstack.dpatch by Hans de Goede <j.w.r.degoede@hhs.nl>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: Fix Stack-based buffer overflow by loading malformed .FIG files
-## DP: https://bugzilla.redhat.com/show_bug.cgi?id=543905
-## DP: Closes: #559274
-
-@DPATCH@
-diff -urNad xfig~/f_readold.c xfig/f_readold.c
---- xfig~/f_readold.c
-+++ xfig/f_readold.c
-@@ -471,7 +471,7 @@
- F_text *t;
- int n;
- int dum;
-- char buf[128];
-+ char buf[512];
- PR_SIZE tx_dim;
-
- if ((t = create_text()) == NULL)
-@@ -485,22 +485,34 @@
- t->pen_style = -1;
- t->angle = 0.0;
- t->next = NULL;
-+ if (!fgets(buf, sizeof(buf), fp)) {
-+ file_msg("Incomplete text data");
-+ free((char *) t);
-+ return (NULL);
-+ }
-+
-+ /* Note using strlen(buf) here will waste a few bytes, as the
-+ various text attributes are counted into this length too. */
-+ if ((t->cstring = new_string(strlen(buf))) == NULL)
-+ return (NULL);
-+
- /* ascent and length will be recalculated later */
-- n = fscanf(fp, " %d %d %d %d %d %d %d %[^\n]",
-+ n = sscanf(buf, " %d %d %d %d %d %d %d %[^\n]",
- &t->font, &dum, &dum, &t->ascent, &t->length,
-- &t->base_x, &t->base_y, buf);
-+ &t->base_x, &t->base_y, t->cstring);
- if (n != 8) {
- file_msg("Incomplete text data");
-+ free(t->cstring);
- free((char *) t);
- return (NULL);
- }
-- if ((t->cstring = new_string(strlen(buf))) == NULL) {
-+
-+ if (!strlen(t->cstring)) {
-+ free(t->cstring);
- free((char *) t);
- file_msg("Empty text string at line %d.", line_no);
- return (NULL);
- }
-- /* put string in structure */
-- strcpy(t->cstring, buf);
-
- /* get the font struct */
- t->zoom = zoomscale;
diff --git a/media-gfx/xfig/files/xfig-3.2.5b-fix-eps-reading.patch b/media-gfx/xfig/files/xfig-3.2.5b-fix-eps-reading.patch
deleted file mode 100644
index 7601d20..00000000
--- a/media-gfx/xfig/files/xfig-3.2.5b-fix-eps-reading.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-diff -ur xfig.3.2.5b/f_readeps.c xfig.3.2.5b.new/f_readeps.c
---- xfig.3.2.5b/f_readeps.c 2009-03-30 17:52:18.000000000 +0200
-+++ xfig.3.2.5b.new/f_readeps.c 2010-11-25 16:53:54.328247928 +0100
-@@ -252,12 +252,13 @@
- {
- char buf[300];
- FILE *tmpfp, *pixfile, *gsfile;
-- char *psnam, *driver;
-+ char *driver;
- int status, wid, ht, nbitmap, fd;
- char tmpfile[PATH_MAX],
- pixnam[PATH_MAX],
- errnam[PATH_MAX],
-- gscom[2 * PATH_MAX];
-+ gscom[2 * PATH_MAX],
-+ psnam[PATH_MAX];
-
- wid = urx - llx;
- ht = ury - lly;
-@@ -307,19 +308,14 @@
- /* for color, use pcx */
- driver = "pcx256";
- }
-- /* avoid absolute paths (for Cygwin with gswin32) by changing directory */
-- if (tmpfile[0] == '/') {
-- psnam = strrchr(tmpfile, '/');
-- *psnam = 0;
-- sprintf(gscom, "cd \"%s/\";", tmpfile);
-- *psnam++ = '/'; /* Restore name for unlink() below */
-- } else {
-- psnam = tmpfile;
-- gscom[0] = '\0';
-+ /* Canonicalize the eps file filename, needed to "defeat" -dSAFER */
-+ if (!realpath(tmpfile, psnam)) {
-+ file_msg("Cannot canonicalize %s: %s\n", tmpfile, strerror(errno));
-+ return False;
- }
-- sprintf(&gscom[strlen(gscom)],
-- "%s -r72x72 -dSAFER -sDEVICE=%s -g%dx%d -sOutputFile=%s -q - > %s 2>&1",
-- appres.ghostscript, driver, wid, ht, pixnam, errnam);
-+ sprintf(gscom,
-+ "%s -r72x72 -sDEVICE=%s -g%dx%d -sOutputFile=%s -dDELAYSAFER -c '<< /PermitFileReading [ (%s)] >> setuserparams .locksafe' -dSAFER -q - > %s 2>&1",
-+ appres.ghostscript, driver, wid, ht, pixnam, psnam, errnam);
- if (appres.DEBUG)
- fprintf(stderr,"calling: %s\n",gscom);
- if ((gsfile = popen(gscom, "w")) == 0) {
diff --git a/media-gfx/xfig/files/xfig-3.2.5b-libpng-1.5.patch b/media-gfx/xfig/files/xfig-3.2.5b-libpng-1.5.patch
deleted file mode 100644
index 7d9c3f1..00000000
--- a/media-gfx/xfig/files/xfig-3.2.5b-libpng-1.5.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-Index: xfig.3.2.5b/f_readpng.c
-===================================================================
---- xfig.3.2.5b.orig/f_readpng.c
-+++ xfig.3.2.5b/f_readpng.c
-@@ -73,7 +73,7 @@ read_png(FILE *file, int filetype, F_pic
- }
-
- /* set long jump recovery here */
-- if (setjmp(png_ptr->jmpbuf)) {
-+ if (setjmp(png_jmpbuf(png_ptr))) {
- /* if we get here there was a problem reading the file */
- png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
- close_picfile(file,filetype);
-@@ -90,15 +90,17 @@ read_png(FILE *file, int filetype, F_pic
- png_get_IHDR(png_ptr, info_ptr, &w, &h, &bit_depth, &color_type,
- &interlace_type, &compression_type, &filter_type);
-
-- if (info_ptr->valid & PNG_INFO_gAMA)
-- png_set_gamma(png_ptr, 2.2, info_ptr->gamma);
-- else
-- png_set_gamma(png_ptr, 2.2, 0.45);
-+ png_fixed_point gamma = 0.45;
-+ png_get_gAMA_fixed(png_ptr,info_ptr,&gamma);
-+ png_set_gamma(png_ptr, 2.2, gamma);
-
-- if (info_ptr->valid & PNG_INFO_bKGD)
-+ if (png_get_valid(png_ptr,info_ptr,PNG_INFO_bKGD)) {
- /* set the background to the one supplied */
-- png_set_background(png_ptr, &info_ptr->background,
-+ png_color_16p background;
-+ png_get_bKGD(png_ptr,info_ptr,&background);
-+ png_set_background(png_ptr, background,
- PNG_BACKGROUND_GAMMA_FILE, 1, 1.0);
-+ }
- else {
- /* blend the canvas background using the alpha channel */
- background.red = x_bg_color.red >> 8;
-@@ -136,7 +138,11 @@ read_png(FILE *file, int filetype, F_pic
-
- if (png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette)) {
- png_get_hIST(png_ptr, info_ptr, &histogram);
-+#if PNG_LIBPNG_VER_MAJOR <= 1 && PNG_LIBPNG_VER_MINOR < 5
- png_set_dither(png_ptr, palette, num_palette, 256, histogram, 0);
-+#else
-+ png_set_quantize(png_ptr, palette, num_palette, 256, histogram, 0);
-+#endif
- }
- }
- if (color_type == PNG_COLOR_TYPE_GRAY || color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
-Index: xfig.3.2.5b/f_wrpng.c
-===================================================================
---- xfig.3.2.5b.orig/f_wrpng.c
-+++ xfig.3.2.5b/f_wrpng.c
-@@ -20,6 +20,7 @@
- #include "w_msgpanel.h"
- #include "w_setup.h"
- #include <png.h>
-+#include <zlib.h>
-
- /*
- * Write PNG file from rgb data
-@@ -59,7 +60,7 @@ write_png(FILE *file, unsigned char *dat
- }
-
- /* set long jump recovery here */
-- if (setjmp(png_ptr->jmpbuf)) {
-+ if (setjmp(png_jmpbuf(png_ptr))) {
- /* if we get here there was a problem reading the file */
- png_destroy_write_struct(&png_ptr, &info_ptr);
- return False;
diff --git a/media-gfx/xfig/files/xfig-3.2.5b-spelling.patch b/media-gfx/xfig/files/xfig-3.2.5b-spelling.patch
deleted file mode 100644
index 942276c..00000000
--- a/media-gfx/xfig/files/xfig-3.2.5b-spelling.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 31_spelling.dpatch by Roland Rosenfeld <roland@debian.org>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: Fix spelling errors in binary.
-
-@DPATCH@
-diff -urNad xfig~/f_load.c xfig/f_load.c
---- xfig~/f_load.c
-+++ xfig/f_load.c
-@@ -373,5 +373,5 @@
- /* Format error; relevant error message is already delivered */
- ;
- else
-- file_msg("File \"%s\" is not accessable; %s.", file, strerror(err));
-+ file_msg("File \"%s\" is not accessible; %s.", file, strerror(err));
- }
-diff -urNad xfig~/f_readgif.c xfig/f_readgif.c
---- xfig~/f_readgif.c
-+++ xfig/f_readgif.c
-@@ -137,7 +137,7 @@
-
- if (c == '!') { /* Extension */
- if (! ReadOK(file,&c,1))
-- file_msg("GIF read error on extention function code");
-+ file_msg("GIF read error on extension function code");
- (void) DoGIFextension(file, c);
- continue;
- }
diff --git a/media-gfx/xfig/files/xfig-3.2.5b-zoom-during-edit.patch b/media-gfx/xfig/files/xfig-3.2.5b-zoom-during-edit.patch
deleted file mode 100644
index 11e5ceb..00000000
--- a/media-gfx/xfig/files/xfig-3.2.5b-zoom-during-edit.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-commit fc4381d7c3e8d7440a3e33430d24ebf217a99142
-Author: Vladislav Zavjalov <slazav@altlinux.org>
-Date: Thu Oct 2 12:24:04 2008 +0400
-
- fix calling null function (todo: problem with initialize_char_handler after resize?)
-
-Fixes crash. To reproduce create some object, zoom in so that it does not fit
-the screen, start another edit and press Ctrl+Z.
-
-diff --git a/xfig/u_redraw.c b/xfig/u_redraw.c
-index 146abfa..fd53a8e 100644
---- a/xfig/u_redraw.c
-+++ b/xfig/u_redraw.c
-@@ -434,7 +434,7 @@ redisplay_curobj()
- }
- } else {
- /* editing an object, just refresh it as is */
-- (*canvas_ref_proc)(cur_x, cur_y);
-+ if (canvas_ref_proc) (*canvas_ref_proc)(cur_x, cur_y);
- }
- }
-
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-gfx/xfig/files/
@ 2018-03-07 0:58 Andreas Sturmlechner
0 siblings, 0 replies; 4+ messages in thread
From: Andreas Sturmlechner @ 2018-03-07 0:58 UTC (permalink / raw
To: gentoo-commits
commit: dee9fe14f47bcbd13804d8513132cd2299832443
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Tue Mar 6 19:24:53 2018 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Mar 7 00:58:42 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dee9fe14
media-gfx/xfig: remove unused patch
Closes: https://github.com/gentoo/gentoo/pull/7379
media-gfx/xfig/files/xfig-3.2.5c-png16.patch | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/media-gfx/xfig/files/xfig-3.2.5c-png16.patch b/media-gfx/xfig/files/xfig-3.2.5c-png16.patch
deleted file mode 100644
index f7a426295d3..00000000000
--- a/media-gfx/xfig/files/xfig-3.2.5c-png16.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-Source: https://bugzilla.redhat.com/show_bug.cgi?id=1150330
-
-From: David Kaufmann <astra@ionic.at>
-Subject: Fix PNG reading
-
---- a/f_readpng.c 2014-09-15 13:25:26.290813563 +0200
-+++ a/f_readpng.c 2014-09-15 14:04:10.241297027 +0200
-@@ -90,8 +90,8 @@
- png_get_IHDR(png_ptr, info_ptr, &w, &h, &bit_depth, &color_type,
- &interlace_type, &compression_type, &filter_type);
-
-- png_fixed_point gamma = 0.45;
-- png_get_gAMA_fixed(png_ptr,info_ptr,&gamma);
-+ double gamma = 0.45455;
-+ png_get_gAMA(png_ptr,info_ptr,&gamma);
- png_set_gamma(png_ptr, 2.2, gamma);
-
- if (png_get_valid(png_ptr,info_ptr,PNG_INFO_bKGD)) {
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-gfx/xfig/files/
@ 2022-12-26 13:44 Conrad Kostecki
0 siblings, 0 replies; 4+ messages in thread
From: Conrad Kostecki @ 2022-12-26 13:44 UTC (permalink / raw
To: gentoo-commits
commit: cb4f73246a68b3e2dc6fbd7ff9bb5d208f4eec5c
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Mon Dec 26 08:31:03 2022 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Mon Dec 26 13:41:28 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb4f7324
media-gfx/xfig: remove unused patches
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/28813
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
media-gfx/xfig/files/xfig-3.2.6a-app-defaults.patch | 14 --------------
media-gfx/xfig/files/xfig-3.2.7b-ghostscript.patch | 13 -------------
2 files changed, 27 deletions(-)
diff --git a/media-gfx/xfig/files/xfig-3.2.6a-app-defaults.patch b/media-gfx/xfig/files/xfig-3.2.6a-app-defaults.patch
deleted file mode 100644
index 7d11b571df39..000000000000
--- a/media-gfx/xfig/files/xfig-3.2.6a-app-defaults.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-diff -ruN xfig-3.2.6a.orig/app-defaults/Fig xfig-3.2.6a/app-defaults/Fig
---- xfig-3.2.6a.orig/app-defaults/Fig 2017-01-10 00:27:39.000000000 +0100
-+++ xfig-3.2.6a/app-defaults/Fig 2017-03-24 16:22:14.702253419 +0100
-@@ -10,6 +10,10 @@
-
- ! some sample settings you may want to change
-
-+! If the following resource is set to false, xfig will use metric units
-+! by default.
-+Fig.inches: false
-+
- ! The following fixes a problem that some window managers have
- ! with xfig continually resizing itself
-
diff --git a/media-gfx/xfig/files/xfig-3.2.7b-ghostscript.patch b/media-gfx/xfig/files/xfig-3.2.7b-ghostscript.patch
deleted file mode 100644
index 07a7de141ec0..000000000000
--- a/media-gfx/xfig/files/xfig-3.2.7b-ghostscript.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/src/Makefile.in b/src/Makefile.in
-index 7426253..ae5b045 100644
---- a/src/Makefile.in
-+++ b/src/Makefile.in
-@@ -1356,7 +1356,7 @@ splash.xpm: $(top_srcdir)/splash-image/spl_bckgnd.fig.in \
- fig2dev -L xpm $(top_srcdir)/splash-image/spl_bckgnd.fig \
- | sed '2 {s/static //; s/noname/spl_bckgnd_xpm/}' > $@
-
--splash.xbm: $(top_srcdir)/splash-image/spl_bckgnd.fig $(top_srcdir)/version.m4
-+splash.xbm: $(top_srcdir)/splash-image/spl_bckgnd.fig.in $(top_srcdir)/version.m4
- fig2dev -L xbm -S 4 $(top_srcdir)/splash-image/spl_bckgnd.fig \
- | sed '1,3 s/noname/spl_bckgnd/; 3 s/char/unsigned &/' > $@
-
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-gfx/xfig/files/
@ 2024-02-17 14:35 David Seifert
0 siblings, 0 replies; 4+ messages in thread
From: David Seifert @ 2024-02-17 14:35 UTC (permalink / raw
To: gentoo-commits
commit: 0462d9b7b48ccdc169d09602107494dd0aceca18
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Sat Feb 17 14:35:18 2024 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Feb 17 14:35:18 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0462d9b7
media-gfx/xfig: remove unused patches
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Signed-off-by: David Seifert <soap <AT> gentoo.org>
media-gfx/xfig/files/xfig-3.2.6a-urwfonts.patch | 79 ----------------------
.../files/xfig-3.2.8b-Fix-build-with-flto.patch | 62 -----------------
.../xfig/files/xfig-3.2.8b-app-defaults.patch | 14 ----
3 files changed, 155 deletions(-)
diff --git a/media-gfx/xfig/files/xfig-3.2.6a-urwfonts.patch b/media-gfx/xfig/files/xfig-3.2.6a-urwfonts.patch
deleted file mode 100644
index 89957590af6d..000000000000
--- a/media-gfx/xfig/files/xfig-3.2.6a-urwfonts.patch
+++ /dev/null
@@ -1,79 +0,0 @@
---- a/src/u_fonts.c 2002-09-09 13:36:58.000000000 -0400
-+++ b/src/u_fonts.c 2006-10-11 00:29:07.000000000 -0400
-@@ -22,41 +22,41 @@
- /* X11 font names */
-
- struct _xfstruct x_fontinfo[NUM_FONTS] = {
-- {"-*-times-medium-r-normal--", (struct xfont*) NULL},
-- {"-*-times-medium-i-normal--", (struct xfont*) NULL},
-- {"-*-times-bold-r-normal--", (struct xfont*) NULL},
-- {"-*-times-bold-i-normal--", (struct xfont*) NULL},
-- {"-*-avantgarde-book-r-normal--", (struct xfont*) NULL},
-- {"-*-avantgarde-book-o-normal--", (struct xfont*) NULL},
-- {"-*-avantgarde-demi-r-normal--", (struct xfont*) NULL},
-- {"-*-avantgarde-demi-o-normal--", (struct xfont*) NULL},
-- {"-*-bookman-light-r-normal--", (struct xfont*) NULL},
-- {"-*-bookman-light-i-normal--", (struct xfont*) NULL},
-- {"-*-bookman-demi-r-normal--", (struct xfont*) NULL},
-- {"-*-bookman-demi-i-normal--", (struct xfont*) NULL},
-- {"-*-courier-medium-r-normal--", (struct xfont*) NULL},
-- {"-*-courier-medium-o-normal--", (struct xfont*) NULL},
-- {"-*-courier-bold-r-normal--", (struct xfont*) NULL},
-- {"-*-courier-bold-o-normal--", (struct xfont*) NULL},
-- {"-*-helvetica-medium-r-normal--", (struct xfont*) NULL},
-- {"-*-helvetica-medium-o-normal--", (struct xfont*) NULL},
-- {"-*-helvetica-bold-r-normal--", (struct xfont*) NULL},
-- {"-*-helvetica-bold-o-normal--", (struct xfont*) NULL},
-- {"-*-helvetica-medium-r-narrow--", (struct xfont*) NULL},
-- {"-*-helvetica-medium-o-narrow--", (struct xfont*) NULL},
-- {"-*-helvetica-bold-r-narrow--", (struct xfont*) NULL},
-- {"-*-helvetica-bold-o-narrow--", (struct xfont*) NULL},
-- {"-*-new century schoolbook-medium-r-normal--", (struct xfont*) NULL},
-- {"-*-new century schoolbook-medium-i-normal--", (struct xfont*) NULL},
-- {"-*-new century schoolbook-bold-r-normal--", (struct xfont*) NULL},
-- {"-*-new century schoolbook-bold-i-normal--", (struct xfont*) NULL},
-- {"-*-palatino-medium-r-normal--", (struct xfont*) NULL},
-- {"-*-palatino-medium-i-normal--", (struct xfont*) NULL},
-- {"-*-palatino-bold-r-normal--", (struct xfont*) NULL},
-- {"-*-palatino-bold-i-normal--", (struct xfont*) NULL},
-- {"-*-symbol-medium-r-normal--", (struct xfont*) NULL},
-- {"-*-itc zapf chancery-medium-i-normal--", (struct xfont*) NULL},
-- {"-*-itc zapf dingbats-*-*-*--", (struct xfont*) NULL},
-+ {"-urw-nimbus roman no9 l-medium-r-normal--", (struct xfont*) NULL},
-+ {"-urw-nimbus roman no9 l-medium-i-normal--", (struct xfont*) NULL},
-+ {"-urw-nimbus roman no9 l-bold-r-normal--", (struct xfont*) NULL},
-+ {"-urw-nimbus roman no9 l-bold-i-normal--", (struct xfont*) NULL},
-+ {"-urw-urw gothic l-medium-r-normal--", (struct xfont*) NULL},
-+ {"-urw-urw gothic l-medium-o-normal--", (struct xfont*) NULL},
-+ {"-urw-urw gothic l-semibold-r-normal--", (struct xfont*) NULL},
-+ {"-urw-urw gothic l-semibold-o-normal--", (struct xfont*) NULL},
-+ {"-urw-urw bookman l-medium-r-normal--", (struct xfont*) NULL},
-+ {"-urw-urw bookman l-medium-i-normal--", (struct xfont*) NULL},
-+ {"-urw-urw bookman l-bold-r-normal--", (struct xfont*) NULL},
-+ {"-urw-urw bookman l-bold-i-normal--", (struct xfont*) NULL},
-+ {"-urw-nimbus mono l-medium-r-normal--", (struct xfont*) NULL},
-+ {"-urw-nimbus mono l-medium-o-normal--", (struct xfont*) NULL},
-+ {"-urw-nimbus mono l-bold-r-normal--", (struct xfont*) NULL},
-+ {"-urw-nimbus mono l-bold-o-normal--", (struct xfont*) NULL},
-+ {"-urw-nimbus sans l-medium-r-normal--", (struct xfont*) NULL},
-+ {"-urw-nimbus sans l-medium-i-normal--", (struct xfont*) NULL},
-+ {"-urw-nimbus sans l-bold-r-normal--", (struct xfont*) NULL},
-+ {"-urw-nimbus sans l-bold-i-normal--", (struct xfont*) NULL},
-+ {"-urw-nimbus sans l-medium-r-condensed--", (struct xfont*) NULL},
-+ {"-urw-nimbus sans l-medium-i-condensed--", (struct xfont*) NULL},
-+ {"-urw-nimbus sans l-bold-r-condensed--", (struct xfont*) NULL},
-+ {"-urw-nimbus sans l-bold-i-condensed--", (struct xfont*) NULL},
-+ {"-urw-century schoolbook l-medium-r-normal--", (struct xfont*) NULL},
-+ {"-urw-century schoolbook l-medium-i-normal--", (struct xfont*) NULL},
-+ {"-urw-century schoolbook l-bold-r-normal--", (struct xfont*) NULL},
-+ {"-urw-century schoolbook l-bold-i-normal--", (struct xfont*) NULL},
-+ {"-urw-urw palladio l-medium-r-normal--", (struct xfont*) NULL},
-+ {"-urw-urw palladio l-medium-i-normal--", (struct xfont*) NULL},
-+ {"-urw-urw palladio l-bold-r-normal--", (struct xfont*) NULL},
-+ {"-urw-urw palladio l-bold-i-normal--", (struct xfont*) NULL},
-+ {"-urw-standard symbols l-medium-r-normal--", (struct xfont*) NULL},
-+ {"-urw-urw chancery l-medium-i-normal--", (struct xfont*) NULL},
-+ {"-urw-dingbats-medium-r-normal--", (struct xfont*) NULL},
- };
-
- /* Use the following font names for any font that doesn't exist in the table above.
diff --git a/media-gfx/xfig/files/xfig-3.2.8b-Fix-build-with-flto.patch b/media-gfx/xfig/files/xfig-3.2.8b-Fix-build-with-flto.patch
deleted file mode 100644
index 344d4df06e69..000000000000
--- a/media-gfx/xfig/files/xfig-3.2.8b-Fix-build-with-flto.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-https://sourceforge.net/p/mcj/tickets/149/
-
-From 938c4089e6cc09e6e327f15d622c064865f837ae Mon Sep 17 00:00:00 2001
-From: Matt Turner <mattst88@gmail.com>
-Date: Sat, 27 Aug 2022 09:14:55 -0400
-Subject: [PATCH] Fix build with -flto
-
-With CFLAGS="-lflto" the tests fail to build because main() is
-redeclared with a different type:
-
-../src/main.c:651:1: error: type of ‘main’ does not match original declaration [-Werror=lto-type-mismatch]
- 651 | main(int argc, char **argv)
- | ^
-test1.c:47:1: note: type mismatch in parameter 1
- 47 | main(void)
- | ^
-test1.c:47:1: note: type ‘void’ should match type ‘int’
-test1.c:47:1: note: ‘main’ was previously declared here
-
-Simply change the definitions of main() in the tests to match
-the one in src/main.c.
----
- tests/test1.c | 4 +++-
- tests/test2.c | 4 +++-
- tests/test4.c | 4 +++-
- 3 files changed, 9 insertions(+), 3 deletions(-)
-
-diff --git a/tests/test1.c b/tests/test1.c
-index 83cf930..da76dd7 100644
---- a/tests/test1.c
-+++ b/tests/test1.c
-@@ -44,8 +44,10 @@ round_coords(int *x, int *y)
- }
-
- int
--main(void)
-+main(int argc, char *argv[])
- {
-+ (void) argc;
-+ (void) argv;
- int errcode = 0;
-
- cur_pointposn = 2; /* == P_GRID1, see mode.h */
-diff --git a/tests/test2.c b/tests/test2.c
-index ab3b434..02e919c 100644
---- a/tests/test2.c
-+++ b/tests/test2.c
-@@ -77,8 +77,10 @@ compare(int xc, int yc, int n, int pts[n][2])
- }
-
- int
--main(void)
-+main(int argc, char *argv[])
- {
-+ (void) argc;
-+ (void) argv;
- int x, y, yspacing, xc, yc, dist, xdist;
- int error = 0;
- int pts_square[2][2];
---
-2.35.1
-
diff --git a/media-gfx/xfig/files/xfig-3.2.8b-app-defaults.patch b/media-gfx/xfig/files/xfig-3.2.8b-app-defaults.patch
deleted file mode 100644
index 3ca0f99963ac..000000000000
--- a/media-gfx/xfig/files/xfig-3.2.8b-app-defaults.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-diff -ruN xfig-3.2.8b.orig/app-defaults/Fig xfig-3.2.6a/app-defaults/Fig
---- xfig-3.2.8b.orig/app-defaults/Fig.in 2017-01-10 00:27:39.000000000 +0100
-+++ xfig-3.2.8b/app-defaults/Fig.in 2017-03-24 16:22:14.702253419 +0100
-@@ -10,6 +10,10 @@
-
- ! some sample settings you may want to change
-
-+! If the following resource is set to false, xfig will use metric units
-+! by default.
-+Fig.inches: false
-+
- ! The following fixes a problem that some window managers have
- ! with xfig continually resizing itself
-
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-02-17 14:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-17 14:35 [gentoo-commits] repo/gentoo:master commit in: media-gfx/xfig/files/ David Seifert
-- strict thread matches above, loose matches on Subject: below --
2022-12-26 13:44 Conrad Kostecki
2018-03-07 0:58 Andreas Sturmlechner
2016-12-28 16:49 Göktürk Yüksek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox