#17991: Subtarget is possibly ignored in /etc/opkg.conf for snapshots
----------------------------+----------------------------------
Reporter: hnyman | Owner: developers
Type: defect | Status: new
Priority: high | Milestone: Chaos Calmer (trunk)
Component: packages | Version: Trunk
Keywords: opkg subtarget |
----------------------------+----------------------------------
A forum discussion brought into my attention a possible mismatch between
the snapshot package storage and the default opkg.conf.
https://forum.openwrt.org/viewtopic.php?id=52963
>> I found the solution was to change the URLs to download from because
the wnd3700v4 files are stored in a directory called ./ar71xx.nand not
./ar71xx.
Apparently /etc/opkg.conf points to the TARGET/packages, while packages
should be fetched from TARGET.SUBTARGET/packages
opkg.conf is created here:
https://dev.openwrt.org/browser/trunk/package/system/opkg/Makefile#L108
echo "src/gz %n_$$$$d %U/$$$$d" >> $(1)/etc/opkg.conf; \
version.mk defines %U here:
https://dev.openwrt.org/browser/trunk/include/version.mk#L33
VERSION_REPO:=$(if
$(VERSION_REPO),$(VERSION_REPO),http://downloads.openwrt.org/snapshots/trunk/%T/packages)
If I understand version.mk right, %T is just the target, e.g. "ar71xx".
So, opkg.conf will point to .../ar71xx/packages
However, with trunk snapshots the packages for the "nand" subtarget are
currently stored in "ar71xx.nand" directory.
https://downloads.openwrt.org/snapshots/trunk/ar71xx.nand/packages/
Similat directory structure seems to be applied for all subtargets in
https://downloads.openwrt.org/snapshots/trunk/
version.mk defines %S for handling the subtarget in format
"target/subtarget" or "target/generic", but I do not see any string to
create "target.subtarget" like buildbot snapshots are stored currently.
If I have understood this correctly, the bug concerns all subtargets and
gets visible when trying to install kernel packages, as then the checksum
check fails (as it is applied to the main target's packages). Installing
normal packages may succeed, as the packages found from the main target's
directory can be installed.
(I have not verified this in a build system, but just looked at the
discussion and the source files.)
Ps.
I am not sure how the final BB14.07 will store packages. But the bug may
be visible also there.
--
Ticket URL: <https://dev.openwrt.org/ticket/17991>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets