Jelajahi Sumber

include patch from bootstrap package here, too

Ralf S. Engelschall 22 tahun lalu
induk
melakukan
4f6f719691
2 mengubah file dengan 102 tambahan dan 1 penghapusan
  1. 99 0
      beecrypt/beecrypt.patch
  2. 3 1
      beecrypt/beecrypt.spec

+ 99 - 0
beecrypt/beecrypt.patch

@@ -0,0 +1,99 @@
+Index: gas/aesopt.x86.m4
+===================================================================
+RCS file: /CVSROOT/opkg/cvsbase/beecrypt/gas/aesopt.x86.m4,v
+retrieving revision 1.1.1.1
+diff -u -u -r1.1.1.1 aesopt.x86.m4
+--- gas/aesopt.x86.m4	9 Jun 2003 08:35:39 -0000	1.1.1.1
++++ gas/aesopt.x86.m4	4 Sep 2003 07:26:08 -0000
+@@ -133,6 +133,9 @@
+ 	pxor 6144(%esi,%edx,8),s0
+ ')
+ 
++')
++ifdef(`USE_MMX',`
++
+ define(`elr',`
+ 	movd  0(%ebp),s0
+ 	movd t0,%eax
+@@ -252,6 +255,9 @@
+ ')
+ 
+ 
++')
++ifdef(`USE_MMX',`
++
+ C_FUNCTION_BEGIN(aesEncrypt)
+ 	pushl %edi
+ 	pushl %esi
+@@ -363,6 +369,9 @@
+ 	pxor 6144(%esi,%edx,8),t2
+ ')
+ 
++')
++ifdef(`USE_MMX',`
++
+ define(`dsft',`
+ 	movd $1+ 0(%ebp),s0
+ 	movd t0,%eax
+@@ -488,6 +497,9 @@
+ 	pxor t2,s1
+ 	pxor t3,s2
+ ')
++
++')
++ifdef(`USE_MMX',`
+ 
+ define(`dblock',`
+ 	sxrk
+Index: gas/mpopt.x86.m4
+===================================================================
+RCS file: /CVSROOT/opkg/cvsbase/beecrypt/gas/mpopt.x86.m4,v
+retrieving revision 1.1.1.1
+diff -u -u -r1.1.1.1 mpopt.x86.m4
+--- gas/mpopt.x86.m4	4 Jun 2003 17:39:58 -0000	1.1.1.1
++++ gas/mpopt.x86.m4	4 Sep 2003 07:26:08 -0000
+@@ -29,7 +29,7 @@
+ 	movl 12(%esp),%edi
+ 
+ 	xorl %eax,%eax
+-	repz stosl
++	repz; stosl
+ 
+ 	popl %edi
+ 	ret
+@@ -43,7 +43,7 @@
+ 	movl 12(%esp),%edi
+ 	movl 16(%esp),%eax
+ 
+-	repz stosl
++	repz; stosl
+ 
+ 	popl %edi
+ 	ret
+Index: gas/sha1opt.x86.m4
+===================================================================
+RCS file: /CVSROOT/opkg/cvsbase/beecrypt/gas/sha1opt.x86.m4,v
+retrieving revision 1.1.1.1
+diff -u -u -r1.1.1.1 sha1opt.x86.m4
+--- gas/sha1opt.x86.m4	8 May 2003 17:52:54 -0000	1.1.1.1
++++ gas/sha1opt.x86.m4	4 Sep 2003 07:26:08 -0000
+@@ -21,13 +21,13 @@
+ include(config.m4)
+ include(ASM_SRCDIR/x86.m4)
+ 
+-	.equ	K00,	0x5a827999
+-	.equ	K20,	0x6ed9eba1
+-	.equ	K40,	0x8f1bbcdc
+-	.equ	K60,	0xca62c1d6
++	.set	K00,	0x5a827999
++	.set	K20,	0x6ed9eba1
++	.set	K40,	0x8f1bbcdc
++	.set	K60,	0xca62c1d6
+ 
+-	.equ	PARAM_H,		0
+-	.equ	PARAM_DATA,		20
++	.set	PARAM_H,		0
++	.set	PARAM_DATA,		20
+ 
+ define(`subround1',`
+ 	movl $2,%ecx

+ 3 - 1
beecrypt/beecrypt.spec

@@ -33,10 +33,11 @@ Distribution: OpenPKG [EVAL]
 Group:        Cryptography
 License:      LGPL
 Version:      3.1.0
-Release:      20030822
+Release:      20030909
 
 #   list of sources
 Source0:      http://osdn.dl.sourceforge.net/beecrypt/beecrypt-%{version}.tar.gz
+Patch0:       beecrypt.patch
 
 #   build information
 Prefix:       %{l_prefix}
@@ -57,6 +58,7 @@ AutoReqProv:  no
 
 %prep
     %setup -q
+    %patch -p0
 
 %build
     CC="%{l_cc}" \