Open Dil3mm4 opened 4 years ago
Try adding fontconfig
to your targetPkgs
.
I assume you are building Android 10? I encountered the same issue. It is not an issue with jdk from nixpkgs, but rather the prebuilt jdk that AOSP includes in their source checkouts.
For reference: https://issuetracker.google.com/issues/145064117 https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/android-building/ZprmSu5ZAkg/D0kQFvGxAAAJ
See also my own build env for android: https://github.com/danielfullmer/NixDroid/blob/40f6047a1884fba378b4256e81ef83df699527c7/buildenv.nix#L39
Yeah got it fixed adding fontconfig, and freetype, didn't even get the mail and spent 3 more hrs on it, damn.
Anyway it seems that over other linux distros as Debian and friends, jdk ships freetype and co. pkgs as dependency (or bundled, didn't really double check), therefore on those envs the issues wasn't happening. And anyway I wasn't using AOSP's prebuilt.
Will leave it opened waiting for someone with a higher knowledge than mine to determinate if it's an issue imputable to jdk nixos pkgs itself or not.
For the time being, thanks.
Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
Describe the bug Build halt.
To Reproduce Steps to reproduce the behavior:
Expected behavior Build should complete.
Additional context Current nix script used https://pastebin.com/xT7YNUvj Error:https://hastebin.com/pecaporapi.bash NixOS version: 19.09.1487.1be199f0594
Tried to switch to other versions of jdk as well, oracle's and open, headless and non-headless, no change.
Metadata
"x86_64-linux"
Linux 4.19.80, NixOS, 19.09.1487.1be199f0594 (Loris)
yes
yes
nix-env (Nix) 2.3
"nixos-19.09.1487.1be199f0594"
""
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information: