toltec-dev / toolchain

Set of Docker images for cross-compiling binaries targeting the reMarkable tablet.
MIT License
34 stars 12 forks source link

opkg update no longer works #7

Closed jonahweissman closed 3 years ago

jonahweissman commented 3 years ago

In v1.3.1, if I run opkg update, I can install packages. However, in v1.3.2, opkg update exits without an error, but does not seem to actually update the package list. If I run opkg install libc, for example, it fails with * opkg_prepare_url_for_install: Couldn't find anything to satisfy 'libc' . I believe this has to do with /etc/opkg moving to $SYSROOT, since that's really all that changed between v1.3.1 and v1.3.2.

matteodelabre commented 3 years ago

Hi Jonah, thanks for the report. In 1.3.2 you need to add the --offline-root $SYSROOT flag to all opkg invocations. This change prevents opkg from trying to run the postinstall scripts of the installed packages, since they are only meant to be run on the target device. Sorry that this was not documented.

jonahweissman commented 3 years ago

Thanks! That makes sense. Do you think we should set up an alias or a wrapper script so that calls to opkg get that flag added automatically? I'm thinking it would eliminate the need to document that requirement and would keep recipes less verbose.

matteodelabre commented 3 years ago

That’s a good point, but we’d probably need to document the fact that maintainer scripts are not invoked anyway.

matteodelabre commented 3 years ago

Fixed in v1.4.