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

ili2c: init at 5.0.0 #56893

Merged
merged 1 commit into from Jul 18, 2019
Merged

ili2c: init at 5.0.0 #56893

merged 1 commit into from Jul 18, 2019

Conversation

das-g
Copy link
Member

@das-g das-g commented Mar 5, 2019

Motivation for this change

Make the INTERLIS "compiler" available on NixOS.

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 nox --run "nox-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)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Notes and questions:
Does this belong in "misc"?

"misc." categories always have the tendency to grow uncontrollably. Maybe it's time for a GIS subfolder in the pkgs tree?

@das-g
Copy link
Member Author

das-g commented Mar 6, 2019

Hmm ... are draft PRs only for "work in progress"? I'll turn it into an actual PR, then, as I haven't any changes planned before review.

@das-g das-g marked this pull request as ready for review March 6, 2019 10:11
@joachifm
Copy link
Contributor

@GrahamcOfBorg build ili2c

@das-g
Copy link
Member Author

das-g commented Mar 23, 2019

oops. I guess I refactored rev after fixing the hash. Will update the branch with a fix.

@matthewbauer
Copy link
Member

@GrahamcOfBorg build ili2c

@das-g
Copy link
Member Author

das-g commented Mar 26, 2019

https://github.com/NixOS/nixpkgs/pull/56893/checks?check_run_id=84891442

Why does aarch64-linux default to the unfree Oracle JDK instead of (like the other NixOS platforms) to the free OpenJDK?

https://github.com/NixOS/nixpkgs/pull/56893/checks?check_run_id=84891499

And what's going on in the x86_64-darwin build? "BUILD SUCCESSFUL", but resulting jar file missing? How comes? (Is it looking in the right directory? /private/tmp/nix-build-ili2c-4.7.11.drv-0/source/build/jar/ili2c.jar might not be the same location as /build/source/build/jar/ili2c.jar, is/should it?)

Can someone more experienced advise, please?

@FRidh
Copy link
Member

FRidh commented Apr 30, 2019

@das-g see #35510 for the reason why aarch64 gets oraclejdk.

@aanderse
Copy link
Member

@das-g Are you able to continue with this PR?

@das-g
Copy link
Member Author

das-g commented Jul 13, 2019

@das-g Are you able to continue with this PR?

I think I can, though I'm not sure whether I should continue and if so, how.


cross-release building broken

When built on a NixOS 18.03 system, running the result currently fails. I suspect that's due to #54278. When this change is applied on the release-18.09 branch (currently 95fed28) the resulting build result seems to work fine.

On 19.03, this doesn't seem to be an issue anymore. 👍


Can someone comment on these two questions?

Does this even belong here?

I'm not sure whether this software has a wide enough audience to be included in NixPkgs, or whether it should (for now) live in an overlay or in NUR.

Does this belong there?

"misc." categories always have the tendency to grow uncontrollably. Maybe it's time for a GIS subfolder in the pkgs tree?


If the answer to both is "yes" (i.e., it does belong in NixPkgs and should be in pkgs/tools/misc/), how should I proceed? Upstream has released Version 5.0.0, but I guess NixPkgs could upgrade to that in a later PR. Should I rebase on current nixpkgs master? What else needs to be done?

@das-g
Copy link
Member Author

das-g commented Jul 13, 2019

And does something need to be done about aarch64-linux and x86_64-darwin? If so, what?

@aanderse
Copy link
Member

Does this even belong here?

I've seen some very domain specific software packaged and accepted in NixOS. I don't see any reason this can't be included.

Upstream has released Version 5.0.0

I would suggest you update this PR to init at 5.0.0

does something need to be done about aarch64-linux and x86_64-darwin?

aarch64-linux won't evaluate by the bot because it uses non-free java, so unless you have reason to believe it won't work just ignore that. x86_64-darwin is marked as failure so you could either fix that, or adjust your platforms to exclude it.

pkgs/tools/misc/ili2c/default.nix Outdated Show resolved Hide resolved
pkgs/tools/misc/ili2c/default.nix Outdated Show resolved Hide resolved
pkgs/tools/misc/ili2c/default.nix Outdated Show resolved Hide resolved
pkgs/tools/misc/ili2c/default.nix Outdated Show resolved Hide resolved
@das-g das-g force-pushed the ili2c-init branch 2 times, most recently from 2aaa887 to e744ea3 Compare July 14, 2019 15:51
@das-g das-g changed the title ili2c: init at 4.7.11 ili2c: init at 5.0.0 Jul 14, 2019
@das-g
Copy link
Member Author

das-g commented Jul 14, 2019

(The force push from 2aaa887 to e744ea3 is just a re-base on master, so you can ignore that.)

@aanderse
Copy link
Member

aanderse commented Jul 17, 2019

@GrahamcOfBorg build ili2c

@aanderse
Copy link
Member

@das-g Can you please fix the darwin issue if you have the ability to, or update platforms accordingly?

@das-g
Copy link
Member Author

das-g commented Jul 17, 2019

@das-g Can you please fix the darwin issue if you have the ability to, or update platforms accordingly?

(I didn't update platforms in the previous changes to this PR, because I speculated it might work by now, be it due to changes to NixPkgs, due to the change to ili2c 5.0.0 or changes to the automated build infrastructure that might have happened since the build attempt before that.)

Changed to linux-only with https://github.com/NixOS/nixpkgs/compare/e744ea36c228bfba184df3977849885a811eb819..c8c751aca277ae4c2f3de5efd32493d8095a819e

I'd like to have it work for all platforms and think that should be possible for a pure-Java application like this seems to be. However I don't have any device with macOS so I cannot examine the build locally, and I have no idea what goes wrong there. (It seems to look for the JAR in a different directory than where it built it, but why?)

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.

Thanks @das-g!

@aanderse aanderse merged commit 47411c9 into NixOS:master Jul 18, 2019
@das-g das-g deleted the ili2c-init branch July 18, 2019 06:22
@das-g
Copy link
Member Author

das-g commented Jul 18, 2019

Thanks @das-g!

Thank you, @aanderse, for your guidance! 😃

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

6 participants