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 651F9138350 for ; Wed, 29 Jan 2020 14:22:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 95DF6E08ED; Wed, 29 Jan 2020 14:22:26 +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 62073E08ED for ; Wed, 29 Jan 2020 14:22:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 1878A34E48B for ; Wed, 29 Jan 2020 14:22:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CA136B0 for ; Wed, 29 Jan 2020 14:22:23 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1580307733.9bdff0e5ea288b745e38ef08914fe141a127902c.blueness@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/mbedtls/, net-libs/mbedtls/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/mbedtls/files/mbedtls-un-pebcak-705038-wrong-file.patch net-libs/mbedtls/mbedtls-2.18.1-r1.ebuild net-libs/mbedtls/mbedtls-2.19.1-r1.ebuild X-VCS-Directories: net-libs/mbedtls/files/ net-libs/mbedtls/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 9bdff0e5ea288b745e38ef08914fe141a127902c X-VCS-Branch: master Date: Wed, 29 Jan 2020 14:22:23 +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: 7f148b56-2af7-4937-b419-d677e3731dc2 X-Archives-Hash: 32c8fa8e68360034a1787543b95b5f45 commit: 9bdff0e5ea288b745e38ef08914fe141a127902c Author: Anthony G. Basile gentoo org> AuthorDate: Wed Jan 29 14:21:46 2020 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Wed Jan 29 14:22:13 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bdff0e5 net-libs/mbedtls: fix wrong headers, bug #705038 Closes: https://bugs.gentoo.org/705038 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Anthony G. Basile gentoo.org> .../mbedtls-un-pebcak-705038-wrong-file.patch | 50 ++++++++++++++++++++++ net-libs/mbedtls/mbedtls-2.18.1-r1.ebuild | 1 + net-libs/mbedtls/mbedtls-2.19.1-r1.ebuild | 1 + 3 files changed, 52 insertions(+) diff --git a/net-libs/mbedtls/files/mbedtls-un-pebcak-705038-wrong-file.patch b/net-libs/mbedtls/files/mbedtls-un-pebcak-705038-wrong-file.patch new file mode 100644 index 00000000000..73e870fa1e4 --- /dev/null +++ b/net-libs/mbedtls/files/mbedtls-un-pebcak-705038-wrong-file.patch @@ -0,0 +1,50 @@ +Fix https://bugs.gentoo.org/705038 + +Thanks Greg Turner + +diff -urpN mbedtls-mbedtls-2.19.1.orig/crypto/include/CMakeLists.txt mbedtls-mbedtls-2.19.1/crypto/include/CMakeLists.txt +--- mbedtls-mbedtls-2.19.1.orig/crypto/include/CMakeLists.txt 2020-01-26 09:01:50.324231295 -0800 ++++ mbedtls-mbedtls-2.19.1/crypto/include/CMakeLists.txt 2020-01-26 09:04:26.498880873 -0800 +@@ -5,6 +5,19 @@ if(INSTALL_MBEDTLS_HEADERS) + file(GLOB headers "mbedtls/*.h") + file(GLOB psa_headers "psa/*.h") + ++ if(USE_CRYPTO_SUBMODULE) ++ # Don't overwrite mbedtls's header files! ++ # config.h is supposed to be automatically checked for compatibility ++ # in automatic builds, while the other files should not just be ++ # compatible, but also identical in theory. ++ # Practically, we don't check that in crypto but just assume that the ++ # submodule configuration is sane and trust tls's headers. ++ list(REMOVE_ITEM headers "${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/compat-1.3.h" ++ "${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/config.h" ++ "${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/error.h" ++ "${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/version.h") ++ endif(USE_CRYPTO_SUBMODULE) ++ + install(FILES ${headers} + DESTINATION include/mbedtls + PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) +diff -urpN mbedtls-mbedtls-2.19.1.orig/include/CMakeLists.txt mbedtls-mbedtls-2.19.1/include/CMakeLists.txt +--- mbedtls-mbedtls-2.19.1.orig/include/CMakeLists.txt 2020-01-26 09:01:50.320231227 -0800 ++++ mbedtls-mbedtls-2.19.1/include/CMakeLists.txt 2020-01-26 09:03:45.761189288 -0800 +@@ -4,19 +4,6 @@ if(INSTALL_MBEDTLS_HEADERS) + + file(GLOB headers "mbedtls/*.h") + +- if(USE_CRYPTO_SUBMODULE) +- # Don't overwrite mbedtls's header files! +- # config.h is supposed to be automatically checked for compatibility +- # in automatic builds, while the other files should not just be +- # compatible, but also identical in theory. +- # Practically, we don't check that in crypto but just assume that the +- # submodule configuration is sane and trust tls's headers. +- list(REMOVE_ITEM headers "${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/compat-1.3.h" +- "${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/config.h" +- "${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/error.h" +- "${CMAKE_CURRENT_SOURCE_DIR}/mbedtls/version.h") +- endif(USE_CRYPTO_SUBMODULE) +- + install(FILES ${headers} + DESTINATION include/mbedtls + PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ) diff --git a/net-libs/mbedtls/mbedtls-2.18.1-r1.ebuild b/net-libs/mbedtls/mbedtls-2.18.1-r1.ebuild index b11f2794a35..dfb900ea4c6 100644 --- a/net-libs/mbedtls/mbedtls-2.18.1-r1.ebuild +++ b/net-libs/mbedtls/mbedtls-2.18.1-r1.ebuild @@ -38,6 +38,7 @@ enable_mbedtls_option() { PATCHES=( "${FILESDIR}"/${PN}-dont-overwrite-headers.patch + "${FILESDIR}"/${PN}-un-pebcak-705038-wrong-file.patch ) src_prepare() { diff --git a/net-libs/mbedtls/mbedtls-2.19.1-r1.ebuild b/net-libs/mbedtls/mbedtls-2.19.1-r1.ebuild index 1a73d20f220..a18fc891988 100644 --- a/net-libs/mbedtls/mbedtls-2.19.1-r1.ebuild +++ b/net-libs/mbedtls/mbedtls-2.19.1-r1.ebuild @@ -38,6 +38,7 @@ enable_mbedtls_option() { PATCHES=( "${FILESDIR}"/${PN}-dont-overwrite-headers.patch + "${FILESDIR}"/${PN}-un-pebcak-705038-wrong-file.patch ) src_prepare() {