ports/140743: www/netsurf fix build problems

Klaus T Aehlig aehlig at linta.de
Sat Nov 21 10:20:01 UTC 2009


>Number:         140743
>Category:       ports
>Synopsis:       www/netsurf fix build problems
>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:   Sat Nov 21 10:20:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Klaus T Aehlig
>Release:        FreeBSD 8.0-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD schoenfinkel.linta.de 8.0-PRERELEASE FreeBSD 8.0-PRERELEASE #2: Fri Nov 13 00:23:30 CET 2009 aehlig at schoenfinkel.linta.de:/usr/obj/usr/src/sys/SCHOENFINKEL i386
>Description:
The port www/netsurf is currently marked as BROKEN as it does not build.

The reason is, that the file generated by the parser generator uses assert(3)
but does not #include <assert.h>; as assert(3) is a macro, this is bound to
fail at linking stage.
>How-To-Repeat:
	Try to build the port, even after removing the BROKEN line from the Makefile.
>Fix:

Add the attached file patch-css-parser.y into the files directory of
the port. Then remove the BROKEN line in the Makefile.

--- patch-css-parser.y begins here ---
--- css/parser.y.orig	2009-11-21 09:40:45.000000000 +0100
+++ css/parser.y	2009-11-21 09:39:49.000000000 +0100
@@ -398,6 +398,7 @@
 
 %extra_argument { struct css_parser_params *param }
 %include {
+#include <assert.h>
 #include <strings.h>
 #define CSS_INTERNALS
 #include "css/css.h"
--- patch-css-parser.y ends here ---

PS:
I'm aware that this is only a temporary solution, as the port ought to
be updated to the newest version; however, this is a bit more work and
therefore will take longer than just making the current version build again.

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



More information about the freebsd-ports-bugs mailing list