On an x86/64 snapshot using apk, start with the first warning that names a repository file and line. A later missing package may simply mean apk skipped the local index.
Read the offending line
Run these commands in the extracted directory. Substitute the file named in the log. If apk treats a relative path as an unknown keyword and fails to read repositories, check syntax first. For a missing file, check index generation and the working directory.
pwd
nl -ba repositories
ls -l packages/packages.adb
Change only the path
In a separate copy, inspect the apk arguments in verbose output. If --repository already points to the index, check for duplicate entries. Otherwise try the absolute path to the same file only if it exists, this version accepts file paths in that form and the build preserves the edit. Keep signature checks enabled.
Test a package available only locally
Replace both placeholders with your original profile and a local-only package. Expect no parser warning and the correct name and version in the manifest before rebuilding with your original recipe. If only selection fails, check index contents, architecture and dependencies. Restore the configuration after testing. If needed, revert to matching tools and repositories.
make manifest PROFILE="YOUR_PROFILE" PACKAGES="YOUR_LOCAL_PACKAGE" V=s
Moving OpenWrt from x86 to ARM: check the ABI, packages and kernel modules
Comments