All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: Matt Weber <matthew.weber@collins.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/rng-tools: fix uclibc build
Date: Mon, 15 Aug 2022 15:47:35 +0200	[thread overview]
Message-ID: <20220815134735.GY2854108@scaer> (raw)
In-Reply-To: <20220815124348.560482-1-fontaine.fabrice@gmail.com>

Fabrice, All,

On 2022-08-15 14:43 +0200, Fabrice Fontaine spake thusly:
> Fix the following uclibc build failure on aarch64 raised since bump to
> version 6.14 in commit 5292d1cf9ad0605cc264fedc75c1b9a169aa183b and
> https://github.com/nhorman/rng-tools/commit/9070a04adfcd21ec3839ee8ff190e7130ccd5c9b:
> 
> rngd_rndr.c:34:10: fatal error: sys/auxv.h: No such file or directory
>    34 | #include <sys/auxv.h>
>       |          ^~~~~~~~~~~~
> 
> Strangely enough, there is no autobuilder failure for powerpc64le raised
> since version bump to version 6.11 in commit
> da83261c9be0484924c845bb033e2ca752556504
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/41d5ab9e67eb0d8af8d789fc94d4366f130a7fb2
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  ...gure.ac-fix-build-without-sys-auxv.h.patch | 52 +++++++++++++++++++
>  1 file changed, 52 insertions(+)
>  create mode 100644 package/rng-tools/0001-configure.ac-fix-build-without-sys-auxv.h.patch
> 
> diff --git a/package/rng-tools/0001-configure.ac-fix-build-without-sys-auxv.h.patch b/package/rng-tools/0001-configure.ac-fix-build-without-sys-auxv.h.patch
> new file mode 100644
> index 0000000000..0c15ab6b7d
> --- /dev/null
> +++ b/package/rng-tools/0001-configure.ac-fix-build-without-sys-auxv.h.patch
> @@ -0,0 +1,52 @@
> +From 6ea89861c300a732d1bbcffd085d92f5c4c9228e Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Mon, 15 Aug 2022 11:57:21 +0200
> +Subject: [PATCH] configure.ac: fix build without sys/auxv.h
> +
> +Fix the following build failure on aarch64 without sys/auxv.h (e.g. on
> +uclibc) raised since version 6.13 and
> +https://github.com/nhorman/rng-tools/commit/9070a04adfcd21ec3839ee8ff190e7130ccd5c9b:
> +
> +rngd_rndr.c:34:10: fatal error: sys/auxv.h: No such file or directory
> +   34 | #include <sys/auxv.h>
> +      |          ^~~~~~~~~~~~
> +
> +The same issue could be raised on powerpc64le since version 6.11 and
> +https://github.com/nhorman/rng-tools/commit/ade348cdb90c25b44b203fd4e9c33ec4bccff323
> +
> +Fixes:
> + - http://autobuild.buildroot.org/results/41d5ab9e67eb0d8af8d789fc94d4366f130a7fb2
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Retrieved from:
> +https://github.com/nhorman/rng-tools/commit/6ea89861c300a732d1bbcffd085d92f5c4c9228e]
> +---
> + configure.ac | 11 +++++++----
> + 1 file changed, 7 insertions(+), 4 deletions(-)
> +
> +diff --git a/configure.ac b/configure.ac
> +index 0af64e7..411c7b8 100644
> +--- a/configure.ac
> ++++ b/configure.ac
> +@@ -76,14 +76,17 @@ AC_PROG_GCC_TRADITIONAL
> + 
> + AX_PTHREAD
> + 
> ++dnl Checks for header files.
> ++AC_CHECK_HEADERS(sys/auxv.h)
> ++
> + AM_CONDITIONAL([RDRAND], [test $host_cpu = x86_64 || test $host_cpu = i686])
> + AS_IF([test $host_cpu = x86_64 || test $host_cpu = i686], [AC_DEFINE([HAVE_RDRAND],1,[Enable RDRAND])],[])
> + 
> +-AM_CONDITIONAL([DARN], [test $host_cpu = powerpc64le])
> +-AS_IF([test $host_cpu = powerpc64le], [AC_DEFINE([HAVE_DARN],1,[Enable DARN])],[])
> ++AM_CONDITIONAL([DARN], [test $host_cpu = powerpc64le -a "$ac_cv_header_sys_auxv_h" = "yes"])
> ++AS_IF([test $host_cpu = powerpc64le -a "$ac_cv_header_sys_auxv_h" = "yes"], [AC_DEFINE([HAVE_DARN],1,[Enable DARN])],[])
> + 
> +-AM_CONDITIONAL([RNDR], [test $host_cpu = aarch64])
> +-AS_IF([test $host_cpu = aarch64], [AC_DEFINE([HAVE_RNDR],1,[Enable RNDR])],[])
> ++AM_CONDITIONAL([RNDR], [test $host_cpu = aarch64 -a "$ac_cv_header_sys_auxv_h" = "yes"])
> ++AS_IF([test $host_cpu = aarch64 -a "$ac_cv_header_sys_auxv_h" = "yes"], [AC_DEFINE([HAVE_RNDR],1,[Enable RNDR])],[])
> + AM_CONDITIONAL([JITTER], [false])
> + 
> + AC_ARG_ENABLE(jitterentropy,
> -- 
> 2.35.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  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.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2022-08-15 13:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-15 12:43 [Buildroot] [PATCH 1/1] package/rng-tools: fix uclibc build Fabrice Fontaine
2022-08-15 13:47 ` Yann E. MORIN [this message]
2022-09-16 12:28 ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220815134735.GY2854108@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@buildroot.org \
    --cc=fontaine.fabrice@gmail.com \
    --cc=matthew.weber@collins.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.