-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
solvespace2x: init at 2.x #32651
solvespace2x: init at 2.x #32651
Conversation
solvespace 2.x branch
cc @edef1c |
This… doesn't build (it doesn't even have a sha256 for the fetchgit), uses an older commit of the same master branch, uses GTK2 instead of GTK3, doesn't have a clear description, doesn't have a clean commit history. I'm not sure what to do with this at all, save for fixing my own derivation to stick cmake in nativeBuildInputs. |
Hi, edef1c. When I need in working solvespace I print nix-env -iA nixos.solvespace and got ver 2.0 with more bugs, then I pull nixpkgs tree and nix-build -A solvespace -> got prog which output "Illegal operation" and finished. Then I pull solvespace tree and find variant which got me solvespce ver2.3 without obvius bugs. At this time my needs sucessfull. But since sharing our duty, I copy and modification Your default.nix for this old but stable branch in separate 2.x.nix and push req. I'm not expert in Nixpkgs, and sorry if broken tradition, but may be other users like draw in solvespace too? |
@GrahamcOfBorg build solvespace2x |
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.
Failure for system: aarch64-linux
error: hash '' has wrong length for hash type 'sha256'
(use '--show-trace' to show detailed location information)
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.
Failure for system: x86_64-darwin
error: Package ‘solvespace-2.x’ in /tmp/nix-ofborg/repo/38dca4e3aa6bca43ea96d2fcc04e8229/builder/lnl7-mac/pkgs/applications/graphics/solvespace/2.x.nix:44 is not supported on ‘x86_64-darwin’, refusing to evaluate.
a) For `nixos-rebuild` you can set
{ nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.
b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
{ allowBroken = true; }
to ~/.config/nixpkgs/config.nix.
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.
Failure for system: x86_64-linux
builder for ‘/nix/store/8wz4nydrrg3cdfvwv5x2lagmh0gvlg5g-solvespace-b1d87bf.drv’ failed with exit code 1
fetching path ‘/nix/store/0mqn6p12ak8la9d9xdzklvfkn3fm9ald-hook’...
*** Downloading ‘https://nix-cache.s3.amazonaws.com/nar/04kgww42xz4djgn4ffpf7yh2fsdxx2ssy06hp9wx9fmca0q2f6az.nar.xz’ (signed by ‘cache.nixos.org-1’) to ‘/nix/store/0mqn6p12ak8la9d9xdzklvfkn3fm9ald-hook’...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1048 100 1048 0 0 1048 0 0:00:01 --:--:-- 0:00:01 14356
cannot build derivation ‘/nix/store/7nvvzqmkg78kbml0gfmqdc1qigldwh0z-solvespace-2.x.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/7nvvzqmkg78kbml0gfmqdc1qigldwh0z-solvespace-2.x.drv’ failed
Hi, after add sha256 from nix-prefetch-git output in 2.x.nix, I got cmake error (from intree libs) After comment sha256 from 2.x.nix script all work around. I'm lost in thought. |
Build results solvespace2x x86_64-linux (without sha256 hash in nix script!) ldd out |
I assume that with sha256 don't run fetchSubmodules, becouse cmake error watch this: -- Using in-tree libdxfrw Without sha256 build sucess. Anybody understand why? If this sha256 wrong error must be early. |
What is the output of |
nix-env --version |
The users of NixOS 17.09 and older can not use OpenGL applications built from Nixpkgs |
Orivej, thanks for comment about version, I'm tray upgrade now. Variant nix-env -f https://github.com/NixOS/nixpkgs/archive/release-17.09.tar.gz -iA solvespace |
Upgrade to 17.09
We can discard version about wrong sha256, because error cmake must be later hash check? May be problem in wrong Nix tree? I'm pull NixOS/nixpgs, and use as src in 17.03 .. 17.09 system? |
We can't accept this package without a sha256. This would make the build non-reproducible and would break the package on any system with sandboxed builds. Instead of adding another package with a specific revision, I would rather try to fix the underlying issue of |
@the-kenny The premise of this PR as I understand it is that the current |
@orivej You can override
for testing purposes. |
Anybody can explained how add true sha256 affected on build, if set random sha256 got other error output path ‘/nix/store/mhvj4g35pvfwls6nlxfk62kv90iax8xj-solvespace-b1d87bf’ has r:sha256 hash ‘160qam04pfrwkh9qskfmjkj01wrjwhl09xi6jjxi009yqg3cff9l’ when ‘1n7rppzc7y73bv7qi3yp7y2f4bppp2fip9hvf0sqks7wbjwf4qws’ was expected Probably I make uncorrect script in hash part. nix-prefetch-git out1 nix-prefetch-git out2 I'm lost .git postfix... I'm sorry Now work with sha256 As You advise |
@GrahamcOfBorg |
@pbogdan Thank you, I have built a NixOS 17.09 VM with this config and confirmed that Solvespace works on NixOS 17.09. @nickbeljaev
Could you describe how to reproduce this?
Could you post the console output if is written to the console, or a screenshot if it happens in the GUI? |
@orivej [nick@astra16:~]$ solvespace ** (solvespace:14120): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files (solvespace:14120): Gtk-WARNING **: Could not find the icon 'pan-end-symbolic'. The 'hicolor' theme (solvespace:14120): GLib-GIO-ERROR **: No GSettings schemas are installed on the system ------------my comment---------------------- [nick@astra16:~]$ cd pr/nix/nixpkgs [nick@astra16:~/pr/nix/nixpkgs]$ nix-build -A solvespace [nick@astra16:~/pr/nix/nixpkgs]$ nix-env -f . -iA solvespace [nick@astra16:~/pr/nix/nixpkgs]$ solvespace @orivej PS When I dug up this problem see threds approwed that solvespace on gtk3 is crude today and https://github.com/solvespace/solvespace/tree/2.x |
@orivej I found some more time and install new 17.09 in vbox. Please see screenshot,or click open file in your solvespace VM. I don't understand why we lose so much time. I was hoping my digging might be useful to others, but I see that everyone is comfortable with a not working package. I would not want to lose my and your time further. |
Maintainer of SolveSpace here. I strongly recommend building a recent commit from master if you have the capability, since it uses GTK3 and has numerous other important incremental improvements over 2.3. (In fact the current plan is to abandon the 2.x branch and cut the 2.4 release from master with a few more fixes.) @nickbeljaev What's the backtrace for "Trace/breakpoint trap" issue you are observing? |
@nickbeljaev Thank you, I was finally able to reproduce the issue. To reproduce:
It exits as on the screenshot above. @whitequark This must be a packaging issue, not a solvespace bug. |
@jtojnar Could you guess what commit is missing from release to cause "No GSettings schemas are installed on the system"? |
@orivej That happens when an application tries to load some setting and there are literally no GSettings schemas available. You could try adding some random dependency like cat $(nix-build -A solvespace2x)/bin/solvespace | grep schemas
export XDG_DATA_DIRS='/nix/store/yjbhjcrcawhmm0lqqqr7807b8m6wfwp6-gtk+3-3.22.26/share/gsettings-schemas/gtk+3-3.22.26'${XDG_DATA_DIRS:+':'}$XDG_DATA_DIRS The error should not be there. |
Oh, yes, the file dialogue actually needs |
Thanks! I'll test if backporting it fixes solvespace. |
@jtojnar, thank you for support! @nickbeljaev, I have fixed the error in the release-17.09 branch in 3bee0c2. Could you check if |
@whitequark I see that problem with gtk3 component but I <year with NixOs and have some problem with understanding of its dependencies and its debug. Take the opportunity like say that SolveSpace have most clean and logical interface of all that I've seen in 3D CAD. Ver2.3 very stable, some time reliability more important than functionality. @orivej Oh, I must say about menu as soon as possible, surprising that no one has previously tried to use SolveSpace for its intended purpose, apparently here only pure programmers :) @orivej Thanks You for concernment. Sorry if I did something wrong. |
@nickbeljaev Until we solve #11239, you will need to install |
@jtojnar solvespace3 2>/dev/null |
If solvespace does not work, it should be fixed. Introducing an old version is not a good fix. |
Motivation for this change
default.nix can't build live prog on two my Nix system
build from 2.x branch solvespace make live prog ver 2.3 on two my Nix system
Things done?
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)