Bug 140743 - www/netsurf fix build problems
Summary: www/netsurf fix build problems
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-21 10:20 UTC by Klaus Aehlig
Modified: 2009-11-21 15:40 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Aehlig 2009-11-21 10:20:00 UTC
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.

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



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.--pZcQTvtp4iHeWMuS4Z7cVdhhtiiklbQgUlwbrIgdxmJ3At1R
Content-Type: text/plain; name="patch-css-parser.y"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="patch-css-parser.y"

--- 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"
How-To-Repeat: 	Try to build the port, even after removing the BROKEN line from the Makefile.
Comment 1 Martin Wilke freebsd_committer freebsd_triage 2009-11-21 15:29:50 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 2 dfilter service freebsd_committer freebsd_triage 2009-11-21 15:29:58 UTC
miwi        2009-11-21 15:29:43 UTC

  FreeBSD ports repository

  Modified files:
    www/netsurf          Makefile 
  Added files:
    www/netsurf/files    patch-css-parser.y 
  Log:
  - Unbreak and fix Build
  
  PR:             140743
  Submitted by:   Klaus T Aehlig <aehlig@linta.de>
  
  Revision  Changes    Path
  1.8       +0 -2      ports/www/netsurf/Makefile
  1.1       +10 -0     ports/www/netsurf/files/patch-css-parser.y (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"