Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 684038

Summary: media-gfx/openscad-2015.03_p3 : src/CSGTermEvaluator.cc:112:34: error: cannot convert boost::logic::tribool to bool in initialization
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Bernd <waebbl-gentoo>
Status: RESOLVED FIXED    
Severity: normal CC: proxy-maint, waebbl-gentoo
Priority: Normal Keywords: PATCH, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/12003
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 671712    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
media-gfx:openscad-2015.03_p3:20190420-160328.log
temp.tbz2

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(-)