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

inkcut: 2.1.2 -> 2.1.3 #106433

Merged
merged 1 commit into from Dec 31, 2020
Merged

Conversation

raboof
Copy link
Member

@raboof raboof commented Dec 9, 2020

Motivation for this change

We had a patch to make using inkcut as an inkscape plugin more reliable.
This has been accepted upstream so no longer needs to be in nixpkgs.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Also tested that inkcut also still works correctly when invoked as an inkscape plugin.

Copy link
Contributor

@charles-dyfis-net charles-dyfis-net left a comment

Choose a reason for hiding this comment

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

Builds; runs; reviewing the upstream repo confirms that inkcut/inkcut#292 has been merged.

@SuperSandro2000
Copy link
Member

Fails to build on darwin:

FAILED: src/CMakeFiles/SMESH.dir/SMESH/SMESH_MeshEditor.cpp.o
/nix/store/m50xmigjz3j30msh214vs9b7yf8sl9d4-clang-wrapper-7.1.0/bin/clang++ -DCSFDB -DHAVE_CONFIG_H -DLIN -DOCC_CONVERT_SIGNALS -DSMESH_EXPORTS -D_OCC64 -I../ -I../inc -I/nix/store/bic2aq7gqfns55674fksrb21vhzdi5x8-opencascade-oce-0.18.3/OCE.framework/Versions/0.18/Resources/../../../../include/oce -I../boost-1.52.0 -O3 -DNDEBUG -arch x86_64 -fPIC -F/nix/store/m35jpggl5f18yw7a5h3hbaqnw9hl4ya0-apple-framework-OpenGL/Library/Frameworks -MD -MT src/CMakeFiles/SMESH.dir/SMESH/SMESH_MeshEditor.cpp.o -MF src/CMakeFiles/SMESH.dir/SMESH/SMESH_MeshEditor.cpp.o.d -o src/CMakeFiles/SMESH.dir/SMESH/SMESH_MeshEditor.cpp.o -c ../src/SMESH/SMESH_MeshEditor.cpp
../src/SMESH/SMESH_MeshEditor.cpp:6968:22: error: non-constant-expression cannot be narrowed from type 'std::__1::list<const SMDS_MeshNode *, std::__1::allocator<const SMDS_MeshNode *> >::size_type' (aka 'unsigned long') to 'int' in initializer list [-Wc++11-narrowing]
  int nbNodes[]  = { nSide[0].size(), nSide[1].size() };
                     ^~~~~~~~~~~~~~~
../src/SMESH/SMESH_MeshEditor.cpp:6968:22: note: insert an explicit cast to silence this issue
  int nbNodes[]  = { nSide[0].size(), nSide[1].size() };
                     ^~~~~~~~~~~~~~~
                     static_cast<int>( )
../src/SMESH/SMESH_MeshEditor.cpp:6968:39: error: non-constant-expression cannot be narrowed from type 'std::__1::list<const SMDS_MeshNode *, std::__1::allocator<const SMDS_MeshNode *> >::size_type' (aka 'unsigned long') to 'int' in initializer list [-Wc++11-narrowing]
  int nbNodes[]  = { nSide[0].size(), nSide[1].size() };
                                      ^~~~~~~~~~~~~~~
../src/SMESH/SMESH_MeshEditor.cpp:6968:39: note: insert an explicit cast to silence this issue
  int nbNodes[]  = { nSide[0].size(), nSide[1].size() };
                                      ^~~~~~~~~~~~~~~
                                      static_cast<int>( )
2 errors generated.
[65/157] Building CXX object src/CMakeFiles/SMESH.dir/SMESH/SMESH_MesherHelper.cpp.o
ninja: build stopped: subcommand failed.
builder for '/nix/store/gf8zlz8whvc4jlvrjcs1bylmkl3kshf1-smesh-6.7.6.drv' failed with exit code 1
cannot build derivation '/nix/store/mshms86si8b8vwawivga0lw1lvhkk4bw-pythonocc-core-0.18.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/64v56fc0z0jnmbv57hwps8dzfh8pdnrj-python3.8-enamlx-0.4.3.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/m4bnq34jlbg03qp9mqfqq5p7v7ijirb8-inkcut-2.1.3.drv': 1 dependencies couldn't be built
error: build of '/nix/store/m4bnq34jlbg03qp9mqfqq5p7v7ijirb8-inkcut-2.1.3.drv' failed

@SuperSandro2000
Copy link
Member

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

2 packages built:
  • inkcut
  • inkscape-extensions.inkcut

@raboof
Copy link
Member Author

raboof commented Dec 10, 2020

Fails to build on darwin:

FAILED: src/CMakeFiles/SMESH.dir/SMESH/SMESH_MeshEditor.cpp.o
...
builder for '/nix/store/gf8zlz8whvc4jlvrjcs1bylmkl3kshf1-smesh-6.7.6.drv' failed with exit code 1
cannot build derivation '/nix/store/mshms86si8b8vwawivga0lw1lvhkk4bw-pythonocc-core-0.18.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/64v56fc0z0jnmbv57hwps8dzfh8pdnrj-python3.8-enamlx-0.4.3.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/m4bnq34jlbg03qp9mqfqq5p7v7ijirb8-inkcut-2.1.3.drv': 1 dependencies couldn't be built
error: build of '/nix/store/m4bnq34jlbg03qp9mqfqq5p7v7ijirb8-inkcut-2.1.3.drv' failed

That's a failure with an upstream dependency (smesh) unrelated to this PR AFAICS.

@SuperSandro2000
Copy link
Member

That's a failure with an upstream dependency (smesh) unrelated to this PR AFAICS.

Can you mark it broken on darwin?

@raboof
Copy link
Member Author

raboof commented Dec 11, 2020

That's a failure with an upstream dependency (smesh) unrelated to this PR AFAICS.

Can you mark it broken on darwin?

I'm pretty sure this problem already exists on master, right? Since it is unrelated to this PR I'd prefer not to mark it broken on this PR. That said, perhaps we can do even better: #106641 (tested compiling with clang on linux, I don't have a darwin machine)

we had a patch to make using inkcut as an inkscape plugin more reliable.
This has been accepted upstream so no longer needs to be in nixpkgs.
@raboof
Copy link
Member Author

raboof commented Dec 12, 2020

@SuperSandro2000

Fails to build on darwin:

../src/SMESH/SMESH_MeshEditor.cpp:6968:22: error: non-constant-expression cannot be narrowed from type 'std::__1::list<const SMDS_MeshNode *, std::__1::allocator<const SMDS_MeshNode *> >::size_type' (aka 'unsigned long') to 'int' in initializer list [-Wc++11-narrowing]
builder for '/nix/store/gf8zlz8whvc4jlvrjcs1bylmkl3kshf1-smesh-6.7.6.drv' failed with exit code 1
error: build of '/nix/store/m4bnq34jlbg03qp9mqfqq5p7v7ijirb8-inkcut-2.1.3.drv' failed

Could you test this again, since #106641 has been merged and this PR rebased on that?

@SuperSandro2000
Copy link
Member

SuperSandro2000 commented Dec 28, 2020

@SuperSandro2000

Fails to build on darwin:

../src/SMESH/SMESH_MeshEditor.cpp:6968:22: error: non-constant-expression cannot be narrowed from type 'std::__1::list<const SMDS_MeshNode *, std::__1::allocator<const SMDS_MeshNode *> >::size_type' (aka 'unsigned long') to 'int' in initializer list [-Wc++11-narrowing]
builder for '/nix/store/gf8zlz8whvc4jlvrjcs1bylmkl3kshf1-smesh-6.7.6.drv' failed with exit code 1
error: build of '/nix/store/m4bnq34jlbg03qp9mqfqq5p7v7ijirb8-inkcut-2.1.3.drv' failed

Could you test this again, since #106641 has been merged and this PR rebased on that?

PRs do not need to be rebased. nixpkgs-review always uses the latest master to merge the PR into.

@SuperSandro2000
Copy link
Member

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

2 packages built:
  • inkcut
  • inkscape-extensions.inkcut

@SuperSandro2000
Copy link
Member

There are still some build failures with darwin. I'll try to fix the obvious parts.

@SuperSandro2000
Copy link
Member

I did #107806 which should fix building on darwin for inkcut.

@SuperSandro2000
Copy link
Member

Result of nixpkgs-review pr 106433 run on x86_64-darwin 1

1 package built:
  • inkcut

@SuperSandro2000
Copy link
Member

This is a semi-automatic executed nixpkgs-review. If you find some bugs or got suggestions for further things to search or run please reach out to SuperSandro2000 on IRC.

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

2 packages built:
  • inkcut
  • inkscape-extensions.inkcut

@SuperSandro2000 SuperSandro2000 merged commit 3d2ffa3 into NixOS:master Dec 31, 2020
@raboof
Copy link
Member Author

raboof commented Dec 31, 2020

I did #107806 which should fix building on darwin for inkcut.

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants