coin3d: apply upstream patches to fix build on Centos 8 (#39839)
fixes undefined references to dlerror, dlopen, dlsym, dlclose and XDefaultScreenOfDisplay, XScreenNumberOfScreen, XCreatePixmap, XFree, XFreePixmap, XCloseDisplay, XOpenDisplay
This commit is contained in:
parent
7a490e95b6
commit
68d7ce3bb6
1 changed files with 18 additions and 0 deletions
|
@ -59,6 +59,24 @@ def url_for_version(self, version):
|
||||||
url = "https://github.com/coin3d/coin/archive/Coin-{0}.tar.gz"
|
url = "https://github.com/coin3d/coin/archive/Coin-{0}.tar.gz"
|
||||||
return url.format(version.dotted)
|
return url.format(version.dotted)
|
||||||
|
|
||||||
|
# 2 patches for fixing missing dlopen, ... on CentOS 8
|
||||||
|
patch(
|
||||||
|
"https://github.com/coin3d/coin/commit/962e613609ba93301999f83e283b7f489dfac503.patch?full_index=1",
|
||||||
|
sha256="33da720d6ff50916403320c47c72600737bdfb4113a4d527bc3fa9e8fe368f49",
|
||||||
|
when="@4.0.0",
|
||||||
|
)
|
||||||
|
patch(
|
||||||
|
"https://github.com/coin3d/coin/commit/9a36b15d66c5e340cd8695415ce5867ad07ee2bb.patch?full_index=1",
|
||||||
|
sha256="fcfe07c45e4981976ccf8df377f8cea24c48231b9e5d9538e5c7e4e038970597",
|
||||||
|
when="@4.0.0",
|
||||||
|
)
|
||||||
|
# fix missing X11 libraries on CentOS 8
|
||||||
|
patch(
|
||||||
|
"https://github.com/coin3d/coin/commit/58a1b4c3e968f96d3a2091fa5cb625f360ce6811.patch?full_index=1",
|
||||||
|
sha256="a4fe39d430068a7b107d4bca1fdb932e40cf92c3b5be0f846c70cbdc333e924d",
|
||||||
|
when="@4.0.0",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class CMakeBuilder(spack.build_systems.cmake.CMakeBuilder):
|
class CMakeBuilder(spack.build_systems.cmake.CMakeBuilder):
|
||||||
def cmake_args(self):
|
def cmake_args(self):
|
||||||
|
|
Loading…
Reference in a new issue