Skip to content

Upstream patch patch-posixmodule-copy-file-range-weak.patch #1189

Closed

Description

@jjhelmus

patch-posixmodule-copy-file-range-weak.patch

CPython determines whether to expose os.copy_file_range based on the glibc version used at build time, preventing access to the function when building against an older glibc even if the runtime glibc provides it.

This patch weakly links copy_file_range and removes os.copy_file_range when the symbol is unavailable at runtime. This allows the function to be exposed when supported without increasing the minimum required glibc version.

Activity

  1. jjhelmus commented on Aug 13, 2026

    @jjhelmus
    ContributorAuthor

    This patch is no longer needed with #1216 which backports python/cpython#155520

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions