Bug 12326 - network-manager build fails with missing glib error
Summary: network-manager build fails with missing glib error
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-18 19:06 UTC by Christian Stewart
Modified: 2019-12-01 21:34 UTC (History)
1 user (show)

See Also:
Host: Ubuntu 16.04.6 LTS
Target: x86
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Stewart 2019-11-18 19:06:45 UTC
Buildroot 2019.11-rc1
Network Manager 1.20.4
Ubuntu 16.04.6 LTS Virtual Machine (on DigitalOcean)

Build fails on network manager with:

configure: error: Package requirements (gio-unix-2.0 >= 2.40 gmodule-2.0) were not met:

Package 'gio-unix-2.0', required by 'virtual:world', not found
Package 'gmodule-2.0', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Reproduced on a colleague's desktop Ubuntu setup as well. Issue does not occur on earlier versions of Buildroot.

Defconfig:

BR2_x86_64=y
BR2_x86_corei7=y
BR2_CCACHE=y
BR2_OPTIMIZE_2=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_KERNEL_HEADERS_5_3=y
BR2_BINUTILS_VERSION_2_32_X=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_GCC_ENABLE_LTO=y
BR2_GCC_ENABLE_GRAPHITE=y
BR2_INIT_SYSTEMD=y
BR2_SYSTEM_BIN_SH_BASH=y
BR2_ENABLE_LOCALE_WHITELIST="C en_US en_US.UTF-8"
BR2_GENERATE_LOCALE="en_US.UTF-8"
BR2_PACKAGE_NETWORK_MANAGER=y
Comment 1 Christian Stewart 2019-11-18 19:20:04 UTC
I can confirm that this is fixed by reverting commit:

  package/network-manager: drop obsolete dependencies
  7643ab05de860011e749aa720c92d5de150bee0a

The commit incorrectly drops some dependencies that NetworkManager requires, particularly glib. If I knew specifically which dependencies were required, I would / will submit a patch.
Comment 2 Thomas Petazzoni 2019-11-28 18:56:58 UTC
I have submitted http://patchwork.ozlabs.org/patch/1201823/ to fix this.
Comment 3 Peter Korsgaard 2019-12-01 21:34:10 UTC
Merged for 2019.11, thanks