forked from pool/libgcrypt
Accepting request 43461 from home:hennevogel:TODO
Copy from home:hennevogel:TODO/libgcrypt based on submit request 43461 from user a_jaeger OBS-URL: https://build.opensuse.org/request/show/43461 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgcrypt?expand=0&rev=18
This commit is contained in:
parent
b65531ec49
commit
16693e1e44
23
libgcrypt-sparcv9.diff
Normal file
23
libgcrypt-sparcv9.diff
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
Avoid link-time error
|
||||||
|
|
||||||
|
../src/.libs/libgcrypt.so: undefined reference to `__udiv_qrnnd'
|
||||||
|
|
||||||
|
by choosing v8-like insns for 32-bit v9 mode too.
|
||||||
|
|
||||||
|
---
|
||||||
|
mpi/longlong.h | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
Index: libgcrypt-1.4.4/mpi/longlong.h
|
||||||
|
===================================================================
|
||||||
|
--- libgcrypt-1.4.4.orig/mpi/longlong.h
|
||||||
|
+++ libgcrypt-1.4.4/mpi/longlong.h
|
||||||
|
@@ -1133,7 +1133,7 @@ extern USItype __udiv_qrnnd ();
|
||||||
|
"rJ" ((USItype)(al)), \
|
||||||
|
"rI" ((USItype)(bl)) \
|
||||||
|
__CLOBBER_CC)
|
||||||
|
-#if defined (__sparc_v8__)
|
||||||
|
+#if defined (__sparc_v8__) || defined(__sparc_v9__)
|
||||||
|
/* Don't match immediate range because, 1) it is not often useful,
|
||||||
|
2) the 'I' flag thinks of the range as a 13 bit signed interval,
|
||||||
|
while we want to match a 13 bit interval, sign extended to 32 bits,
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jul 4 19:07:16 UTC 2010 - jengelh@medozas.de
|
||||||
|
|
||||||
|
- add missing definition of udiv_qrnnd for sparcv9:32
|
||||||
|
- use %_smp_mflags
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Dec 19 12:58:20 CET 2009 - jengelh@medozas.de
|
Sat Dec 19 12:58:20 CET 2009 - jengelh@medozas.de
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ Name: libgcrypt
|
|||||||
BuildRequires: libgpg-error-devel
|
BuildRequires: libgpg-error-devel
|
||||||
Url: http://www.gnu.org/directory/Security/libgcrypt.html
|
Url: http://www.gnu.org/directory/Security/libgcrypt.html
|
||||||
Version: 1.4.4
|
Version: 1.4.4
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: The GNU Crypto Library
|
Summary: The GNU Crypto Library
|
||||||
License: GPLv2+ ; LGPLv2.1+
|
License: GPLv2+ ; LGPLv2.1+
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
@ -33,6 +33,7 @@ Patch0: %name-ppc64.patch
|
|||||||
Patch1: libgcrypt-strict-aliasing.patch
|
Patch1: libgcrypt-strict-aliasing.patch
|
||||||
Patch2: libgcrypt-1.4.4-mpicheck.patch
|
Patch2: libgcrypt-1.4.4-mpicheck.patch
|
||||||
Patch3: libgcrypt-1.4.1-rijndael_no_strict_aliasing.patch
|
Patch3: libgcrypt-1.4.1-rijndael_no_strict_aliasing.patch
|
||||||
|
Patch4: libgcrypt-sparcv9.diff
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -120,6 +121,7 @@ Authors:
|
|||||||
%patch1
|
%patch1
|
||||||
%patch2
|
%patch2
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
|
%patch4 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# define ciphers to build
|
# define ciphers to build
|
||||||
@ -138,7 +140,7 @@ autoreconf -fi
|
|||||||
--enable-ciphers="$ENABLE_CIPHER" \
|
--enable-ciphers="$ENABLE_CIPHER" \
|
||||||
--enable-pubkey-ciphers="$ENABLE_PUBKEY" \
|
--enable-pubkey-ciphers="$ENABLE_PUBKEY" \
|
||||||
--enable-digests="$ENABLE_DIGEST"
|
--enable-digests="$ENABLE_DIGEST"
|
||||||
%{__make} %{?jobs:-j%jobs}
|
%{__make} %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# Nice idea. however this uses /dev/random, which hangs
|
# Nice idea. however this uses /dev/random, which hangs
|
||||||
|
Loading…
Reference in New Issue
Block a user