From dev-return-56431-archive-asf-public=cust-asf.ponee.io@thrift.apache.org Fri Jul 26 14:36: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 A31C3180695 for ; Fri, 26 Jul 2019 16:36:02 +0200 (CEST) Received: (qmail 31883 invoked by uid 500); 26 Jul 2019 14:36: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 31821 invoked by uid 99); 26 Jul 2019 14:36: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; Fri, 26 Jul 2019 14:36: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 7D66EE2F62 for ; Fri, 26 Jul 2019 14:36: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 38BE3265FF for ; Fri, 26 Jul 2019 14:36:00 +0000 (UTC) Date: Fri, 26 Jul 2019 14:36:00 +0000 (UTC) From: "Ben Pavon (JIRA)" To: dev@thrift.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (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 Ben Pavon created THRIFT-4912: --------------------------------- Summary: 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 While configuring thrift-0.12.0 on Red Hat Linux and targeting Java and Per= l, I used --prefix and defined $JAVA_PREFIX and $PERL_PREFIX in order to co= ntrol where Thrift is installed. Both --prefix and $PERL_PREFIX worked as i= ntended. However, setting $JAVA_PREFIX resulted in $JAVA_PREFIX/usr/local/l= ib. 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 one that sets $JAVA_PREFIX 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)