Skip to contentSkip to conversation

package/collectd: fix build with luajit

PATCH New Fabrice Fontaine 2 participants 2 messages Aug 22, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/collectd: fix build with luajit

Build with luajit has been enabled with commit 911a9bf5739d94545cc482c765f876a9ff73e304 however the build fails because collectd does not find liblua

Fixes:
- http://autobuild.buildroot.org/results/31302b47fb70eb442cd000f4b9f27a9e12432cc3

---
 package/collectd/collectd.mk | 3 +++
 1 file changed, 3 insertions(+)
package/collectd/collectd.mk +3 -0
index 21da8fddc8..25ffaa7468 100644
@@ -198,6 +198,9 @@ endif
 ifeq ($(BR2_PACKAGE_LIBCURL),y)
 COLLECTD_CONF_OPTS += --with-libcurl=$(STAGING_DIR)/usr
 endif
+ifeq ($(BR2_PACKAGE_LUAJIT),y)
+COLLECTD_CONF_ENV += LIBLUA_PKG_CONFIG_NAME=luajit
+endif
 ifeq ($(BR2_PACKAGE_MYSQL),y)
 COLLECTD_CONF_OPTS += --with-libmysql=$(STAGING_DIR)/usr
 endif
Signature · 1 line
2.28.0
#1 lore raw

PATCH 1/1 package/collectd: fix build with luajit

Fabrice, All,

On 2020-08-22 15:02 +0200, Fabrice Fontaine spake thusly:

Quoted 8 lines

Build with luajit has been enabled with commit 911a9bf5739d94545cc482c765f876a9ff73e304 however the build fails because collectd does not find liblua

Fixes:
- http://autobuild.buildroot.org/results/31302b47fb70eb442cd000f4b9f27a9e12432cc3

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 25 lines
---
 package/collectd/collectd.mk | 3 +++
 1 file changed, 3 insertions(+)
package/collectd/collectd.mk +3 -0
index 21da8fddc8..25ffaa7468 100644
@@ -198,6 +198,9 @@ endif
 ifeq ($(BR2_PACKAGE_LIBCURL),y)
 COLLECTD_CONF_OPTS += --with-libcurl=$(STAGING_DIR)/usr
 endif
+ifeq ($(BR2_PACKAGE_LUAJIT),y)
+COLLECTD_CONF_ENV += LIBLUA_PKG_CONFIG_NAME=luajit
+endif
 ifeq ($(BR2_PACKAGE_MYSQL),y)
 COLLECTD_CONF_OPTS += --with-libmysql=$(STAGING_DIR)/usr
 endif
Signature · 6 lines
2.28.0

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'