summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-01-04 20:49:41 +0100
committerFabian Groffen <grobian@gentoo.org>2018-01-04 20:49:41 +0100
commit2a74795f2cb6221e104b6d5150db62f0c1b59af4 (patch)
tree3386ccb3c4162c3f0cf63955cf415b881759a8d5
parentscripts/bootstrap-prefix: update snapshots (diff)
downloadprefix-2a74795f2cb6221e104b6d5150db62f0c1b59af4.tar.gz
prefix-2a74795f2cb6221e104b6d5150db62f0c1b59af4.tar.bz2
prefix-2a74795f2cb6221e104b6d5150db62f0c1b59af4.zip
dev-libs/openssl: add patch for FreeMiNT by Alan Hourihane
Closes: https://bugs.gentoo.org/643410 Package-Manager: Portage-2.3.18-prefix, Repoman-2.3.6
-rw-r--r--dev-libs/openssl/files/openssl-1.0.2l-mint.patch33
-rw-r--r--dev-libs/openssl/openssl-1.0.2l.ebuild3
2 files changed, 35 insertions, 1 deletions
diff --git a/dev-libs/openssl/files/openssl-1.0.2l-mint.patch b/dev-libs/openssl/files/openssl-1.0.2l-mint.patch
new file mode 100644
index 0000000000..2afcb3f2de
--- /dev/null
+++ b/dev-libs/openssl/files/openssl-1.0.2l-mint.patch
@@ -0,0 +1,33 @@
+--- Configure
++++ Configure
+@@ -502,6 +502,9 @@
+ # Interix (GCC)
+ "interix-gcc", "gcc:-D_ALL_SOURCE -DL_ENDIAN -DTERMIOS -O2 -Wall::-D_REENTRANT::-ldl:::::::::::::dlfcn:gnu:::.so.\$(SHLIB_MAJOR).\$(SHLIB_MINOR)",
+
++# FreeMiNT (GCC)
++"mint-gcc", "gcc:-O2 -fomit-frame-pointer -DB_ENDIAN -DTERMIOS::-D_REENTRANT:::BN_LLONG:::",
++
+ # Borland C++ 4.5
+ "BC-32","bcc32::::WIN32::BN_LLONG DES_PTR RC4_INDEX EXPORT_VAR_AS_FN:${no_asm}:win32",
+
+--- config
++++ config
+@@ -170,6 +170,10 @@
+ echo "${MACHINE}-whatever-linux1"; exit 0
+ ;;
+
++ FreeMiNT*)
++ echo "m68k-atari-mint"; exit 0;
++ ;;
++
+ GNU*)
+ echo "hurd-x86"; exit 0;
+ ;;
+@@ -859,6 +863,7 @@
+ *-*-qnx6) OUT="QNX6" ;;
+ x86-*-android|i?86-*-android) OUT="android-x86" ;;
+ armv[7-9]*-*-android) OUT="android-armv7" ;;
++ *-mint*) OUT="mint-gcc" ;;
+ *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;;
+ esac
+
diff --git a/dev-libs/openssl/openssl-1.0.2l.ebuild b/dev-libs/openssl/openssl-1.0.2l.ebuild
index 2022ae6658..21850a7d25 100644
--- a/dev-libs/openssl/openssl-1.0.2l.ebuild
+++ b/dev-libs/openssl/openssl-1.0.2l.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="5"
@@ -79,6 +79,7 @@ src_prepare() {
epatch "${FILESDIR}"/${PN}-1.0.0b-darwin-bundle-compile-fix.patch
epatch "${FILESDIR}"/${PN}-1.0.2-gethostbyname2-solaris.patch
epatch "${FILESDIR}"/${PN}-1.0.2l-winnt.patch # parity
+ epatch "${FILESDIR}"/${PN}-1.0.2l-mint.patch
# remove -arch for Darwin
sed -i '/^"darwin/s,-arch [^ ]\+,,g' Configure || die