SHA256
1
0
forked from pool/attr

- Define attr syscall numbers for aarch64

- Update confg.guess/sub for aarch64

OBS-URL: https://build.opensuse.org/package/show/Base:System/attr?expand=0&rev=27
This commit is contained in:
Dirk Mueller 2013-02-03 13:41:31 +00:00 committed by Git OBS Bridge
parent 2a5c28ec81
commit d04b706984
4 changed files with 1263 additions and 1 deletions

25
attr-syscalls.patch Normal file
View File

@ -0,0 +1,25 @@
Index: libattr/syscalls.c
===================================================================
--- libattr/syscalls.c.orig
+++ libattr/syscalls.c
@@ -189,6 +189,20 @@
# define __NR_removexattr 232
# define __NR_lremovexattr 233
# define __NR_fremovexattr 234
+#elif defined (__aarch64__)
+# define HAVE_XATTR_SYSCALLS 1
+# define __NR_setxattr 5
+# define __NR_lsetxattr 6
+# define __NR_fsetxattr 7
+# define __NR_getxattr 8
+# define __NR_lgetxattr 9
+# define __NR_fgetxattr 10
+# define __NR_listxattr 11
+# define __NR_llistxattr 12
+# define __NR_flistxattr 13
+# define __NR_removexattr 14
+# define __NR_lremovexattr 15
+# define __NR_fremovexattr 16
#else
# warning "Extended attribute syscalls undefined for this architecture"
# define HAVE_XATTR_SYSCALLS 0

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Sat Feb 2 21:08:57 UTC 2013 - schwab@suse.de
- Define attr syscall numbers for aarch64
-------------------------------------------------------------------
Sat Feb 2 20:30:27 UTC 2013 - schwab@suse.de
- Update confg.guess/sub for aarch64
-------------------------------------------------------------------
Fri Feb 1 12:01:33 UTC 2013 - coolo@suse.com

View File

@ -27,9 +27,12 @@ Source: %{name}-%{version}.src.tar.gz
Source1: xattr.conf
Source2: baselibs.conf
Patch0: builddefs.in.diff
Patch1: config-guess-sub-update.patch
Patch2: attr-syscalls.patch
Url: http://download.savannah.gnu.org/releases-noredirect/attr/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: autoconf
BuildRequires: automake
Conflicts: xfsdump < 2.0.0
%description
@ -85,11 +88,14 @@ statically linked programs which make use of extended attributes.
%prep
%setup -q
%patch0 -p1
%patch1
%patch2
%build
export OPTIMIZER="$RPM_OPT_FLAGS -fPIC"
export DEBUG=-DNDEBUG
autoconf
ln -sf /usr/share/automake-1.12/config.guess .
ln -sf /usr/share/automake-1.12/config.sub .
CFLAGS="$RPM_OPT_FLAGS" \
%configure \
--prefix=/ \

File diff suppressed because it is too large Load Diff