Date: Sat, 21 Nov 2009 11:09:52 +0100 (CET) From: Klaus T Aehlig <aehlig@linta.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/140743: www/netsurf fix build problems Message-ID: <20091121100952.92A6A395A5@schoenfinkel.linta.de> Resent-Message-ID: <200911211020.nALAK0Go049252@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091121100952.92A6A395A5>