Subject: pkg/33333: mozilla-gtk2 fails to build
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Bernd Ernesti <pr200602@veego.de>
List: pkgsrc-bugs
Date: 04/22/2006 07:35:00
>Number:         33333
>Category:       pkg
>Synopsis:       mozilla-gtk2 fails to build
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 22 07:35:00 +0000 2006
>Originator:     Bernd Ernesti
>Release:        NetBSD 3.99.18
>Organization:
	
>Environment:
System: NetBSD 3.99.18
Architecture: i386
Machine: i386
>Description:
	The www/mozilla-gtk2 packages doesn't compile anymore:

/usr/pkg/bin/perl -I../../config ../../config/preprocessor.pl -DNAMESPACE=http://www.w3.org/2000/P3Pv1 \
        resources/content/p3p.xsl.in > p3p200005.xsl
/usr/pkg/bin/perl -I../../config ../../config/preprocessor.pl -DNAMESPACE=http://www.w3.org/2000/10/18/P3Pv1 \
        -DHAS_TMPL_RETENTION\
        resources/content/p3p.xsl.in > p3p200010.xsl
../../config/preprocessor.pl: invalid argument to -D: HAS_TMPL_RETENTIONresources/content/p3p.xsl.in
make[3]: *** [p3p200010.xsl] Error 2
make[3]: *** Deleting file `p3p200010.xsl'
make[3]: Leaving directory `/pkgsrc/www/mozilla-gtk2/work.i386/mozilla/extensions/p3p'

	There is no space after -DHAS_TMPL_RETENTION.
>How-To-Repeat:
	cd pkgsrc/www/mozilla-gtk2
	make
>Fix:
	Add a space after some -D lines in mozilla/extensions/p3p/Makefile.in
	I could have applied the attached patch, but there is a newer mozilla
	version available (1.7.13) and i don't know if this would interfere
	with an update for it.

--- extensions/p3p/Makefile.in.orig	2003-12-04 19:20:16.000000000 +0100
+++ extensions/p3p/Makefile.in
@@ -62,23 +62,23 @@ p3p200005.xsl: resources/content/p3p.xsl
 p3p200010.xsl: resources/content/p3p.xsl.in Makefile.in
 	@$(RM) -f $@
 	$(PP) -DNAMESPACE=http://www.w3.org/2000/10/18/P3Pv1 \
-	-DHAS_TMPL_RETENTION\
+	-DHAS_TMPL_RETENTION \
 	$< > $@
 
 p3p200012.xsl: resources/content/p3p.xsl.in Makefile.in
 	@$(RM) -f $@
 	$(PP) -DNAMESPACE=http://www.w3.org/2000/12/P3Pv1 \
-	-DHAS_CALL_OURS\
+	-DHAS_CALL_OURS \
 	$< > $@
 
 p3p200109.xsl: resources/content/p3p.xsl.in Makefile.in
 	@$(RM) -f $@
 	$(PP) -DNAMESPACE=http://www.w3.org/2001/09/P3Pv1 \
-	-DHAS_CALL_OURS\
+	-DHAS_CALL_OURS \
 	$< > $@
 
 p3p200201.xsl: resources/content/p3p.xsl.in Makefile.in
 	@$(RM) -f $@
 	$(PP) -DNAMESPACE=http://www.w3.org/2002/01/P3Pv1 \
-	-DHAS_CALL_OURS -DHAS_PURPOSE_SRC\
+	-DHAS_CALL_OURS -DHAS_PURPOSE_SRC \
 	$< > $@