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 <[email protected]>
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 <[email protected]>
    Signed-off-by: Neal Richardson <[email protected]>
---
 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"
 

Reply via email to