Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Feb 2011 20:36:32 GMT
From:      Roger Marquis <marquis@roble.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/154624: tinyproxy bugfixs for xmllint build failure
Message-ID:  <201102092036.p19KaWY6026631@red.freebsd.org>
Resent-Message-ID: <201102092040.p19Ke9bX098593@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         154624
>Category:       ports
>Synopsis:       tinyproxy bugfixs for xmllint build failure
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 09 20:40:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Roger Marquis
>Release:        8.1-REL
>Organization:
Roble Systems
>Environment:
8.1-RELEASE-p2
>Description:
Tinyproxy recently switched to using a2x and xmllint for man pages.  This new and IMO useless dependency breaks on 8.1-REL systems when xmllint is unable to validate the resulting file.  Adding "-L" to the xmllint flags skips the validation step, allowing the build to complete, and has no effect on the validity of the resulting man page.
>How-To-Repeat:
cd /usr/ports/www/tinyproxy && make

..

gmake[2]: Entering directory `/usr/ports/www/tinyproxy/work/tinyproxy-1.8.2/docs'
Making all in man5
gmake[3]: Entering directory `/usr/ports/www/tinyproxy/work/tinyproxy-1.8.2/docs/man5'
/usr/local/bin/a2x -d manpage -f manpage tinyproxy.conf.txt
a2x: ERROR: xmllint --nonet --noout --valid /usr/ports/www/tinyproxy/work/tinyproxy-1.8.2/docs/man5/tinyproxy.conf.xml returned non-zero exit status 4
gmake[3]: *** [tinyproxy.conf.5] Error 1
gmake[3]: Leaving directory `/usr/ports/www/tinyproxy/work/tinyproxy-1.8.2/docs/man5'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/www/tinyproxy/work/tinyproxy-1.8.2/docs'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/www/tinyproxy/work/tinyproxy-1.8.2'
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/www/tinyproxy.
*** Error code 1

Stop in /usr/ports/www/tinyproxy.

>Fix:


Patch attached with submission follows:

--- docs/man5/Makefile.am.orig	2011-02-09 12:11:57.000000000 -0800
+++ docs/man5/Makefile.am	2011-02-09 12:12:10.000000000 -0800
@@ -3,7 +3,8 @@
 
 A2X_ARGS = \
 	-d manpage \
-	-f manpage
+	-f manpage \
+	-L
 
 man_MANS = \
 	$(MAN5_FILES:.txt=.5)
--- docs/man8/Makefile.am.orig	2011-02-09 12:10:50.000000000 -0800
+++ docs/man8/Makefile.am	2011-02-09 12:11:05.000000000 -0800
@@ -3,7 +3,8 @@
 
 A2X_ARGS = \
 	-d manpage \
-	-f manpage
+	-f manpage \
+	-L
 
 man_MANS = \
 	$(MAN8_FILES:.txt=.8)


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102092036.p19KaWY6026631>