Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 684038 - media-gfx/openscad-2015.03_p3 : src/CSGTermEvaluator.cc:112:34: error: cannot convert boost::logic::tribool to bool in initialization
Summary: media-gfx/openscad-2015.03_p3 : src/CSGTermEvaluator.cc:112:34: error: cannot...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernd
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks: boost-1.71
  Show dependency tree
 
Reported: 2019-04-21 19:31 UTC by Toralf Förster
Modified: 2019-05-15 18:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.54 KB, text/plain)
2019-04-21 19:31 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,213.11 KB, text/plain)
2019-04-21 19:31 UTC, Toralf Förster
Details
environment (environment,62.77 KB, text/plain)
2019-04-21 19:31 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,15.20 KB, application/x-bzip)
2019-04-21 19:31 UTC, Toralf Förster
Details
media-gfx:openscad-2015.03_p3:20190420-160328.log (media-gfx:openscad-2015.03_p3:20190420-160328.log,92.19 KB, text/plain)
2019-04-21 19:31 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,20.21 KB, application/x-bzip)
2019-04-21 19:31 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-04-21 19:31:40 UTC
src/CSGTermEvaluator.cc: In function ‘boost::shared_ptr<CSGTerm> evaluate_csg_term_from_geometry(const State&, std::vector<boost::shared_ptr<CSGTerm> >&, std::vector<boost::shared_ptr<CSGTerm> >&, const boost::shared_ptr<const Geometry>&, const ModuleInstantiation*, const AbstractNode&)’:
src/CSGTermEvaluator.cc:112:34: error: cannot convert ‘boost::logic::tribool’ to ‘bool’ in initialization
    bool convex = ps->convexValue();
                                  ^
make: *** [Makefile:2598: objects/CSGTermEvaluator.o] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-desktop-gnome-systemd_20190415-201837

  -------------------------------------------------------------------

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems)
  [3]   ruby26 (with Rubygems) *

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.10.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpvO media-gfx/openscad
[ebuild  N    ] media-gfx/openscad-2015.03_p3  USE="-emacs"
Comment 1 Toralf Förster gentoo-dev 2019-04-21 19:31:43 UTC
Created attachment 573610 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-04-21 19:31:46 UTC
Created attachment 573612 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-04-21 19:31:49 UTC
Created attachment 573614 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-04-21 19:31:51 UTC
Created attachment 573616 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-04-21 19:31:54 UTC
Created attachment 573618 [details]
media-gfx:openscad-2015.03_p3:20190420-160328.log
Comment 6 Toralf Förster gentoo-dev 2019-04-21 19:31:57 UTC
Created attachment 573620 [details]
temp.tbz2
Comment 7 Andreas Sturmlechner gentoo-dev 2019-05-11 19:44:56 UTC
Possible fix: https://github.com/openscad/openscad/commit/8fb64db99ce05da1c72efb8b2f572995fef2ea86

(this was renamed from CSGTermEvaluator.cc to CSGTreeEvaluator.cc in upstream commit 77ae07db7abb37429e9ecb2245792a556fa7364d)
Comment 8 Bernd 2019-05-13 06:28:12 UTC
(In reply to Andreas Sturmlechner from comment #7)
> Possible fix:
> https://github.com/openscad/openscad/commit/
> 8fb64db99ce05da1c72efb8b2f572995fef2ea86
> 
> (this was renamed from CSGTermEvaluator.cc to CSGTreeEvaluator.cc in
> upstream commit 77ae07db7abb37429e9ecb2245792a556fa7364d)

I look into this and test it.

Also got a notice today, that 2019.05 has been released.
Comment 9 Andreas Sturmlechner gentoo-dev 2019-05-15 10:14:09 UTC
Assuming the new version fixes it as well, that would certainly be better than putting work into patching the old one.
Comment 10 Bernd 2019-05-15 16:01:11 UTC
The patch you linked fixes the issues, so not much work to do.

I'm going to prepare a PR for the fix and another for the bump.
Comment 11 Larry the Git Cow gentoo-dev 2019-05-15 18:29:10 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f39ea71ddb4d2008a1ab414493196d3c94e05b7

commit 2f39ea71ddb4d2008a1ab414493196d3c94e05b7
Author:     Bernd Waibel <waebbl@gmail.com>
AuthorDate: 2019-05-15 16:01:55 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2019-05-15 18:27:48 +0000

    media-gfx/openscad: fix boost-1.70.0 build
    
    Fixes a build issue with >=boost-1.69
    
    Closes: https://bugs.gentoo.org/684038
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Bernd Waibel <waebbl@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/12003
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 .../files/openscad-2015.03_p3_fix-boost-1.70.0-build.patch  | 13 +++++++++++++
 media-gfx/openscad/openscad-2015.03_p3-r1.ebuild            |  5 ++++-
 2 files changed, 17 insertions(+), 1 deletion(-)