All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gnutls_3.5.3.bb: Fix native build on distro with kernel < 3.4.17
@ 2016-10-18  1:16 Khem Raj
  2016-10-20 10:25 ` Burton, Ross
  2017-12-02  0:37 ` [morty][RESEND][PATCH] " Martin Jansa
  0 siblings, 2 replies; 6+ messages in thread
From: Khem Raj @ 2016-10-18  1:16 UTC (permalink / raw)
  To: openembedded-core

When using distros which use old kernels gnutls fails to build
due to missing SYS_getrandom, therefore we need to check for this
before using it.
Fixes errorr e.g.

| ../../../gnutls-3.5.3/lib/nettle/rnd-linux.c: In function 'have_getrandom':
| ../../../gnutls-3.5.3/lib/nettle/rnd-linux.c:59:42: error: 'SYS_getrandom' undeclared (first use in this function)
|  #  define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst, (size_t)s, (unsigned int)flags)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../gnutls/gnutls/check_SYS_getrandom.patch        | 35 ++++++++++++++++++++++
 meta/recipes-support/gnutls/gnutls_3.5.3.bb        |  1 +
 2 files changed, 36 insertions(+)
 create mode 100644 meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch

diff --git a/meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch b/meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch
new file mode 100644
index 0000000..535c22a
--- /dev/null
+++ b/meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch
@@ -0,0 +1,35 @@
+From f26c3979ab0325edb2e410d287bc501cf00e0ac0 Mon Sep 17 00:00:00 2001
+From: Nikos Mavrogiannopoulos <nmav@redhat.com>
+Date: Mon, 22 Aug 2016 16:32:34 +0200
+Subject: [PATCH] rnd-linux: added check for SYS_getrandom being defined
+
+This allows to compile the getrandom() code in old Linux systems
+which do not have the system call defined.
+---
+
+Upstream-Status: Backport
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+ lib/nettle/rnd-linux.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/lib/nettle/rnd-linux.c b/lib/nettle/rnd-linux.c
+index d7f07a6..7a24d05 100644
+--- a/lib/nettle/rnd-linux.c
++++ b/lib/nettle/rnd-linux.c
+@@ -56,7 +56,11 @@ static dev_t _gnutls_urandom_fd_rdev = 0;
+ # else
+ #  include <sys/syscall.h>
+ #  undef getrandom
+-#  define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst, (size_t)s, (unsigned int)flags)
++#  if defined(SYS_getrandom)
++#   define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst, (size_t)s, (unsigned int)flags)
++#  else
++#   define getrandom(dst,s,flags) -1
++#  endif
+ # endif
+ 
+ static unsigned have_getrandom(void)
+--
+libgit2 0.24.0
+
diff --git a/meta/recipes-support/gnutls/gnutls_3.5.3.bb b/meta/recipes-support/gnutls/gnutls_3.5.3.bb
index b2dbb07..0400588 100644
--- a/meta/recipes-support/gnutls/gnutls_3.5.3.bb
+++ b/meta/recipes-support/gnutls/gnutls_3.5.3.bb
@@ -4,6 +4,7 @@ SRC_URI += "file://correct_rpl_gettimeofday_signature.patch \
             file://0001-configure.ac-fix-sed-command.patch \
             file://use-pkg-config-to-locate-zlib.patch \
             file://0001-Use-correct-include-dir-with-minitasn.patch \
+            file://check_SYS_getrandom.patch \
             file://CVE-2016-7444.patch \
            "
 SRC_URI[md5sum] = "6c2c7f40ddf52933ee3ca474cb8cb63c"
-- 
2.10.0



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

* Re: [PATCH] gnutls_3.5.3.bb: Fix native build on distro with kernel < 3.4.17
  2016-10-18  1:16 [PATCH] gnutls_3.5.3.bb: Fix native build on distro with kernel < 3.4.17 Khem Raj
@ 2016-10-20 10:25 ` Burton, Ross
  2017-12-02  0:37 ` [morty][RESEND][PATCH] " Martin Jansa
  1 sibling, 0 replies; 6+ messages in thread
From: Burton, Ross @ 2016-10-20 10:25 UTC (permalink / raw)
  To: Khem Raj; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 751 bytes --]

On 18 October 2016 at 02:16, Khem Raj <raj.khem@gmail.com> wrote:

> When using distros which use old kernels gnutls fails to build
> due to missing SYS_getrandom, therefore we need to check for this
> before using it.
> Fixes errorr e.g.
>
> | ../../../gnutls-3.5.3/lib/nettle/rnd-linux.c: In function
> 'have_getrandom':
> | ../../../gnutls-3.5.3/lib/nettle/rnd-linux.c:59:42: error:
> 'SYS_getrandom' undeclared (first use in this function)
> |  #  define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst,
> (size_t)s, (unsigned int)flags)
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
>

Alex's upgrade makes this redundant for master, but I suspect you'll want
to re-send it when we have a Morty maintainer.

Ross

[-- Attachment #2: Type: text/html, Size: 1316 bytes --]

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

* [morty][RESEND][PATCH] gnutls_3.5.3.bb: Fix native build on distro with kernel < 3.4.17
  2016-10-18  1:16 [PATCH] gnutls_3.5.3.bb: Fix native build on distro with kernel < 3.4.17 Khem Raj
  2016-10-20 10:25 ` Burton, Ross
@ 2017-12-02  0:37 ` Martin Jansa
  2018-01-15  8:14   ` Martin Jansa
  1 sibling, 1 reply; 6+ messages in thread
From: Martin Jansa @ 2017-12-02  0:37 UTC (permalink / raw)
  To: openembedded-core

From: Khem Raj <raj.khem@gmail.com>

When using distros which use old kernels gnutls fails to build
due to missing SYS_getrandom, therefore we need to check for this
before using it.
Fixes errorr e.g.

| ../../../gnutls-3.5.3/lib/nettle/rnd-linux.c: In function 'have_getrandom':
| ../../../gnutls-3.5.3/lib/nettle/rnd-linux.c:59:42: error: 'SYS_getrandom' undeclared (first use in this function)
|  #  define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst, (size_t)s, (unsigned int)flags)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 .../gnutls/gnutls/check_SYS_getrandom.patch        | 35 ++++++++++++++++++++++
 meta/recipes-support/gnutls/gnutls_3.5.3.bb        |  1 +
 2 files changed, 36 insertions(+)
 create mode 100644 meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch

diff --git a/meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch b/meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch
new file mode 100644
index 0000000..535c22a
--- /dev/null
+++ b/meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch
@@ -0,0 +1,35 @@
+From f26c3979ab0325edb2e410d287bc501cf00e0ac0 Mon Sep 17 00:00:00 2001
+From: Nikos Mavrogiannopoulos <nmav@redhat.com>
+Date: Mon, 22 Aug 2016 16:32:34 +0200
+Subject: [PATCH] rnd-linux: added check for SYS_getrandom being defined
+
+This allows to compile the getrandom() code in old Linux systems
+which do not have the system call defined.
+---
+
+Upstream-Status: Backport
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+ lib/nettle/rnd-linux.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/lib/nettle/rnd-linux.c b/lib/nettle/rnd-linux.c
+index d7f07a6..7a24d05 100644
+--- a/lib/nettle/rnd-linux.c
++++ b/lib/nettle/rnd-linux.c
+@@ -56,7 +56,11 @@ static dev_t _gnutls_urandom_fd_rdev = 0;
+ # else
+ #  include <sys/syscall.h>
+ #  undef getrandom
+-#  define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst, (size_t)s, (unsigned int)flags)
++#  if defined(SYS_getrandom)
++#   define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst, (size_t)s, (unsigned int)flags)
++#  else
++#   define getrandom(dst,s,flags) -1
++#  endif
+ # endif
+ 
+ static unsigned have_getrandom(void)
+--
+libgit2 0.24.0
+
diff --git a/meta/recipes-support/gnutls/gnutls_3.5.3.bb b/meta/recipes-support/gnutls/gnutls_3.5.3.bb
index b2dbb07..0400588 100644
--- a/meta/recipes-support/gnutls/gnutls_3.5.3.bb
+++ b/meta/recipes-support/gnutls/gnutls_3.5.3.bb
@@ -4,6 +4,7 @@ SRC_URI += "file://correct_rpl_gettimeofday_signature.patch \
             file://0001-configure.ac-fix-sed-command.patch \
             file://use-pkg-config-to-locate-zlib.patch \
             file://0001-Use-correct-include-dir-with-minitasn.patch \
+            file://check_SYS_getrandom.patch \
             file://CVE-2016-7444.patch \
            "
 SRC_URI[md5sum] = "6c2c7f40ddf52933ee3ca474cb8cb63c"
-- 
2.7.4



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

* Re: [morty][RESEND][PATCH] gnutls_3.5.3.bb: Fix native build on distro with kernel < 3.4.17
  2017-12-02  0:37 ` [morty][RESEND][PATCH] " Martin Jansa
@ 2018-01-15  8:14   ` Martin Jansa
  2018-01-17 19:06     ` akuster808
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Jansa @ 2018-01-15  8:14 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 3307 bytes --]

ping

On Sat, Dec 2, 2017 at 1:37 AM, Martin Jansa <martin.jansa@gmail.com> wrote:

> From: Khem Raj <raj.khem@gmail.com>
>
> When using distros which use old kernels gnutls fails to build
> due to missing SYS_getrandom, therefore we need to check for this
> before using it.
> Fixes errorr e.g.
>
> | ../../../gnutls-3.5.3/lib/nettle/rnd-linux.c: In function
> 'have_getrandom':
> | ../../../gnutls-3.5.3/lib/nettle/rnd-linux.c:59:42: error:
> 'SYS_getrandom' undeclared (first use in this function)
> |  #  define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst,
> (size_t)s, (unsigned int)flags)
>
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> ---
>  .../gnutls/gnutls/check_SYS_getrandom.patch        | 35
> ++++++++++++++++++++++
>  meta/recipes-support/gnutls/gnutls_3.5.3.bb        |  1 +
>  2 files changed, 36 insertions(+)
>  create mode 100644 meta/recipes-support/gnutls/
> gnutls/check_SYS_getrandom.patch
>
> diff --git a/meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch
> b/meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch
> new file mode 100644
> index 0000000..535c22a
> --- /dev/null
> +++ b/meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch
> @@ -0,0 +1,35 @@
> +From f26c3979ab0325edb2e410d287bc501cf00e0ac0 Mon Sep 17 00:00:00 2001
> +From: Nikos Mavrogiannopoulos <nmav@redhat.com>
> +Date: Mon, 22 Aug 2016 16:32:34 +0200
> +Subject: [PATCH] rnd-linux: added check for SYS_getrandom being defined
> +
> +This allows to compile the getrandom() code in old Linux systems
> +which do not have the system call defined.
> +---
> +
> +Upstream-Status: Backport
> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
> +
> + lib/nettle/rnd-linux.c | 6 +++++-
> + 1 file changed, 5 insertions(+), 1 deletion(-)
> +
> +diff --git a/lib/nettle/rnd-linux.c b/lib/nettle/rnd-linux.c
> +index d7f07a6..7a24d05 100644
> +--- a/lib/nettle/rnd-linux.c
> ++++ b/lib/nettle/rnd-linux.c
> +@@ -56,7 +56,11 @@ static dev_t _gnutls_urandom_fd_rdev = 0;
> + # else
> + #  include <sys/syscall.h>
> + #  undef getrandom
> +-#  define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst,
> (size_t)s, (unsigned int)flags)
> ++#  if defined(SYS_getrandom)
> ++#   define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst,
> (size_t)s, (unsigned int)flags)
> ++#  else
> ++#   define getrandom(dst,s,flags) -1
> ++#  endif
> + # endif
> +
> + static unsigned have_getrandom(void)
> +--
> +libgit2 0.24.0
> +
> diff --git a/meta/recipes-support/gnutls/gnutls_3.5.3.bb
> b/meta/recipes-support/gnutls/gnutls_3.5.3.bb
> index b2dbb07..0400588 100644
> --- a/meta/recipes-support/gnutls/gnutls_3.5.3.bb
> +++ b/meta/recipes-support/gnutls/gnutls_3.5.3.bb
> @@ -4,6 +4,7 @@ SRC_URI += "file://correct_rpl_gettimeofday_signature.patch
> \
>              file://0001-configure.ac-fix-sed-command.patch \
>              file://use-pkg-config-to-locate-zlib.patch \
>              file://0001-Use-correct-include-dir-with-minitasn.patch \
> +            file://check_SYS_getrandom.patch \
>              file://CVE-2016-7444.patch \
>             "
>  SRC_URI[md5sum] = "6c2c7f40ddf52933ee3ca474cb8cb63c"
> --
> 2.7.4
>
>

[-- Attachment #2: Type: text/html, Size: 4592 bytes --]

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

* Re: [morty][RESEND][PATCH] gnutls_3.5.3.bb: Fix native build on distro with kernel < 3.4.17
  2018-01-15  8:14   ` Martin Jansa
@ 2018-01-17 19:06     ` akuster808
  2018-03-04 11:43       ` Martin Jansa
  0 siblings, 1 reply; 6+ messages in thread
From: akuster808 @ 2018-01-17 19:06 UTC (permalink / raw)
  To: Martin Jansa, Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 4175 bytes --]



On 01/15/2018 12:14 AM, Martin Jansa wrote:
> ping
>
> On Sat, Dec 2, 2017 at 1:37 AM, Martin Jansa <martin.jansa@gmail.com
> <mailto:martin.jansa@gmail.com>> wrote:
>
>     From: Khem Raj <raj.khem@gmail.com <mailto:raj.khem@gmail.com>>
>

pick up now for stagging.
armin
>
>
>     When using distros which use old kernels gnutls fails to build
>     due to missing SYS_getrandom, therefore we need to check for this
>     before using it.
>     Fixes errorr e.g.
>
>     | ../../../gnutls-3.5.3/lib/nettle/rnd-linux.c: In function
>     'have_getrandom':
>     | ../../../gnutls-3.5.3/lib/nettle/rnd-linux.c:59:42: error:
>     'SYS_getrandom' undeclared (first use in this function)
>     |  #  define getrandom(dst,s,flags) syscall(SYS_getrandom,
>     (void*)dst, (size_t)s, (unsigned int)flags)
>
>     Signed-off-by: Khem Raj <raj.khem@gmail.com
>     <mailto:raj.khem@gmail.com>>
>     Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com
>     <mailto:Martin.Jansa@gmail.com>>
>     ---
>      .../gnutls/gnutls/check_SYS_getrandom.patch        | 35
>     ++++++++++++++++++++++
>      meta/recipes-support/gnutls/gnutls_3.5.3.bb
>     <http://gnutls_3.5.3.bb>        |  1 +
>      2 files changed, 36 insertions(+)
>      create mode 100644
>     meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch
>
>     diff --git
>     a/meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch
>     b/meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch
>     new file mode 100644
>     index 0000000..535c22a
>     --- /dev/null
>     +++ b/meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch
>     @@ -0,0 +1,35 @@
>     +From f26c3979ab0325edb2e410d287bc501cf00e0ac0 Mon Sep 17 00:00:00
>     2001
>     +From: Nikos Mavrogiannopoulos <nmav@redhat.com
>     <mailto:nmav@redhat.com>>
>     +Date: Mon, 22 Aug 2016 16:32:34 +0200
>     +Subject: [PATCH] rnd-linux: added check for SYS_getrandom being
>     defined
>     +
>     +This allows to compile the getrandom() code in old Linux systems
>     +which do not have the system call defined.
>     +---
>     +
>     +Upstream-Status: Backport
>     +Signed-off-by: Khem Raj <raj.khem@gmail.com
>     <mailto:raj.khem@gmail.com>>
>     +
>     + lib/nettle/rnd-linux.c | 6 +++++-
>     + 1 file changed, 5 insertions(+), 1 deletion(-)
>     +
>     +diff --git a/lib/nettle/rnd-linux.c b/lib/nettle/rnd-linux.c
>     +index d7f07a6..7a24d05 100644
>     +--- a/lib/nettle/rnd-linux.c
>     ++++ b/lib/nettle/rnd-linux.c
>     +@@ -56,7 +56,11 @@ static dev_t _gnutls_urandom_fd_rdev = 0;
>     + # else
>     + #  include <sys/syscall.h>
>     + #  undef getrandom
>     +-#  define getrandom(dst,s,flags) syscall(SYS_getrandom,
>     (void*)dst, (size_t)s, (unsigned int)flags)
>     ++#  if defined(SYS_getrandom)
>     ++#   define getrandom(dst,s,flags) syscall(SYS_getrandom,
>     (void*)dst, (size_t)s, (unsigned int)flags)
>     ++#  else
>     ++#   define getrandom(dst,s,flags) -1
>     ++#  endif
>     + # endif
>     +
>     + static unsigned have_getrandom(void)
>     +--
>     +libgit2 0.24.0
>     +
>     diff --git a/meta/recipes-support/gnutls/gnutls_3.5.3.bb
>     <http://gnutls_3.5.3.bb>
>     b/meta/recipes-support/gnutls/gnutls_3.5.3.bb <http://gnutls_3.5.3.bb>
>     index b2dbb07..0400588 100644
>     --- a/meta/recipes-support/gnutls/gnutls_3.5.3.bb
>     <http://gnutls_3.5.3.bb>
>     +++ b/meta/recipes-support/gnutls/gnutls_3.5.3.bb
>     <http://gnutls_3.5.3.bb>
>     @@ -4,6 +4,7 @@ SRC_URI +=
>     "file://correct_rpl_gettimeofday_signature.patch \
>                  file://0001-configure.ac-fix-sed-command.patch \
>                  file://use-pkg-config-to-locate-zlib.patch \
>                  file://0001-Use-correct-include-dir-with-minitasn.patch \
>     +            file://check_SYS_getrandom.patch \
>                  file://CVE-2016-7444.patch \
>                 "
>      SRC_URI[md5sum] = "6c2c7f40ddf52933ee3ca474cb8cb63c"
>     --
>     2.7.4
>
>
>
>


[-- Attachment #2: Type: text/html, Size: 7747 bytes --]

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

* Re: [morty][RESEND][PATCH] gnutls_3.5.3.bb: Fix native build on distro with kernel < 3.4.17
  2018-01-17 19:06     ` akuster808
@ 2018-03-04 11:43       ` Martin Jansa
  0 siblings, 0 replies; 6+ messages in thread
From: Martin Jansa @ 2018-03-04 11:43 UTC (permalink / raw)
  To: akuster808; +Cc: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 3658 bytes --]

Seems like what was now merged to morty didn't include this.

On Wed, Jan 17, 2018 at 8:06 PM, akuster808 <akuster808@gmail.com> wrote:

>
>
> On 01/15/2018 12:14 AM, Martin Jansa wrote:
>
> ping
>
> On Sat, Dec 2, 2017 at 1:37 AM, Martin Jansa <martin.jansa@gmail.com>
> wrote:
>
>> From: Khem Raj <raj.khem@gmail.com>
>>
>
> pick up now for stagging.
> armin
>
>
>> When using distros which use old kernels gnutls fails to build
>> due to missing SYS_getrandom, therefore we need to check for this
>> before using it.
>> Fixes errorr e.g.
>>
>> | ../../../gnutls-3.5.3/lib/nettle/rnd-linux.c: In function
>> 'have_getrandom':
>> | ../../../gnutls-3.5.3/lib/nettle/rnd-linux.c:59:42: error:
>> 'SYS_getrandom' undeclared (first use in this function)
>> |  #  define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst,
>> (size_t)s, (unsigned int)flags)
>>
>> Signed-off-by: Khem Raj <raj.khem@gmail.com>
>> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
>> ---
>>  .../gnutls/gnutls/check_SYS_getrandom.patch        | 35
>> ++++++++++++++++++++++
>>  meta/recipes-support/gnutls/gnutls_3.5.3.bb        |  1 +
>>  2 files changed, 36 insertions(+)
>>  create mode 100644 meta/recipes-support/gnutls/gn
>> utls/check_SYS_getrandom.patch
>>
>> diff --git a/meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch
>> b/meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch
>> new file mode 100644
>> index 0000000..535c22a
>> --- /dev/null
>> +++ b/meta/recipes-support/gnutls/gnutls/check_SYS_getrandom.patch
>> @@ -0,0 +1,35 @@
>> +From f26c3979ab0325edb2e410d287bc501cf00e0ac0 Mon Sep 17 00:00:00 2001
>> +From: Nikos Mavrogiannopoulos <nmav@redhat.com>
>> +Date: Mon, 22 Aug 2016 16:32:34 +0200
>> +Subject: [PATCH] rnd-linux: added check for SYS_getrandom being defined
>> +
>> +This allows to compile the getrandom() code in old Linux systems
>> +which do not have the system call defined.
>> +---
>> +
>> +Upstream-Status: Backport
>> +Signed-off-by: Khem Raj <raj.khem@gmail.com>
>> +
>> + lib/nettle/rnd-linux.c | 6 +++++-
>> + 1 file changed, 5 insertions(+), 1 deletion(-)
>> +
>> +diff --git a/lib/nettle/rnd-linux.c b/lib/nettle/rnd-linux.c
>> +index d7f07a6..7a24d05 100644
>> +--- a/lib/nettle/rnd-linux.c
>> ++++ b/lib/nettle/rnd-linux.c
>> +@@ -56,7 +56,11 @@ static dev_t _gnutls_urandom_fd_rdev = 0;
>> + # else
>> + #  include <sys/syscall.h>
>> + #  undef getrandom
>> +-#  define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst,
>> (size_t)s, (unsigned int)flags)
>> ++#  if defined(SYS_getrandom)
>> ++#   define getrandom(dst,s,flags) syscall(SYS_getrandom, (void*)dst,
>> (size_t)s, (unsigned int)flags)
>> ++#  else
>> ++#   define getrandom(dst,s,flags) -1
>> ++#  endif
>> + # endif
>> +
>> + static unsigned have_getrandom(void)
>> +--
>> +libgit2 0.24.0
>> +
>> diff --git a/meta/recipes-support/gnutls/gnutls_3.5.3.bb
>> b/meta/recipes-support/gnutls/gnutls_3.5.3.bb
>> index b2dbb07..0400588 100644
>> --- a/meta/recipes-support/gnutls/gnutls_3.5.3.bb
>> +++ b/meta/recipes-support/gnutls/gnutls_3.5.3.bb
>> @@ -4,6 +4,7 @@ SRC_URI += "file://correct_rpl_gettimeofday_signature.patch
>> \
>>              file://0001-configure.ac-fix-sed-command.patch \
>>              file://use-pkg-config-to-locate-zlib.patch \
>>              file://0001-Use-correct-include-dir-with-minitasn.patch \
>> +            file://check_SYS_getrandom.patch \
>>              file://CVE-2016-7444.patch \
>>             "
>>  SRC_URI[md5sum] = "6c2c7f40ddf52933ee3ca474cb8cb63c"
>> --
>> 2.7.4
>>
>>
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 7541 bytes --]

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

end of thread, other threads:[~2018-03-04 11:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-18  1:16 [PATCH] gnutls_3.5.3.bb: Fix native build on distro with kernel < 3.4.17 Khem Raj
2016-10-20 10:25 ` Burton, Ross
2017-12-02  0:37 ` [morty][RESEND][PATCH] " Martin Jansa
2018-01-15  8:14   ` Martin Jansa
2018-01-17 19:06     ` akuster808
2018-03-04 11:43       ` Martin Jansa

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.