Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package kexec-tools for openSUSE:Factory 
checked in at 2023-04-15 22:32:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kexec-tools (Old)
 and      /work/SRC/openSUSE:Factory/.kexec-tools.new.19717 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kexec-tools"

Sat Apr 15 22:32:21 2023 rev:148 rq:1079401 version:2.0.26

Changes:
--------
--- /work/SRC/openSUSE:Factory/kexec-tools/kexec-tools.changes  2023-02-28 
12:48:49.380550936 +0100
+++ /work/SRC/openSUSE:Factory/.kexec-tools.new.19717/kexec-tools.changes       
2023-04-15 22:32:27.709300700 +0200
@@ -1,0 +2,6 @@
+Tue Apr  4 04:04:04 UTC 2023 - o...@aepfle.de
+
+- Update kexec-tools-SYS_getrandom.patch to fix build errors on
+  old x86_64 distributions
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------

++++++ kexec-tools-SYS_getrandom.patch ++++++
--- /var/tmp/diff_new_pack.3V5qDX/_old  2023-04-15 22:32:28.225303677 +0200
+++ /var/tmp/diff_new_pack.3V5qDX/_new  2023-04-15 22:32:28.229303700 +0200
@@ -6,9 +6,21 @@
 
 Signed-off-by: Petr Tesarik <ptesa...@suse.com>
 ---
- kexec/arch/arm64/kexec-arm64.c |    5 +++++
- 1 file changed, 5 insertions(+)
+ configure.ac                      |    1 +
+ kexec/arch/arm64/kexec-arm64.c    |    5 +++++
+ kexec/arch/i386/x86-linux-setup.c |   11 ++++++++++-
+ 3 files changed, 16 insertions(+), 1 deletion(-)
 
+--- a/configure.ac
++++ b/configure.ac
+@@ -203,6 +203,7 @@ if test "$with_xen" = dl ; then
+               AC_MSG_NOTICE([Xen support disabled]))])
+ fi
+ 
++AC_CHECK_HEADERS([sys/random.h])
+ dnl Check for the Xen kexec_status hypercall - reachable from 
--with-xen=yes|dl
+ if test "$ac_cv_lib_xenctrl_xc_kexec_load" = yes ; then
+       AC_CHECK_LIB(xenctrl, xc_kexec_status,
 --- a/kexec/arch/arm64/kexec-arm64.c
 +++ b/kexec/arch/arm64/kexec-arm64.c
 @@ -34,6 +34,11 @@
@@ -23,4 +35,31 @@
  #define ROOT_NODE_ADDR_CELLS_DEFAULT 1
  #define ROOT_NODE_SIZE_CELLS_DEFAULT 1
  
+--- a/kexec/arch/i386/x86-linux-setup.c
++++ b/kexec/arch/i386/x86-linux-setup.c
+@@ -24,7 +24,6 @@
+ #include <limits.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+-#include <sys/random.h>
+ #include <fcntl.h>
+ #include <sys/ioctl.h>
+ #include <linux/fb.h>
+@@ -38,6 +37,16 @@
+ #include "x86-linux-setup.h"
+ #include "../../kexec/kexec-syscall.h"
+ 
++#ifdef HAVE_SYS_RANDOM_H
++#include <sys/random.h>
++#else
++#include <linux/random.h>
++static ssize_t getrandom(void *buf, size_t buflen, unsigned int flags)
++{
++      return syscall(SYS_getrandom, buf, buflen, flags);
++}
++#endif
++
+ #ifndef VIDEO_CAPABILITY_64BIT_BASE
+ #define VIDEO_CAPABILITY_64BIT_BASE (1 << 1)  /* Frame buffer base is 64-bit 
*/
+ #endif
 

Reply via email to