Skip to content

postgresqlPackages.vectorchord: update for rust 1.88.0 - #425811

Merged
wolfgangwalther merged 1 commit into
NixOS:masterfrom
nikolaiser:vectorchord-update-for-rust-1-88
Jul 16, 2025
Merged

wolfgangwalther merged 1 commit into
NixOS:masterfrom
nikolaiser:vectorchord-update-for-rust-1-88

Conversation

@nikolaiser

@nikolaiser nikolaiser commented Jul 16, 2025 •

Copy link
Copy Markdown
Contributor

rustc was updated to 1.88.0 that includes changes from the rust-lang/rust#139726. Thus this patch is not needed anymore

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • Nixpkgs 25.11 Release Notes (or backporting 25.05 Nixpkgs Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
  • NixOS 25.11 Release Notes (or backporting 25.05 NixOS Release notes)
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other contributing documentation in corresponding paths.

Add a 👍 reaction to pull requests you find important.

@nikolaiser
nikolaiser requested a review from diogotcorreia July 16, 2025 15:04
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. labels Jul 16, 2025
@wolfgangwalther

Copy link
Copy Markdown
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 425811
Commit: 6b5d556b4f6823062f362280969aba6b48f8549c


x86_64-linux

❌ 1 package failed to build:
  • postgresql18Packages.vectorchord
✅ 5 packages built:
  • postgresql13Packages.vectorchord
  • postgresql14Packages.vectorchord
  • postgresql15Packages.vectorchord
  • postgresql16Packages.vectorchord
  • postgresqlPackages.vectorchord (postgresql17Packages.vectorchord)

aarch64-linux

❌ 1 package failed to build:
  • postgresql18Packages.vectorchord
✅ 5 packages built:
  • postgresql13Packages.vectorchord
  • postgresql14Packages.vectorchord
  • postgresql15Packages.vectorchord
  • postgresql16Packages.vectorchord
  • postgresqlPackages.vectorchord (postgresql17Packages.vectorchord)

Error logs: `x86_64-linux`
postgresql18Packages.vectorchord
applying patch /nix/store/yylwf7q291c96rgklmgld20210z8rypy-0002-add-feature-flags.diff
patching file crates/algorithm/src/lib.rs
patching file src/lib.rs
Executing cargoSetupPostPatchHook
Validating consistency between /build/source/Cargo.lock and /build/vectorchord-0.4.2-vendor/Cargo.lock
Finished cargoSetupPostPatchHook
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Executing cargo-pgrx buildPhase
error: unexpected argument '--pg18' found

tip: a similar argument exists: '--pg17'

Usage: cargo pgrx init --pg17

For more information, try '--help'.


Error logs: `aarch64-linux`
postgresql18Packages.vectorchord
applying patch /nix/store/yylwf7q291c96rgklmgld20210z8rypy-0002-add-feature-flags.diff
patching file crates/algorithm/src/lib.rs
patching file src/lib.rs
Executing cargoSetupPostPatchHook
Validating consistency between /build/source/Cargo.lock and /build/vectorchord-0.4.2-vendor/Cargo.lock
Finished cargoSetupPostPatchHook
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix {"action":"setPhase","phase":"updateAutotoolsGnuConfigScriptsPhase"}
Running phase: configurePhase
@nix {"action":"setPhase","phase":"configurePhase"}
Running phase: buildPhase
@nix {"action":"setPhase","phase":"buildPhase"}
Executing cargo-pgrx buildPhase
error: unexpected argument '--pg18' found

tip: a similar argument exists: '--pg17'

Usage: cargo pgrx init --pg17

For more information, try '--help'.


Build failures for PG18 expected. Good stuff.

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 2 This PR was reviewed and approved by two persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Jul 16, 2025
@wolfgangwalther
wolfgangwalther merged commit c25dee2 into NixOS:master Jul 16, 2025
@diogotcorreia

Copy link
Copy Markdown
Member

@wolfgangwalther somewhat related: do you know if there is a way for me to get notified when a package I maintain fails to build on hydra?

@wolfgangwalther

wolfgangwalther commented Jul 17, 2025 •

Copy link
Copy Markdown
Contributor

@sadorowo

sadorowo commented Jul 17, 2025 •

Copy link
Copy Markdown
Contributor

For some reason, after doing nix flake update and trying to rebuild my configuration, I'm getting an error:

error[E0599]: no method named `select_unpredictable` found for type `bool` in the current scope
  --> crates/simd/src/rotate.rs:40:60
   |
40 |                 slice[i][j] ^= ((bits[i] & (1 << j)) != 0).select_unpredictable(0x80000000, 0);
   |                                                            ^^^^^^^^^^^^^^^^^^^^ method not found in `bool`

error[E0599]: no method named `select_unpredictable` found for type `bool` in the current scope
  --> crates/simd/src/rotate.rs:44:57
   |
44 |             remainder[j] ^= ((bits[n] & (1 << j)) != 0).select_unpredictable(0x80000000, 0);
   |                                                         ^^^^^^^^^^^^^^^^^^^^ method not found in `bool`

For more information about this error, try `rustc --explain E0599`.
warning: `simd` (lib) generated 2 warnings
error: could not compile `simd` (lib) due to 2 previous errors; 2 warnings emitted
warning: build failed, waiting for other jobs to finish...

The only difference in my setup is that I'm using PostgreSQL from the stable Nixpkgs (25.05), while VectorChord is from the unstable channel, as it's not yet available in the stable release. But I don't think that this is related to this error.

@diogotcorreia

Copy link
Copy Markdown
Member

@sadorowo this PR hasn't reached nixos-unstable yet, you'll have to wait a few more days

See https://nixpk.gs/pr-tracker.html?pr=425811

@nikolaiser

Copy link
Copy Markdown
Contributor Author

@sadorowo This PR fixes precisely this error. For now you can switch to master for this package

@sadorowo

Copy link
Copy Markdown
Contributor

@sadorowo This PR fixes precisely this error. For now you can switch to master for this package

Yeah I know, I just wasn't aware that we have to wait some time to get the PR merged to nixpkgs-unstable. Thank you so much

@diogotcorreia diogotcorreia added the 8.has: port to stable This PR already has a backport to the stable release. label Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants