From dev-return-56434-archive-asf-public=cust-asf.ponee.io@thrift.apache.org Sun Jul 28 13:19:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 5EB3F180671 for ; Sun, 28 Jul 2019 15:19:02 +0200 (CEST) Received: (qmail 47625 invoked by uid 500); 28 Jul 2019 13:19:01 -0000 Mailing-List: contact dev-help@thrift.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@thrift.apache.org Delivered-To: mailing list dev@thrift.apache.org Received: (qmail 47612 invoked by uid 99); 28 Jul 2019 13:19:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Jul 2019 13:19:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5D2E5E00FC for ; Sun, 28 Jul 2019 13:19:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 17C1026616 for ; Sun, 28 Jul 2019 13:19:00 +0000 (UTC) Date: Sun, 28 Jul 2019 13:19:00 +0000 (UTC) From: "James E. King III (JIRA)" To: dev@thrift.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (THRIFT-4912) Configuring with $JAVA_PREFIX leads to $JAVA_PREFIX/usr/local/lib MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/THRIFT-4912?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D168= 94702#comment-16894702 ]=20 James E. King III commented on THRIFT-4912: ------------------------------------------- The case for PREFIX should also be fixed; if PREFIX is set (and JAVA_PREFIX= is not set) then JAVA_PREFIX should become $PREFIX/lib, correct? > Configuring with $JAVA_PREFIX leads to $JAVA_PREFIX/usr/local/lib > ------------------------------------------------------------------ > > Key: THRIFT-4912 > URL: https://issues.apache.org/jira/browse/THRIFT-4912 > Project: Thrift > Issue Type: Bug > Components: Build Process > Affects Versions: 0.12.0 > Reporter: Ben Pavon > Priority: Minor > > While configuring thrift-0.12.0 on Red Hat Linux and targeting Java and P= erl, I used --prefix and defined $JAVA_PREFIX and $PERL_PREFIX in order to = control where Thrift is installed. Both --prefix and $PERL_PREFIX worked as= intended. However, setting $JAVA_PREFIX resulted in $JAVA_PREFIX/usr/local= /lib. This is because of the following code in the configure script: > if test "x$JAVA_PREFIX" !=3D x; then : > JAVA_PREFIX=3D"$JAVA_PREFIX/usr/local/lib" > elif test "x$PREFIX" !=3D x; then : > JAVA_PREFIX=3D"$PREFIX/usr/local/lib" > else > JAVA_PREFIX=3D"/usr/local/lib" > fi > I believe the above code should be replaced with one that sets $JAVA_PREF= IX to /usr/local/lib only if it is not defined. > =C2=A0 > =C2=A0 > =C2=A0 > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.14#76016)