{"action":"opened","issue":{"url":"https://api.github.com/repos/arangodb/arangodb/issues/1904","repository_url":"https://api.github.com/repos/arangodb/arangodb","labels_url":"https://api.github.com/repos/arangodb/arangodb/issues/1904/labels{/name}","comments_url":"https://api.github.com/repos/arangodb/arangodb/issues/1904/comments","events_url":"https://api.github.com/repos/arangodb/arangodb/issues/1904/events","html_url":"https://github.com/arangodb/arangodb/issues/1904","id":162583112,"number":1904,"title":"Multiple CMAKE_INSTALL_* CMake entries ignored","user":{"login":"helq","id":2558155,"avatar_url":"https://avatars.githubusercontent.com/u/2558155?v=3","gravatar_id":"","url":"https://api.github.com/users/helq","html_url":"https://github.com/helq","followers_url":"https://api.github.com/users/helq/followers","following_url":"https://api.github.com/users/helq/following{/other_user}","gists_url":"https://api.github.com/users/helq/gists{/gist_id}","starred_url":"https://api.github.com/users/helq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helq/subscriptions","organizations_url":"https://api.github.com/users/helq/orgs","repos_url":"https://api.github.com/users/helq/repos","events_url":"https://api.github.com/users/helq/events{/privacy}","received_events_url":"https://api.github.com/users/helq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-28T01:26:08Z","updated_at":"2016-06-28T01:26:08Z","closed_at":null,"body":"I'm trying to compile arangodb 3.0 in Archlinux with custom `cmake` flags, unfortunately some flags are being ignored. To be precise, this is the process I'm following to compile arangodb:\r\n\r\n    mkdir build; cd build\r\n    cmake .. \\\r\n      -DCMAKE_INSTALL_PREFIX=/ \\\r\n      -DCMAKE_INSTALL_BINDIR=/usr/bin \\\r\n      -DCMAKE_INSTALL_SBINDIR=/usr/bin \\\r\n      -DCMAKE_INSTALL_DATAROOTDIR=/usr/share \\\r\n      -DCMAKE_INSTALL_SYSCONFDIR=/etc \\\r\n      -DCMAKE_INSTALL_LOCALSTATEDIR=/var \\\r\n      -DCMAKE_C_COMPILER=clang \\\r\n      -DCMAKE_CXX_COMPILER=clang++ \\\r\n      -DCMAKE_BUILD_TYPE=Release\r\n    make\r\n    make DESTIDIR=\"/a/test/directory\" install\r\n\r\nBut once everything is compiled and installed, I find the following structure in the destination directory:\r\n\r\n    /\r\n    -   etc/\r\n    -   init.d/\r\n    -   sbin/\r\n    -   share/\r\n    -   usr/\r\n        -   bin/\r\n    -   var/\r\n\r\nWhere I was expecting this structure:\r\n\r\n    /\r\n    -   etc/\r\n    -   init.d/\r\n    -   usr/\r\n        -   bin/\r\n        -   share/\r\n    -   var/\r\n\r\nI thought the problem was easy to solve, a simple refactoring of `arangodb/cmake/ArangoDBMacros.cmake` should have done it. For example, the line\r\n\r\n    set(TRI_PKGDATADIR \"${CMAKE_INSTALL_PREFIX}/share/arangodb3\")\r\n\r\ncould be replaced with\r\n\r\n    set(TRI_PKGDATADIR \"${CMAKE_INSTALL_DATAROOTDIR}/arangodb3\")\r\n\r\nOr the line\r\n\r\n      set(TRI_SBINDIR \"${CMAKE_INSTALL_PREFIX}/sbin\")\r\n\r\nwith\r\n\r\n      set(TRI_SBINDIR \"${CMAKE_INSTALL_SBINDIR}\")\r\n\r\nBut it seems there are many many string substitutions to do so that the installation respects all CMake entries.\r\n\r\nI hope I've been able to articulate adequately, it's my first time trying to compile using CMake so I'm not sure if I've missed something."}}
{"actor":{"display_login":"helq"}}