You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2015/01/09 16:13:36 UTC

svn commit: r1650555 - in /qpid/dispatch/branches/0.3: python/CMakeLists.txt python/install_python.cmake router/src/main.c

Author: aconway
Date: Fri Jan  9 15:13:36 2015
New Revision: 1650555

URL: http://svn.apache.org/r1650555
Log:
NO-JIRA: Fix build and install problems

- Compile problem on Fedora 21.
- Put python install back inline (problem with DESTDIR passed to install script)

Modified:
    qpid/dispatch/branches/0.3/python/CMakeLists.txt
    qpid/dispatch/branches/0.3/python/install_python.cmake
    qpid/dispatch/branches/0.3/router/src/main.c

Modified: qpid/dispatch/branches/0.3/python/CMakeLists.txt
URL: http://svn.apache.org/viewvc/qpid/dispatch/branches/0.3/python/CMakeLists.txt?rev=1650555&r1=1650554&r2=1650555&view=diff
==============================================================================
--- qpid/dispatch/branches/0.3/python/CMakeLists.txt (original)
+++ qpid/dispatch/branches/0.3/python/CMakeLists.txt Fri Jan  9 15:13:36 2015
@@ -27,9 +27,9 @@ configure_file(${CMAKE_CURRENT_SOURCE_DI
                ${CMAKE_CURRENT_BINARY_DIR}/qpid_dispatch_site.py)
 
 # Install script for public python modules
-install(SCRIPT install_python.cmake)
-install(
-  FILES
+install(CODE "execute_process(COMMAND ${PYTHON_EXECUTABLE} setup.py -v install --prefix=${CMAKE_INSTALL_PREFIX} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})")
+
+install(FILES
   ${CMAKE_CURRENT_SOURCE_DIR}/qpid_dispatch/management/qdrouter.json
   ${CMAKE_CURRENT_SOURCE_DIR}/qpid_dispatch/management/qdrouter.json.readme.txt
   DESTINATION ${QPID_DISPATCH_CONFDIR}

Modified: qpid/dispatch/branches/0.3/python/install_python.cmake
URL: http://svn.apache.org/viewvc/qpid/dispatch/branches/0.3/python/install_python.cmake?rev=1650555&r1=1650554&r2=1650555&view=diff
==============================================================================
--- qpid/dispatch/branches/0.3/python/install_python.cmake (original)
+++ qpid/dispatch/branches/0.3/python/install_python.cmake Fri Jan  9 15:13:36 2015
@@ -22,11 +22,9 @@
 
 include(FindPythonInterp)
 
-set(PYTHON_MANIFEST ${CMAKE_CURRENT_BINARY_DIR}/python/python_manifest.txt)
+set(PYTHON_MANIFEST ${CMAKE_BINARY_DIR}/python_manifest.txt)
+
 
-execute_process(COMMAND ${PYTHON_EXECUTABLE}
-  setup.py -v install --prefix=${CMAKE_INSTALL_PREFIX} --record=${PYTHON_MANIFEST}
-  WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/python)
 
 file(READ ${PYTHON_MANIFEST} PYTHON_MANIFEST_FILES)
 list(APPEND CMAKE_INSTALL_MANIFEST_FILES ${PYTHON_MANIFEST_FILES})

Modified: qpid/dispatch/branches/0.3/router/src/main.c
URL: http://svn.apache.org/viewvc/qpid/dispatch/branches/0.3/router/src/main.c?rev=1650555&r1=1650554&r2=1650555&view=diff
==============================================================================
--- qpid/dispatch/branches/0.3/router/src/main.c (original)
+++ qpid/dispatch/branches/0.3/router/src/main.c Fri Jan  9 15:13:36 2015
@@ -84,9 +84,9 @@ static void server_signal_handler(void*
 static void check(int fd) {
     if (qd_error_code()) {
         qd_log(log_source, QD_LOG_CRITICAL, "Router start-up failed: %s", qd_error_message());
-        write(fd, qd_error_message(), strlen(qd_error_message()));
+        if(write(fd, qd_error_message(), strlen(qd_error_message())));
         char eos = '\0';
-        write(fd, &eos, 1);
+        if(write(fd, &eos, 1));
         close(fd);
         exit(1);
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org