diff options
author | Karel Kočí <cynerd@email.cz> | 2019-10-02 23:34:44 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2019-10-02 23:34:44 +0200 |
commit | e9579a7881a161f6de392410f5a4b31bd40c9f1d (patch) | |
tree | 0086444ed077d46a89b8a352e05ef287ca883a5d | |
parent | c51da9ef4dcdea6ae67fd3286181336a722b4c3a (diff) | |
download | gentoo-personal-overlay-e9579a7881a161f6de392410f5a4b31bd40c9f1d.tar.gz gentoo-personal-overlay-e9579a7881a161f6de392410f5a4b31bd40c9f1d.tar.bz2 gentoo-personal-overlay-e9579a7881a161f6de392410f5a4b31bd40c9f1d.zip |
Update openssl to openssl-compact
-rw-r--r-- | dev-libs/openssl-compat/Manifest (renamed from dev-libs/openssl/Manifest) | 0 | ||||
-rw-r--r-- | dev-libs/openssl-compat/files/gentoo.config-1.0.2 (renamed from dev-libs/openssl/files/gentoo.config-1.0.2) | 0 | ||||
-rw-r--r-- | dev-libs/openssl-compat/files/openssl-1.0.2g-version-script.patch (renamed from dev-libs/openssl/files/openssl-1.0.2g-version-script.patch) | 0 | ||||
-rw-r--r-- | dev-libs/openssl-compat/files/openssl-1.0.2p-hobble-ecc.patch (renamed from dev-libs/openssl/files/openssl-1.0.2p-hobble-ecc.patch) | 0 | ||||
-rw-r--r-- | dev-libs/openssl-compat/openssl-compat-1.0.2t-r1.ebuild (renamed from dev-libs/openssl/openssl-1.0.2t-r201.ebuild) | 92 | ||||
-rw-r--r-- | dev-libs/openssl/files/openssl-1.0.2a-x32-asm.patch | 43 | ||||
-rw-r--r-- | profiles/gaming/package.use | 2 | ||||
-rw-r--r-- | profiles/gaming/packages | 3 |
8 files changed, 17 insertions, 123 deletions
diff --git a/dev-libs/openssl/Manifest b/dev-libs/openssl-compat/Manifest index 9ff2f37..9ff2f37 100644 --- a/dev-libs/openssl/Manifest +++ b/dev-libs/openssl-compat/Manifest diff --git a/dev-libs/openssl/files/gentoo.config-1.0.2 b/dev-libs/openssl-compat/files/gentoo.config-1.0.2 index d16175e..d16175e 100644 --- a/dev-libs/openssl/files/gentoo.config-1.0.2 +++ b/dev-libs/openssl-compat/files/gentoo.config-1.0.2 diff --git a/dev-libs/openssl/files/openssl-1.0.2g-version-script.patch b/dev-libs/openssl-compat/files/openssl-1.0.2g-version-script.patch index 454f862..454f862 100644 --- a/dev-libs/openssl/files/openssl-1.0.2g-version-script.patch +++ b/dev-libs/openssl-compat/files/openssl-1.0.2g-version-script.patch diff --git a/dev-libs/openssl/files/openssl-1.0.2p-hobble-ecc.patch b/dev-libs/openssl-compat/files/openssl-1.0.2p-hobble-ecc.patch index 3a458a7..3a458a7 100644 --- a/dev-libs/openssl/files/openssl-1.0.2p-hobble-ecc.patch +++ b/dev-libs/openssl-compat/files/openssl-1.0.2p-hobble-ecc.patch diff --git a/dev-libs/openssl/openssl-1.0.2t-r201.ebuild b/dev-libs/openssl-compat/openssl-compat-1.0.2t-r1.ebuild index 53f8640..b17f3c0 100644 --- a/dev-libs/openssl/openssl-1.0.2t-r201.ebuild +++ b/dev-libs/openssl-compat/openssl-compat-1.0.2t-r1.ebuild @@ -10,7 +10,7 @@ inherit flag-o-matic toolchain-funcs multilib multilib-minimal # Please use 1.7 version number when rolling a new tarball! PATCH_SET="openssl-1.0.2-patches-1.5" -MY_P=${P/_/-} +MY_P=openssl-${PV/_/-} # This patch set is based on the following files from Fedora 25, # see https://src.fedoraproject.org/rpms/openssl/blob/25/f/openssl.spec @@ -30,21 +30,21 @@ SRC_URI="mirror://openssl/source/${MY_P}.tar.gz ) !vanilla? ( mirror://gentoo/${PATCH_SET}.tar.xz - https://dev.gentoo.org/~chutzpah/dist/${PN}/${PATCH_SET}.tar.xz - https://dev.gentoo.org/~whissi/dist/${PN}/${PATCH_SET}.tar.xz + https://dev.gentoo.org/~chutzpah/dist/openssl/${PATCH_SET}.tar.xz + https://dev.gentoo.org/~whissi/dist/openssl/${PATCH_SET}.tar.xz https://dev.gentoo.org/~polynomial-c/dist/${PATCH_SET}.tar.xz )" LICENSE="openssl" -SLOT="0" -KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 ~riscv s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-linux" +SLOT="1.0.0" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-linux" IUSE="+asm bindist gmp kerberos rfc3779 sctp cpu_flags_x86_sse2 sslv2 +sslv3 static-libs test +tls-heartbeat vanilla versioned zlib" RESTRICT="!bindist? ( bindist )" -RDEPEND=">=app-misc/c_rehash-1.7-r1 - gmp? ( >=dev-libs/gmp-5.1.3-r1[static-libs(+)?,${MULTILIB_USEDEP}] ) +RDEPEND="gmp? ( >=dev-libs/gmp-5.1.3-r1[static-libs(+)?,${MULTILIB_USEDEP}] ) kerberos? ( >=app-crypt/mit-krb5-1.11.4[${MULTILIB_USEDEP}] ) - zlib? ( >=sys-libs/zlib-1.2.8-r1[static-libs(+)?,${MULTILIB_USEDEP}] )" + zlib? ( >=sys-libs/zlib-1.2.8-r1[static-libs(+)?,${MULTILIB_USEDEP}] ) + !=dev-libs/openssl-1.0.2*:0" DEPEND="${RDEPEND}" BDEPEND=" >=dev-lang/perl-5 @@ -53,7 +53,11 @@ BDEPEND=" sys-apps/diffutils sys-devel/bc )" -PDEPEND="app-misc/ca-certificates" + +RESTRICT="test" + +# Do not install any docs +DOCS=() S="${WORKDIR}/${MY_P}" @@ -239,10 +243,7 @@ multilib_src_compile() { # depend is needed to use $confopts; it also doesn't matter # that it's -j1 as the code itself serializes subdirs emake -j1 V=1 depend - emake all - # rehash is needed to prep the certs/ dir; do this - # separately to avoid parallel build issues. - emake rehash + emake build_libs } multilib_src_test() { @@ -250,68 +251,5 @@ multilib_src_test() { } multilib_src_install() { - # We need to create $ED/usr on our own to avoid a race condition #665130 - if [[ ! -d "${ED}/usr" ]]; then - # We can only create this directory once - mkdir "${ED}"/usr || die - fi - - emake INSTALL_PREFIX="${D}" install -} - -multilib_src_install_all() { - # openssl installs perl version of c_rehash by default, but - # we provide a shell version via app-misc/c_rehash - rm "${ED}"/usr/bin/c_rehash || die - - local -a DOCS=( CHANGES* FAQ NEWS README doc/*.txt doc/c-indentation.el ) - einstalldocs - - use rfc3779 && dodoc engines/ccgost/README.gost - - # This is crappy in that the static archives are still built even - # when USE=static-libs. But this is due to a failing in the openssl - # build system: the static archives are built as PIC all the time. - # Only way around this would be to manually configure+compile openssl - # twice; once with shared lib support enabled and once without. - use static-libs || rm -f "${ED}"/usr/lib*/lib*.a - - # create the certs directory - dodir ${SSL_CNF_DIR}/certs - cp -RP certs/* "${ED}"${SSL_CNF_DIR}/certs/ || die - rm -r "${ED}"${SSL_CNF_DIR}/certs/{demo,expired} - - # Namespace openssl programs to prevent conflicts with other man pages - cd "${ED}"/usr/share/man - local m d s - for m in $(find . -type f | xargs grep -L '#include') ; do - d=${m%/*} ; d=${d#./} ; m=${m##*/} - [[ ${m} == openssl.1* ]] && continue - [[ -n $(find -L ${d} -type l) ]] && die "erp, broken links already!" - mv ${d}/{,ssl-}${m} - # fix up references to renamed man pages - sed -i '/^[.]SH "SEE ALSO"/,/^[.]/s:\([^(, ]*(1)\):ssl-\1:g' ${d}/ssl-${m} - ln -s ssl-${m} ${d}/openssl-${m} - # locate any symlinks that point to this man page ... we assume - # that any broken links are due to the above renaming - for s in $(find -L ${d} -type l) ; do - s=${s##*/} - rm -f ${d}/${s} - ln -s ssl-${m} ${d}/ssl-${s} - ln -s ssl-${s} ${d}/openssl-${s} - done - done - [[ -n $(find -L ${d} -type l) ]] && die "broken manpage links found :(" - - dodir /etc/sandbox.d #254521 - echo 'SANDBOX_PREDICT="/dev/crypto"' > "${ED}"/etc/sandbox.d/10openssl - - diropts -m0700 - keepdir ${SSL_CNF_DIR}/private -} - -pkg_postinst() { - ebegin "Running 'c_rehash ${EROOT}${SSL_CNF_DIR}/certs/' to rebuild hashes #333069" - c_rehash "${EROOT}${SSL_CNF_DIR}/certs" >/dev/null - eend $? + dolib.so lib{crypto,ssl}.so.${SLOT} } diff --git a/dev-libs/openssl/files/openssl-1.0.2a-x32-asm.patch b/dev-libs/openssl/files/openssl-1.0.2a-x32-asm.patch deleted file mode 100644 index 3a005c9..0000000 --- a/dev-libs/openssl/files/openssl-1.0.2a-x32-asm.patch +++ /dev/null @@ -1,43 +0,0 @@ -https://rt.openssl.org/Ticket/Display.html?id=3759&user=guest&pass=guest - -From 6257d59b3a68d2feb9d64317a1c556dc3813ee61 Mon Sep 17 00:00:00 2001 -From: Mike Frysinger <vapier@gentoo.org> -Date: Sat, 21 Mar 2015 06:01:25 -0400 -Subject: [PATCH] crypto: use bigint in x86-64 perl - -When building on x32 systems where the default type is 32bit, make sure -we can transparently represent 64bit integers. Otherwise we end up with -build errors like: -/usr/bin/perl asm/ghash-x86_64.pl elf > ghash-x86_64.s -Integer overflow in hexadecimal number at asm/../../perlasm/x86_64-xlate.pl line 201, <> line 890. -... -ghash-x86_64.s: Assembler messages: -ghash-x86_64.s:890: Error: junk '.15473355479995e+19' after expression - -We don't enable this globally as there are some cases where we'd get -32bit values interpreted as unsigned when we need them as signed. - -Reported-by: Bertrand Jacquin <bertrand@jacquin.bzh> -URL: https://bugs.gentoo.org/542618 ---- - crypto/perlasm/x86_64-xlate.pl | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/crypto/perlasm/x86_64-xlate.pl b/crypto/perlasm/x86_64-xlate.pl -index aae8288..0bf9774 100755 ---- a/crypto/perlasm/x86_64-xlate.pl -+++ b/crypto/perlasm/x86_64-xlate.pl -@@ -195,6 +195,10 @@ my %globals; - sub out { - my $self = shift; - -+ # When building on x32 ABIs, the expanded hex value might be too -+ # big to fit into 32bits. Enable transparent 64bit support here -+ # so we can safely print it out. -+ use bigint; - if ($gas) { - # Solaris /usr/ccs/bin/as can't handle multiplications - # in $self->{value} --- -2.3.3 - diff --git a/profiles/gaming/package.use b/profiles/gaming/package.use index 85c6a8b..a87c4c0 100644 --- a/profiles/gaming/package.use +++ b/profiles/gaming/package.use @@ -3,7 +3,7 @@ games-strategy/wesnoth server games-simulation/openttd uci openmedia # Various binary games and hacks for them -dev-libs/openssl versioned +dev-libs/openssl-compat versioned # For CKAN dev-lang/mono -abi_x86_32 diff --git a/profiles/gaming/packages b/profiles/gaming/packages index d4e1247..f643806 100644 --- a/profiles/gaming/packages +++ b/profiles/gaming/packages @@ -14,6 +14,7 @@ dev-lang/mono games-util/steam-launcher games-util/esteam +dev-libs/openssl-compat # Packages I need according to wiki for Steam dev-libs/glib:2 dev-libs/libgcrypt @@ -48,5 +49,3 @@ x11-libs/libXrandr x11-libs/libXrender x11-libs/pango x11-libs/pixman - -dev-libs/openssl:1.0.0 |