Error during image (25.12)

Hi,

trying to build an image with 25.12 version on my mt6000 using the same setting that I use for the master and I got that error, everytime. I try make clean, make dir but still the same issue, btw, I dont have the pbr package anyway…. Any ideas?

thanks

Index has 309 packages (of which 309 are new)
find /media/james/WRT/flint/stable/staging_dir/target-aarch64_cortex-a53_musl/root-mediatek -type d | xargs -r chmod 0755
rm -rf /media/james/WRT/flint/stable/build_dir/target-aarch64_cortex-a53_musl/root-mediatek /media/james/WRT/flint/stable/build_dir/target-aarch64_cortex-a53_musl/root.orig-mediatek
mkdir -p /media/james/WRT/flint/stable/build_dir/target-aarch64_cortex-a53_musl/root-mediatek/tmp
IPKG_INSTROOT=/media/james/WRT/flint/stable/build_dir/target-aarch64_cortex-a53_musl/root-mediatek /media/james/WRT/flint/stable/staging_dir/host/bin/fakeroot /media/james/WRT/flint/stable/staging_dir/host/bin/apk --root /media/james/WRT/flint/stable/build_dir/target-aarch64_cortex-a53_musl/root-mediatek --keys-dir /media/james/WRT/flint/stable --no-logfile --preserve-env add --no-cache --initdb --no-scripts --arch aarch64_cortex-a53 \
	--repositories-file /dev/null --repository file:///media/james/WRT/flint/stable/staging_dir/packages/mediatek/packages.adb \
	 \
	$(cat /media/james/WRT/flint/stable/tmp/apk_install_list) \
		"base-files=1680~d819a05a8e" \
		"libc=1.2.5-r5" \
		"kernel=6.12.62~42de6d3aaf357aae1d5f663b660e212e-r1"
ERROR: unable to select packages:
  pbr-1.2.1-r41:
    conflicts: pbr-1.2.1-r41[pbr=1.2.1-r41]
    satisfies: world[pbr]
make[2]: *** [package/Makefile:100: package/install] Error 1
make[2]: Leaving directory '/media/james/WRT/flint/stable'
make[1]: *** [package/Makefile:182: /media/james/WRT/flint] Error 2
make[1]: Leaving directory '/media/james/WRT/flint/stable'
make: *** [/media/james/WRT/flint/stable/include/toplevel.mk:233: world] Error 2



Have a look at this PR that addresses the package-specific provide bit:

And there's a more generic system-wide fix here:

3 Likes

awesome thanks

Thanks George, we also could use some extra documentation about PROVIDES as I understand the error is due to the fact that pbr is the default package and then you do not set the PROVIDES here as that is already done automatically and setting it like has been done leads to this error?

I'll update the wiki wrt depends and provides once the above PR is a merged into 25.12 and stabilized, i.e. no more rework needed.

APK can't handle self-provides, and they are being filtered out before packaging. A package already provides itself implicitly. Adding a self-provide confuses APK. A package marked as default sets priority for virtual provides, i.e. provides that don't own the package name where either the user needs to choose a variant or one will be chosen based on package priority, if set.

I haven't looked into the self-provides on the Kconfig side, so I'm not sure if they are necessary there, or if that's some OPKG leftover.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.