Hello community,

here is the log from the commit of package john for openSUSE:Factory checked in 
at 2014-01-13 12:02:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/john (Old)
 and      /work/SRC/openSUSE:Factory/.john.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "john"

Changes:
--------
--- /work/SRC/openSUSE:Factory/john/john.changes        2013-10-30 
15:37:38.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.john.new/john.changes   2014-01-13 
12:02:40.000000000 +0100
@@ -1,0 +2,7 @@
+Fri Jan 10 11:41:09 UTC 2014 - [email protected]
+
+- Fix build on ppc64le
+
+- added patches:
+  * ppc64le.patch
+-------------------------------------------------------------------

New:
----
  ppc64le.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ john.spec ++++++
--- /var/tmp/diff_new_pack.whM8wq/_old  2014-01-13 12:02:41.000000000 +0100
+++ /var/tmp/diff_new_pack.whM8wq/_new  2014-01-13 12:02:41.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package john
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -32,6 +32,7 @@
 # Source5:        
http://www.openwall.com/john/g/%{name}-%{version}-jumbo-7.tar.bz2.sign
 Source6:        mailer.8
 Source7:        relbench.8
+Patch0:         ppc64le.patch
 BuildRequires:  openssl-devel
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %define         johndir /var/lib/john
@@ -47,6 +48,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 # adapt the configs
 perl -pi -e "s#Wordlist = (.*)#Wordlist = %{johndir}/password.lst#g" 
$RPM_BUILD_DIR/%{name}-%{version}/run/john.conf
 perl -pi -e 's#^(\#define JOHN_SYSTEMWIDE_EXEC)\s.+$#$1\t\"%{johndir}\"#g' 
$RPM_BUILD_DIR/%{name}-%{version}/src/params.h
@@ -71,7 +73,7 @@
 %ifarch ppc
                TARGET=linux-ppc32
 %endif
-%ifarch ppc64
+%ifarch ppc64 ppc64le
                TARGET=linux-ppc64
 %endif
 %ifarch sparc sparcv9




++++++ ppc64le.patch ++++++
Index: john-1.8.0/src/ppc64.h
===================================================================
--- john-1.8.0.orig/src/ppc64.h
+++ john-1.8.0/src/ppc64.h
@@ -20,7 +20,11 @@
 #define ARCH_BITS                      64
 #define ARCH_BITS_LOG                  6
 #define ARCH_BITS_STR                  "64"
+#if defined(__LITTLE_ENDIAN__)
+#define ARCH_LITTLE_ENDIAN             1
+#else
 #define ARCH_LITTLE_ENDIAN             0
+#endif
 #define ARCH_INT_GT_32                 0
 #define ARCH_ALLOWS_UNALIGNED          0
 #define ARCH_INDEX(x)                  ((unsigned int)(unsigned char)(x))
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to