[packages/libaio] - new URLs, updated to 0.3.111 - updated Werror,x32 patches - added link patch (link with libc as no

qboosh qboosh at pld-linux.org
Mon Apr 16 20:58:48 CEST 2018


commit 4e305c828d4da6cf4d1fe14ab3fd06e4f20458a4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Apr 16 20:58:59 2018 +0200

    - new URLs, updated to 0.3.111
    - updated Werror,x32 patches
    - added link patch (link with libc as now it uses syscall() symbol)

 libaio-Werror.patch |  8 +++---
 libaio-link.patch   | 13 ++++++++++
 libaio.spec         | 13 ++++++----
 x32.patch           | 72 ++++++++---------------------------------------------
 4 files changed, 35 insertions(+), 71 deletions(-)
---
diff --git a/libaio.spec b/libaio.spec
index a3fe2ec..6a742a5 100644
--- a/libaio.spec
+++ b/libaio.spec
@@ -5,19 +5,21 @@
 Summary:	Linux-native asynchronous I/O access library
 Summary(pl.UTF-8):	Biblioteka natywnego dla Linuksa asynchronicznego dostępu do wejścia/wyjścia
 Name:		libaio
-Version:	0.3.110
+Version:	0.3.111
 Release:	1
 License:	LGPL v2+
 Group:		Libraries
-Source0:	https://fedorahosted.org/releases/l/i/libaio/%{name}-%{version}.tar.gz
-# Source0-md5:	2a35602e43778383e2f4907a4ca39ab8
+Source0:	http://releases.pagure.org/libaio/%{name}-%{version}.tar.gz
+# Source0-md5:	abb8f46d64b9bd3d0c6097e3a36639be
 Patch0:		%{name}-DESTDIR.patch
 Patch1:		%{name}-Werror.patch
 Patch2:		x32.patch
+Patch3:		%{name}-link.patch
+URL:		https://pagure.io/libaio
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # SSP is incompatible with -nostdlib -nostartfiles
-%define		filterout_c	-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector.*
+#define		filterout_c	-Wp,-D_FORTIFY_SOURCE=2 -fstack-protector.*
 
 %description
 The Linux-native asynchronous I/O facility ("async I/O", or "aio") has
@@ -69,11 +71,12 @@ Statyczna biblioteka libaio.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__make} \
 	CC="%{__cc}" \
-	CFLAGS="%{rpmcppflags} %{rpmcflags} -fomit-frame-pointer -fPIC -Wall -I. -nostdlib -nostartfiles"
+	CFLAGS="%{rpmcppflags} %{rpmcflags} -fomit-frame-pointer -fPIC -Wall -I."
 
 %{?with_tests:%{__make} CC="%{__cc}" partcheck}
 
diff --git a/libaio-Werror.patch b/libaio-Werror.patch
index 0a64e62..5544cdc 100644
--- a/libaio-Werror.patch
+++ b/libaio-Werror.patch
@@ -1,11 +1,11 @@
---- libaio-0.3.110/harness/Makefile.orig	2016-01-20 17:15:44.249480226 +0100
-+++ libaio-0.3.110/harness/Makefile	2016-01-20 17:16:08.229479219 +0100
+--- libaio-0.3.111/harness/Makefile.orig	2018-04-15 21:10:25.695931798 +0200
++++ libaio-0.3.111/harness/Makefile	2018-04-15 21:24:00.559255827 +0200
 @@ -6,7 +6,7 @@
  HARNESS_SRCS:=main.c
  # io_queue.c
  
--CFLAGS+=-Wall -Werror -I../src -g -O
-+CFLAGS+=-Wall -I../src -g -O
+-CFLAGS+=-Wall -Werror -I../src -g -O2 -DPAGE_SIZE=$(shell getconf PAGESIZE)
++CFLAGS+=-Wall -I../src -DPAGE_SIZE=$(shell getconf PAGESIZE)
  #-lpthread -lrt
  
  all: $(PROGS)
diff --git a/libaio-link.patch b/libaio-link.patch
new file mode 100644
index 0000000..3fc8497
--- /dev/null
+++ b/libaio-link.patch
@@ -0,0 +1,13 @@
+--- libaio-0.3.111/src/Makefile.orig	2018-04-16 20:52:01.924957883 +0200
++++ libaio-0.3.111/src/Makefile	2018-04-16 20:52:10.001624445 +0200
+@@ -3,8 +3,8 @@
+ libdir=/usr/lib
+ usrlibdir=/usr/lib
+ 
+-CFLAGS ?= -g -fomit-frame-pointer -O2
+-CFLAGS += -nostdlib -nostartfiles -Wall -I. -fPIC
++CFLAGS ?= -fomit-frame-pointer
++CFLAGS += -Wall -I. -fPIC
+ SO_CFLAGS=-shared $(CFLAGS)
+ L_CFLAGS=$(CFLAGS)
+ LINK_FLAGS=
diff --git a/x32.patch b/x32.patch
index 1d2c2a9..ac3d2e0 100644
--- a/x32.patch
+++ b/x32.patch
@@ -1,63 +1,11 @@
-http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=f5c071d93c9e6f57930bce56b1e4f009c160a826
-
-Upstream-Status: Pending
-
-Properly load arguments 5 an 6 for x86-64 syscall
-Use asm ("r10") and asm ("r8") to load arguments 5 an 6 for x86-64
-syscall so that it works with both x32 and x86-64.
-
-Received this patch from H.J. Lu <hjl.tools at gmail.com>
-
-Signed-Off-By: Nitin A Kamble <nitin.a.kamble at intel.com>
-2011/12/02
-
---- libaio-0.3.109/src/syscall-x86_64.h.x32	2009-10-09 11:17:02.000000000 -0700
-+++ libaio-0.3.109/src/syscall-x86_64.h	2011-12-02 09:09:07.537603224 -0800
-@@ -1,8 +1,18 @@
-+#ifndef __NR_io_setup
- #define __NR_io_setup		206
-+#endif
-+#ifndef __NR_io_destroy
- #define __NR_io_destroy		207
-+#endif
-+#ifndef __NR_io_getevents
- #define __NR_io_getevents	208
-+#endif
-+#ifndef __NR_io_submit
- #define __NR_io_submit		209
-+#endif
-+#ifndef __NR_io_cancel
- #define __NR_io_cancel		210
-+#endif
+--- libaio-0.3.111/src/syscall.h.orig	2018-03-06 23:24:47.000000000 +0100
++++ libaio-0.3.111/src/syscall.h	2018-04-15 21:30:45.529251204 +0200
+@@ -13,7 +13,7 @@
  
- #define __syscall_clobber "r11","rcx","memory" 
- #define __syscall "syscall"
-@@ -42,10 +52,11 @@ return __res;								\
- type fname (type1 arg1, type2 arg2, type3 arg3, type4 arg4)		\
- {									\
- long __res;								\
--__asm__ volatile ("movq %5,%%r10 ;" __syscall				\
-+register long __a4 asm ("r10") = (long) arg4;				\
-+__asm__ volatile (__syscall						\
- 	: "=a" (__res)							\
- 	: "0" (__NR_##sname),"D" ((long)(arg1)),"S" ((long)(arg2)),	\
--	  "d" ((long)(arg3)),"g" ((long)(arg4)) : __syscall_clobber,"r10" ); \
-+	  "d" ((long)(arg3)),"r" (__a4)); \
- return __res;								\
- } 
- 
-@@ -54,10 +65,11 @@ return __res;								\
- type fname (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5)	\
- {									\
- long __res;								\
--__asm__ volatile ("movq %5,%%r10 ; movq %6,%%r8 ; " __syscall		\
-+register long __a4 asm ("r10") = (long) arg4;				\
-+register long __a5 asm ("r8") = (long) arg5;				\
-+__asm__ volatile ( __syscall						\
- 	: "=a" (__res)							\
- 	: "0" (__NR_##sname),"D" ((long)(arg1)),"S" ((long)(arg2)),	\
--	  "d" ((long)(arg3)),"g" ((long)(arg4)),"g" ((long)(arg5)) :	\
--	__syscall_clobber,"r8","r10" );					\
-+	  "d" ((long)(arg3)),"r" (__a4),"r" (__a5));			\
- return __res;								\
- }
+ #if defined(__i386__)
+ #include "syscall-i386.h"
+-#elif defined(__x86_64__)
++#elif defined(__x86_64__) && !defined(__ILP32__)
+ #include "syscall-x86_64.h"
+ #elif defined(__ia64__)
+ #include "syscall-ia64.h"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libaio.git/commitdiff/4e305c828d4da6cf4d1fe14ab3fd06e4f20458a4



More information about the pld-cvs-commit mailing list