Skip to content

fix: error getting package version number - #21713

Closed
robinZhao wants to merge 1 commit into
openwrt:mainfrom
robinZhao:patch-1
Closed

robinZhao wants to merge 1 commit into
openwrt:mainfrom
robinZhao:patch-1

Conversation

@robinZhao

@robinZhao robinZhao commented Jan 26, 2026 •

Copy link
Copy Markdown

make image PACKAGES="app1=1.10 app2=2.0 app3"
get error version 2.0 for app3

make image  PACKAGES="app1=1.10 app2=2.0 app3"
get error version 2.0 for app3

Signed-off-by: Robin <[email protected]>
@github-actions github-actions Bot added the target/imagebuilder pull request/issue for imagebuilder target label Jan 26, 2026
@robimarko

Copy link
Copy Markdown
Contributor

You are going to need to expand on how you are getting this error more

@robinZhao

Copy link
Copy Markdown
Author

I patched some packages and make image by imagebuilder like this:

make image PROFILES=XXX PACKAGES="........ luci-app-firewall=26.024.52300~e4209fc firewall4=2025.03.17~b6e51575-r1 luci-base=26.024.52300~e4209fc zerotier tcpdump block-mount ...."

but failed with this error

WARNING: opening /home/runner/work/Actions-OpenWrt-NSY/Actions-OpenWrt-NSY/workdir/openwrt/build_dir/target-aarch64_generic_musl/openwrt-imagebuilder-25.12.0-rc3-rockchip-armv8.Linux-x86_64/packages/packages.adb: No such file or directory
OK: 0 B in 0 packages
Package list missing or not up-to-date, generating it.

Building package index...

Installing packages...
ERROR: unable to select packages:
  libgcc1-14.3.0-r5:
    breaks: world[libgcc1=26.024.52300~e4209fc]
    satisfies: libatomic1-14.3.0-r5[libgcc1]
               libc-1.2.5-r5[libgcc1]
               libpthread-1.2.5-r5[libgcc1]
  uclient-fetch-2025.10.03~dc909ca7-r2:
    breaks: world[uclient-fetch=26.024.52300~e4209fc]
    satisfies: apk-openssl-3.0.2-r2[wget-any]
  apk-openssl-3.0.2-r2:
    breaks: world[apk-openssl=26.024.52300~e4209fc]
  fstools-2025.10.03~12858e28-r1:
    breaks: world[fstools=26.024.52300~e4209fc]
    satisfies: base-files-1~2026012603[fstools]
  netifd-2025.10.20~777f5942-r3:
    breaks: world[netifd=26.024.52300~e4209fc]
    satisfies: base-files-1~2026012603[netifd]
  block-mount-2025.10.03~12858e28-r1:
    breaks: world[block-mount=26.024.52300~e4209fc]
  ca-bundle-20250419-r2:
    breaks: world[ca-bundle=26.024.52300~e4209fc]
    satisfies: adblock-4.5.0-r2[ca-bundle]
               https-dns-proxy-2025.12.29-r1[ca-bundle]
               libcurl4-8.15.0-r2[ca-bundle]
  ca-certificates-20250419-r2:
    breaks: world[ca-certificates=26.024.52300~e4209fc]
  dnsmasq-2.91-r2:
    breaks: world[dnsmasq=26.024.52300~e4209fc]
  dropbear-2025.89-r1:
    breaks: world[dropbear=26.024.52300~e4209fc]
  e2fsprogs-1.47.3-r1:
    breaks: world[e2fsprogs=26.024.52300~e4209fc]
  kmod-nft-offload-6.12.66-r1:
    breaks: world[kmod-nft-offload=26.024.52300~e4209fc]
    satisfies: firewall4-2025.03.17~b6e51575-r1[kmod-nft-offload]
  nftables-json-1.1.6-r1:
    breaks: world[nftables=26.024.52300~e4209fc]
    satisfies: firewall4-2025.03.17~b6e51575-r1[nftables-json]
  kmod-gpio-button-hotplug-6.12.66-r5:
    breaks: world[kmod-gpio-button-hotplug=26.024.52300~e4209fc]
  kmod-oaf-6.12.66-r1:
    breaks: world[kmod-oaf=26.024.52300~e4209fc]
    satisfies: luci-app-oaf-6.1.2-r1[kmod-oaf]
  libustream-openssl20201210-2025.10.03~5a81c108-r1:
    breaks: world[libustream-openssl20201210=26.024.52300~e4209fc]
    satisfies: luci-ssl-openssl-26.024.52300~e4209fc[libustream-openssl20201210]
  logd-2025.10.30~6f78fa49-r1:
    breaks: world[logd=26.024.52300~e4209fc]
  luci-app-oaf-6.1.2-r1:
    breaks: world[luci-app-oaf=26.024.52300~e4209fc]
    satisfies: luci-i18n-oaf-zh-cn-25.242.58536~c3cd100[luci-app-oaf]
  luci-i18n-oaf-zh-cn-25.242.58536~c3cd100:
    breaks: world[luci-i18n-oaf-zh-cn=26.024.52300~e4209fc]
  openssl-util-3.5.4-r1:
    breaks: world[openssl-util=26.024.52300~e4209fc]
    satisfies: luci-ssl-openssl-26.024.52300~e4209fc[openssl-util]
  mkf2fs-1.16.0-r4:
    breaks: world[mkf2fs=26.024.52300~e4209fc]
  mtd-27:
    breaks: world[mtd=26.024.52300~e4209fc]
  odhcp6c-2025.12.29~699cc615-r1:
    breaks: world[odhcp6c=26.024.52300~e4209fc]
  odhcpd-ipv6only-2025.12.18~0779ee28-r1:
    breaks: world[odhcpd-ipv6only=26.024.52300~e4209fc]
  openssh-sftp-server-10.2_p1-r1:
    breaks: world[openssh-sftp-server=26.024.52300~e4209fc]
  partx-utils-2.41.3-r1:
    breaks: world[partx-utils=26.024.52300~e4209fc]
  ppp-2.5.2-r2:
    breaks: world[ppp=26.024.52300~e4209fc]
  ppp-mod-pppoe-2.5.2-r2:
    breaks: world[ppp-mod-pppoe=26.024.52300~e4209fc]
  procd-ujail-2025.10.04~3b3501ab-r1:
    breaks: world[procd-ujail=26.024.52300~e4209fc]
  tcpdump-4.99.5-r1:
    breaks: world[tcpdump=26.024.52300~e4209fc]
  uboot-envtools-2025.10-r1:
    breaks: world[uboot-envtools=26.024.52300~e4209fc]
  uci-2025.12.02~66127cd7-r1:
    breaks: world[uci=26.024.52300~e4209fc]
  urandom-seed-3:
    breaks: world[urandom-seed=26.024.52300~e4209fc]
  urngd-2025.10.03~f17e33d9-r1:
    breaks: world[urngd=26.024.52300~e4209fc]
  zerotier-1.16.0-r1:
    breaks: world[zerotier=26.024.52300~e4209fc]
make[2]: *** [Makefile:254: package_install] Error 99
make[1]: *** [Makefile:183: _call_image] Error 2
make: *** [Makefile:357: image] Error 2

@robimarko

Copy link
Copy Markdown
Contributor

Sorry, but you cannot pass package names with version to IB

@GeorgeSapkin

Copy link
Copy Markdown
Member

I think I understand what the issue is. Base packages like base-files, libc, and kernel are versioned and added to the requested list of packages at the end. So the version not being reset doesn't affect them as all of them are versioned. However, if there theoretically was an unversioned package after them it would have the previous version.

That is to say, this is not breaking anything in the current setup, as this is not an intended use case, as mentioned. And I'm not sure what the point of adding a versioned constraint to world aside from the base packages is.

But with a proper testing, commit subject, and description with the explanation of the problem this could be added. Or... perhaps the opposite of not allowing versioned user-supplied packages to be specified.

@robinZhao

Copy link
Copy Markdown
Author

I modified some packages and want to package them into an image.
but imagebuilder replace them to the new versions in the repository.
I think allowing this operation would provide more customization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

target/imagebuilder pull request/issue for imagebuilder target

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants