Sorry for the extra noise, but i managed to unbreak more of them. It 
should do the job on other gcc4 arches as well. 


> http://build-failures.rhaalovely.net//powerpc/2018-12-01/converters/lastools.log


The log explains itself the issue, i added it, it builds [1] and
runs fine. It doesn't break the build on amd64.

[1] http://ix.io/1vTp


Index: Makefile
===================================================================
RCS file: /cvs/ports/converters/lastools/Makefile,v
retrieving revision 1.7
diff -u -p -u -p -r1.7 Makefile
--- Makefile    24 Oct 2018 14:27:59 -0000      1.7
+++ Makefile    13 Dec 2018 00:07:07 -0000
@@ -5,7 +5,7 @@ DISTNAME =      lastools-0.20170108
 GH_ACCOUNT =   LAStools
 GH_PROJECT =   LAStools
 GH_TAGNAME =   f00fa125075ea984993057c5916d746cb605835c
-REVISION =     2
+REVISION =     3
 
 CATEGORIES =   converters textproc devel
 
@@ -14,10 +14,15 @@ PERMIT_PACKAGE_CDROM =      Yes
 
 WANTLIB += c m ${COMPILER_LIBCXX}
 
+#c++11
 COMPILER =             base-clang ports-gcc base-gcc
 
 MAKE_FLAGS =   COMPILER="${CXX}" \
                LINKER="${CXX}"
+# building with ports-gcc generates the following error: 
+# warning.h:32:2: error: #error This file requires compiler
+# and library support for the ISO C++ 2011 standard.
+CXXFLAGS +=    -std=c++11
 
 post-patch:
        find ${WRKSRC} -name Makefile | xargs sed -i 's/-O3/${CXXFLAGS}/'


> http://build-failures.rhaalovely.net//powerpc/2018-12-01/games/late.log

It's just about missing includes, the build log is here [2], 
and it runs fine [3].

[2] http://ix.io/1vTr
[3] https://bsd.network/web/statuses/101230576378175694

Index: Makefile
===================================================================
RCS file: /cvs/ports/games/late/Makefile,v
retrieving revision 1.20
diff -u -p -u -p -r1.20 Makefile
--- Makefile    24 Oct 2018 14:28:03 -0000      1.20
+++ Makefile    12 Dec 2018 23:39:44 -0000
@@ -2,7 +2,7 @@
 
 COMMENT=       puzzle game resembling the arcade game Qix
 DISTNAME=      late-0.1.0
-REVISION=      4
+REVISION=      5
 EXTRACT_SUFX=  .tar.bz2
 CATEGORIES=    games x11
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=late/}
Index: patches/patch-src_ball_h
===================================================================
RCS file: patches/patch-src_ball_h
diff -N patches/patch-src_ball_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_ball_h    12 Dec 2018 23:39:44 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+ball.h:113:19: error: 'NULL' was not declared in this scope
+Index: src/ball.h
+--- src/ball.h.orig
++++ src/ball.h
+@@ -25,6 +25,7 @@
+ class ball;
+ 
+ #include "square.h"
++#include <cstddef>
+ 
+ class ball_base
+ {
Index: patches/patch-src_init_cpp
===================================================================
RCS file: patches/patch-src_init_cpp
diff -N patches/patch-src_init_cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_init_cpp  12 Dec 2018 23:39:44 -0000
@@ -0,0 +1,17 @@
+$OpenBSD$
+init.cpp:139:34: error: 'strcmp' was not declared in this scope
+init.cpp:196:12: error: 'exit' was not declared in this scope
+Index: src/init.cpp
+--- src/init.cpp.orig
++++ src/init.cpp
+@@ -26,8 +26,9 @@
+ #include "scorescreen.h"
+ #include <fstream>
+ #include <iostream>
++#include <string.h>
++#include <stdlib.h>
+ using namespace std; 
+-
+ 
+ int cheat       = 0;
+ int zappy;


> http://build-failures.rhaalovely.net//powerpc/2018-12-01/devel/codeworker.log

There are dozens of missing includes errors here. Once they're fixed,
it builds properly [4]. I'm also attaching the diff because i'm not
sure of how DOS line endings in the source code will be dealt with.

The basic "get started" stuff from HOMEPAGE runs fine. That diff
doesn't break the build on amd64. 

[4] http://ix.io/1vTH


Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/codeworker/Makefile,v
retrieving revision 1.14
diff -u -p -u -p -r1.14 Makefile
--- Makefile    28 Oct 2018 09:02:40 -0000      1.14
+++ Makefile    13 Dec 2018 02:11:11 -0000
@@ -4,7 +4,7 @@ COMMENT =               universal parsing tool & sour
 
 V =                    4.5.4
 PKGNAME =              codeworker-${V}
-REVISION =             5
+REVISION =             6
 
 CATEGORIES =           devel
 
Index: patches/patch-CGRuntime_h
===================================================================
RCS file: patches/patch-CGRuntime_h
diff -N patches/patch-CGRuntime_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-CGRuntime_h   13 Dec 2018 02:11:11 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+Fix a lot of include errors with ports-gcc
+Index: CGRuntime.h
+--- CGRuntime.h.orig
++++ CGRuntime.h
+@@ -24,6 +24,8 @@ To contact the author: codewor...@free.fr
+ 
+ #include <string>
+ #include <list>
++#include <stdlib.h>
++#include <string.h>
+ 
+ #include "UtlException.h"
+ #include "CppParsingTree.h"
Index: patches/patch-CppParsingTree_cpp
===================================================================
RCS file: patches/patch-CppParsingTree_cpp
diff -N patches/patch-CppParsingTree_cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-CppParsingTree_cpp    13 Dec 2018 02:11:11 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+CppParsingTree.cpp:113:22: error: 'atoi' was not declared in this scope
+Index: CppParsingTree.cpp
+--- CppParsingTree.cpp.orig
++++ CppParsingTree.cpp
+@@ -25,6 +25,7 @@ To contact the author: codewor...@free.fr
+ 
+ #ifndef WIN32
+ #     include <cstdio> // for Debian/gcc 2.95.4
++#     include <stdlib.h>
+ #endif
+ 
+ #include "ScpStream.h"
Index: patches/patch-ScpStream_cpp
===================================================================
RCS file: patches/patch-ScpStream_cpp
diff -N patches/patch-ScpStream_cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-ScpStream_cpp 13 Dec 2018 02:11:11 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+Fix numerous include errors with ports-gcc
+Index: ScpStream.cpp
+--- ScpStream.cpp.orig
++++ ScpStream.cpp
+@@ -28,6 +28,8 @@ To contact the author: codewor...@free.fr
+ #     include <sys/stat.h>
+       // functions 'ntohl()' and 'htonl()'
+ #     include <netinet/in.h>
++#     include <string.h>
++#     include <stdlib.h>
+ #endif
+ 
+ #include "UtlException.h"
Index: patches/patch-UtlDate_cpp
===================================================================
RCS file: patches/patch-UtlDate_cpp
diff -N patches/patch-UtlDate_cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-UtlDate_cpp   13 Dec 2018 02:11:11 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+Fix several include errors with ports-gcc
+Index: UtlDate.cpp
+--- UtlDate.cpp.orig
++++ UtlDate.cpp
+@@ -26,6 +26,8 @@ To contact the author: codewor...@free.fr
+ #include <stdio.h>
+ #include <math.h>
+ #include <time.h>
++#include <string.h>
++#include <stdlib.h>
+ 
+ #ifdef WIN32
+ #     include <windows.h>
Index: patches/patch-UtlDirectory_cpp
===================================================================
RCS file: patches/patch-UtlDirectory_cpp
diff -N patches/patch-UtlDirectory_cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-UtlDirectory_cpp      13 Dec 2018 02:11:11 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+fix various include errors with ports-gcc
+Index: UtlDirectory.cpp
+--- UtlDirectory.cpp.orig
++++ UtlDirectory.cpp
+@@ -30,6 +30,8 @@ To contact the author: codewor...@free.fr
+ #     include <sys/stat.h>
+ #     include <unistd.h>
+ #     include <glob.h>
++#     include <stdlib.h>
++#     include <string.h>
+ #endif
+ 
+ #include "UtlException.h"
Index: patches/patch-UtlTrace_cpp
===================================================================
RCS file: patches/patch-UtlTrace_cpp
diff -N patches/patch-UtlTrace_cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-UtlTrace_cpp  13 Dec 2018 02:11:11 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+fix several include errors with ports-gcc
+Index: UtlTrace.cpp
+--- UtlTrace.cpp.orig
++++ UtlTrace.cpp
+@@ -24,6 +24,7 @@ To contact the author: codewor...@free.fr
+ #endif
+ 
+ #include <stdarg.h>
++#include <string.h>
+ #include "ScpStream.h"
+ #include "UtlTrace.h"
+ 
Index: patches/patch-UtlXMLStream_cpp
===================================================================
RCS file: patches/patch-UtlXMLStream_cpp
diff -N patches/patch-UtlXMLStream_cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-UtlXMLStream_cpp      13 Dec 2018 02:11:11 -0000
@@ -0,0 +1,13 @@
+$OpenBSD$
+fix several include errors with ports-gcc
+Index: UtlXMLStream.cpp
+--- UtlXMLStream.cpp.orig
++++ UtlXMLStream.cpp
+@@ -28,6 +28,7 @@ To contact the author: codewor...@free.fr
+ #include "UtlException.h"
+ #include "ScpStream.h"
+ #include "UtlXMLStream.h"
++#include <string.h> 
+ 
+ namespace CodeWorker {
+       UtlXMLStream::UtlXMLStream(const std::string& sFileName, const bool 
bModeRead) : _bOwnerOfFileStream(true), _pInputStream(NULL), 
_pOutputStream(NULL) {


Charlène. 

Attachment: codeworker.diff
Description: Binary data

Attachment: lastools.diff
Description: Binary data

Attachment: late.diff
Description: Binary data

Reply via email to