mystified by ssh conflict
In my various attempts to get some image to build, I'm back to working on my build server (vs an Ubuntu 18.04LTS EC2), as I confirmed that it wasn't a local issue that was causing me troubles. I correct what I think is a problem in include/kernel.mk which I will post about in another issue.
But, I continue to get this:
Collected errors:
* satisfy_dependencies_for: Cannot satisfy the following dependencies for foris-controller-ssbackups-module:
* ssbackups
* opkg_install_cmd: Cannot install package foris-controller-ssbackups-module.
* pkg_alternatives_update_path: /ssw/projects/cerowrt/turris-build/build/build_dir/target-arm_cortex- a9+vfpv3_musl_eabi/root-mvebu/usr/bin/ssh exists but is not a symlink
* pkg_alternatives_update_path: /ssw/projects/cerowrt/turris-build/build/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/root-mvebu/usr/bin/scp exists but is not a symlink
This is with HKB of turris-build. I have examined the foris-controller-ssbackups-module package, and I can't see why it would be attempting to install a /usr/bin/ssh.
I see openssh-clients in the module install list. I ran the list of packages being installed through a script to extract the list of things being installed, and I get: herring-cerowrt/turris-build/build mcr 7451 %cat packagelist.txt | xargs ipklist | grep usr/bin/ssh /ssw/projects/cerowrt/turris-build/build/bin/packages/arm_cortex-a9_vfpv3/packages/openssh-client_7.7p1-2_arm_cortex-a9_vfpv3.ipk: ./usr/bin/ssh /ssw/projects/cerowrt/turris-build/build/bin/packages/arm_cortex-a9_vfpv3/packages/openssh-client-utils_7.7p1-2_arm_cortex-a9_vfpv3.ipk: ./usr/bin/ssh-add /ssw/projects/cerowrt/turris-build/build/bin/packages/arm_cortex-a9_vfpv3/packages/openssh-client-utils_7.7p1-2_arm_cortex-a9_vfpv3.ipk: ./usr/bin/ssh-agent /ssw/projects/cerowrt/turris-build/build/bin/packages/arm_cortex-a9_vfpv3/packages/openssh-client-utils_7.7p1-2_arm_cortex-a9_vfpv3.ipk: ./usr/bin/ssh-keyscan /ssw/projects/cerowrt/turris-build/build/bin/packages/arm_cortex-a9_vfpv3/packages/openssh-client-utils_7.7p1-2_arm_cortex-a9_vfpv3.ipk: ./usr/bin/ssh-keysign /ssw/projects/cerowrt/turris-build/build/bin/packages/arm_cortex-a9_vfpv3/packages/openssh-keygen_7.7p1-2_arm_cortex-a9_vfpv3.ipk: ./usr/bin/ssh-keygen
as far as I can understand, something expects to install alternatives (a la Debian, I guess), as usr/bin/ssh and usr/bin/scp, but the openssh-client package is not playing along.
I don't find an "ssbackups" ipk, or I'd examine it's CONTROL file. It seems really be foris-controller-ssbackups.
I can't see anything in the foris-controller-ssbackups-module which would cause it to install alternatives for /usr/bin/ssh and /usr/bin/scp. In writing this, I now see the include of ../foris/foris-controller-module.mk, and the code there:
define Py3Package/$(1)/install
if [ -d $(PKG_INSTALL_DIR)/usr/bin ]; then
$(INSTALL_DIR) $$(1)/usr/bin ;
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $$(1)/usr/bin/ ;
fi
$$(call ForisControllerModule/$(1)/install,$$(1))
endef
noting the CP, and I need to find that PKG_INSTALL_DIR and make sure it is clean. I am posting this now, as I go to investigate.