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

vtk_9: init at 9.0.1 #95450

Merged
merged 1 commit into from Aug 15, 2020
Merged

vtk_9: init at 9.0.1 #95450

merged 1 commit into from Aug 15, 2020

Conversation

tfmoraes
Copy link
Contributor

@tfmoraes tfmoraes commented Aug 14, 2020

This also adds VTK9. It makes VTK9 the default. Adds VTK_8.

Motivation for this change

Add VTK9 and its Python bindings into NixOS.

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.

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

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

I would probably make this three commits:

vtk_8: pin at 8.2.0
vtk: 8.2.0 -> 9.0.1
python3Packages.vtk: init at 9.0.1

@tfmoraes
Copy link
Contributor Author

I would probably make this three commits:

vtk_8: pin at 8.2.0
vtk: 8.2.0 -> 9.0.1
python3Packages.vtk: init at 9.0.1

What do you think about keeping the python3Packages.vtk using VTK7? Or you think it's better to add a python3Packages.vtk_7?

@tfmoraes
Copy link
Contributor Author

Other problem is that some packages depending on VTK only work with the version 8, not with the version 9. I need to update those packages. See:

nix-shell -p nixpkgs-review --run "nixpkgs-review pr 95450" 
$ git -c fetch.prune=false fetch --force https://github.com/NixOS/nixpkgs master:refs/nixpkgs-review/0 pull/95450/head:refs/nixpkgs-review/1
remote: Enumerating objects: 43, done.
remote: Counting objects: 100% (43/43), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 53 (delta 34), reused 27 (delta 27), pack-reused 10
Unpacking objects: 100% (53/53), 13.62 KiB | 1.70 MiB/s, done.
From https://github.com/NixOS/nixpkgs
   ba9f2498ee9..cee1971dfd8  master               -> refs/nixpkgs-review/0
 + 2239ea72002...30161479217 refs/pull/95450/head -> refs/nixpkgs-review/1  (forced update)
$ git worktree add /home/thiago/.cache/nixpkgs-review/pr-95450/nixpkgs cee1971dfd89c432eaa8afcb89a12963cdf7be22
Preparing worktree (detached HEAD cee1971dfd8)
HEAD is now at cee1971dfd8 Merge pull request #95280 from risicle/ris-pure-ftpd-CVE-2020-9274
$ nix-env -f /home/thiago/.cache/nixpkgs-review/pr-95450/nixpkgs -qaP --xml --out-path --show-trace
$ git merge --no-commit 301614792174dc421fc0aa2380536208f45fd6f9
Automatic merge went well; stopped before committing as requested
$ nix-env -f /home/thiago/.cache/nixpkgs-review/pr-95450/nixpkgs -qaP --xml --out-path --show-trace --meta
3 packages added:
vtk_8 (init at 8.2.0) python38Packages.vtk9 (init at 9.0.1) python37Packages.vtk9 (init at 9.0.1)

19 packages updated:
appcsxcad-unstable cq-editor csxcad-unstable freecad inkcut mirtk opencascade-oce opencascade-oce pcl python3.7-cadquery python3.7-enamlx python3.8-enamlx pythonocc-core pythonocc-core pythonocc-core qcsxcad-unstable smesh vtk (8.2.0 → 9.0.1) vtkWithQt5 (8.2.0 → 9.0.1)

$ nix build --no-link --keep-going --option build-use-sandbox relaxed -f /home/thiago/.cache/nixpkgs-review/pr-95450/build.nix
builder for '/nix/store/0mzirlm330r7qsghyddzqnzw6pw2l9ay-csxcad-unstable-2020-02-08.drv' failed with exit code 2; last 10 log lines:
                   from /nix/store/5h9qy4r7nrg582fc09zpj2f3gc6hj2x0-cgal-5.0.2/include/CGAL/algorithm.h:30,
                   from /nix/store/5h9qy4r7nrg582fc09zpj2f3gc6hj2x0-cgal-5.0.2/include/CGAL/predicates/kernel_ftC2.h:21,
                   from /nix/store/5h9qy4r7nrg582fc09zpj2f3gc6hj2x0-cgal-5.0.2/include/CGAL/Cartesian/Line_2.h:22,
                   from /nix/store/5h9qy4r7nrg582fc09zpj2f3gc6hj2x0-cgal-5.0.2/include/CGAL/Cartesian/Cartesian_base.h:28,
                   from /nix/store/5h9qy4r7nrg582fc09zpj2f3gc6hj2x0-cgal-5.0.2/include/CGAL/Simple_cartesian.h:20,
                   from /build/source/src/CSPrimPolyhedron_p.h:4,
                   from /build/source/src/CSPrimPolyhedron.cpp:25:
  include/boost/pending/integer_log2.hpp:7:1: note: #pragma message: This header is deprecated. Use <boost/integer/integer_log2.hpp> instead.
  make[1]: *** [CMakeFiles/Makefile2:113: src/CMakeFiles/CSXCAD.dir/all] Error 2
  make: *** [Makefile:149: all] Error 2
builder for '/nix/store/9z805sr712b5n1ja8ypki1igczgd0g8h-mirtk-2.0.0.drv' failed with exit code 2; last 10 log lines:
        |                                      ^~~
  In file included from /nix/store/rzxlxr3bs1ns3xjx51zc31c95brsczib-vtk-9.0.1/include/vtk-9.0/vtkPolyData.h:68,
                   from /build/source/Modules/IO/include/mirtk/PointSetIO.h:29,
                   from /build/source/Modules/IO/src/PointSetIO.cc:20:
  /nix/store/rzxlxr3bs1ns3xjx51zc31c95brsczib-vtk-9.0.1/include/vtk-9.0/vtkCellArray.h:1419:73: note:   initializing argument 2 of 'int vtkCellArray::GetNextCell(vtkIdType&, const vtkIdType*&)'
   1419 | inline int vtkCellArray::GetNextCell(vtkIdType& npts, vtkIdType const*& pts) VTK_SIZEHINT(pts, npts)
        |                                                       ~~~~~~~~~~~~~~~~~~^~~
  make[2]: *** [Modules/IO/src/CMakeFiles/LibIO.dir/build.make:199: Modules/IO/src/CMakeFiles/LibIO.dir/PointSetIO.cc.o] Error 1
  make[1]: *** [CMakeFiles/Makefile2:1861: Modules/IO/src/CMakeFiles/LibIO.dir/all] Error 2
  make: *** [Makefile:171: all] Error 2
builder for '/nix/store/gs8sbdh2kk7fa96gv1xgxhs6cc2rwb8z-opencascade-oce-0.18.3.drv' failed with exit code 1; last 10 log lines:
  compilation terminated.
  [3774/7904] Building CXX object adm/cmake/TKIVtk/CMakeFiles/TKIVtk.dir/__/__/__/src/IVtkVTK/IVtkVTK_View.cxx.oo
  FAILED: adm/cmake/TKIVtk/CMakeFiles/TKIVtk.dir/__/__/__/src/IVtkVTK/IVtkVTK_View.cxx.o 
  /nix/store/2zrp7866az7z1wbpqgdal5a5h5z5qawa-gcc-wrapper-9.3.0/bin/g++ -DCSFDB -DHAVE_CONFIG_H -DHAVE_OCE_PATHS_H -DIGNORE_NO_ATOMICS -DNDEBUG -DOCC_CONVERT_SIGNALS -DTKIVtk_EXPORTS -D_OCC64 -Ibuild_inc -I../inc -I../src/IVtk -I../src/IVtkOCC -I../src/IVtkVTK -I../src/IVtkTools -I../src/FSD -I../drv/FSD -I../src/MMgt -I../drv/MMgt -I../src/OSD -I../drv/OSD -I../src/Plugin -I../drv/Plugin -I../src/Quantity -I../drv/Quantity -I../src/Resource -I../drv/Resource -I../src/SortTools -I../drv/SortTools -I../src/Standard -I../drv/Standard -I../src/StdFail -I../drv/StdFail -I../src/Storage -I../drv/Storage -I../src/TColStd -I../drv/TColStd -I../src/TCollection -I../drv/TCollection -I../src/TShort -I../drv/TShort -I../src/Units -I../drv/Units -I../src/UnitsAPI -I../drv/UnitsAPI -I../src/IncludeLibrary -I../src/Dico -I../drv/Dico -I../src/NCollection -I../src/Message -I../drv/Message -I../src/TopoDS -I../drv/TopoDS -I../src/TopExp -I../drv/TopExp -I../src/TopTools -I../drv/TopTools -I../src/BRep -I../drv/BRep -I../src/BRepLProp -I../drv/BRepLProp -I../src/BRepAdaptor -I../drv/BRepAdaptor -I../src/BRepTools -I../drv/BRepTools -I../src/math -I../drv/math -I../src/ElCLib -I../drv/ElCLib -I../src/ElSLib -I../drv/ElSLib -I../src/BSplCLib -I../drv/BSplCLib -I../src/BSplSLib -I../drv/BSplSLib -I../src/PLib -I../drv/PLib -I../src/Precision -I../drv/Precision -I../src/GeomAbs -I../src/Poly -I../drv/Poly -I../src/CSLib -I../drv/CSLib -I../src/Convert -I../drv/Convert -I../src/Bnd -I../drv/Bnd -I../src/BVH -I../src/gp -I../drv/gp -I../src/TColgp -I../drv/TColgp -I../src/TopLoc -I../drv/TopLoc -I../src/Expr -I../drv/Expr -I../src/ExprIntrp -I../drv/ExprIntrp -I../src/Geom2d -I../drv/Geom2d -I../src/LProp -I../drv/LProp -I../src/TColGeom2d -I../drv/TColGeom2d -I../src/Adaptor2d -I../drv/Adaptor2d -I../src/Geom2dLProp -I../drv/Geom2dLProp -I../src/Geom2dAdaptor -I../drv/Geom2dAdaptor -I../src/GProp -I../drv/GProp -I../src/Geom -I../drv/Geom -I../src/TColGeom -I../drv/TColGeom -I../src/GeomAdaptor -I../drv/GeomAdaptor -I../src/AdvApprox -I../drv/AdvApprox -I../src/GeomLProp -I../drv/GeomLProp -I../src/Adaptor3d -I../drv/Adaptor3d -I../src/LProp3d -I../drv/LProp3d -I../src/TopAbs -I../drv/TopAbs -I../src/ProjLib -I../drv/ProjLib -I../src/GeomProjLib -I../drv/GeomProjLib -I../src/GCPnts -I../drv/GCPnts -I../src/CPnts -I../drv/CPnts -I../src/Approx -I../drv/Approx -I../src/AppParCurves -I../drv/AppParCurves -I../src/FEmTool -I../drv/FEmTool -I../src/AppCont -I../src/Extrema -I../drv/Extrema -I../src/IntAna -I../drv/IntAna -I../src/IntAna2d -I../drv/IntAna2d -I../src/GeomConvert -I../drv/GeomConvert -I../src/AdvApp2Var -I../drv/AdvApp2Var -I../src/GeomLib -I../drv/GeomLib -I../src/Geom2dConvert -I../drv/Geom2dConvert -I../src/Hermit -I../drv/Hermit -I../src/BndLib -I../drv/BndLib -I../src/AppDef -I../drv/AppDef -I../src/GeomTools -I../drv/GeomTools -I../src/GC -I../drv/GC -I../src/GCE2d -I../drv/GCE2d -I../src/gce -I../drv/gce -I../src/Hatch -I../drv/Hatch -I../src/GeomInt -I../drv/GeomInt -I../src/IntStart -I../drv/IntStart -I../src/IntWalk -I../drv/IntWalk -I../src/IntImp -I../src/IntCurveSurface -I../drv/IntCurveSurface -I../src/IntSurf -I../drv/IntSurf -I../src/IntPatch -I../drv/IntPatch -I../src/Geom2dInt -I../drv/Geom2dInt -I../src/IntImpParGen -I../drv/IntImpParGen -I../src/IntRes2d -I../drv/IntRes2d -I../src/IntCurve -I../drv/IntCurve -I../src/TopTrans -I../drv/TopTrans -I../src/Intf -I../drv/Intf -I../src/ApproxInt -I../drv/ApproxInt -I../src/GccAna -I../drv/GccAna -I../src/GccEnt -I../drv/GccEnt -I../src/GccInt -I../drv/GccInt -I../src/GccIter -I../src/GccGeo -I../src/HatchGen -I../drv/HatchGen -I../src/Geom2dHatch -I../drv/Geom2dHatch -I../src/Law -I../drv/Law -I../src/AppBlend -I../drv/AppBlend -I../src/Plate -I../drv/Plate -I../src/GeomPlate -I../drv/GeomPlate -I../src/LocalAnalysis -I../drv/LocalAnalysis -I../src/GeomAPI -I../drv/GeomAPI -I../src/GeomFill -I../drv/GeomFill -I../src/Geom2dAPI -I../drv/Geom2dAPI -I../src/Geom2dGcc -I../drv/Geom2dGcc -I../src/FairCurve -I../drv/FairCurve -I../src/NLPlate -I../drv/NLPlate -I../src/IntPolyh -I../drv/IntPolyh -I../src/TopClass -I../drv/TopClass -I../src/BRepMesh -I../src/IntCurvesFace -I../drv/IntCurvesFace -I../src/MAT -I../drv/MAT -I../src/MAT2d -I../drv/MAT2d -I../src/Bisector -I../drv/Bisector -I../src/BRepMAT2d -I../drv/BRepMAT2d -I../src/BRepCheck -I../drv/BRepCheck -I../src/BRepBndLib -I../drv/BRepBndLib -I../src/BRepExtrema -I../drv/BRepExtrema -I../src/BRepClass -I../drv/BRepClass -I../src/BRepClass3d -I../drv/BRepClass3d -I../src/BRepLib -I../drv/BRepLib -I../src/BRepGProp -I../drv/BRepGProp -I../src/BRepIntCurveSurface -I../drv/BRepIntCurveSurface -I../src/BRepTopAdaptor -I../drv/BRepTopAdaptor -I../src/BRepBuilderAPI -I../drv/BRepBuilderAPI -I../src/BRepApprox -I../drv/BRepApprox -I../src/Aspect -I../drv/Aspect -I../src/SelectBasics -I../drv/SelectBasics -I../src/Image -I../src/InterfaceGraphic -I../src/TColQuantity -I../drv/TColQuantity -I../src/Font -I../drv/Font -I../src/Xw -I../src/ShapeBuild -I../drv/ShapeBuild -I../src/ShapeExtend -I../drv/ShapeExtend -I../src/ShapeConstruct -I../drv/ShapeConstruct -I../src/ShapeCustom -I../drv/ShapeCustom -I../src/ShapeAnalysis -I../drv/ShapeAnalysis -I../src/ShapeFix -I../drv/ShapeFix -I../src/ShapeUpgrade -I../drv/ShapeUpgrade -I../src/ShapeAlgo -I../drv/ShapeAlgo -I../src/ShapeProcess -I../drv/ShapeProcess -I../src/ShapeProcessAPI -I../drv/ShapeProcessAPI -I../src/V3d -I../drv/V3d -I../src/Graphic3d -I../drv/Graphic3d -I../src/Visual3d -I../drv/Visual3d -I../src/Select3D -I../src/Prs3d -I../drv/Prs3d -I../src/StdPrs -I../drv/StdPrs -I../src/SelectMgr -I../drv/SelectMgr -I../src/PrsMgr -I../drv/PrsMgr -I../src/AIS -I../drv/AIS -I../src/DsgPrs -I../drv/DsgPrs -I../src/StdSelect -I../drv/StdSelect -I../src/HLRTopoBRep -I../drv/HLRTopoBRep -I../src/HLRBRep -I../drv/HLRBRep -I../src/HLRAlgo -I../drv/HLRAlgo -I../src/HLRAppli -I../drv/HLRAppli -I../src/Intrv -I../drv/Intrv -I../src/TopBas -I../drv/TopBas -I../src/TopCnx -I../drv/TopCnx -I../src/Contap -I../drv/Contap -O3 -DNDEBUG -fPIC -MD -MT adm/cmake/TKIVtk/CMakeFiles/TKIVtk.dir/__/__/__/src/IVtkVTK/IVtkVTK_View.cxx.o -MF adm/cmake/TKIVtk/CMakeFiles/TKIVtk.dir/__/__/__/src/IVtkVTK/IVtkVTK_View.cxx.o.d -o adm/cmake/TKIVtk/CMakeFiles/TKIVtk.dir/__/__/__/src/IVtkVTK/IVtkVTK_View.cxx.o -c ../src/IVtkVTK/IVtkVTK_View.cxx
  ../src/IVtkVTK/IVtkVTK_View.cxx:18:10: fatal error: vtkAutoInit.h: No such file or directory
     18 | #include <vtkAutoInit.h>
        |          ^~~~~~~~~~~~~~~
  compilation terminated.
  [3786/7904] Building CXX object adm/cmake/TKVoxel/CMakeFiles/TKVoxel.dir/__/__/__/src/Voxel/Voxel_FastConverter.cxx.o
  ninja: build stopped: subcommand failed.
cannot build derivation '/nix/store/df285y9pp71nix45m7vxx6r594maidl0-smesh-6.7.6.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/9xdx1920q4jkjm36pcjr4p17v0ik0kzw-pythonocc-core-0.18.1.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/lfkf5zsbbq9bjlqcgiqvk5a49bqsnvkh-pythonocc-core-0.18.1.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/px5y93i6ar8cpl0x6rfqjn0nkdyn35rs-pythonocc-core-0.18.1.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/1a2i0dm2vygl6k917q0rdniss06jqsq2-pythonocc-core-cadquery-0.18.2.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/h9v7z0cg15nifl0zc46pqr6yh68q9sqg-python3.7-cadquery-2.0.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/1x6mr5638dsn26c145bql4ckqgzwjlpy-python3.7-enamlx-0.4.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/1vq0ihdvcj760z241980b1v07fyh79si-python3.8-enamlx-0.4.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/sd4d65wi685mjk3kk8nqg79bnkkbq34r-cq-editor-0.1.1.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/25p2cm3p8ra0pr0a26qqymljd6jwmjac-inkcut-2.1.1.drv': 1 dependencies couldn't be built
builder for '/nix/store/5xsizv8d0bcx917yr3r7vbpn5vkn9pdf-freecad-0.18.4.drv' failed with exit code 1; last 10 log lines:
                   from /nix/store/rzxlxr3bs1ns3xjx51zc31c95brsczib-vtk-9.0.1/include/vtk-9.0/vtkCellArray.h:141,
                   from /nix/store/rzxlxr3bs1ns3xjx51zc31c95brsczib-vtk-9.0.1/include/vtk-9.0/vtkUnstructuredGrid.h:31,
                   from ../src/3rdParty/salomesmesh/inc/SMDS_VtkEdge.hxx:30,
                   from ../src/3rdParty/salomesmesh/inc/SMDS_Mesh.hxx:43,
                   from ../src/3rdParty/salomesmesh/src/Controls/SMESH_Controls.cpp:27:
  /nix/store/rzxlxr3bs1ns3xjx51zc31c95brsczib-vtk-9.0.1/include/vtk-9.0/vtkSmartPointer.h:188:3: note: candidate is: 'vtkSmartPointer<ArrayType>::operator T*() const [with T = vtkAbstractCellLinks]' <near match>
    188 |   operator T*() const noexcept { return static_cast<T*>(this->Object); }
        |   ^~~~~~~~
  /nix/store/rzxlxr3bs1ns3xjx51zc31c95brsczib-vtk-9.0.1/include/vtk-9.0/vtkSmartPointer.h:188:3: note:   no known conversion from 'vtkAbstractCellLinks*' to 'vtkCellLinks*'
  ninja: build stopped: subcommand failed.
cannot build derivation '/nix/store/dmrj0xbh1h7i7vlcja6mk1i0rsf2lsi2-qcsxcad-unstable-2020-01-04.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/vfvkd38am0xf3jjw736vi41ga7y66r9b-appcsxcad-unstable-2020-01-04.drv': 2 dependencies couldn't be built
cannot build derivation '/nix/store/xgdizs6954m175aizq2a0ffgygxbfgwa-env.drv': 15 dependencies couldn't be built
[6 built (4 failed), 563 copied (4192.9 MiB), 858.9 MiB DL]
error: build of '/nix/store/xgdizs6954m175aizq2a0ffgygxbfgwa-env.drv' failed
https://github.com/NixOS/nixpkgs/pull/95450
15 packages failed to build:
appcsxcad cq-editor csxcad freecad inkcut mirtk opencascade python27Packages.pythonocc-core python37Packages.cadquery python37Packages.enamlx python37Packages.pythonocc-core python38Packages.enamlx python38Packages.pythonocc-core qcsxcad smesh

6 packages built:
pcl python37Packages.vtk9 python38Packages.vtk9 vtk vtkWithQt5 vtk_8

[0.0 MiB DL]
error: build log of '/nix/store/vfvkd38am0xf3jjw736vi41ga7y66r9b-appcsxcad-unstable-2020-01-04.drv' is not available
[0.0 MiB DL]
error: build log of '/nix/store/sd4d65wi685mjk3kk8nqg79bnkkbq34r-cq-editor-0.1.1.drv' is not available
[0.0 MiB DL]
error: build log of '/nix/store/25p2cm3p8ra0pr0a26qqymljd6jwmjac-inkcut-2.1.1.drv' is not available
[0.0 MiB DL]
error: build log of '/nix/store/9xdx1920q4jkjm36pcjr4p17v0ik0kzw-pythonocc-core-0.18.1.drv' is not available
[0.0 MiB DL]
error: build log of '/nix/store/h9v7z0cg15nifl0zc46pqr6yh68q9sqg-python3.7-cadquery-2.0.drv' is not available
[0.0 MiB DL]
error: build log of '/nix/store/1x6mr5638dsn26c145bql4ckqgzwjlpy-python3.7-enamlx-0.4.1.drv' is not available
[0.0 MiB DL]
error: build log of '/nix/store/px5y93i6ar8cpl0x6rfqjn0nkdyn35rs-pythonocc-core-0.18.1.drv' is not available
[0.0 MiB DL]
error: build log of '/nix/store/1vq0ihdvcj760z241980b1v07fyh79si-python3.8-enamlx-0.4.1.drv' is not available
[0.0 MiB DL]
error: build log of '/nix/store/lfkf5zsbbq9bjlqcgiqvk5a49bqsnvkh-pythonocc-core-0.18.1.drv' is not available
[0.0 MiB DL]
error: build log of '/nix/store/dmrj0xbh1h7i7vlcja6mk1i0rsf2lsi2-qcsxcad-unstable-2020-01-04.drv' is not available
[0.0 MiB DL]
error: build log of '/nix/store/df285y9pp71nix45m7vxx6r594maidl0-smesh-6.7.6.drv' is not available
[0.0 MiB DL]
$ nix-shell /home/thiago/.cache/nixpkgs-review/pr-95450/shell.nix
these paths will be fetched (0.51 MiB download, 2.47 MiB unpacked):
  /nix/store/059m11gqd5yjjj9wpmlhqn6i9rl0zya2-bash-interactive-4.4-p23-man
  /nix/store/0vxmxszx1v9j4ffpvc1m21p0zwhgrjz2-bash-interactive-4.4-p23-doc
  /nix/store/j7g6w8n9yvlraz45cd8myf60yrbqdlkr-bash-interactive-4.4-p23-info
  /nix/store/y8fkm1p4s3al9p29kxargz30h1hkjlwj-bash-interactive-4.4-p23-dev
copying path '/nix/store/0vxmxszx1v9j4ffpvc1m21p0zwhgrjz2-bash-interactive-4.4-p23-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/j7g6w8n9yvlraz45cd8myf60yrbqdlkr-bash-interactive-4.4-p23-info' from 'https://cache.nixos.org'...
copying path '/nix/store/059m11gqd5yjjj9wpmlhqn6i9rl0zya2-bash-interactive-4.4-p23-man' from 'https://cache.nixos.org'...
copying path '/nix/store/y8fkm1p4s3al9p29kxargz30h1hkjlwj-bash-interactive-4.4-p23-dev' from 'https://cache.nixos.org'...

@jonringer
Copy link
Contributor

What do you think about keeping the python3Packages.vtk using VTK7? Or you think it's better to add a python3Packages.vtk_7?

We try to only have 1 version of a package for a given interpreter. This avoid situations where a number of packages bring in many version of a given package. But at runtime, python will import only one. So some packages will be implicitly broken by the introduction of many versions.

I would select which ever one is most commonly used. Then bump when relevant

Other problem is that some packages depending on VTK only work with the version 8, not with the version 9. I need to update those packages. See:

I probably would not bump the vtk attribute, but rather just introduce a vtk_9 which people can use.

@tfmoraes
Copy link
Contributor Author

Ok, @jonringer, I created 2 commits:

  • vtk_9: init at 9.0.1
  • python3Packages.vtk: 7.1.1 -> 9.0.1

VTK continues to be VTK8 and I created VTK_9.

Just Mayavi is failing to build:

$ nix build --no-link --keep-going --option build-use-sandbox relaxed -f /home/thiago/.cache/nixpkgs-review/pr-95450-1/build.nix
builder for '/nix/store/20g91b052l2240ybrgmmpajp5rgf1jz6-python3.7-mayavi-4.7.1.drv' failed with exit code 139; last 10 log lines:
  default: (invalid), range: None
  vtkArrayNorm: Ignoring method: Get/SetWindow
  default: [0, 9223372036854775807), range: None
  vtkChart: Ignoring method: Get/SetSize
  default: [0.0, 0.0, 0.0, 0.0], range: None
  vtkChartXYZ: Ignoring method: Get/SetAxisColor
  default: [0, 0, 0, 255], range: None
  Warning: We cannot determine the trait type of vtkHigherOrderHexahedron.Order
  Warning: We cannot determine the trait type of vtkHigherOrderQuadrilateral.Order
  /nix/store/221cd4xfzwhw46dbjw38q6zrcxw1phdp-setuptools-setup-hook/nix-support/setup-hook: line 17:    23 Segmentation fault      (core dumped) /nix/store/9hdzs3g6rb76grwzlsbxyxwxg2n0fl4a-python3-3.7.8/bin/python3.7 nix_run_setup bdist_wheel
builder for '/nix/store/d3wsd58yf6drwiflqjwpbi6pwqhkqll5-python3.8-mayavi-4.7.1.drv' failed with exit code 139; last 10 log lines:
  default: (invalid), range: None
  vtkArrayNorm: Ignoring method: Get/SetWindow
  default: [0, 9223372036854775807), range: None
  vtkChart: Ignoring method: Get/SetSize
  default: [0.0, 0.0, 0.0, 0.0], range: None
  vtkChartXYZ: Ignoring method: Get/SetAxisColor
  default: [0, 0, 0, 255], range: None
  Warning: We cannot determine the trait type of vtkHigherOrderHexahedron.Order
  Warning: We cannot determine the trait type of vtkHigherOrderQuadrilateral.Order
  /nix/store/0vlj6iv2735hxwssc15q2yrsirxfjcy1-setuptools-setup-hook/nix-support/setup-hook: line 17:    23 Segmentation fault      (core dumped) /nix/store/fjgnz0xfl04hsblsi4ym5y5akfh6mlmy-python3-3.8.5/bin/python3.8 nix_run_setup bdist_wheel
cannot build derivation '/nix/store/ik9crw8hwqdmxw43nilh6qblyzgz2j4h-env.drv': 2 dependencies couldn't be built
[0 built (2 failed), 13 copied (39.8 MiB), 12.6 MiB DL]
error: build of '/nix/store/ik9crw8hwqdmxw43nilh6qblyzgz2j4h-env.drv' failed
https://github.com/NixOS/nixpkgs/pull/95450
2 packages failed to build:
python37Packages.mayavi python38Packages.mayavi

3 packages built:
python37Packages.vtk python38Packages.vtk vtk_9

pkgs/development/libraries/vtk/9.x.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/vtk/9.x.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/vtk/9.x.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/vtk/9.x.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/vtk/9.x.nix Outdated Show resolved Hide resolved
pkgs/top-level/all-packages.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/vtk/9.x.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/vtk/9.x.nix Outdated Show resolved Hide resolved
pkgs/development/libraries/vtk/9.x.nix Outdated Show resolved Hide resolved
@tfmoraes
Copy link
Contributor Author

tfmoraes commented Aug 15, 2020

nix-shell -p nixpkgs-review --run "nixpkgs-review rev 5ef9d22ef19c26f1964050f16371146aeca6c35c"                                                                    
$ git -c fetch.prune=false fetch --force https://github.com/NixOS/nixpkgs master:refs/nixpkgs-review/0
$ git worktree add /home/thiago/.cache/nixpkgs-review/rev-5ef9d22ef19c26f1964050f16371146aeca6c35c/nixpkgs 99d379c45c793c078af4bb5d6c85459f72b1f30b
Preparing worktree (detached HEAD 99d379c45c7)
HEAD is now at 99d379c45c7 Merge pull request #79874 from oxzi/tinycbor-v0.5.3
$ nix-env -f /home/thiago/.cache/nixpkgs-review/rev-5ef9d22ef19c26f1964050f16371146aeca6c35c/nixpkgs -qaP --xml --out-path --show-trace
$ git merge --no-commit 5ef9d22ef19c26f1964050f16371146aeca6c35c
Auto-merging pkgs/top-level/all-packages.nix
Automatic merge went well; stopped before committing as requested
$ nix-env -f /home/thiago/.cache/nixpkgs-review/rev-5ef9d22ef19c26f1964050f16371146aeca6c35c/nixpkgs -qaP --xml --out-path --show-trace --meta
1 package added:
vtk_9 (init at 9.0.1)

$ nix build --no-link --keep-going --option build-use-sandbox relaxed -f /home/thiago/.cache/nixpkgs-review/rev-5ef9d22ef19c26f1964050f16371146aeca6c35c/build.nix
[2 built, 0.0 MiB DL]
1 package built:
vtk_9

Edit by @mweinelt: Added backticks to get a codeblock.

Copy link
Contributor

@jonringer jonringer left a comment

Choose a reason for hiding this comment

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

LGTM
shows usage

https://github.com/NixOS/nixpkgs/pull/95450
1 package built:
vtk_9

@jonringer jonringer merged commit dbf46a3 into NixOS:master Aug 15, 2020
@jonringer
Copy link
Contributor

jonringer commented Aug 15, 2020

sorry @tfmoraes that took a while, but it's not a simple package :(

EDIT: forgot to say not

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

2 participants