-
Notifications
You must be signed in to change notification settings - Fork 67
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
error: mkdir(/default-permissions): Permission denied when building LineageOS 15.1 #32
Comments
From that log entry, you are working in a source directory where you have already tried building (at least) once
If you did that build as a different user ( e.g. as root after |
Oh it happens with first build or if I do it later. Let me finish restoring the snapshot, and I'll send full log of a normal fresh build. |
Oh wow it happens a lot sooner than I remember. |
I got it to work by reverting these two commits 38ae446 (requires some conflict resolving) Here's the current patch (both reverts combined into one) |
From the dates of those commits, it looks like they were required when moving to Android 12 (S) / LOS 19.1. All subsequent commits have also been required for that and subsequent Android / LOS versions. So reverting them isn't an option as it would almost certainly break building the currently supported versions. This repo does not have version-specific branches. The fix for your problem may be to specify the commit previous to the ones you want to revert (i.e. this commit in the If that fix works, we can think about either documenting it in the Ci/Cd project (I'm assuming that you do have a manifest specifying this repo. If not and you have got this) project by using |
Sure, but then I get ancient versions of MicroG and F-Droid and such. That is also how I found the commits, I checked out one before the suspected problem commits, and that builds fine too. I decided on the revert method since I get up to date MicroG. |
Which will be updated by F-Droid after the ROM is installed and run. If you're prepared to try using the specific commit, I can add the appropriate documentation and create a 15.1 specific branch, which can then get the newer versions separately. |
Well, I did already try previous commits, that's how I found those to break. Last working: 323d6ed |
It builds fine without the GMS env variable. This is not with docker, this is under Ubuntu 22.04.
It also appears to happen under sudo su, although maybe source .lineage_venv breaks sudo su idk.
Edit: I am a dumbass. I switched back to the wrong terminal. I tried building under sudo su, and it wanted to do a full rebuild and near instantly failed setting up the jack server.
Edit 2: sudo su fucked everything up. Good thing I have snapshots.
The text was updated successfully, but these errors were encountered: