Skip to content

imagebuilder: package_whatdepends and package_depends fixes - #17022

Merged
openwrt-bot merged 2 commits into
openwrt:mainfrom
robimarko:apk-package-depends
Nov 20, 2024
Merged

openwrt-bot merged 2 commits into
openwrt:mainfrom
robimarko:apk-package-depends

Conversation

@robimarko

Copy link
Copy Markdown
Contributor

It seems that package_whatdepends for OPKG got broken when APK was being added and package_depends for APK support never worked, so this PR provides fixes for them.

package_whatdepends for OPKG is broken in 24.10 as well so I plan to backport it there as well.

@github-actions github-actions Bot added the target/imagebuilder pull request/issue for imagebuilder target label Nov 19, 2024
Currently trying to use the 'package_depends' feature of ImageBuilder will
result in it trying to call OPKG:
make package_depends PACKAGE="usbutils"
OK: 26 MiB in 142 packages
bash: line 1: openwrt-imagebuilder-qualcommax-ipq807x.Linux-x86_64/staging_dir/host/bin/opkg: No such file or directory
make: *** [Makefile:363: package_depends] Error 127

It looks like a copy/paste error when APK support was being added, so lets
fix it by calling APK and its "info --depends" command.

Fixes: openwrt#16996
Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
Trying to use 'package_whatdepends' feature of the ImageBuilder with OPKG
will currently fail as OPKG does not support "list --depends" call at all,
it seems that this is a mixup from the original APK support commit.

So, lets restore 'package_whatdepends' support for OPKG by calling
"whatdepends -A" instead as we used to before APK support.

Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
@openwrt-bot
openwrt-bot merged commit 52519a5 into openwrt:main Nov 20, 2024
@robimarko

Copy link
Copy Markdown
Contributor Author

Thanks! Rebased on top of main and merged!

@robimarko
robimarko deleted the apk-package-depends branch November 20, 2024 08:49
openwrt-bot pushed a commit that referenced this pull request Nov 20, 2024
Trying to use 'package_whatdepends' feature of the ImageBuilder with OPKG
will currently fail as OPKG does not support "list --depends" call at all,
it seems that this is a mixup from the original APK support commit.

So, lets restore 'package_whatdepends' support for OPKG by calling
"whatdepends -A" instead as we used to before APK support.

Fixes: d788ab3 ("build: add APK package build capabilities")
Link: #17022
Signed-off-by: Robert Marko <[email protected]>
(cherry picked from commit 52519a5)
vincejv pushed a commit to vincejv/openwrt that referenced this pull request Nov 20, 2024
Currently trying to use the 'package_depends' feature of ImageBuilder will
result in it trying to call OPKG:
make package_depends PACKAGE="usbutils"
OK: 26 MiB in 142 packages
bash: line 1: openwrt-imagebuilder-qualcommax-ipq807x.Linux-x86_64/staging_dir/host/bin/opkg: No such file or directory
make: *** [Makefile:363: package_depends] Error 127

It looks like a copy/paste error when APK support was being added, so lets
fix it by calling APK and its "info --depends" command.

Fixes: openwrt#16996
Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
vincejv pushed a commit to vincejv/openwrt that referenced this pull request Nov 20, 2024
Trying to use 'package_whatdepends' feature of the ImageBuilder with OPKG
will currently fail as OPKG does not support "list --depends" call at all,
it seems that this is a mixup from the original APK support commit.

So, lets restore 'package_whatdepends' support for OPKG by calling
"whatdepends -A" instead as we used to before APK support.

Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
vincejv pushed a commit to vincejv/openwrt that referenced this pull request Nov 20, 2024
Currently trying to use the 'package_depends' feature of ImageBuilder will
result in it trying to call OPKG:
make package_depends PACKAGE="usbutils"
OK: 26 MiB in 142 packages
bash: line 1: openwrt-imagebuilder-qualcommax-ipq807x.Linux-x86_64/staging_dir/host/bin/opkg: No such file or directory
make: *** [Makefile:363: package_depends] Error 127

It looks like a copy/paste error when APK support was being added, so lets
fix it by calling APK and its "info --depends" command.

Fixes: openwrt#16996
Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
vincejv pushed a commit to vincejv/openwrt that referenced this pull request Nov 20, 2024
Trying to use 'package_whatdepends' feature of the ImageBuilder with OPKG
will currently fail as OPKG does not support "list --depends" call at all,
it seems that this is a mixup from the original APK support commit.

So, lets restore 'package_whatdepends' support for OPKG by calling
"whatdepends -A" instead as we used to before APK support.

Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
sendurai pushed a commit to sendurai/openwrt that referenced this pull request Nov 21, 2024
Currently trying to use the 'package_depends' feature of ImageBuilder will
result in it trying to call OPKG:
make package_depends PACKAGE="usbutils"
OK: 26 MiB in 142 packages
bash: line 1: openwrt-imagebuilder-qualcommax-ipq807x.Linux-x86_64/staging_dir/host/bin/opkg: No such file or directory
make: *** [Makefile:363: package_depends] Error 127

It looks like a copy/paste error when APK support was being added, so lets
fix it by calling APK and its "info --depends" command.

Fixes: openwrt#16996
Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
sendurai pushed a commit to sendurai/openwrt that referenced this pull request Nov 21, 2024
Trying to use 'package_whatdepends' feature of the ImageBuilder with OPKG
will currently fail as OPKG does not support "list --depends" call at all,
it seems that this is a mixup from the original APK support commit.

So, lets restore 'package_whatdepends' support for OPKG by calling
"whatdepends -A" instead as we used to before APK support.

Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
sendurai added a commit to sendurai/openwrt that referenced this pull request Nov 21, 2024
Add support for DAP-1620 Revision A hardware. The original firmware has dual image, one primary and another for recovery. This version supports using only single image due to size limitations. Recovery and restore can be done using the U-Boot menu on device startup (serial port) and writing the image using option 2. Full backup of the Nand is recommended before installing in case the original partitions are to be restored in future. Full details will be updated in device wiki page.

Signed-off-by: Senthil Durairaj <[email protected]>

imagebuilder: fix APK package_depends support

Currently trying to use the 'package_depends' feature of ImageBuilder will
result in it trying to call OPKG:
make package_depends PACKAGE="usbutils"
OK: 26 MiB in 142 packages
bash: line 1: openwrt-imagebuilder-qualcommax-ipq807x.Linux-x86_64/staging_dir/host/bin/opkg: No such file or directory
make: *** [Makefile:363: package_depends] Error 127

It looks like a copy/paste error when APK support was being added, so lets
fix it by calling APK and its "info --depends" command.

Fixes: openwrt#16996
Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>

imagebuilder: fix OPKG package_whatdepends support

Trying to use 'package_whatdepends' feature of the ImageBuilder with OPKG
will currently fail as OPKG does not support "list --depends" call at all,
it seems that this is a mixup from the original APK support commit.

So, lets restore 'package_whatdepends' support for OPKG by calling
"whatdepends -A" instead as we used to before APK support.

Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>

ramips: mt7620: add support for Dlink DAP-1620-A2

Add support for DAP-1620 Revision A hardware. The original firmware has dual image, one primary and another for recovery. This version supports using only single image due to size limitations. Recovery and restore can be done using the U-Boot menu on device startup (serial port) and writing the image using option 2. Full backup of the Nand is recommended before installing in case the original partitions are to be restored in future. Full details will be updated in device wiki page.
jacksonhansen41 pushed a commit to jacksonhansen41/openwrt that referenced this pull request Nov 22, 2024
Trying to use 'package_whatdepends' feature of the ImageBuilder with OPKG
will currently fail as OPKG does not support "list --depends" call at all,
it seems that this is a mixup from the original APK support commit.

So, lets restore 'package_whatdepends' support for OPKG by calling
"whatdepends -A" instead as we used to before APK support.

Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
(cherry picked from commit 52519a5)
liudf0716 pushed a commit to liudf0716/openwrt that referenced this pull request Dec 5, 2024
Currently trying to use the 'package_depends' feature of ImageBuilder will
result in it trying to call OPKG:
make package_depends PACKAGE="usbutils"
OK: 26 MiB in 142 packages
bash: line 1: openwrt-imagebuilder-qualcommax-ipq807x.Linux-x86_64/staging_dir/host/bin/opkg: No such file or directory
make: *** [Makefile:363: package_depends] Error 127

It looks like a copy/paste error when APK support was being added, so lets
fix it by calling APK and its "info --depends" command.

Fixes: openwrt#16996
Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
Vladdrako pushed a commit to Vladdrako/openwrt that referenced this pull request Dec 11, 2024
Currently trying to use the 'package_depends' feature of ImageBuilder will
result in it trying to call OPKG:
make package_depends PACKAGE="usbutils"
OK: 26 MiB in 142 packages
bash: line 1: openwrt-imagebuilder-qualcommax-ipq807x.Linux-x86_64/staging_dir/host/bin/opkg: No such file or directory
make: *** [Makefile:363: package_depends] Error 127

It looks like a copy/paste error when APK support was being added, so lets
fix it by calling APK and its "info --depends" command.

Fixes: openwrt#16996
Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
Vladdrako pushed a commit to Vladdrako/openwrt that referenced this pull request Dec 11, 2024
Trying to use 'package_whatdepends' feature of the ImageBuilder with OPKG
will currently fail as OPKG does not support "list --depends" call at all,
it seems that this is a mixup from the original APK support commit.

So, lets restore 'package_whatdepends' support for OPKG by calling
"whatdepends -A" instead as we used to before APK support.

Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
rmandrad pushed a commit to rmandrad/openwrt that referenced this pull request Dec 30, 2024
Currently trying to use the 'package_depends' feature of ImageBuilder will
result in it trying to call OPKG:
make package_depends PACKAGE="usbutils"
OK: 26 MiB in 142 packages
bash: line 1: openwrt-imagebuilder-qualcommax-ipq807x.Linux-x86_64/staging_dir/host/bin/opkg: No such file or directory
make: *** [Makefile:363: package_depends] Error 127

It looks like a copy/paste error when APK support was being added, so lets
fix it by calling APK and its "info --depends" command.

Fixes: openwrt#16996
Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
rmandrad pushed a commit to rmandrad/openwrt that referenced this pull request Dec 30, 2024
Trying to use 'package_whatdepends' feature of the ImageBuilder with OPKG
will currently fail as OPKG does not support "list --depends" call at all,
it seems that this is a mixup from the original APK support commit.

So, lets restore 'package_whatdepends' support for OPKG by calling
"whatdepends -A" instead as we used to before APK support.

Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
M3m3M4n pushed a commit to M3m3M4n/openwrt that referenced this pull request Feb 16, 2025
Currently trying to use the 'package_depends' feature of ImageBuilder will
result in it trying to call OPKG:
make package_depends PACKAGE="usbutils"
OK: 26 MiB in 142 packages
bash: line 1: openwrt-imagebuilder-qualcommax-ipq807x.Linux-x86_64/staging_dir/host/bin/opkg: No such file or directory
make: *** [Makefile:363: package_depends] Error 127

It looks like a copy/paste error when APK support was being added, so lets
fix it by calling APK and its "info --depends" command.

Fixes: openwrt#16996
Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
M3m3M4n pushed a commit to M3m3M4n/openwrt that referenced this pull request Feb 16, 2025
Trying to use 'package_whatdepends' feature of the ImageBuilder with OPKG
will currently fail as OPKG does not support "list --depends" call at all,
it seems that this is a mixup from the original APK support commit.

So, lets restore 'package_whatdepends' support for OPKG by calling
"whatdepends -A" instead as we used to before APK support.

Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
maurerr pushed a commit to maurerr/openwrt that referenced this pull request Apr 9, 2025
Currently trying to use the 'package_depends' feature of ImageBuilder will
result in it trying to call OPKG:
make package_depends PACKAGE="usbutils"
OK: 26 MiB in 142 packages
bash: line 1: openwrt-imagebuilder-qualcommax-ipq807x.Linux-x86_64/staging_dir/host/bin/opkg: No such file or directory
make: *** [Makefile:363: package_depends] Error 127

It looks like a copy/paste error when APK support was being added, so lets
fix it by calling APK and its "info --depends" command.

Fixes: openwrt#16996
Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
maurerr pushed a commit to maurerr/openwrt that referenced this pull request Apr 9, 2025
Trying to use 'package_whatdepends' feature of the ImageBuilder with OPKG
will currently fail as OPKG does not support "list --depends" call at all,
it seems that this is a mixup from the original APK support commit.

So, lets restore 'package_whatdepends' support for OPKG by calling
"whatdepends -A" instead as we used to before APK support.

Fixes: d788ab3 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
LuisMitaHL pushed a commit to LuisMitaHL/LooperWrt that referenced this pull request Sep 21, 2026
Currently trying to use the 'package_depends' feature of ImageBuilder will
result in it trying to call OPKG:
make package_depends PACKAGE="usbutils"
OK: 26 MiB in 142 packages
bash: line 1: openwrt-imagebuilder-qualcommax-ipq807x.Linux-x86_64/staging_dir/host/bin/opkg: No such file or directory
make: *** [Makefile:363: package_depends] Error 127

It looks like a copy/paste error when APK support was being added, so lets
fix it by calling APK and its "info --depends" command.

Fixes: openwrt#16996
Fixes: 5076f34 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
LuisMitaHL pushed a commit to LuisMitaHL/LooperWrt that referenced this pull request Sep 21, 2026
Trying to use 'package_whatdepends' feature of the ImageBuilder with OPKG
will currently fail as OPKG does not support "list --depends" call at all,
it seems that this is a mixup from the original APK support commit.

So, lets restore 'package_whatdepends' support for OPKG by calling
"whatdepends -A" instead as we used to before APK support.

Fixes: 5076f34 ("build: add APK package build capabilities")
Link: openwrt#17022
Signed-off-by: Robert Marko <[email protected]>
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.

2 participants