Skip to content

protobuf: patch bug when compiling with nvcc - #480716

Merged
yuyuyureka merged 2 commits into
NixOS:stagingfrom
GaetanLepage:protobuf-patch
Jan 17, 2026
Merged

yuyuyureka merged 2 commits into
NixOS:stagingfrom
GaetanLepage:protobuf-patch

Conversation

@GaetanLepage

@GaetanLepage GaetanLepage commented Jan 16, 2026 •

Copy link
Copy Markdown
Contributor

Things done

This was discovered while working on the onnxruntime update.

The patch comes from conda: conda-forge/protobuf-feedstock#256.

The issue was introduced in protocolbuffers/protobuf@8f7aab2.
This issue discusses the build failure with nvcc specifically.

cc @yuyuyureka @mweinelt

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@yuyuyureka yuyuyureka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Note that it is a philosophical questions whether nixpkgs should accommodate for bugs in proprietary software like this or support compiling software for the proprietary CUDA platform at all, but assuming that NVCC/CUDA support is wanted at the cost of patches, this is the way to go.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-linux: 2501-5000 This PR causes many rebuilds on Linux and should target the staging branches. 10.rebuild-darwin: 1001-2500 This PR causes many rebuilds on Darwin and should most likely target the staging branches. 12.approvals: 1 This PR was reviewed and approved by one person. labels Jan 16, 2026
@GaetanLepage

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 480716 --package protobuf.tests
Commit: b3608abcf3c3915e161f6d80dbe87fc134251161


x86_64-linux

✅ 4 packages built:
  • protobuf.tests.grpc
  • protobuf.tests.pythonProtobuf
  • protobuf.tests.pythonProtobuf.dist (protobuf.tests.pythonProtobuf.dist.dist)
  • protobuf.tests.version

@yuyuyureka yuyuyureka mentioned this pull request Jan 16, 2026
2 of 13 tasks
@nixpkgs-ci
nixpkgs-ci Bot requested review from ck3d and puffnfresh January 17, 2026 09:29
@nixpkgs-ci nixpkgs-ci Bot removed the 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. label Jan 17, 2026
This reverts commit 7dc4e47.

No longer necessary.
@yuyuyureka
yuyuyureka added this pull request to the merge queue Jan 17, 2026
Merged via the queue into NixOS:staging with commit f4cccc1 Jan 17, 2026
2 of 4 checks passed
@vcunat
vcunat removed their request for review January 17, 2026 18:55
@GaetanLepage
GaetanLepage deleted the protobuf-patch branch January 17, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 1001-2500 This PR causes many rebuilds on Darwin and should most likely target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 2501-5000 This PR causes many rebuilds on Linux and should target the staging branches. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants