summaryrefslogtreecommitdiff
path: root/www/tidy/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-10-04 18:00:49 +0000
committerwiz <wiz@pkgsrc.org>2005-10-04 18:00:49 +0000
commit2644880196fe73b9ad3e3a551dc1edc952f871dd (patch)
tree533e78449509daf12bf28b3a7b10b77cbe6b8b90 /www/tidy/patches
parent6578f1b5837f9cee2ff885178364ea04d4142810 (diff)
downloadpkgsrc-2644880196fe73b9ad3e3a551dc1edc952f871dd.tar.gz
Update to 20050921, provided by Jeroen Ruigrok/asmodai in PR 31220.
fix crashes with nested framesets fix dmalloc conflicts fix crashes with invalid x/html tags fix memory corruptions fix attributes with null values replace tabs with spaces a lot generic stability fixes fix accessibility crashes accessibility missing output added use id= instead of a name= fix crashes with mixed php-like code in html fix memory leaks xml: was stripped from xml:lang make sure id and name are identical when used do not add xml:lang for XHTML 1.1 check validity of id/name values a lot of new options for finegrained control support align="char" fix 64 bit portability issues fix support for nested <sub> and <sup> make sure id's are unique be more resistant against malformed comments make sure attribute values are lowercase for xhtml specified values ensure xml declarations are present allow empty action="" to form area does not need a mandatory href
Diffstat (limited to 'www/tidy/patches')
-rw-r--r--www/tidy/patches/patch-aa15
-rw-r--r--www/tidy/patches/patch-ab23
-rw-r--r--www/tidy/patches/patch-ac53
3 files changed, 64 insertions, 27 deletions
diff --git a/www/tidy/patches/patch-aa b/www/tidy/patches/patch-aa
new file mode 100644
index 00000000000..f88311e91eb
--- /dev/null
+++ b/www/tidy/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.7 2005/10/04 18:00:49 wiz Exp $
+
+--- build/gnuauto/include/Makefile.am.orig 2005-07-03 14:59:55.000000000 +0200
++++ build/gnuauto/include/Makefile.am 2005-07-03 15:00:07.000000000 +0200
+@@ -53,8 +53,8 @@
+ # acknowledgment is not required but would be appreciated.
+ #
+
+-#tidyincdir = $(includedir)/tidy
+-tidyincdir = $(includedir)
++tidyincdir = $(includedir)/tidy
++#tidyincdir = $(includedir)
+
+ tidyinc_HEADERS = \
+ platform.h \
diff --git a/www/tidy/patches/patch-ab b/www/tidy/patches/patch-ab
index 97748af3547..772cc7c7099 100644
--- a/www/tidy/patches/patch-ab
+++ b/www/tidy/patches/patch-ab
@@ -1,7 +1,7 @@
-$NetBSD: patch-ab,v 1.5 2004/08/30 18:48:57 reed Exp $
+$NetBSD: patch-ab,v 1.6 2005/10/04 18:00:49 wiz Exp $
---- include/platform.h.orig Fri Mar 19 00:00:57 2004
-+++ include/platform.h Sat Aug 28 15:41:12 2004
+--- include/platform.h.orig 2005-06-16 08:58:05.000000000 +0200
++++ include/platform.h 2005-07-03 15:02:26.000000000 +0200
@@ -48,7 +48,7 @@
Contributed by Todd Lewis.
*/
@@ -11,7 +11,22 @@ $NetBSD: patch-ab,v 1.5 2004/08/30 18:48:57 reed Exp $
/* Enable/disable support for Big5 and Shift_JIS character encodings */
-@@ -497,7 +497,7 @@
+@@ -105,7 +105,13 @@
+
+ /* Convenience defines for BSD like platforms */
+
+-#if defined(__FreeBSD__)
++#if defined(__DragonFly__)
++#define BSD_BASED_OS
++#ifndef PLATFORM_NAME
++#define PLATFORM_NAME "DragonFly"
++#endif
++
++#elif defined(__FreeBSD__)
+ #define BSD_BASED_OS
+ #ifndef PLATFORM_NAME
+ #define PLATFORM_NAME "FreeBSD"
+@@ -504,7 +510,7 @@
#if !defined(HPUX_OS) && !defined(CYGWIN_OS) && !defined(MAC_OS_X) && !defined(BE_OS) && !defined(SOLARIS_OS) && !defined(BSD_BASED_OS) && !defined(OSF_OS) && !defined(IRIX_OS) && !defined(AIX_OS) && !defined(LINUX_OS)
typedef unsigned int uint;
#endif
diff --git a/www/tidy/patches/patch-ac b/www/tidy/patches/patch-ac
index 19a4c5ad422..a1463911fef 100644
--- a/www/tidy/patches/patch-ac
+++ b/www/tidy/patches/patch-ac
@@ -1,8 +1,8 @@
-$NetBSD: patch-ac,v 1.1 2003/10/28 12:34:58 cube Exp $
+$NetBSD: patch-ac,v 1.2 2005/10/04 18:00:49 wiz Exp $
---- build/gmake/Makefile.orig 2003-04-12 08:57:03.000000000 +0200
-+++ build/gmake/Makefile
-@@ -58,8 +58,8 @@ SHELL=/bin/sh
+--- build/gmake/Makefile.orig 2005-05-03 08:58:08.000000000 +0200
++++ build/gmake/Makefile 2005-07-03 14:56:45.000000000 +0200
+@@ -58,8 +58,8 @@
PROJECT=tidy
# Installation variables. Spaces OK, only dir create and file copy operations.
@@ -13,34 +13,43 @@ $NetBSD: patch-ac,v 1.1 2003/10/28 12:34:58 cube Exp $
bininst = ${runinst_prefix}/bin
libinst = ${devinst_prefix}/lib
-@@ -76,7 +76,7 @@ LIBDIR = ${TOPDIR}/lib
- BINDIR = ${TOPDIR}/bin
-
+@@ -79,14 +79,14 @@
# CFLAGS etc..
+ # For optimised builds, flags such as "-O2" should be added and -D_DEBUG=1
+ # disabled.
-CC= gcc
+-CFLAGS= -g -Wall -Wno-switch -Wno-parentheses -I $(INCDIR)
+#CC= gcc
- CFLAGS= -Wall -Wno-switch -Wno-parentheses -Wno-unused -I $(INCDIR)
++CFLAGS+= -g -Wall -Wno-switch -Wno-parentheses -I $(INCDIR)
+ # flags only supported with gcc 3.x
+ # CFLAGS += -Wunused-parameter
- # OTHERCFLAGS= -DSUPPORT_ACCESSIBILITY_CHECKS=1 -DSUPPORT_UTF16_ENCODINGS=1 -DSUPPORT_ASIAN_ENCODINGS=1
-@@ -107,7 +107,7 @@ LIBPREFIX = lib
- LIBSUFFIX = .a
+ OTHERCFLAGS=
+ OTHERCFLAGS+= -D_DEBUG=1
+-# OTHERCFLAGS+= -DSUPPORT_ACCESSIBILITY_CHECKS=1 -DSUPPORT_UTF16_ENCODINGS=1 -DSUPPORT_ASIAN_ENCODINGS=1
++OTHERCFLAGS+= -DSUPPORT_ACCESSIBILITY_CHECKS=1 -DSUPPORT_UTF16_ENCODINGS=1 -DSUPPORT_ASIAN_ENCODINGS=1
+ ifdef SUPPORT_UTF16_ENCODINGS
+ CFLAGS += -DSUPPORT_UTF16_ENCODINGS=$(SUPPORT_UTF16_ENCODINGS)
+ endif
+@@ -115,7 +115,7 @@
+ OBJSUF = .o
LIBRARY = $(LIBDIR)/$(LIBPREFIX)$(PROJECT)$(LIBSUFFIX)
-AR=ar -r
+#AR=ar -r
- EXES = $(BINDIR)/$(PROJECT) $(BINDIR)/tab2space
+ XSLTPROC = xsltproc
-@@ -148,7 +148,7 @@ all: $(LIBRARY) $(EXES)
+@@ -164,7 +164,7 @@
$(LIBRARY): $(OBJFILES)
if [ ! -d $(LIBDIR) ]; then mkdir $(LIBDIR); fi
- $(AR) $@ $(OBJFILES)
+ $(AR) -r $@ $(OBJFILES)
ifdef RANLIB
- $(RANLIB) $@
+ $(RANLIB) $@
endif
-@@ -177,21 +177,21 @@ clean:
+@@ -205,19 +205,19 @@
if [ "$(BINDIR)" != "$(TOPDIR)" -a -d $(BINDIR) ]; then rmdir $(BINDIR); fi
installhdrs: $(HFILES)
@@ -61,12 +70,10 @@ $NetBSD: patch-ac,v 1.1 2003/10/28 12:34:58 cube Exp $
+ if [ ! -d "$(bininst)" ]; then $(BSD_INSTALL_PROGRAM_DIR) "$(bininst)"; fi
+ $(BSD_INSTALL_PROGRAM) $(EXES) "$(bininst)/"
- installmanpage:
- if [ -f "$(TOPDIR)/htmldoc/man_page.txt" ] ; then \
-- if [ ! -d "$(maninst)/man1" ]; then mkdir -p "$(maninst)/man1"; fi; \
-- cp -f $(TOPDIR)/htmldoc/man_page.txt "$(maninst)/man1/tidy.1"; \
-+ if [ ! -d "$(maninst)/man1" ]; then $(BSD_INSTALL_MAN_DIR) "$(maninst)/man1"; fi; \
-+ $(BSD_INSTALL_MAN) $(TOPDIR)/htmldoc/man_page.txt "$(maninst)/man1/tidy.1"; \
- fi
-
+ installmanpage: $(DOCDIR)/tidy.1
+- if [ ! -d "$(maninst)/man1" ]; then mkdir -p "$(maninst)/man1"; fi;
+- cp -f $(DOCDIR)/tidy.1 "$(maninst)/man1/tidy.1";
++ if [ ! -d "$(maninst)/man1" ]; then $(BSD_INSTALL_MAN_DIR) "$(maninst)/man1"; fi;
++ $(BSD_INSTALL_MAN) $(DOCDIR)/tidy.1 "$(maninst)/man1/tidy.1";
+
install: installhdrs installib installmanpage installexes