Skip to content

python313Packages.opensfm: fix build, fixup, add maintainer pbsds - #406414

Merged
vcunat merged 1 commit into
NixOS:masterfrom
pbsds:fix-opensfm-1746309741
May 29, 2025
Merged

vcunat merged 1 commit into
NixOS:masterfrom
pbsds:fix-opensfm-1746309741

Conversation

@pbsds

@pbsds pbsds commented May 12, 2025

Copy link
Copy Markdown
Member

fixes https://hydra.nixos.org/build/296214376

zhf #403336

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/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (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.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions Bot added the 6.topic: python Python is a high-level, general-purpose programming language. label May 12, 2025
@pbsds
pbsds force-pushed the fix-opensfm-1746309741 branch from b32d999 to d2da33c Compare May 12, 2025 10:37
@github-actions github-actions Bot added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels May 12, 2025
@nix-owners
nix-owners Bot requested a review from SomeoneSerge May 12, 2025 10:44
Comment on lines 8 to 9

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.

God this is cursed. So this is dtype("O")? What is the status with upstreaming this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

>>> import numpy as np
>>> np.asarray([None, 1, 2])
array([None, 1, 2], dtype=object)
>>> np.asarray([None, 1, 2]) == None
array([ True, False, False])

i have not signed the CLA nor do i intend to.

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.

Actually, even this shouldn't be necessary, because mkDerivation applies getDev to *Inputs

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm not a cmake wizard so i couldn't make it work, but CXXFLAGS did work

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.

Looks great save for comments, thank you very much!

@pbsds
pbsds force-pushed the fix-opensfm-1746309741 branch from d2da33c to 95a230e Compare May 14, 2025 18:59
@SomeoneSerge

SomeoneSerge commented May 14, 2025 via email

Copy link
Copy Markdown
Contributor

@vcunat
vcunat merged commit 2839399 into NixOS:master May 29, 2025
@nixpkgs-ci

nixpkgs-ci Bot commented May 29, 2025

Copy link
Copy Markdown
Contributor

Git push to origin failed for release-25.05 with exitcode 1

@nixpkgs-ci

nixpkgs-ci Bot commented May 29, 2025

Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-25.05:

@vcunat

vcunat commented May 29, 2025 •

Copy link
Copy Markdown
Member

I haven't noticed anything against merging, at a glance. And it does fix the build.

@github-actions github-actions Bot added the 8.has: port to stable This PR already has a backport to the stable release. label May 29, 2025
@SomeoneSerge

Copy link
Copy Markdown
Contributor

I haven't noticed anything against merging, at a glance. And it does fix the build.

Ah yes, just short attention span... Thank you for merging!

@vcunat

vcunat commented May 30, 2025

Copy link
Copy Markdown
Member

@pbsds

pbsds commented May 30, 2025

Copy link
Copy Markdown
Member Author

@mdaniels5757 mdaniels5757 mentioned this pull request Jun 18, 2025
27 of 28 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 8.has: port to stable This PR already has a backport to the stable release. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants