You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by np...@apache.org on 2022/07/07 20:44:10 UTC
[arrow] branch master updated: ARROW-16679: [R] configure fails if CDPATH is not null (#13313)
This is an automated email from the ASF dual-hosted git repository.
npr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new 1a35aa6c57 ARROW-16679: [R] configure fails if CDPATH is not null (#13313)
1a35aa6c57 is described below
commit 1a35aa6c57379d922f3086da708077e8786aa06e
Author: Jacob Wujciak-Jens <ja...@wujciak.de>
AuthorDate: Thu Jul 7 22:44:02 2022 +0200
ARROW-16679: [R] configure fails if CDPATH is not null (#13313)
Authored-by: Jacob Wujciak-Jens <ja...@wujciak.de>
Signed-off-by: Neal Richardson <ne...@gmail.com>
---
r/configure | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/r/configure b/r/configure
index d62c58eeda..68dfd5f5ee 100755
--- a/r/configure
+++ b/r/configure
@@ -177,7 +177,8 @@ else
# Assume nixlibs.R has handled and messaged about its failure already
#
# TODO: what about non-bundled deps?
- BUNDLED_LIBS=`cd $LIB_DIR && ls *.a`
+ # Set CDPATH locally to prevent interference from global CDPATH (if set)
+ BUNDLED_LIBS=`CDPATH=''; cd $LIB_DIR && ls *.a`
BUNDLED_LIBS=`echo "$BUNDLED_LIBS" | sed -e "s/\\.a lib/ -l/g" | sed -e "s/\\.a$//" | sed -e "s/^lib/-l/" | tr '\n' ' ' | sed -e "s/ $//"`
PKG_DIRS="-L`pwd`/$LIB_DIR"