Skip to contentSkip to conversation

build: Fix missing dependency for btpclient

PATCH Applied Szymon Janc 2 participants 3 messages Feb 12, 2019 – Feb 13, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 build: Fix missing dependency for btpclient

prog_DEPENDENCIES is computed by automake only if not supplied so we must provide all dependencies if provided manually.

This resulted in random build failures:

libtool: error: cannot find the library 'lib/libbluetooth-internal.la'
or unhandled argument 'lib/libbluetooth-internal.la'
make[1]: *** [Makefile:5436: tools/btpclient] Error 1

---
 Makefile.tools | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile.tools +1 -1
index 1f8271542..0f94bbbe7 100644
@@ -471,5 +471,5 @@ noinst_PROGRAMS += tools/btpclient
 tools_btpclient_SOURCES = tools/btpclient.c src/shared/btp.c src/shared/btp.h
 tools_btpclient_LDADD = lib/libbluetooth-internal.la \
 				src/libshared-ell.la $(ell_ldadd)
-tools_btpclient_DEPENDENCIES = $(ell_dependencies)
+tools_btpclient_DEPENDENCIES = lib/libbluetooth-internal.la $(ell_dependencies)
 endif
Signature · 1 line
2.20.1
#1 lore raw

PATCH 2/2 gitignore: Fix bluetooth-meshd name

meshd was renamed to bluetooth-meshd

---
 .gitignore | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.gitignore +1 -1
index d145ccdcd..68bbbf780 100644
@@ -129,7 +129,7 @@ emulator/b1ee
 emulator/hfp
 client/bluetoothctl
 tools/meshctl
-mesh/meshd
+mesh/bluetooth-meshd
 
 src/bluetoothd.8
 src/bluetooth.service
Signature · 1 line
2.20.1
maintainer Applied
#2 lore raw
In reply to Szymon Janc

Hi Szymon,

Quoted 25 lines · Szymon Janc

prog_DEPENDENCIES is computed by automake only if not supplied so we must provide all dependencies if provided manually.

This resulted in random build failures:

libtool: error: cannot find the library 'lib/libbluetooth-internal.la'
or unhandled argument 'lib/libbluetooth-internal.la'
make[1]: *** [Makefile:5436: tools/btpclient] Error 1

---
 Makefile.tools | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile.tools +1 -2
index 1f8271542..0f94bbbe7 100644
@@ -471,5 +471,5 @@ noinst_PROGRAMS += tools/btpclient
 tools_btpclient_SOURCES = tools/btpclient.c src/shared/btp.c src/shared/btp.h
 tools_btpclient_LDADD = lib/libbluetooth-internal.la \
                                src/libshared-ell.la $(ell_ldadd)
-tools_btpclient_DEPENDENCIES = $(ell_dependencies)
+tools_btpclient_DEPENDENCIES = lib/libbluetooth-internal.la $(ell_dependencies)
 endif
--
Quoted 1 line

2.20.1

Applied.

Signature · 1 line
Luiz Augusto von Dentz