Hi ports, Landry, 

On Fri, 11 Jan 2019 15:33:47 -0700 (MST)
lan...@openbsd.org wrote:


> http://build-failures.rhaalovely.net//powerpc/2019-01-01/x11/bbpager.log

It fails because some headers are missing.  With those patches, it 
builds [1] and runs [2] fine on macppc, and doesn't break amd64 build.

Comments/feedback are welcome! 

Charlène. 

[1] http://ix.io/1y7P
[2] https://bsd.network/@julianaito/101404040478256794


Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/bbpager/Makefile,v
retrieving revision 1.27
diff -u -p -u -p -r1.27 Makefile
--- Makefile    24 Oct 2018 14:28:12 -0000      1.27
+++ Makefile    12 Jan 2019 14:00:05 -0000
@@ -3,7 +3,7 @@
 COMMENT =      pager for the Blackbox window manager
 
 DISTNAME =     bbpager-0.4.7
-REVISION =     6
+REVISION =     7
 
 CATEGORIES =   x11
 MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=bbtools/}
Index: patches/patch-src_Baseresource_cxx
===================================================================
RCS file: patches/patch-src_Baseresource_cxx
diff -N patches/patch-src_Baseresource_cxx
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_Baseresource_cxx  12 Jan 2019 14:00:05 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+Fix missing header for ports-gcc
+Index: src/Baseresource.cxx
+--- src/Baseresource.cxx.orig
++++ src/Baseresource.cxx
+@@ -20,6 +20,7 @@
+ //
+ 
+ #include <string>
++#include <cstring>
+ #include "Baseresource.h"
+ #include <stdio.h>
+ #include "Menu.hh"
Index: patches/patch-src_main_cxx
===================================================================
RCS file: patches/patch-src_main_cxx
diff -N patches/patch-src_main_cxx
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_main_cxx  12 Jan 2019 14:00:05 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+Fix missing header for ports-gcc
+Index: src/main.cxx
+--- src/main.cxx.orig
++++ src/main.cxx
+@@ -25,6 +25,7 @@
+ 
+ #include <stdio.h>
+ #include <string>
++#include <cstring>
+ #include <iostream>
+ 
+ 
Index: patches/patch-src_resource_cxx
===================================================================
RCS file: patches/patch-src_resource_cxx
diff -N patches/patch-src_resource_cxx
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_resource_cxx      12 Jan 2019 14:00:05 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+Fix missing header for ports-gcc
+Index: src/resource.cxx
+--- src/resource.cxx.orig
++++ src/resource.cxx
+@@ -21,6 +21,7 @@
+ 
+ #include "resource.h"
+ #include "blackboxstyle.h"
++#include <cstring>
+ 
+ Resource::Resource(ToolWindow *toolwindow, const std::string 
&blackbox_rc_file, const std::string &rc_file): 
+         BaseResource(*toolwindow, toolwindow->getCurrentScreen(), 
blackbox_rc_file, rc_file), bbtool(toolwindow)

Reply via email to