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
Add scipy and pyyaml to FreeCAD, fix vtk8 build on gcc10 #108424
Conversation
@ppenguin there is this patch to make VTK8 compiles with GCC10 https://gitweb.gentoo.org/repo/gentoo.git/tree/sci-libs/vtk/files/vtk-8.2.0-gcc-10.patch?id=c4256f68d3589570443075eccbbafacf661f785f |
@tfmoraes Thanks, I actually found that one but since I just started (yesterday) with |
…d vtk-gcc-10 compile patch from gentoo.
Wow, it was so easy! Ok, so now the update to |
Cool @ppenguin! |
I think You need add this other patch too to make VTK8 compile with QT5.15:
|
Hm, are these only in gentoo? They should probably be submitted upstream. |
@lheckemann the Qt5.15 patch is already in VTK but there is not a VTK8 release with that https://gitlab.kitware.com/vtk/vtk/-/merge_requests/6943, maybe it's better to use this patch instead of the Gentoo one, the link is https://gitlab.kitware.com/vtk/vtk/-/merge_requests/6943.diff |
}]; | ||
} | ||
{ | ||
meta.description = "Fix compiling with gcc-10+"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congrats on your first PR!
Note that the meta.description is something that should be used to describe a package as opposed to a patch for a package. You can drop that line.
@ppenguin the same patch you have applied to vtk8 com compile with gcc10 you will have to apply to vtk7. I tested here and it works with vtk7. Debian is applying a similar patch to vtk7 https://salsa.debian.org/science-team/vtk7/-/blob/master/debian/patches/115_support-gcc10.patch |
Result of 1 package marked as broken and skipped:
12 packages failed to build:
20 packages built:
|
Ok, I finally found some time to (hopefully) close this.... (thanks for your inputs all) So I added the On a side note (remember, nix noob here), it took me a while to figure out to actually find how to have
A few other issues for which I couldn't find clear answers:
|
The only package not building is
|
Can we merge? This is currently blocking me from updating |
I'm currently rebasing/squashing and fixing the commit messages to push to master. @ppenguin please refer to https://nixos.org/manual/nixpkgs/stable/#submitting-changes-making-patches for your commit messages in the future, that makes merging easier :) |
Regarding your questions:
This is probably because it's in an older generation of your profile, which is kept around so that you can roll back. You can delete these using e.g.
nix-env behaves differently with
If you want a shell containing vtk_8 from your nixpkgs, run
See the nix-build command above, if you want this to apply globally you could use an overlay like |
Also, IRC or discourse are probably better places to ask questions like this, lots of helpful people there and it's more likely to be seen than comments in a PR :) |
Motivation for this change
Custom build of
freecad
(for additional python modules needed by additional Workbenches) fails due tovtk
build failing ongcc10
Things done
FreeCAD
PyrateWorkbench
(possibly others) needsscipy
andpyyaml
, these were added to the py-packages in thefreecad
nix. Thefreecad
depvtk-8.2.0
fails to build withgcc10
, modified the build file to require thegcc9
env.sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)