Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 171F81758C for ; Wed, 27 May 2015 03:36:21 +0000 (UTC) Received: (qmail 47613 invoked by uid 500); 27 May 2015 03:36:18 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 47566 invoked by uid 500); 27 May 2015 03:36:18 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 47548 invoked by uid 99); 27 May 2015 03:36:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 May 2015 03:36:18 +0000 Date: Wed, 27 May 2015 03:36:17 +0000 (UTC) From: "Allen Wittenauer (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HADOOP-12027) enable bzip2 on OS X MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-12027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14560337#comment-14560337 ] Allen Wittenauer edited comment on HADOOP-12027 at 5/27/15 3:35 AM: -------------------------------------------------------------------- This is way simpler than what I thought: The CMakeList.txt needs to get changed to be: {code} SET(STORED_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES}) IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") # bzip2 detection fails on OS X for some reason here ELSE() set_find_shared_library_version("1") ENDIF() find_package(BZip2 QUIET) {code} and then it appears that setting env vars, etc, works as expected. (e.g., BZIP2_PREFIX_DIR=/usr/local/opt/bzip2 should make cmake pick it up from homebrew) was (Author: aw): This is way simpler than what I thought: The CMakeList.txt needs to get changed to be: {code} SET(STORED_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES}) IF(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") # No effect. bzip2 not built as a shared lib ELSE() set_find_shared_library_version("1") ENDIF() find_package(BZip2 QUIET) {code} and then it appears that setting env vars, etc, works as expected. (e.g., BZIP2_PREFIX_DIR=/usr/local/opt/bzip2 should make cmake pick it up from homebrew) > enable bzip2 on OS X > -------------------- > > Key: HADOOP-12027 > URL: https://issues.apache.org/jira/browse/HADOOP-12027 > Project: Hadoop Common > Issue Type: Bug > Components: native > Reporter: Allen Wittenauer > > OS X Mavericks + homebrew could compile bzip2 bits if there was a way to expose the bzip2 headers+lib location to CMake like we do for snappy, OpenSSL, etc. Additionally, bzip2 only comes as a static library on Darwin, so we need to escape out the forced shared library bit. -- This message was sent by Atlassian JIRA (v6.3.4#6332)