mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 23:18:58 +02:00
120 lines
4.0 KiB
Plaintext
120 lines
4.0 KiB
Plaintext
From 7459a6821fa040b2d24fcc0572a9bbe9dd9027ad Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= <j.mairboeck@gmail.com>
|
|
Date: Mon, 19 Aug 2024 15:44:04 +0200
|
|
Subject: fix make install
|
|
|
|
The DVI documentation needs not be made, it isn't installed anyway by default.
|
|
If needed, it is available in texlive_binextra_doc.
|
|
|
|
Also install the other man pages.
|
|
|
|
diff --git a/Makefile.in b/Makefile.in
|
|
index 4c8222e..746ad9e 100644
|
|
--- a/Makefile.in
|
|
+++ b/Makefile.in
|
|
@@ -161,7 +161,7 @@ check: chktex $(srcdir)/$(TestOutFile) chktexrc
|
|
chktex: $(OBJS)
|
|
$(CC) $(LDFLAGS) -o chktex $(OBJS) $(LIBS)
|
|
|
|
-install: chktex ChkTeX.dvi
|
|
+install: chktex
|
|
$(MKDIR_P) $(DESTDIR)$(bindir)
|
|
for program in chktex $(BUILT_SCRIPTS); do \
|
|
$(INSTALL_PROGRAM) $$program $(DESTDIR)$(bindir); \
|
|
@@ -173,6 +173,8 @@ install: chktex ChkTeX.dvi
|
|
$(INSTALL_DATA) $(srcdir)/chktexrc $(DESTDIR)$(sysconfdir)
|
|
if (eval echo "$(BUILT_SCRIPTS)") | egrep deweb >/dev/null 2>&1; then \
|
|
$(MKDIR_P) $(DESTDIR)$(mandir)/man1; \
|
|
+ cp $(srcdir)/chktex.1 $(DESTDIR)$(mandir)/man1; \
|
|
+ cp $(srcdir)/chkweb.1 $(DESTDIR)$(mandir)/man1; \
|
|
cp $(srcdir)/deweb.1 $(DESTDIR)$(mandir)/man1; \
|
|
fi
|
|
|
|
--
|
|
2.45.2
|
|
|
|
|
|
From 3ccc269f7a3b003d4017225d5b24f18c70d4afda Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Joachim=20Mairb=C3=B6ck?= <j.mairboeck@gmail.com>
|
|
Date: Mon, 19 Aug 2024 17:23:59 +0200
|
|
Subject: gcc2 fixes
|
|
|
|
|
|
diff --git a/FindErrs.c b/FindErrs.c
|
|
index d817369..b46c010 100644
|
|
--- a/FindErrs.c
|
|
+++ b/FindErrs.c
|
|
@@ -351,6 +351,7 @@ static char *PreProcess(void)
|
|
|
|
EscapePtr = TmpPtr; /* Save it for later */
|
|
while ((TmpPtr = strstr(TmpPtr, FileSuppDelim))) {
|
|
+ uint64_t errbit;
|
|
TmpPtr += STRLEN(FileSuppDelim);
|
|
error = atoi(TmpPtr);
|
|
|
|
@@ -358,7 +359,7 @@ static char *PreProcess(void)
|
|
{
|
|
PrintPrgErr(pmSuppTooHigh, error, MaxSuppressionBits);
|
|
}
|
|
- uint64_t errbit = ((uint64_t)1 << abs(error));
|
|
+ errbit = ((uint64_t)1 << abs(error));
|
|
if (error > 0)
|
|
{
|
|
*(uint64_t *)StkTop(&FileSuppStack) |= errbit;
|
|
@@ -1133,19 +1134,19 @@ static void CheckDash(void)
|
|
* this on the first dash */
|
|
if (*TmpPtr != '-')
|
|
{
|
|
+ struct WordList *el = &DashExcpt;
|
|
+
|
|
/* PrePtr now points to the beginning of the hyphenated phrase */
|
|
PrePtr = ++TmpPtr;
|
|
|
|
- struct WordList *el = &DashExcpt;
|
|
-
|
|
FORWL(i, *el)
|
|
{
|
|
char *e = el->Stack.Data[i];
|
|
+ int FoundHyphenDiff = FALSE;
|
|
TmpPtr = PrePtr;
|
|
|
|
/* Walk through the strings until we find a
|
|
* mismatch. */
|
|
- int FoundHyphenDiff = FALSE;
|
|
while (*e && *TmpPtr && *e == *TmpPtr)
|
|
{
|
|
/* Skip past characters that are the same */
|
|
diff --git a/OpSys.c b/OpSys.c
|
|
index 67e2bea..4645966 100644
|
|
--- a/OpSys.c
|
|
+++ b/OpSys.c
|
|
@@ -484,6 +484,8 @@ static int HasFile(char *Dir, const char *Filename, const char *App)
|
|
|
|
void AddDirectoryFromRelativeFile(const char * Filename, struct WordList *TeXInputs)
|
|
{
|
|
+ char buf[BUFFER_SIZE];
|
|
+ char * end;
|
|
if ( ! Filename )
|
|
return;
|
|
|
|
@@ -492,7 +494,6 @@ void AddDirectoryFromRelativeFile(const char * Filename, struct WordList *TeXInp
|
|
return;
|
|
|
|
|
|
- char buf[BUFFER_SIZE];
|
|
if ( strchr(DIRCHARS,Filename[0]) ) {
|
|
strcpy(buf,Filename);
|
|
} else {
|
|
@@ -501,7 +502,7 @@ void AddDirectoryFromRelativeFile(const char * Filename, struct WordList *TeXInp
|
|
}
|
|
|
|
/* Keep up to the final SLASH -- that will be the directory. */
|
|
- char * end = strrchr(buf,SLASH);
|
|
+ end = strrchr(buf,SLASH);
|
|
*end = '\0';
|
|
InsertWord(buf,TeXInputs);
|
|
}
|
|
--
|
|
2.45.2
|
|
|