ports/184568: math/octave-forge-fl-core : fix build with gcc47
Christoph Moench-Tegeder
cmt at burggraben.net
Sat Dec 7 17:00:01 UTC 2013
>Number: 184568
>Category: ports
>Synopsis: math/octave-forge-fl-core : fix build with gcc47
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Dec 07 17:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Christoph Moench-Tegeder
>Release: FreeBSD 9.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD elch.exwg.net 9.2-RELEASE FreeBSD 9.2-RELEASE #11 r255911: Fri Sep 27 17:09:40 CEST 2013 cmt at elch.exwg.net:/usr/obj/usr/src/sys/ELCH amd64
lang/gcc47 gcc47-4.7.4.20131130
math/octave-forge-fl-core octave-forge-fl-core-1.0.0_5
>Description:
Hi,
in an effort towards upgrading lang/gcc to gcc 4.7, I'm helping gerald@
in making ports gcc47-safe.
Please consider the following patch to your port. If you approve of the
patch, gerald@ has offered his help in commiting it.
If you're commiting yourself or have someone else commit this (or
another patch to the same effect), can you please add an additional
reference to ports/183342 in the commit message?
In my test environment, the port built successfully with lang/gcc47.
>How-To-Repeat:
>Fix:
GCC 4.7 does not include unistd.h on it's own anymore. I added DOS2UNIX
for easier patching.
# use DOS2UNIX for easier patching and add unistd.h
$ svn status
M Makefile
A files
A files/patch-fl_compose.cc
Index: Makefile
===================================================================
--- Makefile (revision 334033)
+++ Makefile (working copy)
@@ -14,6 +14,7 @@
OCTSRC= ${OCTAVE_PKGNAME}
WRKSRC= ${WRKDIR}/${OCTSRC}/src
+USE_DOS2UNIX= yes
NO_STAGE= yes
.include "${.CURDIR}/../../Mk/bsd.octave.mk"
Index: files/patch-fl_compose.cc
===================================================================
--- files/patch-fl_compose.cc (revision 0)
+++ files/patch-fl_compose.cc (working copy)
@@ -0,0 +1,10 @@
+--- fl_compose.cc.orig 2013-11-16 22:48:40.000000000 +0100
++++ fl_compose.cc 2013-11-16 22:48:58.000000000 +0100
+@@ -20,6 +20,7 @@
+
+ #include <octave/oct.h>
+ #include <octave/parse.h>
++#include <unistd.h>
+ #include <pthread.h>
+
+ #define HELP \
Regards,
Christoph
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list