You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King III (JIRA)" <ji...@apache.org> on 2019/07/28 13:19:00 UTC

[jira] [Commented] (THRIFT-4912) Configuring with $JAVA_PREFIX leads to $JAVA_PREFIX/usr/local/lib

    [ https://issues.apache.org/jira/browse/THRIFT-4912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16894702#comment-16894702 ] 

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 Perl, 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" != x; then :
>  JAVA_PREFIX="$JAVA_PREFIX/usr/local/lib"
>  elif test "x$PREFIX" != x; then :
>  JAVA_PREFIX="$PREFIX/usr/local/lib"
>  else
>  JAVA_PREFIX="/usr/local/lib"
>  fi
> I believe the above code should be replaced with one that sets $JAVA_PREFIX to /usr/local/lib only if it is not defined.
>  
>  
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)