MantisBT - NetSurf
View Issue Details
0002468NetSurfFramebuffer-specificpublic2016-09-12 07:322017-04-23 10:32
ReporterAnthony J. Bentley 
Assigned ToVincent Sanders 
PlatformOSOpenBSDOS Version
Product Version3.7 
Target VersionFixed in Version 
Fixed in CI build #
Reported in CI build #
URL of problem page
Summary0002468: Patch to build netsurf-fb on OpenBSD
DescriptionThe attached patch allows netsurf-fb to build on OpenBSD.

Issue #1: strndup is not detected properly, and combining _BSD_SOURCE/_DEFAULT_SOURCE/_XOPEN_SOURCE with _POSIX_C_SOURCE with an up-to-date _POSIX_C_SOURCE=200809L leads to an implicit strndup declaration resulting in a runtime crash.

Issue 0000002: POSIX doesn't specify a -v flag for cp, and OpenBSD doesn't implement it.
TagsNo tags attached.
Attached Filesdiff netsurf-fb.diff (1,378) 2016-09-12 07:32
? patch-frontends_framebuffer_Makefile (1,357) 2017-02-07 08:28

Vincent Sanders   
2016-12-31 12:44   
did i apply this (or equivalent) already for 3.6?
Anthony J. Bentley   
2017-02-07 08:29   
It hasn't been fixed for 3.6. I've attached the patch I use against 3.6.

Issue History
2016-09-12 07:32Anthony J. BentleyNew Issue
2016-09-12 07:32Anthony J. BentleyFile Added: netsurf-fb.diff
2016-12-31 12:44Vincent SandersNote Added: 0001471
2016-12-31 12:44Vincent SandersStatusnew => feedback
2017-02-07 08:28Anthony J. BentleyFile Added: patch-frontends_framebuffer_Makefile
2017-02-07 08:29Anthony J. BentleyNote Added: 0001515
2017-02-07 08:29Anthony J. BentleyStatusfeedback => new
2017-04-23 10:32Vincent SandersAssigned To => Vincent Sanders
2017-04-23 10:32Vincent SandersStatusnew => assigned
2017-04-23 10:32Vincent SandersProduct Version => 3.7