public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-gfx/transfig/, media-gfx/transfig/files/
@ 2020-02-09 23:05 David Seifert
  0 siblings, 0 replies; 3+ messages in thread
From: David Seifert @ 2020-02-09 23:05 UTC (permalink / raw
  To: gentoo-commits

commit:     cd9d188a8f54069511f93f0846bb2cd3b5ffff7e
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Feb  9 23:05:01 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Feb  9 23:05:01 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd9d188a

media-gfx/transfig: Fix GCC10 -fno-common

Closes: https://bugs.gentoo.org/706706
Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../files/transfig-3.2.5e-gcc10-fno-common.patch   | 30 ++++++++++++++++++++++
 media-gfx/transfig/transfig-3.2.5e.ebuild          |  3 ++-
 2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/media-gfx/transfig/files/transfig-3.2.5e-gcc10-fno-common.patch b/media-gfx/transfig/files/transfig-3.2.5e-gcc10-fno-common.patch
new file mode 100644
index 00000000000..e0c92161e3f
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5e-gcc10-fno-common.patch
@@ -0,0 +1,30 @@
+--- a/fig2dev/dev/gensvg.c
++++ b/fig2dev/dev/gensvg.c
+@@ -230,10 +230,12 @@
+ };
+ 
+ /* arrowhead arrays */
+-Point   points[50], fillpoints[50], clippoints[50];
+-int     npoints, nfillpoints, nclippoints;
+-int     arrowx1, arrowy1;	/* first point of object */
+-int     arrowx2, arrowy2;	/* second point of object */
++Point   fillpoints[50];
++int     nfillpoints;
++extern Point   points[50], clippoints[50];
++extern int     npoints, nclippoints;
++extern int     arrowx1, arrowy1;	/* first point of object */
++extern int     arrowx2, arrowy2;	/* second point of object */
+ 
+ static int tileno=0; /* number of current tile */ 
+ 
+--- a/fig2dev/fig2dev.h
++++ b/fig2dev/fig2dev.h
+@@ -127,7 +127,7 @@
+ extern char	*prog, *from, *to;
+ extern char	*name;
+ extern double	font_size;
+-Boolean	correct_font_size;	/* use correct font size */
++extern Boolean	correct_font_size;	/* use correct font size */
+ extern double	mag, fontmag;
+ extern FILE	*tfp;
+ 

diff --git a/media-gfx/transfig/transfig-3.2.5e.ebuild b/media-gfx/transfig/transfig-3.2.5e.ebuild
index 7e9dcc63d77..668facad5ec 100644
--- a/media-gfx/transfig/transfig-3.2.5e.ebuild
+++ b/media-gfx/transfig/transfig-3.2.5e.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="4"
@@ -54,6 +54,7 @@ src_prepare() {
 	epatch "${WORKDIR}/${P}-gentoo-patchset"/${PN}-3.2.5e-typos.patch
 	epatch "${WORKDIR}/${P}-gentoo-patchset"/${PN}-3.2.5e-man-hyphen.patch
 	epatch "${WORKDIR}/${P}-gentoo-patchset"/${PN}-3.2.5e-fprintf_format_warnings.patch
+	epatch "${FILESDIR}"/${PN}-3.2.5e-gcc10-fno-common.patch
 
 	sed -e 's:-L$(ZLIBDIR) -lz::' \
 		-e 's: -lX11::' \


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-gfx/transfig/, media-gfx/transfig/files/
@ 2020-10-12 17:27 Stephan Hartmann
  0 siblings, 0 replies; 3+ messages in thread
From: Stephan Hartmann @ 2020-10-12 17:27 UTC (permalink / raw
  To: gentoo-commits

commit:     9c5b4234f9a3880763a11c47407bf8fe947da1d9
Author:     Stephan Hartmann <sultan <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 12 17:27:23 2020 +0000
Commit:     Stephan Hartmann <sultan <AT> gentoo <DOT> org>
CommitDate: Mon Oct 12 17:27:23 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c5b4234

media-gfx/transfig: EAPI 7, respect CC/AR/RANLIB

Closes: https://bugs.gentoo.org/746020
Closes: https://bugs.gentoo.org/740006
Closes: https://bugs.gentoo.org/730926
Closes: https://bugs.gentoo.org/720820
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Stephan Hartmann <sultan <AT> gentoo.org>

 media-gfx/transfig/Manifest                        |  2 +-
 .../transfig/files/transfig-3.2.5e-clang.patch     | 12 ++++++
 media-gfx/transfig/transfig-3.2.5e.ebuild          | 50 ++++++++++++++--------
 3 files changed, 45 insertions(+), 19 deletions(-)

diff --git a/media-gfx/transfig/Manifest b/media-gfx/transfig/Manifest
index 703dc9c1088..5fd1de7e62f 100644
--- a/media-gfx/transfig/Manifest
+++ b/media-gfx/transfig/Manifest
@@ -1,3 +1,3 @@
 DIST fig2mpdf-1.1.2.tar.bz2 191438 BLAKE2B 411791fecf6e10aac92c004c7da69a10c97a6e12f811452f12d0b51b3a1eeff8fff97d831a5e64c9047855d27e6825a4e65f62be2536651e5876edd00cc822a9 SHA512 36dea40008371386b47a4451e2f311cc2540ab063e3b61e628a535775d62a8840c5cc20c37b80465184bf041c6e583aaf3e5156079e72211d0a87ff3346d2980
-DIST transfig-3.2.5e-gentoo-patchset.tar.bz2 21130 BLAKE2B 1c07bc7e85fdde29f5e9290bf3c0df75610a7c219f001920b7412d2c104fe1d8d5b2698d91cde1c08f57d4718547c2dffa0aa859bd53a295c55a285ca4f5fbb7 SHA512 4c6ca63159ae58c35c1a9c818bc3b29715a4015e6a11d283b4d0c57c0cfeccbf38160f61f3c91f9bc68f82a8b5676349bb98866f40f617bb95afd73267d00e97
+DIST transfig-3.2.5e-gentoo-patchset-r1.tar.bz2 21160 BLAKE2B 093020827fc0636f7549c3b325e4f148aa52407d8e288038dd02012875737523e83e0717662d04e463a01e8cfacfabffaaa4362b5bb1276c4f2052f6653fa26f SHA512 dbef1ca464929de45f3c706e76eb9f324ea9e692cc8c924893926e07ef7d4e0dbe597bcf465a9c7fc9fca22abe0acc6784ab09658a18aeff4ba44921b52b02ff
 DIST transfig.3.2.5e.tar.gz 531256 BLAKE2B 830a97cb801b9cb284f7746a7f4a9645263cc34fd35d904288143d730331901302b12223ba135d8fa936f5ca0eeccacd194bbe2e74dfcfbf0cf4aede273ab507 SHA512 ed1379f1112514d90a4b3eecd3222baad311d804b5090e8e66867ec299e4f9a5f8d83ef8939aa6ecaa85a18143b8fb9b97f78e078ac5eeb934a158c55de6bb1e

diff --git a/media-gfx/transfig/files/transfig-3.2.5e-clang.patch b/media-gfx/transfig/files/transfig-3.2.5e-clang.patch
new file mode 100644
index 00000000000..f75b649ff26
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5e-clang.patch
@@ -0,0 +1,12 @@
+index 6a622f1..a14b96f 100644
+--- a/fig2dev/dev/genibmgl.c
++++ b/fig2dev/dev/genibmgl.c
+@@ -572,7 +572,7 @@ static set_width(w)
+ {
+     static int current_width=-1;
+ 
+-    if (w == current_width) return;
++    if (w == current_width) return 0;
+ 
+     /* Default line width is 0.3 mm; back off to original xfig pen
+        thickness number, and re-size.

diff --git a/media-gfx/transfig/transfig-3.2.5e.ebuild b/media-gfx/transfig/transfig-3.2.5e.ebuild
index da2af8a5f30..490c5e08c4b 100644
--- a/media-gfx/transfig/transfig-3.2.5e.ebuild
+++ b/media-gfx/transfig/transfig-3.2.5e.ebuild
@@ -1,8 +1,8 @@
 # Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="4"
-inherit toolchain-funcs eutils flag-o-matic multilib
+EAPI=7
+inherit flag-o-matic toolchain-funcs
 
 MY_P=${PN}.${PV}
 
@@ -10,12 +10,11 @@ DESCRIPTION="A set of tools for creating TeX documents with graphics"
 HOMEPAGE="https://www.xfig.org/"
 SRC_URI="mirror://sourceforge/mcj/${MY_P}.tar.gz
 	mirror://gentoo/fig2mpdf-1.1.2.tar.bz2
-	https://dev.gentoo.org/~mgorny/dist/${P}-gentoo-patchset.tar.bz2"
+	https://dev.gentoo.org/~sultan/distfiles/media-gfx/transfig/${P}-gentoo-patchset-r1.tar.bz2"
 
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
-IUSE=""
 
 RDEPEND="x11-libs/libXpm
 	virtual/jpeg
@@ -27,6 +26,20 @@ DEPEND="${RDEPEND}
 
 S=${WORKDIR}/${MY_P}
 
+PATCHES=(
+	"${WORKDIR}/${P}-gentoo-patchset/${PN}-3.2.5d-fig2mpdf-r1.patch"
+	"${WORKDIR}/${P}-gentoo-patchset/${PN}-3.2.5c-maxfontsize.patch"
+	"${WORKDIR}/${P}-gentoo-patchset/${PN}-3.2.5-solaris.patch"
+	"${WORKDIR}/${P}-gentoo-patchset/${PN}-3.2.5e-typos.patch"
+	"${WORKDIR}/${P}-gentoo-patchset/${PN}-3.2.5e-man-hyphen.patch"
+	"${WORKDIR}/${P}-gentoo-patchset/${PN}-3.2.5e-fprintf_format_warnings.patch"
+	"${FILESDIR}/${PN}-3.2.5e-gcc10-fno-common.patch"
+	"${FILESDIR}/${PN}-3.2.5e-clang.patch"
+)
+
+DOCS=( README CHANGES LATEX.AND.XFIG NOTES )
+HTML_DOCS=( "${WORKDIR}/fig2mpdf/doc/." )
+
 sed_Imakefile() {
 	# see fig2dev/Imakefile for details
 	vars2subs="BINDIR=${EPREFIX}/usr/bin
@@ -41,20 +54,20 @@ sed_Imakefile() {
 	for variable in ${vars2subs} ; do
 		varname=${variable%%=*}
 		varval=${variable##*=}
-		sed -i "s:^\(XCOMM\)*[[:space:]]*${varname}[[:space:]]*=.*$:${varname} = ${varval}:" "$@"
+		sed -i "s:^\(XCOMM\)*[[:space:]]*${varname}[[:space:]]*=.*$:${varname} = ${varval}:" "$@" || die
 	done
 }
 
 src_prepare() {
-	find . -type f -exec chmod a-x '{}' \;
-	find . -name Makefile -delete
-	epatch "${WORKDIR}/${P}-gentoo-patchset"/${PN}-3.2.5d-fig2mpdf-r1.patch
-	epatch "${WORKDIR}/${P}-gentoo-patchset"/${PN}-3.2.5c-maxfontsize.patch
-	epatch "${WORKDIR}/${P}-gentoo-patchset"/${PN}-3.2.5-solaris.patch
-	epatch "${WORKDIR}/${P}-gentoo-patchset"/${PN}-3.2.5e-typos.patch
-	epatch "${WORKDIR}/${P}-gentoo-patchset"/${PN}-3.2.5e-man-hyphen.patch
-	epatch "${WORKDIR}/${P}-gentoo-patchset"/${PN}-3.2.5e-fprintf_format_warnings.patch
-	epatch "${FILESDIR}"/${PN}-3.2.5e-gcc10-fno-common.patch
+	default
+
+	# Create wrapper for gcc, bug #720820
+	printf '#!/bin/sh\n%s ${*}\n' "$(tc-getCC)" > "${T}"/gcc
+	chmod +x "${T}"/gcc
+	export PATH="${T}:${PATH}"
+
+	find . -type f -exec chmod a-x '{}' \; || die
+	find . -name Makefile -delete || die
 
 	sed -e 's:-L$(ZLIBDIR) -lz::' \
 		-e 's: -lX11::' \
@@ -66,7 +79,8 @@ src_compile() {
 	xmkmf || die "xmkmf failed"
 	emake Makefiles
 
-	emake CC="$(tc-getCC)" LOCAL_LDFLAGS="${LDFLAGS}" CDEBUGFLAGS="${CFLAGS}" \
+	emake CC="$(tc-getCC)" AR="$(tc-getAR) clq" RANLIB="$(tc-getRANLIB)" \
+		LOCAL_LDFLAGS="${LDFLAGS}" CDEBUGFLAGS="${CFLAGS}" \
 		USRLIBDIR="${EPREFIX}/usr/$(get_libdir)"
 }
 
@@ -82,11 +96,11 @@ src_install() {
 	newins "${WORKDIR}/${P}-gentoo-patchset/transfig-ru_RU.KOI8-R.ps" ru_RU.KOI8-R.ps
 	newins "${WORKDIR}/${P}-gentoo-patchset/transfig-uk_UA.KOI8-U.ps" uk_UA.KOI8-U.ps
 
-	dohtml "${WORKDIR}/fig2mpdf/doc/"*
+	einstalldocs
 
-	mv "${ED}"/usr/bin/fig2ps2tex{.sh,} || die #338295
+	rm -f "${ED}/usr/share/doc/${PF}/html/"{Makefile,*.lfig,*.pdf,*.tex} || die
 
-	dodoc README CHANGES LATEX.AND.XFIG NOTES
+	mv "${ED}"/usr/bin/fig2ps2tex{.sh,} || die #338295
 }
 
 pkg_postinst() {


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-gfx/transfig/, media-gfx/transfig/files/
@ 2024-01-24 13:38 Sam James
  0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2024-01-24 13:38 UTC (permalink / raw
  To: gentoo-commits

commit:     aecf0e611fd26ef621d8096459595cc6ccba3c49
Author:     Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de>
AuthorDate: Tue Jan 23 07:12:36 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jan 24 13:37:35 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aecf0e61

media-gfx/transfig: fix modern C issues

Closes: https://bugs.gentoo.org/875419
Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de>
Closes: https://github.com/gentoo/gentoo/pull/34971
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../transfig/files/transfig-3.2.5e-clang-17.patch  | 258 +++++++++++++++++++++
 media-gfx/transfig/transfig-3.2.5e-r2.ebuild       |   1 +
 2 files changed, 259 insertions(+)

diff --git a/media-gfx/transfig/files/transfig-3.2.5e-clang-17.patch b/media-gfx/transfig/files/transfig-3.2.5e-clang-17.patch
new file mode 100644
index 000000000000..a4b68f22e55e
--- /dev/null
+++ b/media-gfx/transfig/files/transfig-3.2.5e-clang-17.patch
@@ -0,0 +1,258 @@
+diff --git a/fig2dev/dev/genibmgl.c b/fig2dev/dev/genibmgl.c
+index a14b96f..e24b181 100644
+--- a/fig2dev/dev/genibmgl.c
++++ b/fig2dev/dev/genibmgl.c
+@@ -50,7 +50,7 @@
+ #include "fig2dev.h"
+ #include "object.h"
+ 
+-static set_style();
++static void set_style();
+ 
+ #define		FONTS 			35
+ #define		COLORS 			8
+@@ -458,7 +458,7 @@ F_compound	*objects;
+ 	    fprintf(tfp, "VS%.2f;\n", pen_speed);
+ }
+ 
+-static arc_tangent(x1, y1, x2, y2, direction, x, y)
++static void arc_tangent(x1, y1, x2, y2, direction, x, y)
+ double	x1, y1, x2, y2, *x, *y;
+ int	direction;
+ {
+@@ -474,7 +474,7 @@ int	direction;
+ 
+ /*	draw arrow heading from (x1, y1) to (x2, y2)	*/
+ 
+-static draw_arrow_head(x1, y1, x2, y2, arrowht, arrowwid)
++static void draw_arrow_head(x1, y1, x2, y2, arrowht, arrowwid)
+ double	x1, y1, x2, y2, arrowht, arrowwid;
+ {
+ 	double	x, y, xb, yb, dx, dy, l, sina, cosa;
+@@ -512,7 +512,7 @@ double	x1, y1, x2, y2, arrowht, arrowwid;
+ /* 
+  * set_style - issue line style commands as appropriate
+  */
+-static set_style(style, length)
++static void set_style(style, length)
+ int	style;
+ double	length;
+ {
+@@ -567,7 +567,7 @@ double	length;
+  * set_width - issue line width commands as appropriate
+  *		NOTE: HPGL/2 command used
+  */
+-static set_width(w)
++static int set_width(w)
+     int	w;
+ {
+     static int current_width=-1;
+@@ -585,7 +585,7 @@ static set_width(w)
+ /* 
+  * set_color - issue line color commands as appropriate
+  */
+-static set_color(color)
++static void set_color(color)
+     int	color;
+ {
+     static	int	number		 = 0;	/* 1 <= number <= 8		*/
+@@ -604,7 +604,7 @@ static set_color(color)
+ 	    }
+ }
+ 
+-static fill_polygon(pattern, color)
++static void fill_polygon(pattern, color)
+     int	pattern;
+     int	color;
+ {
+@@ -876,7 +876,7 @@ void genibmgl_line(l)
+ 
+ #define		THRESHOLD	.05	/* inch */
+ 
+-static bezier_spline(a0, b0, a1, b1, a2, b2, a3, b3)
++static void bezier_spline(a0, b0, a1, b1, a2, b2, a3, b3)
+     double	a0, b0, a1, b1, a2, b2, a3, b3;
+ {
+ 	double	x0, y0, x3, y3;
+@@ -932,7 +932,7 @@ F_spline	*s;
+ 		    s->for_arrow->ht/ppi, s->for_arrow->wid/ppi);
+ 	}
+ 
+-static quadratic_spline(a1, b1, a2, b2, a3, b3, a4, b4)
++static void quadratic_spline(a1, b1, a2, b2, a3, b3, a4, b4)
+ double	a1, b1, a2, b2, a3, b3, a4, b4;
+ {
+ 	double	x1, y1, x4, y4;
+diff --git a/fig2dev/dev/genpstex.c b/fig2dev/dev/genpstex.c
+index 7ab1fb5..8768d4e 100644
+--- a/fig2dev/dev/genpstex.c
++++ b/fig2dev/dev/genpstex.c
+@@ -42,6 +42,7 @@
+ #include "genpdf.h"
+ #include "object.h"
+ #include "texfonts.h"
++#include "setfigfont.h"
+ 
+ extern double rad2deg;
+ 
+@@ -105,7 +106,7 @@ static void genpstex_p_finalize_objects(int depth);
+ 
+ /*************************************************************************
+  *************************************************************************/
+-static
++static int
+ translate2(xp, yp)
+   int	*xp, *yp;
+ {
+@@ -113,7 +114,7 @@ translate2(xp, yp)
+ 	*yp = (double)(TOP - *yp -1);
+ 	}
+ 
+-static
++static int
+ translate1_d(xp, yp)
+   double	*xp, *yp;
+ {
+@@ -121,7 +122,7 @@ translate1_d(xp, yp)
+ 	*yp = *yp + 1.0;
+ 	}
+ 
+-static
++static int
+ translate2_d(xp, yp)
+   double	*xp, *yp;
+ {
+diff --git a/fig2dev/dev/genshape.c b/fig2dev/dev/genshape.c
+index f59448d..b320605 100644
+--- a/fig2dev/dev/genshape.c
++++ b/fig2dev/dev/genshape.c
+@@ -97,7 +97,7 @@ struct shapegroup {
+ typedef struct shapegroup shapegroup;
+ 
+ static shapegroup *shapegroups;
+-static num_shapegroups=0;
++static int num_shapegroups=0;
+ 
+ 
+ static void alloc_arrays() {
+@@ -615,7 +615,7 @@ static intersect_point *intersect_points=NULL;
+ static int MAX_INTERSECTPOINTS=0;
+ #define INTERSECTPOINT_INC 100
+ 
+-static realloc_intersects(int minimum) {
++static void realloc_intersects(int minimum) {
+   while (minimum>=MAX_INTERSECTPOINTS) {
+     MAX_INTERSECTPOINTS+=INTERSECTPOINT_INC;
+     intersect_points=realloc(intersect_points, sizeof(intersect_points[0])*MAX_INTERSECTPOINTS);
+diff --git a/fig2dev/dev/readpcx.c b/fig2dev/dev/readpcx.c
+index 5b2d3d0..47270da 100644
+--- a/fig2dev/dev/readpcx.c
++++ b/fig2dev/dev/readpcx.c
+@@ -72,7 +72,7 @@ void dispbyte(unsigned char *ptr,int *xp,int *yp,int c,int w,int h,
+ 
+ void pcx_decode();
+ 
+-_read_pcx(pcxfile,pic)
++int _read_pcx(pcxfile,pic)
+     FILE	*pcxfile;
+     F_pic	*pic;
+ {
+diff --git a/fig2dev/fig2dev.c b/fig2dev/fig2dev.c
+index 93df432..a0b829e 100644
+--- a/fig2dev/fig2dev.c
++++ b/fig2dev/fig2dev.c
+@@ -373,7 +373,7 @@ grid_usage()
+      fprintf(stderr,"  Ignoring grid.\n");
+ }
+ 
+-main(argc, argv)
++void main(argc, argv)
+ int	 argc;
+ char	*argv[];
+ {
+diff --git a/fig2dev/fig2dev.h b/fig2dev/fig2dev.h
+index 512cddf..346793f 100644
+--- a/fig2dev/fig2dev.h
++++ b/fig2dev/fig2dev.h
+@@ -160,6 +160,10 @@ extern Boolean	psencode_header_done; /* if we have already emitted PSencode head
+ extern Boolean	transp_header_done;   /* if we have already emitted transparent image header */
+ extern Boolean	grayonly;	/* convert colors to grayscale (-N option) */
+ 
++static void     arc_tangent(double x1, double y1, double x2, double y2, int direction, double *x, double *y);
++extern void	 arc_tangent_int(double x1, double y1, double x2, double y2, int direction, int *x, int *y);
++extern int      depth_filter(int);
++
+ struct paperdef
+ {
+     char *name;			/* name for paper size */
+diff --git a/fig2dev/latex_line.c b/fig2dev/latex_line.c
+index cede1d2..cef37d0 100644
+--- a/fig2dev/latex_line.c
++++ b/fig2dev/latex_line.c
+@@ -173,7 +173,7 @@ get_slope(dx, dy, sxp, syp, arrow)
+     if (dy < 0) *syp = -*syp;
+ }
+ 
+-latex_endpoint(x1, y1, x2, y2, xout, yout, arrow, magnet)
++void latex_endpoint(x1, y1, x2, y2, xout, yout, arrow, magnet)
+     int  x1, y1, x2, y2;
+     int  *xout, *yout;
+     int  arrow, magnet;
+diff --git a/transfig/sys.c b/transfig/sys.c
+index 8d78394..f2fc227 100644
+--- a/transfig/sys.c
++++ b/transfig/sys.c
+@@ -14,6 +14,12 @@
+  *
+  */
+ 
++#define _POSIX_SOURCE
++#include <fcntl.h>
++#include <sys/stat.h>
++#include <sys/types.h>
++#include <unistd.h>
++#undef _POSIX_SOURCE
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+@@ -41,7 +47,7 @@ char *sysls()
+   return sysbuf;
+ }
+ 
+-sysmv(file)
++void sysmv(file)
+ char *file;
+ {
+   sprintf(sysbuf, "%s~", file);
+diff --git a/transfig/transfig.c b/transfig/transfig.c
+index 798d05a..0688e84 100644
+--- a/transfig/transfig.c
++++ b/transfig/transfig.c
+@@ -26,6 +26,7 @@
+ 
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include "patchlevel.h"
+ #include "transfig.h"
+ 
+@@ -87,7 +88,7 @@ char *iname[] = {
+ 	"ps",
+ 	"eps"};
+  
+-main(argc, argv)
++int main(argc, argv)
+ int argc;
+ char *argv[];
+ {
+diff --git a/transfig/transfig.h b/transfig/transfig.h
+index 6773e29..0bf0d50 100644
+--- a/transfig/transfig.h
++++ b/transfig/transfig.h
+@@ -56,3 +56,6 @@ extern char *txfile, *mkfile;
+ extern char *optarg;
+ extern int optind;
+ 
++extern void sysmv();
++extern void makefile();
++extern void texfile();

diff --git a/media-gfx/transfig/transfig-3.2.5e-r2.ebuild b/media-gfx/transfig/transfig-3.2.5e-r2.ebuild
index 1023a8bf3799..ebb7a376390f 100644
--- a/media-gfx/transfig/transfig-3.2.5e-r2.ebuild
+++ b/media-gfx/transfig/transfig-3.2.5e-r2.ebuild
@@ -40,6 +40,7 @@ PATCHES=(
 	"${WORKDIR}/${P}-gentoo-patchset/${PN}-3.2.5e-fprintf_format_warnings.patch"
 	"${FILESDIR}/${PN}-3.2.5e-gcc10-fno-common.patch"
 	"${FILESDIR}/${PN}-3.2.5e-clang.patch"
+	"${FILESDIR}/${PN}-3.2.5e-clang-17.patch"
 )
 
 DOCS=( README CHANGES LATEX.AND.XFIG NOTES )


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-24 13:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-12 17:27 [gentoo-commits] repo/gentoo:master commit in: media-gfx/transfig/, media-gfx/transfig/files/ Stephan Hartmann
  -- strict thread matches above, loose matches on Subject: below --
2024-01-24 13:38 Sam James
2020-02-09 23:05 David Seifert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox