Index: texk/gsftopk/gsftopk.c
diff -Nau texk/gsftopk/gsftopk.c.orig texk/gsftopk/gsftopk.c
--- texk/gsftopk/gsftopk.c.orig	2005-03-15 13:05:16.817449597 +0100
+++ texk/gsftopk/gsftopk.c	2005-03-15 13:06:07.241499293 +0100
@@ -417,7 +417,7 @@
 Boolean		dosnames	= False;
 Boolean		quiet		= False;
 
-struct option {
+struct option_loc {
 	const char	*longname;
 	short		shortname;
 	Boolean		has_arg;
@@ -425,7 +425,7 @@
 	int		value;
 };
 
-static	const struct option	options[]	= {
+static	const struct option_loc	options[]	= {
 		{"test",	't',	False,	&test,	True},
 		{"mapline",	0,	True,	&mapline, 0},
 		{"mapfile",	0,	True,	&mapfile, 0},
@@ -2099,8 +2099,8 @@
 
 	argp = argv;
 	while (++argp < argv + argc && (*argp)[0] == '-') {
-	    const struct option *opt_ptr;
-	    const struct option *opt;
+	    const struct option_loc *opt_ptr;
+	    const struct option_loc *opt;
 	    char *arg = *argp + 1;
 
 	    if (*arg == '\0') --arg;	/* this will flag an error later */

Index: texk/dvipsk/texc.script
--- texk/dvipsk/texc.script.orig	2005-09-25 22:05:56 +0200
+++ texk/dvipsk/texc.script	2005-09-25 22:05:56 +0200
@@ -4,9 +4,7 @@
 # To use it, say
 #       texc.script tex.lpro texc.lpro
 #
-ed $1 <<edscriptend
-/% begin code for uncompressed fonts only/d
-.,/% end code for uncompressed fonts only/d
-.,/% end of code for unpacking compressed fonts/s/% //
-w $2
-edscriptend
+sed <$1 \
+-e '/% end code for uncompressed fonts only/,/% end of code for unpacking compressed fonts/s/% //' \
+-e '/% begin code for uncompressed fonts only/,/end code for uncompressed fonts only/d' \
+>$2

Index: texk/web2c/omegafonts/pl.l
--- texk/web2c/omegafonts/pl.l.orig	2003-05-06 10:30:52 +0200
+++ texk/web2c/omegafonts/pl.l	2007-12-22 12:11:05 +0100
@@ -63,12 +63,6 @@
 
 %}
 
-/* For Solaris's lex, to increase tables sizes --RP */
-/* Space before number keeps ancient flex happy. */
-%e 4000
-%p 7000
-%n 1000
-
 ws		[ \t]+
 hexnumber       H{ws}[A-F0-9]+
 octnumber       O{ws}[0-7]+
