Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
avogadro
avogadro-1.0.1-fix_sip.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File avogadro-1.0.1-fix_sip.patch of Package avogadro
--- cmake/modules/PythonDeps.cmake.orig +++ cmake/modules/PythonDeps.cmake @@ -59,10 +59,13 @@ if (EXISTS ${PYTHON_INCLUDE_PATH}/sip.h) message(STATUS "Found sip.h header...") execute_process(COMMAND sip -V OUTPUT_VARIABLE SIP_VERSION) - if (${SIP_VERSION} VERSION_GREATER "4.8") + if (NOT ${SIP_VERSION} VERSION_LESS "4.11") + message(STATUS "using sip version 4.11 or above...") + add_definitions( -DSIP_4_11 -DSIP_4_8 ) + elseif (NOT ${SIP_VERSION} VERSION_LESS "4.8") message(STATUS "using sip version 4.8 or above...") add_definitions( -DSIP_4_8 ) - endif (${SIP_VERSION} VERSION_GREATER "4.8") + endif (NOT ${SIP_VERSION} VERSION_LESS "4.11") else (EXISTS ${PYTHON_INCLUDE_PATH}/sip.h) message(STATUS "sip.h header NOT found - Python support disabled") # message(STATUS "debian/ubuntu: install the python-sip4-dev package.") --- libavogadro/src/python/sip.cpp.orig +++ libavogadro/src/python/sip.cpp @@ -204,7 +204,11 @@ sipWrapper *wrapper = reinterpret_cast<sipWrapper*>(obj_ptr); #endif // return the C++ pointer +#ifdef SIP_4_11 + return sip_API->api_get_address(wrapper); +#else return wrapper->u.cppPtr; +#endif } QClass_converters()
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor