commit: ac980372dc0487ad5f8f773dba883bb7f32a679f Author: Sven Eden <sven.eden <AT> prydeworx <DOT> com> AuthorDate: Tue Sep 29 07:32:46 2020 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Wed Sep 30 07:06:39 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac980372
dev-libs/aws-c-common: Remove -Werror from build FLAGS Issue: dev-libs/aws-c-common-0.4.57 uses -Werror for build. Discovered on: amd64 (internal ref: ci) -Werror is not recommended for releases and should always be disabled when encountered in build-logs, because there are numerous cases where this breaks without purpose. Closes: https://bugs.gentoo.org/745093 Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Sven Eden <sven.eden <AT> prydeworx.com> Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> ...s-c-common-0.4.57.ebuild => aws-c-common-0.4.57-r1.ebuild} | 4 ++++ .../files/aws-c-common-0.4.57-remove-Werror-CFLAG.patch | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/dev-libs/aws-c-common/aws-c-common-0.4.57.ebuild b/dev-libs/aws-c-common/aws-c-common-0.4.57-r1.ebuild similarity index 90% rename from dev-libs/aws-c-common/aws-c-common-0.4.57.ebuild rename to dev-libs/aws-c-common/aws-c-common-0.4.57-r1.ebuild index f12798d2668..120faea56d6 100644 --- a/dev-libs/aws-c-common/aws-c-common-0.4.57.ebuild +++ b/dev-libs/aws-c-common/aws-c-common-0.4.57-r1.ebuild @@ -16,6 +16,10 @@ IUSE="static-libs test" RESTRICT="!test? ( test )" +PATCHES=( + "${FILESDIR}"/${P}-remove-Werror-CFLAG.patch +) + src_configure() { local mycmakeargs=( -DBUILD_SHARED_LIBS=$(usex !static-libs) diff --git a/dev-libs/aws-c-common/files/aws-c-common-0.4.57-remove-Werror-CFLAG.patch b/dev-libs/aws-c-common/files/aws-c-common-0.4.57-remove-Werror-CFLAG.patch new file mode 100644 index 00000000000..76740706245 --- /dev/null +++ b/dev-libs/aws-c-common/files/aws-c-common-0.4.57-remove-Werror-CFLAG.patch @@ -0,0 +1,11 @@ +--- a/cmake/AwsCFlags.cmake 2020-09-29 09:19:28.820584526 +0200 ++++ b/cmake/AwsCFlags.cmake 2020-09-29 09:19:36.068584784 +0200 +@@ -48,7 +48,7 @@ + list(APPEND AWS_C_FLAGS "${_FLAGS}") + + else() +- list(APPEND AWS_C_FLAGS -Wall -Werror -Wstrict-prototypes) ++ list(APPEND AWS_C_FLAGS -Wall -Wstrict-prototypes) + + if(NOT SET_PROPERTIES_NO_WEXTRA) + list(APPEND AWS_C_FLAGS -Wextra)
