ERROR: Invalid pkgver '3.x.x' in APKBUILD:…
- User
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
ERROR: Invalid pkgver '3.x.x' in APKBUILD: /home/user/.local/var/pmbootstrap/cache_git/pmaports/device/testing/linux-samsung-a3y17lte/APKBUILD
~/pmbootstrap$ pmbootstrap log File "/home/user/pmbootstrap/pmb/init.py", line 111, in main run_command(args) File "/home/user/pmbootstrap/pmb/commands/init.py", line 56, in run_command getattr(frontend, args.action)(args) File "/home/user/pmbootstrap/pmb/helpers/frontend.py", line 421, in install pmb.install.install(args) File "/home/user/pmbootstrap/pmb/install/_install.py", line 1468, in install create_device_rootfs(args, step, steps) File "/home/user/pmbootstrap/pmb/install/_install.py", line 1329, in create_device_rootfs pmb.chroot.init(chroot) File "/home/user/pmbootstrap/pmb/meta/init.py", line 42, in call self.cache.cache[key] = self.func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/chroot/init.py", line 135, in init pmb.chroot.mount(chroot) File "/home/user/pmbootstrap/pmb/chroot/mount.py", line 150, in mount pmb.chroot.binfmt.register(arch) File "/home/user/pmbootstrap/pmb/chroot/binfmt.py", line 29, in register pmb.chroot.apk.install(["qemu-" + arch_qemu], chroot) File "/home/user/pmbootstrap/pmb/chroot/apk.py", line 222, in install pmb.build.packages(context, to_add, arch) File "/home/user/pmbootstrap/pmb/build/_package.py", line 572, in packages all_dependencies += process_package( ^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/build/_package.py", line 343, in process_package base_aports, base_apkbuild = get_apkbuild(pkgname) ^^^^^^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/build/_package.py", line 200, in get_apkbuild pmaport, apkbuild = pmb.helpers.pmaports.get_with_path(pkgname, False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/meta/init.py", line 42, in call self.cache.cache[key] = self.func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/helpers/pmaports.py", line 308, in get_with_path pmaport = find(pkgname, must_exist, subpackages, with_extra_repos) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/meta/init.py", line 42, in call self.cache.cache[key] = self.func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/helpers/pmaports.py", line 253, in find if _find_package_in_apkbuild(package, path_current): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/helpers/pmaports.py", line 152, in _find_package_in_apkbuild apkbuild = pmb.parse.apkbuild(path) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/meta/init.py", line 42, in call self.cache.cache[key] = self.func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/user/pmbootstrap/pmb/parse/_apkbuild.py", line 376, in apkbuild raise RuntimeError(f"Invalid pkgver '{ret['pkgver']}' in APKBUILD: {path}") RuntimeError: Invalid pkgver '3.x.x' in APKBUILD: /home/user/.local/var/pmbootstrap/cache_git/pmaports/device/testing/linux-samsung-a3y17lte/APKBUILD
(021448) [11:09:51] % cd /home/user/.local/var/pmbootstrap/cache_git/pmaports; git rev-parse --abbrev-ref HEAD (021448) [11:09:51] % cd /home/user/.local/var/pmbootstrap/cache_git/pmaports; git status --porcelain
The error:
RuntimeError: Invalid pkgver '3.x.x' in APKBUILD: /home/user/.local/var/pmbootstrap/cache_git/pmaports/device/testing/linux-samsung-a3y17lte/APKBUILD
means the APKBUILD file for linux-samsung-a3y17lte has an invalid version string 3.x.x which is not a valid version format.
nano /home/user/.local/var/pmbootstrap/cache_git/pmaports/device/testing/linux-samsung-a3y17lte/APKBUILD
Find the line starting with pkgver= and replace 3.x.x with a valid version number, e.g.:
pkgver=3.0.0
or the correct version number if you know it.
Save and exit.
Clean pmbootstrap cache and retry:
pmbootstrap clean
pmbootstrap install
APKBUILD file is likely a placeholder or incomplete.If you want to avoid this, you can:
pmaports.Short summary:
Edit the APKBUILD file and fix pkgver to a valid version string (e.g., 3.0.0). Then retry.