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

Bug 722302

Summary: media-gfx/openscad-2019.05 with boost 1.73 : src/import.cc:53:10: fatal error: boost/detail/endian.hpp: No such file or directory
Product: Gentoo Linux Reporter: William T Wilson <fluffysheap>
Component: Current packagesAssignee: Bernd <waebbl-gentoo>
Status: RESOLVED FIXED    
Severity: normal CC: fluffysheap, gentoo, gentoo, jstein, proxy-maint
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/15809
https://bugs.gentoo.org/show_bug.cgi?id=755716
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 719924    
Attachments: emerge --info
Patch to fix the build

Description William T Wilson 2020-05-11 02:47:24 UTC
Created attachment 637832 [details]
emerge --info

A change in the boost library has eliminated the file in question.  I have attached a patch that fixes the build.  The new header has been present since 1.71, so this patch should be safe to use with any version of boost currently in Portage.

Users needing a short-term workaround can stick with boost 1.72, or drop this patch into /etc/portage/patches/media-gfx/openscad
Comment 1 William T Wilson 2020-05-11 02:49:09 UTC
Created attachment 637834 [details, diff]
Patch to fix the build

Description of the relevant change in boost can be found here:
https://www.boost.org/doc/libs/1_71_0/libs/endian/doc/html/endian.html
(just search the webpage for endian.hpp)
Comment 2 Thomas Posch 2020-05-11 17:10:21 UTC
Works!

Thank you.
Comment 3 Thomas Posch 2020-05-11 17:21:43 UTC
Upstream merge request:
https://gitlab.com/kicad/code/kicad/-/merge_requests/207
Comment 4 Thomas Posch 2020-05-11 17:25:24 UTC
Sorry, wrong tab.
Merge request is for https://bugs.gentoo.org/722288.
Comment 5 Miroslav Ć ulc gentoo-dev 2020-05-17 18:25:29 UTC
this issue also applies to openscad-9999 and the patch works for it too.
Comment 6 Bernd 2020-05-17 18:57:39 UTC
You are right Miroslav. I totally forgot to update the live ebuild as well... Thank you!
Comment 7 Larry the Git Cow gentoo-dev 2020-06-12 07:00:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8dfc7b2d0c0cc3d01d08ec9dc7885be394334a50

commit 8dfc7b2d0c0cc3d01d08ec9dc7885be394334a50
Author:     Bernd Waibel <waebbl@gmail.com>
AuthorDate: 2020-04-19 18:44:54 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-06-12 06:59:45 +0000

    media-gfx/openscad: Fix build with boost-1.73.0
    
    Thanks to William T Wilson for reporting and providing patch.
    
    Additionally OpenSCAD has an optional, but automagic dependency on
    media-libs/lib3mf.
    
    Add ccache USE flag, as it's automagically enabled whenever the ccache
    binary is found in PATH.
    
    Reported-by: William T Wilson <fluffysheap@gmail.com>
    Closes: https://bugs.gentoo.org/722302
    Package-Manager: Portage-2.3.99-r2, Repoman-2.3.22
    Signed-off-by: Bernd Waibel <waebbl@gmail.com>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 ...ad-2019.05-0001-Fix-build-with-boost-1.73.patch |  28 ++++++
 ...2-Gentoo-specific-Disable-ccache-building.patch |  35 +++++++
 media-gfx/openscad/metadata.xml                    |   5 +
 media-gfx/openscad/openscad-2019.05-r3.ebuild      | 108 +++++++++++++++++++++
 4 files changed, 176 insertions(+)
Comment 8 Kobboi 2020-06-13 09:28:11 UTC
Doesn't compile for me, will create new ticket.
Comment 9 Kobboi 2020-06-13 09:39:49 UTC
Looks like a cgal problem, I logged https://bugs.gentoo.org/728116
Comment 10 Kobboi 2020-06-13 09:46:03 UTC
And openscad-2019.05-0001-Fix-build-with-boost-1.73.patch no longer applies to the live ebuild.