dev-lisp/sbcl: fix the capstone test
authorAndrey Grozin <grozin@gentoo.org>
Thu, 3 Jan 2019 15:42:45 +0000 (22:42 +0700)
committerAndrey Grozin <grozin@gentoo.org>
Thu, 3 Jan 2019 15:43:57 +0000 (22:43 +0700)
Suggested-by: Helmut Jarausch <jarausch@igpm.rwth-aachen.de>
Closes: https://bugs.gentoo.org/673522
Signed-off-by: Andrey Grozin <grozin@gentoo.org>
Package-Manager: Portage-2.3.41, Repoman-2.3.9

dev-lisp/sbcl/files/sbcl-1.4.15-capstone.patch [new file with mode: 0644]
dev-lisp/sbcl/sbcl-1.4.15.ebuild

diff --git a/dev-lisp/sbcl/files/sbcl-1.4.15-capstone.patch b/dev-lisp/sbcl/files/sbcl-1.4.15-capstone.patch
new file mode 100644 (file)
index 0000000..057b1c5
--- /dev/null
@@ -0,0 +1,15 @@
+--- a/contrib/sb-capstone/tests.lisp.ORIG      2018-12-04 17:44:02.000000000 +0100
++++ b/contrib/sb-capstone/tests.lisp   2019-01-03 10:22:33.649177090 +0100
+@@ -65,10 +65,10 @@
+                 t)
+-(deftest ppc-little-endian (capstone-check '(#x03 #x10 #x40 #x3c #x00 #x81 #x42 #x38)
++(deftest ppc-little-endian (capstone-check '(#x03 #x10 #x40 #x3c #x00 #x71 #x42 #x38)
+                                            '(:ppc64 :little-endian)
+                                            '("LIS R2, 0X1003"
+-                                             "ADDI R2, R2, -0X7F00"))
++                                             "ADDI R2, R2, 0X7100"))
+                            t)
+ (deftest ppc-big-endian (capstone-check '(#x7c #x08 #x02 #xa6)
index 3ab2c80ba0c68acc31b37400ae3b0bb01f0cacbc..381f9f3a33504a913b67eddf5bee62047cde5738 100644 (file)
@@ -104,6 +104,7 @@ src_prepare() {
 
        eapply "${FILESDIR}"/${PN}-1.2.11-solaris.patch
        eapply "${FILESDIR}"/${PN}-1.4.0-verbose-build.patch
+       eapply "${FILESDIR}"/${P}-capstone.patch
 
        eapply_user