Hello community, here is the log from the commit of package libaio for openSUSE:Factory checked in at 2019-03-13 09:05:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libaio (Old) and /work/SRC/openSUSE:Factory/.libaio.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libaio" Wed Mar 13 09:05:55 2019 rev:34 rq:681847 version:0.3.109 Changes: -------- --- /work/SRC/openSUSE:Factory/libaio/libaio.changes 2018-05-25 21:37:47.818920651 +0200 +++ /work/SRC/openSUSE:Factory/.libaio.new.28833/libaio.changes 2019-03-13 09:06:00.763443822 +0100 @@ -1,0 +2,5 @@ +Thu Jan 31 16:03:40 UTC 2019 - [email protected] + +- riscv-support.patch: Add support for RISC-V + +------------------------------------------------------------------- New: ---- riscv-support.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libaio.spec ++++++ --- /var/tmp/diff_new_pack.Abm2iP/_old 2019-03-13 09:06:04.307443456 +0100 +++ /var/tmp/diff_new_pack.Abm2iP/_new 2019-03-13 09:06:04.311443456 +0100 @@ -1,7 +1,7 @@ # # spec file for package libaio # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -39,6 +39,7 @@ Patch7: 03_man_errors.patch Patch8: libaio-aarch64-support.diff Patch9: libaio-generic-arch.diff +Patch10: riscv-support.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -51,8 +52,8 @@ %package -n %lname Summary: Linux-Native Asynchronous I/O Access Library -# O/P added 2011-11-27 Group: System/Libraries +# O/P added 2011-11-27 Obsoletes: libaio < %version-%release Provides: libaio = %version-%release @@ -88,6 +89,7 @@ %patch -p1 -P 3 -P 4 -P 5 -P 6 -P 7 %patch8 %patch9 +%patch10 -p1 %build make %{?_smp_mflags} CC="%__cc" OPTFLAGS="$RPM_OPT_FLAGS" ++++++ riscv-support.patch ++++++ Index: libaio-0.3.109/harness/cases/16.t =================================================================== --- libaio-0.3.109.orig/harness/cases/16.t +++ libaio-0.3.109/harness/cases/16.t @@ -20,7 +20,7 @@ #define SYS_eventfd 478 #elif defined(__aarch64__) #define SYS_eventfd 1044 -#else +#elif !defined(SYS_eventfd2) #error define SYS_eventfd for your arch! #endif #endif @@ -41,7 +41,11 @@ int test_main(void) struct timespec notime = { .tv_sec = 0, .tv_nsec = 0 }; buf = malloc(SIZE); assert(buf); +#ifndef SYS_eventfd + efd = syscall(SYS_eventfd2, 0, 0); +#else efd = syscall(SYS_eventfd, 0); +#endif if (efd < 0) { if (errno == ENOSYS) { printf("No eventfd support. [SKIPPING]\n"); Index: libaio-0.3.109/src/libaio.h =================================================================== --- libaio-0.3.109.orig/src/libaio.h +++ libaio-0.3.109/src/libaio.h @@ -127,6 +127,10 @@ typedef enum io_iocb_cmd { #define PADDEDptr(x, y) x #define PADDEDul(x, y) unsigned long x # endif +#elif defined(__riscv) +#define PADDED(x, y) x, y +#define PADDEDptr(x, y) x +#define PADDEDul(x, y) unsigned long x #else #error endian? #endif
