LOCAL_STATE and STATE_FILE. #95

Closed
opened 2020-12-15 08:00:31 +00:00 by keanucode · 2 comments

Good day,

I've been trying to compile a custom build of CTC using CTCCI.
It's been going somewhat well, until issues started popping up regarding the version of Discord.
I decided I wanted to use an older version, 1351 to be precise.
Only issue is... I have no idea how to use a custom state file.

BUILDING.md states I should set two variables: LOCAL_STATE and STATE_FILE.
But... where? The document doesn't state where or how I should set these.
Are they environment variables? Are they Python variables?

I think the version issues are also messing with the branding patch. It's erroring.

Traceback (most recent call last):
  File "ctcci.py", line 176, in <module>
    patch(patch_file.replace(".patch", "-custom.patch"), WORK_APK_PATH)
  File "ctcci.py", line 29, in patch
    shell=True, check=True, cwd=workdir)
  File "/usr/lib/python3.7/subprocess.py", line 487, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command 'patch -p1 --no-backup-if-mismatch -i /home/keanu/distokrepos/cutthecord/patches/branding/1356-custom.patch' returned non-zero exit status 1.

I hope we'll be able to fix this issue.

Sincerely,

Keanu.

Good day, I've been trying to compile a custom build of CTC using CTCCI. It's been going *somewhat* well, until issues started popping up regarding the *version* of Discord. I decided I wanted to use an older version, `1351` to be precise. Only issue is... I have no idea how to use a custom state file. `BUILDING.md` states I should set two variables: `LOCAL_STATE` and `STATE_FILE`. But... where? The document doesn't state where or how I should set these. Are they environment variables? Are they Python variables? I think the version issues are also messing with the `branding` patch. It's erroring. ``` Traceback (most recent call last): File "ctcci.py", line 176, in <module> patch(patch_file.replace(".patch", "-custom.patch"), WORK_APK_PATH) File "ctcci.py", line 29, in patch shell=True, check=True, cwd=workdir) File "/usr/lib/python3.7/subprocess.py", line 487, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command 'patch -p1 --no-backup-if-mismatch -i /home/keanu/distokrepos/cutthecord/patches/branding/1356-custom.patch' returned non-zero exit status 1. ``` I hope we'll be able to fix this issue. Sincerely, Keanu.
Owner

Hello,
Those docs seem outdated and I'll update that section momentarily.

Version information is currently pulled from patchport-state.json in the repo folder. I recommend editing that if you want to force an older version.

Hello, Those docs seem outdated and I'll update that section momentarily. Version information is currently pulled from `patchport-state.json` in the repo folder. I recommend editing that if you want to force an older version.
a closed this issue 2020-12-15 15:10:12 +00:00
Owner

If the branding patch issues persist, please open a separate issue and reference this one.

If the branding patch issues persist, please open a separate issue and reference this one.
This repo is archived. You cannot comment on issues.
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: distok/cutthecord#95
No description provided.