svn commit: r484251 - in head/math/qtoctave: . files
Tobias Kortkamp
tobik at FreeBSD.org
Mon Nov 5 22:07:10 UTC 2018
Author: tobik
Date: Mon Nov 5 22:07:08 2018
New Revision: 484251
URL: https://svnweb.freebsd.org/changeset/ports/484251
Log:
math/qtoctave: Unbreak build with Clang 6
qtoctave/src/generate_menu.cpp:282:64: error: cannot initialize return object of type 'MenuExtCallBack *' with an rvalue of type 'bool'
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) return false;
^~~~~
http://beefy3.nyi.freebsd.org/data/112amd64-quarterly/482201/logs/qtoctave-0.10.1_4.log
PR: 232985
Submitted by: w.schwarzenfeld at utanet.at
Added:
head/math/qtoctave/files/patch-qtoctave__src-generate_menu.cpp (contents, props changed)
Modified:
head/math/qtoctave/Makefile
Modified: head/math/qtoctave/Makefile
==============================================================================
--- head/math/qtoctave/Makefile Mon Nov 5 21:46:35 2018 (r484250)
+++ head/math/qtoctave/Makefile Mon Nov 5 22:07:08 2018 (r484251)
@@ -9,8 +9,6 @@ MASTER_SITES= http://forja.rediris.es/frs/download.php
MAINTAINER= ports at FreeBSD.org
COMMENT= Qt 4 frontend for Octave
-BROKEN= fails to build
-
RUN_DEPENDS= octave:math/octave
USE_QT= designer gui network script svg xml \
Added: head/math/qtoctave/files/patch-qtoctave__src-generate_menu.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/math/qtoctave/files/patch-qtoctave__src-generate_menu.cpp Mon Nov 5 22:07:08 2018 (r484251)
@@ -0,0 +1,11 @@
+--- qtoctave/src/generate_menu.cpp.orig 2018-11-05 13:09:19 UTC
++++ qtoctave/src/generate_menu.cpp
+@@ -279,7 +279,7 @@ bool GenerateMenu::process_menu_file(QSt
+ MenuExtCallBack *GenerateMenu::process_menu_file(QString _file)
+ {
+ QFile file(_file);
+- if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) return false;
++ if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) return NULL;
+
+ QString label;
+ MenuExtCallBack *wizard=new MenuExtCallBack();
More information about the svn-ports-all
mailing list