Summary: | graphics/openimageio fails to build when USE_GCC=yes implies GCC 4.9 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Gerald Pfeifer <gerald> | ||||||||||
Component: | Individual Port(s) | Assignee: | freebsd-ports-bugs (Nobody) <ports-bugs> | ||||||||||
Status: | Closed FIXED | ||||||||||||
Severity: | Affects Some People | CC: | FreeBSD, amdmi3, mandree | ||||||||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(FreeBSD) |
||||||||||
Version: | Latest | ||||||||||||
Hardware: | Any | ||||||||||||
OS: | Any | ||||||||||||
Attachments: |
|
Description
Gerald Pfeifer
2015-02-22 01:56:26 UTC
Maintainer CC'd Created attachment 153568 [details]
update for gcc4.9 as default version
I see no problem adding USE_GCC=yes when gcc is being used. This also cascades into graphics/opencolorio (as master port for opencolorio-tools) and graphics/openshadinglanguage which also link with openimageio.
graphics/blender also uses these ports but already has the USE_GCC in place.
One consolidated patch for all three ports - similar change to each.
Created attachment 153569 [details]
update for gcc4.9 as default version
small adjustment to opencolorio patch. Need to use both options.mk and pre.mk to pickup cmake and pkgconf as dependencies.
Cool, thanks for this patch! I applied the one to graphics/openimageio. Did you observe the other two ports -- graphics/opencolorio and graphics/openshadinglanguage -- fail? They did not show up in the full ports rebuild report in PR 196712, hence this question. If you want these two change as well, I will be happy to commit them for you. I just wanted to double check. Yes I did, only reason I updated them as well - as openimageio is a dependency graphics/opencolorio-tools and graphics/openshadinglanguage won't start to build until openimageio completes, which is why they haven't shown up yet. This duplicates needless conditional compiler selection logic from OpenEXR. As I suggested in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196712, it'd be better to use compiler:c++11-lib everywhere instead, which essentially does the same thing (noop on 10.x, recent gcc on pre-10), but is shorter, more flexible and future-proof. Created attachment 153817 [details]
update for gcc4.9 as default version
USES=compiler:c++11-lib works fine in my tests. Update patch to use that instead of USES_GCC
Now that OpenEXR was fixed, there's no longer need for any hacks, so I suggest to just rollback original change. Patch follows. Created attachment 155360 [details]
Patch
A commit references this bug: Author: amdmi3 Date: Sat Jun 27 13:27:10 UTC 2015 New revision: 390701 URL: https://svnweb.freebsd.org/changeset/ports/390701 Log: - Remove compiler tampering This is no longer needed after the same thing was removed from OpenEXR, and moreover it breaks opencolorio-tools on 9.x PR: 197907 Approved by: portmgr blanket, maitainer timeout Changes: head/graphics/openimageio/Makefile |