rattler-build icon indicating copy to clipboard operation
rattler-build copied to clipboard

Cannot add `$ORIGIN` to `rpath_allowlist`

Open chebee7i opened this issue 1 year ago • 1 comments

I have the following section in my recipe.yaml:

build:                        
  number: 0                   
  dynamic_linking:            
    rpath_allowlist:          
      - "$ORIGIN"             
      - "$ORIGIN/../.."       

but this doesn't seem to achieve what I want:

╭─ Packaging new files
│ Copying done!
│ Rpath not in prefix or allow-listed: $ORIGIN – removing it
│ Rpath not in prefix or allow-listed: $ORIGIN/../.. – removing it
│ New relative path: $ORIGIN/../..
$ rattler-build --version
rattler-build 0.14.2

chebee7i avatar Apr 21 '24 03:04 chebee7i

It seems that I can do this just with rpaths, as in:

build:                                   
  number: 0                              
  dynamic_linking:                       
    rpaths:                              
      - "lib/"                           
      - "lib/python3.8/site-packages"    

chebee7i avatar Apr 21 '24 03:04 chebee7i