Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/openssl/files/, dev-libs/openssl/
Date: Sun, 20 Sep 2015 18:13:21
Message-Id: 1442772741.7b2ffc3b84bc53e596a2517aae8c061f2e99fd22.vapier@gentoo
1 commit: 7b2ffc3b84bc53e596a2517aae8c061f2e99fd22
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 20 18:11:11 2015 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 20 18:12:21 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b2ffc3b
7
8 dev-libs/openssl: fix config script for a few targets #560812
9
10 We were missing trailing globs for aarch64/be and ppc/le to match the
11 ABI value. This also updates the ppc64le target to use the new config
12 value that is available with the 1.0.2 series.
13
14 dev-libs/openssl/files/gentoo.config-1.0.2 | 165 +++++++++++++++++++++++++++++
15 dev-libs/openssl/openssl-1.0.2d.ebuild | 2 +-
16 2 files changed, 166 insertions(+), 1 deletion(-)
17
18 diff --git a/dev-libs/openssl/files/gentoo.config-1.0.2 b/dev-libs/openssl/files/gentoo.config-1.0.2
19 new file mode 100755
20 index 0000000..b3f6ced
21 --- /dev/null
22 +++ b/dev-libs/openssl/files/gentoo.config-1.0.2
23 @@ -0,0 +1,165 @@
24 +#!/usr/bin/env bash
25 +# Copyright 1999-2014 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +# $Id$
28 +#
29 +# Openssl doesn't play along nicely with cross-compiling
30 +# like autotools based projects, so let's teach it new tricks.
31 +#
32 +# Review the bundled 'config' script to see why kind of targets
33 +# we can pass to the 'Configure' script.
34 +
35 +
36 +# Testing routines
37 +if [[ $1 == "test" ]] ; then
38 + for c in \
39 + "arm-gentoo-linux-uclibc |linux-generic32 -DL_ENDIAN" \
40 + "armv5b-linux-gnu |linux-armv4 -DB_ENDIAN" \
41 + "x86_64-pc-linux-gnu |linux-x86_64" \
42 + "alpha-linux-gnu |linux-alpha-gcc" \
43 + "alphaev56-unknown-linux-gnu |linux-alpha+bwx-gcc" \
44 + "i686-pc-linux-gnu |linux-elf" \
45 + "whatever-gentoo-freebsdX.Y |BSD-generic32" \
46 + "i686-gentoo-freebsdX.Y |BSD-x86-elf" \
47 + "sparc64-alpha-freebsdX.Y |BSD-sparc64" \
48 + "ia64-gentoo-freebsd5.99234 |BSD-ia64" \
49 + "x86_64-gentoo-freebsdX.Y |BSD-x86_64" \
50 + "hppa64-aldsF-linux-gnu5.3 |linux-generic32 -DB_ENDIAN" \
51 + "powerpc-gentOO-linux-uclibc |linux-ppc" \
52 + "powerpc64-unk-linux-gnu |linux-ppc64" \
53 + "powerpc64le-linux-gnu |linux-ppc64le" \
54 + "x86_64-apple-darwinX |darwin64-x86_64-cc" \
55 + "powerpc64-apple-darwinX |darwin64-ppc-cc" \
56 + "i686-apple-darwinX |darwin-i386-cc" \
57 + "i386-apple-darwinX |darwin-i386-cc" \
58 + "powerpc-apple-darwinX |darwin-ppc-cc" \
59 + "i586-pc-winnt |winnt-parity" \
60 + "s390-ibm-linux-gnu |linux-generic32 -DB_ENDIAN" \
61 + "s390x-linux-gnu |linux64-s390x" \
62 + ;do
63 + CHOST=${c/|*}
64 + ret_want=${c/*|}
65 + ret_got=$(CHOST=${CHOST} "$0")
66 +
67 + if [[ ${ret_want} == "${ret_got}" ]] ; then
68 + echo "PASS: ${CHOST}"
69 + else
70 + echo "FAIL: ${CHOST}"
71 + echo -e "\twanted: ${ret_want}"
72 + echo -e "\twe got: ${ret_got}"
73 + fi
74 + done
75 + exit 0
76 +fi
77 +[[ -z ${CHOST} && -n $1 ]] && CHOST=$1
78 +
79 +
80 +# Detect the operating system
81 +case ${CHOST} in
82 + *-aix*) system="aix";;
83 + *-darwin*) system="darwin";;
84 + *-freebsd*) system="BSD";;
85 + *-hpux*) system="hpux";;
86 + *-linux*) system="linux";;
87 + *-solaris*) system="solaris";;
88 + *-winnt*) system="winnt";;
89 + x86_64-*-mingw*) system="mingw64";;
90 + *mingw*) system="mingw";;
91 + *) exit 0;;
92 +esac
93 +
94 +
95 +# Compiler munging
96 +compiler="gcc"
97 +if [[ ${CC} == "ccc" ]] ; then
98 + compiler=${CC}
99 +fi
100 +
101 +
102 +# Detect target arch
103 +machine=""
104 +chost_machine=${CHOST%%-*}
105 +case ${system} in
106 +linux)
107 + case ${chost_machine}:${ABI} in
108 + aarch64*be*) machine="generic64 -DB_ENDIAN";;
109 + aarch64*) machine="generic64 -DL_ENDIAN";;
110 + alphaev56*|\
111 + alphaev[678]*)machine=alpha+bwx-${compiler};;
112 + alpha*) machine=alpha-${compiler};;
113 + armv[4-9]*b*) machine="armv4 -DB_ENDIAN";;
114 + armv[4-9]*) machine="armv4 -DL_ENDIAN";;
115 + arm*b*) machine="generic32 -DB_ENDIAN";;
116 + arm*) machine="generic32 -DL_ENDIAN";;
117 + avr*) machine="generic32 -DL_ENDIAN";;
118 + bfin*) machine="generic32 -DL_ENDIAN";;
119 + # hppa64*) machine=parisc64;;
120 + hppa*) machine="generic32 -DB_ENDIAN";;
121 + i[0-9]86*|\
122 + x86_64*:x86) machine=elf;;
123 + ia64*) machine=ia64;;
124 + m68*) machine="generic32 -DB_ENDIAN";;
125 + mips*el*) machine="generic32 -DL_ENDIAN";;
126 + mips*) machine="generic32 -DB_ENDIAN";;
127 + powerpc64*le*)machine=ppc64le;;
128 + powerpc64*) machine=ppc64;;
129 + powerpc*le*) machine="generic32 -DL_ENDIAN";;
130 + powerpc*) machine=ppc;;
131 + # sh64*) machine=elf;;
132 + sh*b*) machine="generic32 -DB_ENDIAN";;
133 + sh*) machine="generic32 -DL_ENDIAN";;
134 + sparc*v7*) machine="generic32 -DB_ENDIAN";;
135 + sparc64*) machine=sparcv9;;
136 + sparc*) machine=sparcv8;;
137 + s390x*) machine=s390x system=linux64;;
138 + s390*) machine="generic32 -DB_ENDIAN";;
139 + x86_64*:x32) machine=x32;;
140 + x86_64*) machine=x86_64;;
141 + esac
142 + ;;
143 +BSD)
144 + case ${chost_machine} in
145 + alpha*) machine=generic64;;
146 + i[6-9]86*) machine=x86-elf;;
147 + ia64*) machine=ia64;;
148 + sparc64*) machine=sparc64;;
149 + x86_64*) machine=x86_64;;
150 + *) machine=generic32;;
151 + esac
152 + ;;
153 +aix)
154 + machine=${compiler}
155 + ;;
156 +darwin)
157 + case ${chost_machine} in
158 + powerpc64) machine=ppc-cc; system=${system}64;;
159 + powerpc) machine=ppc-cc;;
160 + i?86*) machine=i386-cc;;
161 + x86_64) machine=x86_64-cc; system=${system}64;;
162 + esac
163 + ;;
164 +hpux)
165 + case ${chost_machine} in
166 + ia64) machine=ia64-${compiler} ;;
167 + esac
168 + ;;
169 +solaris)
170 + case ${chost_machine} in
171 + i386) machine=x86-${compiler} ;;
172 + x86_64*) machine=x86_64-${compiler}; system=${system}64;;
173 + sparcv9*) machine=sparcv9-${compiler}; system=${system}64;;
174 + sparc*) machine=sparcv8-${compiler};;
175 + esac
176 + ;;
177 +winnt)
178 + machine=parity
179 + ;;
180 +mingw*)
181 + # special case ... no xxx-yyy style name
182 + echo ${system}
183 + ;;
184 +esac
185 +
186 +
187 +# If we have something, show it
188 +[[ -n ${machine} ]] && echo ${system}-${machine}
189
190 diff --git a/dev-libs/openssl/openssl-1.0.2d.ebuild b/dev-libs/openssl/openssl-1.0.2d.ebuild
191 index 8947be6..461e714 100644
192 --- a/dev-libs/openssl/openssl-1.0.2d.ebuild
193 +++ b/dev-libs/openssl/openssl-1.0.2d.ebuild
194 @@ -96,7 +96,7 @@ src_prepare() {
195 [[ ${CC} == *clang* ]] && append-flags -Qunused-arguments
196
197 # allow openssl to be cross-compiled
198 - cp "${FILESDIR}"/gentoo.config-1.0.1 gentoo.config || die
199 + cp "${FILESDIR}"/gentoo.config-1.0.2 gentoo.config || die
200 chmod a+rx gentoo.config
201
202 append-flags -fno-strict-aliasing