Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Oct 2020 19:12:02 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r552076 - in head/devel/gecode: . files
Message-ID:  <202010111912.09BJC2JT095950@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Oct 11 19:12:02 2020
New Revision: 552076
URL: https://svnweb.freebsd.org/changeset/ports/552076

Log:
  devel/gecode: Fix build with clang-10 (const fields can't be assigned); Option GIST is broken
  
  Reported by:	failure in poudriere (clang-10 problem)

Added:
  head/devel/gecode/files/
  head/devel/gecode/files/patch-gecode_set_int_weights.hpp   (contents, props changed)
Modified:
  head/devel/gecode/Makefile

Modified: head/devel/gecode/Makefile
==============================================================================
--- head/devel/gecode/Makefile	Sun Oct 11 19:02:18 2020	(r552075)
+++ head/devel/gecode/Makefile	Sun Oct 11 19:12:02 2020	(r552076)
@@ -32,5 +32,6 @@ GIST_DESC=	Enable gist, graphical and interactive sear
 GIST_CMAKE_BOOL=	ENABLE_GIST
 GIST_USES=	qt:5
 GIST_USE=	qt=core,gui,printsupport,widgets,qmake_build,buildtools_build
+GIST_BROKEN=	Fails to build with GIST, see https://github.com/Gecode/gecode/issues/96
 
 .include <bsd.port.mk>

Added: head/devel/gecode/files/patch-gecode_set_int_weights.hpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/gecode/files/patch-gecode_set_int_weights.hpp	Sun Oct 11 19:12:02 2020	(r552076)
@@ -0,0 +1,14 @@
+--- gecode/set/int/weights.hpp.orig	2020-10-11 18:28:10 UTC
++++ gecode/set/int/weights.hpp
+@@ -49,9 +49,9 @@ namespace Gecode { namespace Set { namespace Int {
+     /// The value iterator
+     I iter;
+     /// A superset of the elements found in the iterator
+-    const SharedArray<int> elements;
++    SharedArray<int> elements;
+     /// Weights for all the possible elements
+-    const SharedArray<int> weights;
++    SharedArray<int> weights;
+     /// The current index into the elements and weights
+     int index;
+     /// Move to the next element



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010111912.09BJC2JT095950>