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

mandelbulber: init at 2.20 #66390

Merged
merged 1 commit into from Dec 6, 2019
Merged

Conversation

KoviRobi
Copy link
Contributor

@KoviRobi KoviRobi commented Aug 9, 2019

Tested on my machine (NixOS 19.03.173243.9ef3cb9b0ba, x86_64), see package request #52038

Motivation for this change

I wanted to generate pretty pictures.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • 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 nix-review --run "nix-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
Member

@aanderse aanderse left a comment

Choose a reason for hiding this comment

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

Looking good. After a quick review I only have cosmetic points to mention. 👍

pkgs/applications/graphics/mandelbulber2/default.nix Outdated Show resolved Hide resolved
pkgs/applications/graphics/mandelbulber2/default.nix Outdated Show resolved Hide resolved
pkgs/applications/graphics/mandelbulber2/default.nix Outdated Show resolved Hide resolved
pkgs/applications/graphics/mandelbulber2/default.nix Outdated Show resolved Hide resolved
pkgs/applications/graphics/mandelbulber2/default.nix Outdated Show resolved Hide resolved
pkgs/applications/graphics/mandelbulber2/default.nix Outdated Show resolved Hide resolved
@ivan
Copy link
Member

ivan commented Sep 1, 2019

@GrahamcOfBorg build mandelbulber2

Copy link
Member

@ivan ivan left a comment

Choose a reason for hiding this comment

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

Built and tested on NixOS x86_64, examples load and both CPU and OpenCL rendering work. LGTM.

@KoviRobi
Copy link
Contributor Author

KoviRobi commented Sep 2, 2019

While it should work on Mac and Windows as well, since I don't have either to test it I haven't added it to the platforms, my thinking was that if someone needs it on that platform they can test it and make it work.

@KoviRobi KoviRobi force-pushed the mandelbulber2-init-at-2.19 branch 2 times, most recently from 126f490 to 8090518 Compare September 2, 2019 14:07
@KoviRobi
Copy link
Contributor Author

KoviRobi commented Sep 2, 2019

Apparently there are two flags to pass to the C compiler/preprocessor, into which I want a C string, hence I need to enclose the path in double-quotes. Make calls the C compiler in a shell, so I need to escape the double-quotes hence ("). The shell calling qmake does backslash expansion hence (\"); Nix strings do backslash expansion hence (\\\").

Copy link
Member

@ivan ivan left a comment

Choose a reason for hiding this comment

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

Built and tested again, LGTM

@aanderse
Copy link
Member

ping (triage) ... where are we at with this?

@KoviRobi
Copy link
Contributor Author

I have folded in the latest changes from jtojnar, and have asked upstream to patch example files buddhi1980/mandelbulber2#719 though that hasn't progressed yet. Apart from that I think that's all the comments addressed

@aanderse
Copy link
Member

@KoviRobi Please address bot failures when you get a chance.

@KoviRobi
Copy link
Contributor Author

Sure, though not sure how to interpret the failures, all I see is

grahamcofborg-eval

x86_64-linux	mandelbulber2
i686-linux	mandelbulber2
aarch64-linux	mandelbulber2

grahamcofborg-eval-check-meta

nix-env failed:

and it doesn't say much to me.

@KoviRobi
Copy link
Contributor Author

Looks like the bot just needed to be started again?

@KoviRobi
Copy link
Contributor Author

@aanderse I think this is ready to be merged? I have addressed all the comments, and the bot has managed to make everything pass.

@aanderse
Copy link
Member

@GrahamcOfBorg build mandelbulber2

@aanderse
Copy link
Member

@KoviRobi sorry for the delay, this PR slipped by me. Thanks for your patience and persistence!

@ivan @jtojnar any additional changes required on your part before merge?

@aanderse
Copy link
Member

@KoviRobi any idea on whenthe next upstream release is? That release will eliminate the need for your patch here as your patch was accepted upstream...

@KoviRobi
Copy link
Contributor Author

@aanderse I have just asked, apparently in about 2 weeks, so might be worth the wait until then

@KoviRobi KoviRobi changed the title mandelbulber2: init at 2.19 mandelbulber2: init at 2.20 Dec 5, 2019
@KoviRobi
Copy link
Contributor Author

KoviRobi commented Dec 5, 2019

Now using the new version, 2.20 which has the hardcoded paths patch included

Copy link
Contributor

@jtojnar jtojnar left a comment

Choose a reason for hiding this comment

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

Just a few finishing suggestions, mostly style suggestions for cleaner diffs, almost ready to merge.

pkgs/applications/graphics/mandelbulber2/default.nix Outdated Show resolved Hide resolved
pkgs/applications/graphics/mandelbulber2/default.nix Outdated Show resolved Hide resolved
pkgs/applications/graphics/mandelbulber2/default.nix Outdated Show resolved Hide resolved
pkgs/applications/graphics/mandelbulber2/default.nix Outdated Show resolved Hide resolved
pkgs/applications/graphics/mandelbulber2/default.nix Outdated Show resolved Hide resolved
@KoviRobi
Copy link
Contributor Author

KoviRobi commented Dec 6, 2019

Whoops, I seem to have messed up something with the commits, I just wanted to squash it into a single commit (I think that's preferred in the nixpkgs manual), let me fix that

@KoviRobi
Copy link
Contributor Author

KoviRobi commented Dec 6, 2019

Sorry about the accidental mistake, I just did a git rebase -i HEAD~5 thinking that just leaving the extra commits as above won't change anything, but it did (probably should have used git rebase -i HEAD^5, I just didn't pay close enough attention to the difference between ~ and ^, now I know). This also then triggered a review request that I now don't know how to cancel, sorry ttuegel.

@jtojnar
Copy link
Contributor

jtojnar commented Dec 6, 2019

On the website and everywhere else, it seems to be referred as just mandelbulber. Would it make sense drop 2 from pname and attribute name? Also that is what it goes by on repology: https://repology.org/projects/?search=mandelbulber&maintainer=&category=&inrepo=&notinrepo=&repos=&families=&repos_newest=&families_newest=

@KoviRobi
Copy link
Contributor Author

KoviRobi commented Dec 6, 2019

I guess so, I just got the impression that it went by mandelbulber2 for the version 2 (https://repology.org/project/mandelbulber/versions), though it's not a fork and v1 is deprecated (https://sourceforge.net/projects/mandelbulber/files/). Don't know if there was a rewrite/redesign that made or other incompatibilities that made packaging the two separately worthwhile. But anyway we don't have a v1.

Tested on my machine, see package request NixOS#52038
@KoviRobi KoviRobi changed the title mandelbulber2: init at 2.20 mandelbulber: init at 2.20 Dec 6, 2019
@jtojnar jtojnar merged commit 866dd4c into NixOS:master Dec 6, 2019
@jtojnar
Copy link
Contributor

jtojnar commented Dec 6, 2019

Great work, thanks.

dtzWill pushed a commit to dtzWill/nixpkgs that referenced this pull request Dec 6, 2019
mandelbulber: init at 2.20
(cherry picked from commit 866dd4c)
@KoviRobi KoviRobi deleted the mandelbulber2-init-at-2.19 branch December 6, 2019 11:32
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

4 participants