From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5ACDC138334 for ; Fri, 15 Feb 2019 18:58:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8A4F6E0895; Fri, 15 Feb 2019 18:58:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 53F0BE0895 for ; Fri, 15 Feb 2019 18:58:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 183AF335CBD for ; Fri, 15 Feb 2019 18:58:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AA74253A for ; Fri, 15 Feb 2019 18:58:52 +0000 (UTC) From: "Michael Haubenwallner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Haubenwallner" Message-ID: <1550257063.1dbc9be7219d95a6c05f0cea520ec931d9e18541.haubi@gentoo> Subject: [gentoo-commits] repo/proj/prefix:master commit in: dev-libs/openssl/, dev-libs/openssl/files/ X-VCS-Repository: repo/proj/prefix X-VCS-Files: dev-libs/openssl/files/openssl-1.1.1a-cygwin-binmode.patch dev-libs/openssl/openssl-1.1.1a-r1.ebuild X-VCS-Directories: dev-libs/openssl/ dev-libs/openssl/files/ X-VCS-Committer: haubi X-VCS-Committer-Name: Michael Haubenwallner X-VCS-Revision: 1dbc9be7219d95a6c05f0cea520ec931d9e18541 X-VCS-Branch: master Date: Fri, 15 Feb 2019 18:58:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 351827e8-44b5-4dfa-a96a-1fe3a1a6f40c X-Archives-Hash: d977862696a390cc464dcc91a0cea11c commit: 1dbc9be7219d95a6c05f0cea520ec931d9e18541 Author: Michael Haubenwallner gentoo org> AuthorDate: Fri Feb 15 18:57:28 2019 +0000 Commit: Michael Haubenwallner gentoo org> CommitDate: Fri Feb 15 18:57:43 2019 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=1dbc9be7 dev-libs/openssl: fix cygwin binmode Package-Manager: Portage-2.3.51, Repoman-2.3.11 Signed-off-by: Michael Haubenwallner gentoo.org> .../files/openssl-1.1.1a-cygwin-binmode.patch | 32 ++++++++++++++++++++++ dev-libs/openssl/openssl-1.1.1a-r1.ebuild | 4 +-- 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/dev-libs/openssl/files/openssl-1.1.1a-cygwin-binmode.patch b/dev-libs/openssl/files/openssl-1.1.1a-cygwin-binmode.patch new file mode 100644 index 0000000000..7ab2fd5065 --- /dev/null +++ b/dev-libs/openssl/files/openssl-1.1.1a-cygwin-binmode.patch @@ -0,0 +1,32 @@ +For the setmode(O_TEXT), not submitted upstream yet: +https://cygwin.com/ml/cygwin/2019-02/msg00150.html +https://cygwin.com/ml/cygwin/2019-02/msg00190.html + +For the chmod 644, accepted upstream: +https://github.com/openssl/openssl/pull/8226 +--- openssl-1.1.1a/crypto/bio/bss_file.c.orig 2019-02-15 19:41:48.605378800 +0100 ++++ openssl-1.1.1a/crypto/bio/bss_file.c 2019-02-15 19:42:53.136709200 +0100 +@@ -251,12 +251,6 @@ + } else + _setmode(fd, _O_BINARY); + } +-# elif defined(OPENSSL_SYS_WIN32_CYGWIN) +- int fd = fileno((FILE *)ptr); +- if (num & BIO_FP_TEXT) +- setmode(fd, O_TEXT); +- else +- setmode(fd, O_BINARY); + # endif + } + break; +--- openssl-1.1.1a/Configurations/unix-Makefile.tmpl.orig 2019-02-15 19:47:36.464755100 +0100 ++++ openssl-1.1.1a/Configurations/unix-Makefile.tmpl 2019-02-15 19:47:42.605379700 +0100 +@@ -650,7 +650,7 @@ + : {- output_off() unless windowsdll(); "" -}; \ + $(ECHO) "install $$s -> $(DESTDIR)$(INSTALLTOP)/bin/$$fn"; \ + cp $$s $(DESTDIR)$(INSTALLTOP)/bin/$$fn.new; \ +- chmod 644 $(DESTDIR)$(INSTALLTOP)/bin/$$fn.new; \ ++ chmod 755 $(DESTDIR)$(INSTALLTOP)/bin/$$fn.new; \ + mv -f $(DESTDIR)$(INSTALLTOP)/bin/$$fn.new \ + $(DESTDIR)$(INSTALLTOP)/bin/$$fn; \ + : {- output_on() unless windowsdll(); "" -}{- output_off() if windowsdll(); "" -}; \ diff --git a/dev-libs/openssl/openssl-1.1.1a-r1.ebuild b/dev-libs/openssl/openssl-1.1.1a-r1.ebuild index 7e5e38380f..a6f6e713e2 100644 --- a/dev-libs/openssl/openssl-1.1.1a-r1.ebuild +++ b/dev-libs/openssl/openssl-1.1.1a-r1.ebuild @@ -37,6 +37,7 @@ PATCHES=( "${FILESDIR}"/${P}-preserve-system-error-number-in-a-few-more-places.patch "${FILESDIR}"/${P}-fix-a-minor-nit-in-hkdflabel-size.patch "${FILESDIR}"/${P}-fix-cert-with-rsa-instead-of-rsaEncryption.patch + "${FILESDIR}"/${P}-cygwin-binmode.patch ) # This does not copy the entire Fedora patchset, but JUST the parts that @@ -95,8 +96,6 @@ src_prepare() { if [[ $(declare -p PATCHES 2>/dev/null) == "declare -a"* ]] ; then [[ ${#PATCHES[@]} -gt 0 ]] && eapply "${PATCHES[@]}" fi - # for Cygwin, https://github.com/openssl/openssl/pull/8226 - sed -i -e '/chmod 644 .*bin/s/644/755/' Configurations/unix-Makefile.tmpl || die fi eapply_user #332661 @@ -138,7 +137,6 @@ src_prepare() { -e '/^$config{dirs}/s@ "test",@@' \ -i Configure || die fi - # The config script does stupid stuff to prompt the user. Kill it. sed -i '/stty -icanon min 0 time 50; read waste/d' config || die ./config --test-sanity || die "I AM NOT SANE"