1 |
commit: ac980372dc0487ad5f8f773dba883bb7f32a679f |
2 |
Author: Sven Eden <sven.eden <AT> prydeworx <DOT> com> |
3 |
AuthorDate: Tue Sep 29 07:32:46 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 30 07:06:39 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac980372 |
7 |
|
8 |
dev-libs/aws-c-common: Remove -Werror from build FLAGS |
9 |
|
10 |
Issue: dev-libs/aws-c-common-0.4.57 uses -Werror for build. |
11 |
Discovered on: amd64 (internal ref: ci) |
12 |
|
13 |
-Werror is not recommended for releases and should always be disabled |
14 |
when encountered in build-logs, because there are numerous cases |
15 |
where this breaks without purpose. |
16 |
|
17 |
Closes: https://bugs.gentoo.org/745093 |
18 |
Package-Manager: Portage-3.0.8, Repoman-3.0.1 |
19 |
Signed-off-by: Sven Eden <sven.eden <AT> prydeworx.com> |
20 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
21 |
|
22 |
...s-c-common-0.4.57.ebuild => aws-c-common-0.4.57-r1.ebuild} | 4 ++++ |
23 |
.../files/aws-c-common-0.4.57-remove-Werror-CFLAG.patch | 11 +++++++++++ |
24 |
2 files changed, 15 insertions(+) |
25 |
|
26 |
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 |
27 |
similarity index 90% |
28 |
rename from dev-libs/aws-c-common/aws-c-common-0.4.57.ebuild |
29 |
rename to dev-libs/aws-c-common/aws-c-common-0.4.57-r1.ebuild |
30 |
index f12798d2668..120faea56d6 100644 |
31 |
--- a/dev-libs/aws-c-common/aws-c-common-0.4.57.ebuild |
32 |
+++ b/dev-libs/aws-c-common/aws-c-common-0.4.57-r1.ebuild |
33 |
@@ -16,6 +16,10 @@ IUSE="static-libs test" |
34 |
|
35 |
RESTRICT="!test? ( test )" |
36 |
|
37 |
+PATCHES=( |
38 |
+ "${FILESDIR}"/${P}-remove-Werror-CFLAG.patch |
39 |
+) |
40 |
+ |
41 |
src_configure() { |
42 |
local mycmakeargs=( |
43 |
-DBUILD_SHARED_LIBS=$(usex !static-libs) |
44 |
|
45 |
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 |
46 |
new file mode 100644 |
47 |
index 00000000000..76740706245 |
48 |
--- /dev/null |
49 |
+++ b/dev-libs/aws-c-common/files/aws-c-common-0.4.57-remove-Werror-CFLAG.patch |
50 |
@@ -0,0 +1,11 @@ |
51 |
+--- a/cmake/AwsCFlags.cmake 2020-09-29 09:19:28.820584526 +0200 |
52 |
++++ b/cmake/AwsCFlags.cmake 2020-09-29 09:19:36.068584784 +0200 |
53 |
+@@ -48,7 +48,7 @@ |
54 |
+ list(APPEND AWS_C_FLAGS "${_FLAGS}") |
55 |
+ |
56 |
+ else() |
57 |
+- list(APPEND AWS_C_FLAGS -Wall -Werror -Wstrict-prototypes) |
58 |
++ list(APPEND AWS_C_FLAGS -Wall -Wstrict-prototypes) |
59 |
+ |
60 |
+ if(NOT SET_PROPERTIES_NO_WEXTRA) |
61 |
+ list(APPEND AWS_C_FLAGS -Wextra) |