Skip to contentSkip to conversation

package/trousers: needs host-pkgconf

PATCH New Romain Naour 2 participants 3 messages Aug 21, 2016 – Aug 22, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/trousers: needs host-pkgconf

Otherwise the build fail with this error:
configure.in:53: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation.
configure.in:95: error: possibly undefined macro: AM_CONDITIONAL

Also, there is a PKG_CHECK_MODULES used for GTK.

---
 package/trousers/trousers.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/trousers/trousers.mk +1 -1
index be6ce39..3d9e0ba 100644
@@ -12,7 +12,7 @@ TROUSERS_LICENSE_FILES = LICENSE
 TROUSERS_INSTALL_STAGING = YES
 # Need autoreconf because of a patch touching configure.in and Makefile.am
 TROUSERS_AUTORECONF = YES
-TROUSERS_DEPENDENCIES = openssl
+TROUSERS_DEPENDENCIES = host-pkgconf openssl
 
 ifeq ($(BR2_PACKAGE_LIBICONV),y)
 TROUSERS_DEPENDENCIES += libiconv
Signature · 1 line
2.5.5
#1 lore raw

PATCH 2/2 package/trousers: fix musl build

The musl libc doesn't provide <bits/local_lim.h>, use <limits.h> instead.

Fixes:
http://autobuild.buildroot.net/results/f71/f71edcf08f31029ef642415b8351ed14767c8e0e

---
 ..._param-include-limits.h-to-fix-musl-build.patch | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 package/trousers/0003-tsp_tcsi_param-include-limits.h-to-fix-musl-build.patch
package/trousers/0003-tsp_tcsi_param-include-limits.h-to-fix-musl-build.patch new file +29 -0
new file mode 100644
index 0000000..f88e47a
@@ -0,0 +1,29 @@
+From 66bbe0a87818a1e3c721780dc33b2d81fdf4a774 Mon Sep 17 00:00:00 2001
+From: Romain Naour <[email protected]>
+Date: Sun, 21 Aug 2016 23:32:10 +0200
+Subject: [PATCH] tsp_tcsi_param: include limits.h to fix musl build
+
+The musl libc doesn't provide <bits/local_lim.h>, use <limits.h>
+instead.
+
+Signed-off-by: Romain Naour <[email protected]>
+---
+ src/tspi/tsp_tcsi_param.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/tspi/tsp_tcsi_param.c b/src/tspi/tsp_tcsi_param.c
+index 670f86f..8f2b4e4 100644
+--- a/src/tspi/tsp_tcsi_param.c
++++ b/src/tspi/tsp_tcsi_param.c
+@@ -11,7 +11,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <stdio.h>
+-#include <bits/local_lim.h>
++#include <limits.h>
+ #include "trousers/tss.h"
+ #include "trousers/trousers.h"
+ #include "trousers_types.h"
+-- 
+2.5.5
+
Signature · 1 line
2.5.5
#2 lore raw

PATCH 1/2 package/trousers: needs host-pkgconf

In reply to Romain Naour

Hello,

Quoted 6 lines · Romain Naour

Otherwise the build fail with this error:
configure.in:53: error: possibly undefined macro: AC_MSG_ERROR
If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation.
configure.in:95: error: possibly undefined macro: AM_CONDITIONAL

Quoted 6 lines

Also, there is a PKG_CHECK_MODULES used for GTK.

---
 package/trousers/trousers.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Both applied to master, thanks! Please don't forget to send the <limits.h> build fix upstream!

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com