-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
docker builder: Fix build: bump version of wine package, switch to OpenJDK, add babel-preset-es2015 dev dependency #84
Conversation
Yeah, Travis CI hits the same error installing oracle-java as I saw locally:
(I.e it does get past the wine issues seen without this patch.) I tried bumping the version to I'm not sure about this, but a quick search showed that the PPA might be discontinued:
I couldn't find a reliable way to install Oracle's java8 in the few minutes I had available. In my experience, using OpenJDK is certainly easier unless there's specific reasons why Oracle's Java is required. If we do need to use Oracle's Java, the most maintainable way I've found is fetching the tarball directly from Oracle's servers. I wonder what changed to cause the wine + Oracle Java breakages? |
Yes, I am aware of the issue with Java (#79), the PPA is indeed discontinued. I also couldn't find a quick alternative solution when I looked into it. But I'll have to figure this out soon, this is preventing me from making new android releases. :-\ Not sure what's the issue with Wine, I'll look into that. Sometimes the version number has to be bumped, because they're making older versions unavailable. |
Okay, thanks for confirming. I couldn't find any easy way (and license-respecting) way of continuing to use Oracle's Java, but switching to OpenJDK was trivial, so I did that in b1d685c. Note that I haven't really tested b1d685c, but it does build succcessfully (with
Okay, let me know if you'd prefer a separate way of addressing that issue. I just added the packages that |
I noticed that the Travis build was failing with:
Re-running the build locally (bypassing the Docker cache) reproduces the issue, so it seems package versions changed between the time I built locally and when Travis did its build. I've switched to |
The next failure was:
The issue persisted after force-pushing a change to this branch. I found a stackoverflow.com post with similar symptoms, and tried the suggested steps in that answer:
That actually did lead to a passing build, based on this branch with another commit hkjn@09bb7f9, which adds the changes produced by the
I'm not sure if I want to add that commit to this PR, since it also results in a large diff to @shesek: Thoughts / suggestions? |
Okay, I can't say I still really understand what I'm doing, but it seems that most of the diffs to In e24622c, I added the specific @shesek: The build seems to pass with these patches. Let me know if you'd like me to test anything, or have suggestions for how to approach this a different way (feel free to make changes to the branch). |
Thanks for the help!
I'm trying to build locally and test on my android, will report back.
Note that this doesn't actually build the distribution files, it just prepares the docker environment where they could be built.
It looks like bumping
This should not be necessary, babel-preset-env supersedes babel-preset-es2015 and is the recommended way to use babel (See here: "babel-preset-es2015 -> babel-preset-env" ... "instead of continuing yearly presets, the team recommends using babel-preset-env"). Will look into this once I have the docker builder ready.
I'll need to go over the changelogs and run some tests to make sure these dependency updates aren't breaking anything before upgrading, so better keep that separate from this PR. |
Not sure what changed, but without this patch, the build fails with: ``` The following packages have unmet dependencies: winehq-stable : Depends: wine-stable (= 4.0~stretch) E: Unable to correct problems, you have held broken packages. ```
Produced by running `npm update` repeatedly, until there were no more changes produced.
Produced by running `npm install babel-preset-es2015 --save-dev`, via https://stackoverflow.com/a/36363346.
Good call, that works. I've force pushed a new commit that just bumps the version of
Makes sense. Thanks, any help would be appreciated; I did notice that message, but as mentioned earlier, I was more-or-less running commands suggested by random stackoverflow.com answers blindly until something led to a successful image build. :)
Sounds good and thanks here as well, I don't know how to even start doing that; surprised at how quickly NPM packages seem to get updated / how large the dependency graphs often are.. Let me know here as the updated packages are merged to |
This should not be needed since Spark uses the "env" preset, but it seems like one of the dependencies expects this module to be installed. Refs #84
I tested on my android, OpenJDK works great. This was easier than I expected. :) The I committed these changes separately (1f1b738, 82763ed, 9d59930), thank you so much for looking into this and the help figuring this out! I can finally make a proper release, will hopefully get one out in the next day or two. Cheers :) |
Glad to hear it worked out. No problem, and many thanks for building such an excellent wallet! |
Not sure what changed, but without this patch, the build fails with:
With this patch, the build gets further.
(And then actually still fails for me, with another error, included below, although I still think this patch itself should be an improvement.)
further error installing oracle-java
Edit: With b1d685c we also switch to OpenJDK in this PR.
Fixes #79.