Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GH-132983: Support finding libzstd without pkg-config#133550

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

emmatyping
Copy link
Member

@emmatypingemmatyping commentedMay 7, 2025
edited by bedevere-appbot
Loading

GH-133479 removed the logic to check for libzstd outside of pkg-config. This commit adds that logic back with a check for the version so that users can provide their own libzstd. This is to bring parity with lzma, bz2, and zlib detection.

The issues previously seen on RHEL 8 were due to how the checks are ordered. After#133479, if a library version was too old, thePKG_CHECK_MODULES macro would take the "not found" path. This would then search for and find zstd.h and a libzstd with the symbolZDICT_finalizeDictionary, but then compilation would fail when the header check occured.#133502 removed this path solving the issue on RHEL 8. However, this also make it impossible for a user to set a custom build of libzstd as the dependency (as they can do for liblzma, libbz2, etc.).

In this PR we add this path back, but add an additional check for the version of the libraries. If a user/third party packager would like to point to their own libzstd, they can do so. We avoid the issue#133479 was meaning to solve by ensuring that the version check only runs if we already have the zstd.h header and libzstd library found.

pythonGH-133479 removed the logic to check for libzstd outside of pkg-config.This commit adds that logic back with a check for the version so thatusers can provide their own libzstd. This is to bring parity with lzma,bz2, and zlib detection.
@emmatypingemmatyping changed the titleSupport finding libzstd not in pkg-configGH-132983: Support finding libzstd not in pkg-configMay 7, 2025
@emmatypingemmatyping changed the titleGH-132983: Support finding libzstd not in pkg-configGH-132983: Support finding libzstd without pkg-configMay 7, 2025
@emmatyping
Copy link
MemberAuthor

!buildbot RHEL8

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@emmatyping for commitf3dd7f7 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F133550%2Fmerge

The command will test the builders whose names match following regular expression:RHEL8

The builders matched are:

  • PPC64LE RHEL8 LTO PR
  • PPC64LE RHEL8 Refleaks PR
  • AMD64 RHEL8 LTO + PGO PR
  • aarch64 RHEL8 PR
  • aarch64 RHEL8 Refleaks PR
  • AMD64 RHEL8 FIPS Only Blake2 Builtin Hash PR
  • AMD64 RHEL8 PR
  • aarch64 RHEL8 LTO + PGO PR
  • aarch64 RHEL8 LTO PR
  • s390x RHEL8 Refleaks PR
  • PPC64LE RHEL8 LTO + PGO PR
  • s390x RHEL8 PR
  • s390x RHEL8 LTO PR
  • s390x RHEL8 LTO + PGO PR
  • AMD64 RHEL8 FIPS No Builtin Hashes PR
  • AMD64 RHEL8 Refleaks PR
  • AMD64 RHEL8 LTO PR
  • PPC64LE RHEL8 PR

@emmatyping
Copy link
MemberAuthor

Scheduled RHEL 8 but I also want to double check theghcr.io/cirruslabs/macos-runner:sonoma job.

@emmatyping
Copy link
MemberAuthor

emmatyping commentedMay 7, 2025
edited
Loading

Okay this is looking good.
RHEL 8:

...checking for libzstd >= 1.4.5... nochecking for zstd.h... nochecking for zdict.h... no...checking for stdlib extension module _zstd... missing...

macOS Sonoma:

...checking for libzstd >= 1.4.5... yes...checking for stdlib extension module _zstd... yes...

TheAMD64 RHEL8 FIPS No Builtin Hashes PR buildbot failure looks unrelated.

@AA-Turner
Copy link
Member

I've opened#133565 as an alternative with slightly different (and I think also faster) autoconf syntax, what do you think?

A

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
@emmatyping
Copy link
MemberAuthor

!buildbot RHEL8

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@emmatyping for commit235fe69 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F133550%2Fmerge

The command will test the builders whose names match following regular expression:RHEL8

The builders matched are:

  • PPC64LE RHEL8 LTO PR
  • PPC64LE RHEL8 Refleaks PR
  • AMD64 RHEL8 LTO + PGO PR
  • aarch64 RHEL8 PR
  • aarch64 RHEL8 Refleaks PR
  • AMD64 RHEL8 FIPS Only Blake2 Builtin Hash PR
  • AMD64 RHEL8 PR
  • aarch64 RHEL8 LTO + PGO PR
  • aarch64 RHEL8 LTO PR
  • s390x RHEL8 Refleaks PR
  • PPC64LE RHEL8 LTO + PGO PR
  • s390x RHEL8 PR
  • s390x RHEL8 LTO PR
  • s390x RHEL8 LTO + PGO PR
  • AMD64 RHEL8 FIPS No Builtin Hashes PR
  • AMD64 RHEL8 Refleaks PR
  • AMD64 RHEL8 LTO PR
  • PPC64LE RHEL8 PR

Copy link
Contributor

@erlend-aaslanderlend-aasland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks, this seems correct to me! It would be unfortunate if we had a different set of configure rules for libzstd than for other third-party dependencies.

@emmatyping
Copy link
MemberAuthor

Closing in favor of#133565

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

@erlend-aaslanderlend-aaslanderlend-aasland approved these changes

@gpsheadgpsheadAwaiting requested review from gpshead

@AA-TurnerAA-TurnerAwaiting requested review from AA-Turner

@corona10corona10Awaiting requested review from corona10corona10 is a code owner

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@emmatyping@bedevere-bot@AA-Turner@erlend-aasland

[8]ページ先頭

©2009-2025 Movatter.jp