Hello community,

here is the log from the commit of package libopenssl0_9_8 for openSUSE:Factory 
checked in at 2014-01-09 15:30:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libopenssl0_9_8 (Old)
 and      /work/SRC/openSUSE:Factory/.libopenssl0_9_8.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libopenssl0_9_8"

Changes:
--------
--- /work/SRC/openSUSE:Factory/libopenssl0_9_8/libopenssl0_9_8.changes  
2013-06-20 21:23:53.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.libopenssl0_9_8.new/libopenssl0_9_8.changes     
2014-01-09 15:30:01.000000000 +0100
@@ -1,0 +2,5 @@
+Wed Jan  8 17:28:52 UTC 2014 - norm...@linux.vnet.ibm.com
+
+- added patches:
+  * libopenssl_add_ppc64le.patch
+-------------------------------------------------------------------

New:
----
  libopenssl_add_ppc64le.patch

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

Other differences:
------------------
++++++ libopenssl0_9_8.spec ++++++
--- /var/tmp/diff_new_pack.eeU2F7/_old  2014-01-09 15:30:03.000000000 +0100
+++ /var/tmp/diff_new_pack.eeU2F7/_new  2014-01-09 15:30:03.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package libopenssl0_9_8
 #
-# 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
@@ -33,6 +33,7 @@
 Source2:        baselibs.conf
 Source10:       README.SuSE
 Patch0:         merge_from_0_9_8k.patch
+Patch1:         libopenssl_add_ppc64le.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Recommends:     openssl-certs
 
@@ -55,6 +56,7 @@
 %prep
 %setup -q -n openssl-%{version}
 %patch0  -p1
+%patch1  -p1
 cp -p %{S:10} .
 echo "adding/overwriting some entries in the 'table' hash in Configure"
 # 
$dso_scheme:$shared_target:$shared_cflag:$shared_ldflag:$shared_extension:$ranlib:$arflags

++++++ libopenssl_add_ppc64le.patch ++++++
Subject: libopenssl add ppc64le
From: Michel Normand <norm...@linux.vnet.ibm.com>

The ppc64le support need changes to crypto/bn/asm/ppc.pl
to generate the linux_ppc64le.s asm file for ABI V2.
minimalist change but sufficient as build and tests succeeded.

Signed-off-by: Michel Normand <norm...@linux.vnet.ibm.com>
---
 Configure            |    1 +
 config               |    1 +
 crypto/bn/Makefile   |    1 +
 crypto/bn/asm/ppc.pl |    9 +++++++--
 4 files changed, 10 insertions(+), 2 deletions(-)

Index: openssl-0.9.8x/config
===================================================================
--- openssl-0.9.8x.orig/config
+++ openssl-0.9.8x/config
@@ -550,6 +550,7 @@ case "$GUESSOS" in
        # we have the target and force it here
        OUT="linux-ppc64"
        ;;
+  ppc64le-*-linux2) OUT="linux-ppc64le" ;;
   ppc-*-linux2) OUT="linux-ppc" ;;
   ia64-*-linux?) OUT="linux-ia64" ;;
   sparc64-*-linux2)
Index: openssl-0.9.8x/Configure
===================================================================
--- openssl-0.9.8x.orig/Configure
+++ openssl-0.9.8x/Configure
@@ -340,6 +340,7 @@ my %table=(
 ####
 "linux-generic64","gcc:-DTERMIO -O3 
-Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_INT 
DES_UNROLL 
BF_PTR:${no_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 "linux-ppc64", "gcc:-m64 -DB_ENDIAN -DTERMIO -O3 
-Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 
DES_UNROLL::linux_ppc64.o::::::::::dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
+"linux-ppc64le",       "gcc:-m64 -DL_ENDIAN -DTERMIO -O3 
-Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG RC4_CHAR RC4_CHUNK DES_RISC1 
DES_UNROLL::linux_ppc64le.o::::::::::dlfcn:linux-shared:-fPIC:-m64:.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 "linux-ia64",  "gcc:-DL_ENDIAN -DTERMIO -O3 
-Wall::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG 
RC4_CHUNK:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 "linux-ia64-ecc","ecc:-DL_ENDIAN -DTERMIO -O2 -Wall 
-no_cpprt::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG 
RC4_CHUNK:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
 "linux-ia64-icc","icc:-DL_ENDIAN -DTERMIO -O2 -Wall 
-no_cpprt::-D_REENTRANT::-ldl:SIXTY_FOUR_BIT_LONG 
RC4_CHUNK:${ia64_asm}:dlfcn:linux-shared:-fPIC::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
Index: openssl-0.9.8x/crypto/bn/Makefile
===================================================================
--- openssl-0.9.8x.orig/crypto/bn/Makefile
+++ openssl-0.9.8x/crypto/bn/Makefile
@@ -113,6 +113,7 @@ pa-risc2.o: asm/pa-risc2.s
 # ppc - AIX, Linux, MacOS X...
 linux_ppc32.s: asm/ppc.pl;     $(PERL) $< $@
 linux_ppc64.s: asm/ppc.pl;     $(PERL) $< $@
+linux_ppc64le.s: asm/ppc.pl;   $(PERL) $< $@
 aix_ppc32.s: asm/ppc.pl;       $(PERL) asm/ppc.pl $@
 aix_ppc64.s: asm/ppc.pl;       $(PERL) asm/ppc.pl $@
 osx_ppc32.s: asm/ppc.pl;       $(PERL) $< $@
Index: openssl-0.9.8x/crypto/bn/asm/ppc.pl
===================================================================
--- openssl-0.9.8x.orig/crypto/bn/asm/ppc.pl
+++ openssl-0.9.8x/crypto/bn/asm/ppc.pl
@@ -125,7 +125,12 @@ if ($opf =~ /32\.s/) {
        $INSR=  "insrwi";       # insert right
        $ROTL=  "rotlwi";       # rotate left by immediate
        $TR=    "tw";           # conditional trap
-} elsif ($opf =~ /64\.s/) {
+} elsif (($opf =~ /64\.s/) || ($opf =~ /64le\.s/)) {
+       if ($opf =~ /64le\.s/) {
+               $ENDIAN= LE;
+       } else {
+               $ENDIAN= BE;
+       }
        $BITS=  64;
        $BNSZ=  $BITS/8;
        $ISA=   "\"ppc64\"";
@@ -181,7 +186,7 @@ else                        {  do_bsd();    }
 sub do_linux {
     $d=&data();
 
-    if ($BITS==64) {
+    if (($BITS==64) && ($ENDIAN eq 'BE')) {
       foreach $t (@items) {
         $d =~ s/\.$t:/\
 \t.section\t".opd","aw"\
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to