Skip to content

[R] Improve package installation (on Fedora 36) with arrow system packages #31989

Closed

Description

@asfimport

Fedora 36 includes both a 'libarrow' and a 'libarrow-dataset' package under pkg-config names 'arrow' and 'arrow-dataset', respectively. When we do install.packages("arrow") on Fedora 36, the pkg-config for 'arrow' gets picked up first, and we get a minimal arrow install. Installing with NOT_CRAN=true ARROW_USE_PKG_CONFIG=false results in a full compiled installation because binaries are not available for fedora-36 (according to the install output).

Reported by Roger Bivand (while testing GDAL + Arrow support since Fedora 36 is the easiest place to do that due to system Arrow): paleolimbot/narrow#7

Reproducble using the fedora:36 docker container:

# docker run --rm -it fedora:36
dnf install -y R libarrow-dataset-devel cmake
R -e 'install.packages("arrow", repos = "https://cloud.r-project.org/")'
R -e 'arrow::arrow_info()$capabilities'

Reporter: Dewey Dunnington / @paleolimbot

Note: This issue was originally created as ARROW-16639. Please see the migration documentation for further details.

Activity

  1. asfimport commented on Jul 6, 2022

    @asfimport
    Author

    Neal Richardson / @nealrichardson:
    With ARROW-16752, NOT_CRAN=true ARROW_USE_PKG_CONFIG=false should result in a full-featured package via the libarrow binaries we build.

  2. asfimport commented on Jul 6, 2022

    @asfimport
    Author

    Dewey Dunnington / @paleolimbot:
    Is it worth checking the pkg-config name arrow-dataset as well as the pkg-config name arrow? (I know that's easier said than done). One could also skip the pkg-config check if it's legal to download the binaries?

  3. asfimport commented on Jul 6, 2022

    @asfimport
    Author

    Neal Richardson / @nealrichardson:
    We used to but that was changed in https://github.com/apache/arrow/pull/9610/files#diff-089697faebdb7820ca629a2bb316b878cc0ba18a5bfb0b60996f8dbcd1fa11e7

    I'm sure there's a way to allow a limited build but also by default look for everything, or something.

  4. added a commit that references this issue on May 3, 2023
    ec89360
  5. added a commit that references this issue on May 11, 2023
    aaadf92
  6. added a commit that references this issue on May 15, 2023
    e292a6c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions