All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] package/gnupg2: configure script looks at the wrong stdint.h
@ 2014-09-20 20:07 Romain Naour
  2014-09-20 20:07 ` [Buildroot] [PATCH 2/3] package/gnupg2: add bzip2 optional dependency Romain Naour
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Romain Naour @ 2014-09-20 20:07 UTC (permalink / raw)
  To: buildroot

The configure test "checking absolute name of <stdint.h>..." return
the absolute path of a stdint.h file from the toolchain sources.

The contents of this file is completely different and obviously
does not contain intmax_t definitions.

Use gl_cv_absolute_stdint_h to indicate the correct file that
is in staging directory.

Fixes:
http://autobuild.buildroot.net/results/92a/92af55396670685f12ed0ebcddfe2d082ed5aeb7/

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
 package/gnupg2/gnupg2.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/gnupg2/gnupg2.mk b/package/gnupg2/gnupg2.mk
index 33b5bc0..1e3506a 100644
--- a/package/gnupg2/gnupg2.mk
+++ b/package/gnupg2/gnupg2.mk
@@ -17,7 +17,8 @@ GNUPG2_CONF_OPT = \
 	--with-libgcrypt-prefix=$(STAGING_DIR)/usr \
 	--with-libassuan-prefix=$(STAGING_DIR)/usr \
 	--with-ksba-prefix=$(STAGING_DIR)/usr \
-	--with-pth-prefix=$(STAGING_DIR)/usr
+	--with-pth-prefix=$(STAGING_DIR)/usr \
+	gl_cv_absolute_stdint_h=$(STAGING_DIR)/usr/include/stdint.h
 
 ifneq ($(BR2_PACKAGE_GNUPG2_GPGV2),y)
 define GNUPG2_REMOVE_GPGV2
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/3] package/gnupg2: add bzip2 optional dependency
  2014-09-20 20:07 [Buildroot] [PATCH 1/3] package/gnupg2: configure script looks at the wrong stdint.h Romain Naour
@ 2014-09-20 20:07 ` Romain Naour
  2014-09-20 20:07 ` [Buildroot] [PATCH 3/3] package/gnupg2: add readline " Romain Naour
  2014-09-22 22:27 ` [Buildroot] [PATCH 1/3] package/gnupg2: configure script looks at the wrong stdint.h Romain Naour
  2 siblings, 0 replies; 4+ messages in thread
From: Romain Naour @ 2014-09-20 20:07 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
 package/gnupg2/gnupg2.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/gnupg2/gnupg2.mk b/package/gnupg2/gnupg2.mk
index 1e3506a..e0c130b 100644
--- a/package/gnupg2/gnupg2.mk
+++ b/package/gnupg2/gnupg2.mk
@@ -27,4 +27,10 @@ endef
 GNUPG2_POST_INSTALL_TARGET_HOOKS += GNUPG2_REMOVE_GPGV2
 endif
 
+ifeq ($(BR2_PACKAGE_BZIP2),y)
+GNUPG2_DEPENDENCIES += bzip2
+else
+GNUPG2_CONF_OPT += --disable-bzip2
+endif
+
 $(eval $(autotools-package))
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 3/3] package/gnupg2: add readline optional dependency
  2014-09-20 20:07 [Buildroot] [PATCH 1/3] package/gnupg2: configure script looks at the wrong stdint.h Romain Naour
  2014-09-20 20:07 ` [Buildroot] [PATCH 2/3] package/gnupg2: add bzip2 optional dependency Romain Naour
@ 2014-09-20 20:07 ` Romain Naour
  2014-09-22 22:27 ` [Buildroot] [PATCH 1/3] package/gnupg2: configure script looks at the wrong stdint.h Romain Naour
  2 siblings, 0 replies; 4+ messages in thread
From: Romain Naour @ 2014-09-20 20:07 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Romain Naour <romain.naour@openwide.fr>
---
 package/gnupg2/gnupg2.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/gnupg2/gnupg2.mk b/package/gnupg2/gnupg2.mk
index e0c130b..2863618 100644
--- a/package/gnupg2/gnupg2.mk
+++ b/package/gnupg2/gnupg2.mk
@@ -33,4 +33,8 @@ else
 GNUPG2_CONF_OPT += --disable-bzip2
 endif
 
+ifeq ($(BR2_PACKAGE_READLINE),y)
+GNUPG2_DEPENDENCIES += readline
+endif
+
 $(eval $(autotools-package))
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/3] package/gnupg2: configure script looks at the wrong stdint.h
  2014-09-20 20:07 [Buildroot] [PATCH 1/3] package/gnupg2: configure script looks at the wrong stdint.h Romain Naour
  2014-09-20 20:07 ` [Buildroot] [PATCH 2/3] package/gnupg2: add bzip2 optional dependency Romain Naour
  2014-09-20 20:07 ` [Buildroot] [PATCH 3/3] package/gnupg2: add readline " Romain Naour
@ 2014-09-22 22:27 ` Romain Naour
  2 siblings, 0 replies; 4+ messages in thread
From: Romain Naour @ 2014-09-22 22:27 UTC (permalink / raw)
  To: buildroot

Hi all,

Le 20/09/2014 22:07, Romain Naour a ?crit :
> The configure test "checking absolute name of <stdint.h>..." return
> the absolute path of a stdint.h file from the toolchain sources.
> 
> The contents of this file is completely different and obviously
> does not contain intmax_t definitions.
> 
> Use gl_cv_absolute_stdint_h to indicate the correct file that
> is in staging directory.
> 
> Fixes:
> http://autobuild.buildroot.net/results/92a/92af55396670685f12ed0ebcddfe2d082ed5aeb7/
> 
> Signed-off-by: Romain Naour <romain.naour@openwide.fr>
> ---
>  package/gnupg2/gnupg2.mk | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/package/gnupg2/gnupg2.mk b/package/gnupg2/gnupg2.mk
> index 33b5bc0..1e3506a 100644
> --- a/package/gnupg2/gnupg2.mk
> +++ b/package/gnupg2/gnupg2.mk
> @@ -17,7 +17,8 @@ GNUPG2_CONF_OPT = \
>  	--with-libgcrypt-prefix=$(STAGING_DIR)/usr \
>  	--with-libassuan-prefix=$(STAGING_DIR)/usr \
>  	--with-ksba-prefix=$(STAGING_DIR)/usr \
> -	--with-pth-prefix=$(STAGING_DIR)/usr
> +	--with-pth-prefix=$(STAGING_DIR)/usr \
> +	gl_cv_absolute_stdint_h=$(STAGING_DIR)/usr/include/stdint.h
>  
>  ifneq ($(BR2_PACKAGE_GNUPG2_GPGV2),y)
>  define GNUPG2_REMOVE_GPGV2
> 

This is a weird bug...

The problem is in the configure script at line 14668:

      gl_cv_absolute_stdint_h=`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
sed -n '\#/stdint.h#{s#.*"\(.*/stdint.h\)".*#\1#;s#^/[^/]#//&#;p;q;}'`

Let's try to analyze the problem:

Here is the content of conftest.c:
cat conftest.c
#include <stdint.h>

The first part "$(eval $ac_cpp conftest.$ac_ext)" is the same as arm-linux-cpp conftest.c

Here is the stdout:
# 1 "conftest.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "conftest.c"
# 150 "conftest.c"
# 1 "/home/naourr/git/buildroot/test/gnupg/host/opt/ext-toolchain/lib/gcc/arm-buildroot-linux-uclibcgnueabi/4.8.3/include/stdint.h" 1 3 4
# 9 "/home/naourr/git/buildroot/test/gnupg/host/opt/ext-toolchain/lib/gcc/arm-buildroot-linux-uclibcgnueabi/4.8.3/include/stdint.h" 3 4
# 1 "/home/naourr/git/buildroot/test/gnupg/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/stdint.h" 1 3 4
# 26 "/home/naourr/git/buildroot/test/gnupg/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/stdint.h" 3 4
# 1 "/home/naourr/git/buildroot/test/gnupg/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/features.h" 1 3 4
# 187 "/home/naourr/git/buildroot/test/gnupg/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/features.h" 3 4
# 1 "/home/naourr/git/buildroot/test/gnupg/host/usr/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/include/bits/uClibc_config.h" 1 3 4
[...]

Then, the output of arm-linux-cpp is filtered out with the sed command in order to keep the first line containing "stdint.h"

For now, I don't know why 4.8.3/include/stdint.h is listed by arm-linux-cpp and I don't understand entirely the sed command.

I tried to autoreconf the package to rebuild the configure script but without success.

After my investigation on this problem, I found these links:
http://lists.gnupg.org/pipermail/gnupg-devel/2013-December/028116.html
http://bugs.gnupg.org/gnupg/issue1547

To be continued...

Best regards,
Romain Naour

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-09-22 22:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-20 20:07 [Buildroot] [PATCH 1/3] package/gnupg2: configure script looks at the wrong stdint.h Romain Naour
2014-09-20 20:07 ` [Buildroot] [PATCH 2/3] package/gnupg2: add bzip2 optional dependency Romain Naour
2014-09-20 20:07 ` [Buildroot] [PATCH 3/3] package/gnupg2: add readline " Romain Naour
2014-09-22 22:27 ` [Buildroot] [PATCH 1/3] package/gnupg2: configure script looks at the wrong stdint.h Romain Naour

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.