modemmanager: avoid requiring autoreconf to build package
authorAleksander Morgado <redacted>
Tue, 28 Jul 2020 13:51:42 +0000 (15:51 +0200)
committerAleksander Morgado <redacted>
Thu, 30 Jul 2020 07:32:17 +0000 (09:32 +0200)
commit735eb02d04a24dcb7743ae6333d07ea8a42e4885
treed2770c3add84236b60154d3e601e062492416466
parentf593e263cda0d0d62e1f33568c96af2f65ee56c1
modemmanager: avoid requiring autoreconf to build package

Do not manually overwrite the paths of gdbus-codegen or glib-mkenums
in the ModemManager package build, as modifying the configure.ac ends
up requiring a full autoreconf.

Since MM 1.14, git builds or autoreconf-ed source package builds
require autoconf-archive installed in the build system, and so the
build would fail if this happens.

The update to overwrite the paths was to force using the gdbus-codegen
and glib-mkenums provided by the "host" glib2 package instead of the
"target" glib2 package (see fa8ad6e69c41d694b1220e04ec4f45bb8e8c1edf),
but these tools are really the same in both as they're python
programs, arch independent.

Tested in a local build where the setup detects and uses the correct
glib tool paths from the target:
  /home/user/openwrt/staging_dir/target-mips_24kc_musl/usr/bin/gdbus-codegen
  /home/user/openwrt/staging_dir/target-mips_24kc_musl/usr/bin/glib-mkenums

Fixes https://github.com/openwrt/packages/issues/12958

Signed-off-by: Aleksander Morgado <redacted>
net/modemmanager/Makefile
git clone https://git.99rst.org/PROJECT