libremesh / lime-packages

LibreMesh packages configuring OpenWrt for wireless mesh networking
https://libremesh.org/
GNU Affero General Public License v3.0
274 stars 94 forks source link

lime-system: rename /lib/upgrade/keep.d/dropbear to /lib/upgrade/keep.d/dropbear-full #1090

Closed a-gave closed 4 months ago

a-gave commented 4 months ago

Trying to rebuild libremesh master based on openwrt master

I get the following errors:
Collected errors:
 * check_data_file_clashes: Package lime-system wants to install file /home/antennine/openwrt_build/snapshot/openwrt/build_dir/target-x86_64_musl/root-x86/lib/upgrade/keep.d/dropbear
    But that file is already provided by package  * dropbear
 * opkg_install_cmd: Cannot install package babeld-auto-gw-mode.
 * check_data_file_clashes: Package lime-system wants to install file /home/antennine/openwrt_build/snapshot/openwrt/build_dir/target-x86_64_musl/root-x86/lib/upgrade/keep.d/dropbear
    But that file is already provided by package  * dropbear
 * opkg_install_cmd: Cannot install package check-internet.
 * check_data_file_clashes: Package lime-system wants to install file /home/antennine/openwrt_build/snapshot/openwrt/build_dir/target-x86_64_musl/root-x86/lib/upgrade/keep.d/dropbear
    But that file is already provided by package  * dropbear
 * opkg_install_cmd: Cannot install package lime-app.
 * check_data_file_clashes: Package lime-system wants to install file /home/antennine/openwrt_build/snapshot/openwrt/build_dir/target-x86_64_musl/root-x86/lib/upgrade/keep.d/dropbear
    But that file is already provided by package  * dropbear
 * opkg_install_cmd: Cannot install package lime-hwd-ground-routing.
 * check_data_file_clashes: Package lime-system wants to install file /home/antennine/openwrt_build/snapshot/openwrt/build_dir/target-x86_64_musl/root-x86/lib/upgrade/keep.d/dropbear
    But that file is already provided by package  * dropbear
 * opkg_install_cmd: Cannot install package lime-hwd-openwrt-wan.
 * check_data_file_clashes: Package lime-system wants to install file /home/antennine/openwrt_build/snapshot/openwrt/build_dir/target-x86_64_musl/root-x86/lib/upgrade/keep.d/dropbear
    But that file is already provided by package  * dropbear
 * opkg_install_cmd: Cannot install package lime-proto-anygw.
 * check_data_file_clashes: Package lime-system wants to install file /home/antennine/openwrt_build/snapshot/openwrt/build_dir/target-x86_64_musl/root-x86/lib/upgrade/keep.d/dropbear
    But that file is already provided by package  * dropbear
 * opkg_install_cmd: Cannot install package lime-proto-batadv.
 * check_data_file_clashes: Package lime-system wants to install file /home/antennine/openwrt_build/snapshot/openwrt/build_dir/target-x86_64_musl/root-x86/lib/upgrade/keep.d/dropbear
    But that file is already provided by package  * dropbear
 * opkg_install_cmd: Cannot install package lime-system.
 * check_data_file_clashes: Package lime-system wants to install file /home/antennine/openwrt_build/snapshot/openwrt/build_dir/target-x86_64_musl/root-x86/lib/upgrade/keep.d/dropbear
    But that file is already provided by package  * dropbear
 * opkg_install_cmd: Cannot install package shared-state-bat_hosts.
 * check_data_file_clashes: Package lime-system wants to install file /home/antennine/openwrt_build/snapshot/openwrt/build_dir/target-x86_64_musl/root-x86/lib/upgrade/keep.d/dropbear
    But that file is already provided by package  * dropbear
 * opkg_install_cmd: Cannot install package profile-libremesh-suggested-packages.
make[2]: *** [package/Makefile:70: package/install] Error 255
make[2]: Leaving directory '/home/antennine/openwrt_build/snapshot/openwrt'
make[1]: *** [package/Makefile:123: /home/antennine/openwrt_build/snapshot/openwrt/staging_dir/target-x86_64_musl/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/antennine/openwrt_build/snapshot/openwrt'
make: *** [/home/antennine/openwrt_build/snapshot/openwrt/include/toplevel.mk:233: world] Error 2

lime-system now fails to compile trying to add the file /lib/upgrade/keep.d/dropbear

This rename /lib/upgrade/keep.d/dropbear to /lib/upgrade/keep.d/dropbear-full to avoid the conflict with the file added by the package dropbear.

ilario commented 4 months ago

Oooh, does it happen with OpenWrt 23? Can you copy and paste here the content of the file provided by Dropbear? I cannot find it online :/

a-gave commented 4 months ago

Oooh, does it happen with OpenWrt 23?

This did not happen with openwrt-23.05.2

Can you copy and paste here the content of the file provided by Dropbear? I cannot find it online :/

Sure, this section conffiles is then copied to /lib/upgrade/keep.d/dropbear: https://github.com/openwrt/openwrt/blob/55c7b2cdaf827a4045320f944d73a168cad6bfb7/package/network/services/dropbear/Makefile#L73:L77