dev-libs/openssl: Fixed parallel install
authorLars Wendler <polynomial-c@gentoo.org>
Tue, 25 Dec 2018 17:23:56 +0000 (18:23 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Tue, 25 Dec 2018 17:23:56 +0000 (18:23 +0100)
Closes: https://bugs.gentoo.org/671602
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
dev-libs/openssl/files/openssl-1.1.0j-parallel_install_fix.patch [new file with mode: 0644]
dev-libs/openssl/openssl-1.1.0j.ebuild

diff --git a/dev-libs/openssl/files/openssl-1.1.0j-parallel_install_fix.patch b/dev-libs/openssl/files/openssl-1.1.0j-parallel_install_fix.patch
new file mode 100644 (file)
index 0000000..c837e20
--- /dev/null
@@ -0,0 +1,21 @@
+https://github.com/openssl/openssl/issues/7679
+
+--- a/Configurations/unix-Makefile.tmpl
++++ b/Configurations/unix-Makefile.tmpl
+@@ -77,8 +77,14 @@
+      # to. You're welcome.
+      sub dependmagic {
+          my $target = shift;
+-
+-         return "$target: build_generated\n\t\$(MAKE) depend && \$(MAKE) _$target\n_$target";
++                my $magic = <<"_____";
++$target: build_generated depend
++               \$(MAKE) _$target
++_$target
++_____
++               # Remove line ending
++               $magic =~ s|\R$||;
++               return $magic;
+      }
+      '';
+ -}
index e46218cc48380cbcbf832d5f68b3b0b6255069eb..9394eac2532726c61f90d6379484a4231482124a 100644 (file)
@@ -56,6 +56,7 @@ MULTILIB_WRAPPED_HEADERS=(
 
 PATCHES=(
        "${FILESDIR}"/${PN}-1.0.2a-x32-asm.patch #542618
+       "${FILESDIR}"/${PN}-1.1.0j-parallel_install_fix.patch #671602
 )
 
 src_prepare() {