packages icon indicating copy to clipboard operation
packages copied to clipboard

gammu: [FIX?] `package/install` fails with missing dependencies `bluez-libs` and `libpq` and architecture incompatibility (build for `sunxi_cortexa7`) in 22.03.

Open dreirund opened this issue 1 year ago • 1 comments

Maintainer:

@aTanW

Environment:

  • Building for Xunlog OrangePi Plus (sun8i):
    grep ^CONFIG_TARGET .config:
    CONFIG_TARGET_sunxi=y
    CONFIG_TARGET_sunxi_cortexa7=y
    CONFIG_TARGET_sunxi_cortexa7_DEVICE_xunlong_orangepi-plus=y
    CONFIG_TARGET_BOARD="sunxi"
    CONFIG_TARGET_SUBTARGET="cortexa7"
    CONFIG_TARGET_PROFILE="DEVICE_xunlong_orangepi-plus"
    CONFIG_TARGET_ARCH_PACKAGES="arm_cortex-a7_neon-vfpv4"
    [...]
    
  • OpenWrt version:
    • Git branch openwrt-22.03 from git://git.openwrt.org/openwrt/openwrt.git,
    • initially checked out on 2022-07-05,
    • latest git pull and ./scripts/feeds update -a && ./scripts/feeds update -a on 2022-07-29, ca. 09:00 UTC
      (I give up on posting latest commit date and hash, since git log gives me some old dates, and I don't know how I can make git log printing out the last operation. I don't know much about git.)
  • Building on GNU/Linux on x86_64-architecture (Distribution: → Artix Linux).
  • OpenWrt configuration: → .config,
  • grep -i gammu .config:
    CONFIG_PACKAGE_gammu=y
    
  • grep -i bluez-libs .config:
    CONFIG_PACKAGE_bluez-libs=m
    
  • grep -i libpq .config:
    CONFIG_PACKAGE_libpq=m
    # CONFIG_PACKAGE_libpqxx is not set
    

Description:

make -j6 fails in above configuration on package/install. An explicit run of
make -j1 V=sc
fails with dependency and architecture compatibility errors for gammu:

[...]
 * pkg_hash_check_unresolved: cannot find dependency bluez-libs for gammu
 * pkg_hash_check_unresolved: cannot find dependency libpq for gammu
 * pkg_hash_fetch_best_installation_candidate: Packages for gammu found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package gammu.
[...]
More `make -j1 V=sc` output context (*click* to open):
[...]
make[3]: Entering directory '/[...]/openwrt-22.03/feeds/packages/utils/gammu'
mkdir -p /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-sunxi/stamp
SHELL= flock /[...]/openwrt-22.03/tmp/.root-copy.flock -c 'cp -fpR /[...]/openwrt-22.03/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/gammu-1.42.0/.pkgdir/gammu/. /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-sunxi/'
touch /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-sunxi/stamp/.gammu_installed
echo "gammu" >> /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/pkginfo/gammu.default.install
make[3]: Leaving directory '/[...]/openwrt-22.03/feeds/packages/utils/gammu'
time: package/feeds/packages/gammu/compile#0.53#0.23#0.80
[...]
Installing libpng (1.6.37-11) to root...
Installing libfuse1 (2.9.9-2) to root...
Unknown package 'gammu'.
Package glib2 (2.70.5-4) installed in root is up to date.
Installing libopenssl-gost_engine (1.1.0.3-5) to root...
[...]
Configuring kmod-ipt-offload.
Configuring luci-app-olsr-viz.
Configuring Collected errors:
 * pkg_hash_check_unresolved: cannot find dependency kmod-of-mdio for kmod-usb-net-lan78xx
 * pkg_hash_fetch_best_installation_candidate: Packages for kmod-usb-net-lan78xx found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package kmod-usb-net-lan78xx.
 * resolve_conffiles: Existing conffile /[...]/openwrt-22.03/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-sunxi/etc/ppp/chap-secrets is different from the conffile in the new package. The new conffile will be placed at /[...]/openwrt-22.03/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-sunxi/etc/ppp/chap-secrets-opkg.
 * pkg_hash_check_unresolved: cannot find dependency bluez-libs for gammu
 * pkg_hash_check_unresolved: cannot find dependency libpq for gammu
 * pkg_hash_fetch_best_installation_candidate: Packages for gammu found, but incompatible with the architectures configured
 * opkg_install_cmd: Cannot install package gammu.
collectd-mod-thermal.
Configuring gdisk.
Configuring kmod-netatop.
[...]
Configuring collectd-mod-snmp6.
Configuring luci-proto-ncm.
make[2]: *** [package/Makefile:70: package/install] Error 255
make[2]: Leaving directory '/[...]/openwrt-22.03'
make[1]: *** [package/Makefile:111: /[...]/openwrt-22.03/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_install] Error 2
make[1]: Leaving directory '/[...]/openwrt-22.03'
make: *** [/[...]/openwrt-22.03/include/toplevel.mk:230: world] Error 2

→ Full make output.

dreirund avatar Aug 02 '22 09:08 dreirund

… it seems to be missing dependencies on PACKAGE_bluez-libs and PACKAGE_libpq:
If I manually set CONFIG_PACKAGE_bluez-libs=y and CONFIG_PACKAGE_libpq=y (or CONFIG_PACKAGE_gammu=m instead of =y) it package/installs fine.

dreirund avatar Aug 02 '22 10:08 dreirund

Duplicate of #19279.

dreirund avatar Aug 29 '22 11:08 dreirund