Skip to content

[R] allow building with shared snappy #51482

Closed

Description

@bastistician

Describe the enhancement requested

As a side effect of #42210, 67bbf84 hard-coded -DARROW_SNAPPY_USE_SHARED=OFF in 'r/inst/build_arrow_static.sh', which prevents source installations from using a system-provided snappy-dev. It took me a while to figure out why my build would always fail with

Could NOT find SnappyAlt (missing: Snappy_LIB)

when using ARROW_DEPENDENCY_SOURCE=SYSTEM regardless of my settings of any of

ARROW_DEPENDENCY_USE_SHARED=ON [default=ON]
    Link to shared libraries

ARROW_SNAPPY_USE_SHARED=ON [default=ON]
    Rely on snappy shared libraries where relevant

Why not allow customization like for most other variables?

-DARROW_SNAPPY_USE_SHARED="${ARROW_SNAPPY_USE_SHARED:-OFF}"

Currently 'snappy' always needs to be downloaded when installing the R package arrow + libarrow from source: Performing download step (download, verify and extract) for 'snappy_ep' (also 'xsimd' but that is simply because a very recent version (14.2.0) is required which I don't have installed).

Component(s)

R

Activity

  1. added a commit that references this issue on Nov 12, 2026
  2. added this to the 27.0.0 milestone on Nov 12, 2026
  3. thisisnic commented on Nov 12, 2026

    @thisisnic
    Member

    Issue resolved by pull request 51490
    #51490

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions