1
0
forked from ports/opt

[security] tetex: updated with xpdf patches (thanks to Han)

This commit is contained in:
Simone Rota 2005-12-14 20:51:15 +00:00
parent 555ad796a2
commit c8aeefbb5a
4 changed files with 6 additions and 141 deletions

View File

@ -1,3 +1,4 @@
944a4641e79e61043fdaf8f38ecbb4b3 tetex-src-3.0.tar.gz
11aa15c8d3e28ee7815e0d5fcdf43fd4 tetex-texmf-3.0.tar.gz
66c32a11964a49982ba2a32d3bbfe7f5 tetex-texmfsrc-3.0.tar.gz
61931ac0887f5c29d494ef58b661f51c tetex.patch.gz

View File

@ -6,15 +6,17 @@
name=tetex
version=3.0
release=2
release=3
source=(ftp://dante.ctan.org/pub/tex/systems/unix/teTeX/current/distrib/$name-src-$version.tar.gz \
ftp://dante.ctan.org/pub/tex/systems/unix/teTeX/current/distrib/$name-texmf-$version.tar.gz \
ftp://dante.ctan.org/pub/tex/systems/unix/teTeX/current/distrib/$name-texmfsrc-$version.tar.gz)
ftp://dante.ctan.org/pub/tex/systems/unix/teTeX/current/distrib/$name-texmfsrc-$version.tar.gz \
$name.patch.gz)
build() {
mkdir -p $PKG/usr/share/texmf
cp -r `/bin/ls | grep -v $name-src-$version` $PKG/usr/share/texmf/
cd $name-src-$version
zcat $SRC/tetex.patch.gz| patch -p0
./configure --prefix=/usr \
--datadir=/usr/share \
--disable-multiplatform \
@ -37,4 +39,5 @@ build() {
make DESTDIR=$PKG prefix=$PKG/usr texmf=$PKG/usr/share/texmf install
rm -rf $PKG/usr/info $PKG/usr/share/texmf/doc
rm -f $PKG/usr/share/texmf/tetex.patch.gz
}

View File

@ -1,139 +0,0 @@
diff -r -u tetex-src-2.0.2.orig/texk/web2c/omegafonts/pl.l tetex-src-2.0.2/texk/web2c/omegafonts/pl.l
--- tetex-src-2.0.2.orig/texk/web2c/omegafonts/pl.l 2004-05-11 13:42:05.403240979 +0200
+++ tetex-src-2.0.2/texk/web2c/omegafonts/pl.l 2004-05-11 14:05:56.433193147 +0200
@@ -61,6 +61,67 @@
#define BASE_MIN 2
#define BASE_MAX 16
+void
+scan_string(char *attribute, unsigned keep, unsigned length)
+{
+ register unsigned c, saved_ptr = 0, paren_level = 0;
+ unsigned error_msg = FALSE;
+
+ if ((keep<KEEP_MIN) || (keep>KEEP_MAX))
+ internal_error_1("scan_string (keep=%d)", keep);
+ while (((c = input()) != EOF) &&
+ ((c == ' ') || (c == '\t') || (c == '\n'))) {
+ if (c == '\n') {line_number++;}
+ }
+ if (c==EOF) fatal_error_s("EOF while scanning %s", attribute);
+ while ((c != EOF) &&
+ ((c != ')') || (paren_level>0))) {
+ if (c==')') {
+ paren_level--;
+ if (keep==KEEP_CONVERT) {
+ lex_error_s_1("%s character (H %X) converted to slash",
+ attribute, c);
+ c = '/';
+ }
+ } else if (c=='(') {
+ paren_level++;
+ if (keep==KEEP_CONVERT) {
+ lex_error_s_1("%s character (H %X) converted to slash",
+ attribute, c);
+ c = '/';
+ }
+ } else if ((c<' ') || (c>='~')) {
+ if (c=='\n') line_number++;
+ if (keep==KEEP_CONVERT) {
+ lex_error_s_1("%s character (H %X) converted to blank",
+ attribute, c);
+ c = ' ';
+ }
+ }
+ if (saved_ptr<(MAX_PTR-3))
+ saved_text[saved_ptr++] = c;
+ else if (error_msg == FALSE) {
+ lex_error_s_1("%s string longer than %d characters; truncating",
+ attribute, MAX_PTR);
+ error_msg = TRUE;
+ }
+ c = input();
+ }
+ if (c==EOF) fatal_error_s("EOF while scanning %s", attribute);
+ unput(')');
+ saved_text[saved_ptr++] = '\0';
+ if (keep!=KEEP_NONE) {
+ if ((length != 0) && (strlen(saved_text)>length)) {
+ lex_error_s_1("%s string limited to %d characters; truncated",
+ attribute, length);
+ saved_text[length] = '\0';
+ }
+ yylval.ystring = xstrdup(saved_text);
+ } else {
+ yylval.ystring = NULL;
+ }
+}
+
%}
/* For Solaris's lex, to increase tables sizes --RP */
@@ -412,67 +473,6 @@
}
void
-scan_string(char *attribute, unsigned keep, unsigned length)
-{
- register unsigned c, saved_ptr = 0, paren_level = 0;
- unsigned error_msg = FALSE;
-
- if ((keep<KEEP_MIN) || (keep>KEEP_MAX))
- internal_error_1("scan_string (keep=%d)", keep);
- while (((c = input()) != EOF) &&
- ((c == ' ') || (c == '\t') || (c == '\n'))) {
- if (c == '\n') {line_number++;}
- }
- if (c==EOF) fatal_error_s("EOF while scanning %s", attribute);
- while ((c != EOF) &&
- ((c != ')') || (paren_level>0))) {
- if (c==')') {
- paren_level--;
- if (keep==KEEP_CONVERT) {
- lex_error_s_1("%s character (H %X) converted to slash",
- attribute, c);
- c = '/';
- }
- } else if (c=='(') {
- paren_level++;
- if (keep==KEEP_CONVERT) {
- lex_error_s_1("%s character (H %X) converted to slash",
- attribute, c);
- c = '/';
- }
- } else if ((c<' ') || (c>='~')) {
- if (c=='\n') line_number++;
- if (keep==KEEP_CONVERT) {
- lex_error_s_1("%s character (H %X) converted to blank",
- attribute, c);
- c = ' ';
- }
- }
- if (saved_ptr<(MAX_PTR-3))
- saved_text[saved_ptr++] = c;
- else if (error_msg == FALSE) {
- lex_error_s_1("%s string longer than %d characters; truncating",
- attribute, MAX_PTR);
- error_msg = TRUE;
- }
- c = input();
- }
- if (c==EOF) fatal_error_s("EOF while scanning %s", attribute);
- unput(')');
- saved_text[saved_ptr++] = '\0';
- if (keep!=KEEP_NONE) {
- if ((length != 0) && (strlen(saved_text)>length)) {
- lex_error_s_1("%s string limited to %d characters; truncated",
- attribute, length);
- saved_text[length] = '\0';
- }
- yylval.ystring = xstrdup(saved_text);
- } else {
- yylval.ystring = NULL;
- }
-}
-
-void
scan_hex_string(void)
{
register unsigned i=10;

BIN
tetex/tetex.patch.gz Normal file

Binary file not shown.