Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hpp-fcl: add missing dependency #337549

Merged
merged 7 commits into from
Sep 9, 2024
Merged

hpp-fcl: add missing dependency #337549

merged 7 commits into from
Sep 9, 2024

Conversation

nim65s
Copy link
Contributor

@nim65s nim65s commented Aug 26, 2024

Description of changes

I noticed that, when used alone, hpp-fcl python bindings lack zlib:

>>> import hppfcl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/nix/store/dfnl1p604453r5rc29h3bnr4vjn811lj-hpp-fcl-3.0.0-pre/lib/python3.11/site-packages/hppfcl/__init__.py", line 35, in <module>
    from .hppfcl import *
ImportError: libz.so.1: cannot open shared object file: No such file or directory

Here is a fix, and also fix the import test to ensure this won't happen again.

While here, clean the package a bit.

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/)
  • 24.11 Release Notes (or backporting 23.11 and 24.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.

fix:
```python
>>> import hppfcl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/nix/store/dfnl1p604453r5rc29h3bnr4vjn811lj-hpp-fcl-3.0.0-pre/lib/python3.11/site-packages/hppfcl/__init__.py", line 35, in <module>
    from .hppfcl import *
ImportError: libz.so.1: cannot open shared object file: No such file or directory
```
@nim65s
Copy link
Contributor Author

nim65s commented Aug 26, 2024

Result of nixpkgs-review pr 337549 run on aarch64-darwin 1

17 packages built:
  • crocoddyl
  • hpp-fcl
  • hpp-fcl.dev
  • hpp-fcl.doc
  • pinocchio
  • python311Packages.crocoddyl
  • python311Packages.example-robot-data
  • python311Packages.hpp-fcl
  • python311Packages.hpp-fcl.dev
  • python311Packages.hpp-fcl.doc
  • python311Packages.pinocchio
  • python312Packages.crocoddyl
  • python312Packages.example-robot-data
  • python312Packages.hpp-fcl
  • python312Packages.hpp-fcl.dev
  • python312Packages.hpp-fcl.doc
  • python312Packages.pinocchio

@nim65s
Copy link
Contributor Author

nim65s commented Aug 26, 2024

Result of nixpkgs-review pr 337549 run on x86_64-linux 1

17 packages built:
  • crocoddyl
  • hpp-fcl
  • hpp-fcl.dev
  • hpp-fcl.doc
  • pinocchio
  • python311Packages.crocoddyl
  • python311Packages.example-robot-data
  • python311Packages.hpp-fcl
  • python311Packages.hpp-fcl.dev
  • python311Packages.hpp-fcl.doc
  • python311Packages.pinocchio
  • python312Packages.crocoddyl
  • python312Packages.example-robot-data
  • python312Packages.hpp-fcl
  • python312Packages.hpp-fcl.dev
  • python312Packages.hpp-fcl.doc
  • python312Packages.pinocchio

@nim65s nim65s marked this pull request as ready for review August 26, 2024 23:54
@smancill
Copy link
Contributor

smancill commented Sep 8, 2024

@ofborg build pinocchio
@ofborg build crocoddyl

Copy link
Contributor

@smancill smancill left a comment

Choose a reason for hiding this comment

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

LGTM

@drupol drupol merged commit cec619e into NixOS:master Sep 9, 2024
45 of 49 checks passed
@nim65s nim65s deleted the hpp-fcl branch September 20, 2024 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants