summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Eden <sven.eden@prydeworx.com>2020-12-14 17:37:48 +0100
committerJoonas Niilola <juippis@gentoo.org>2020-12-17 17:04:42 +0200
commit8bb288997adf7e4dbe498bfa4ff3baed3e42c455 (patch)
treef02bcc4bb97d0ab70695537f915aa75785260142 /dev-libs/s2n/files
parentsys-libs/libunwind: don't enable USE=static-libs by default (diff)
downloadgentoo-8bb288997adf7e4dbe498bfa4ff3baed3e42c455.tar.gz
gentoo-8bb288997adf7e4dbe498bfa4ff3baed3e42c455.tar.bz2
gentoo-8bb288997adf7e4dbe498bfa4ff3baed3e42c455.zip
dev-libs/s2n: Fix USE="test" and remove -Werror
USE="test" was broken, because building of a shared library does not work at the moment. Fixed by removing hidden default visibility. See: https://github.com/awslabs/s2n/issues/2401 -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/759796 Closes: https://bugs.gentoo.org/759799 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Sven Eden <sven.eden@prydeworx.com> Closes: https://github.com/gentoo/gentoo/pull/18651 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs/s2n/files')
-rw-r--r--dev-libs/s2n/files/s2n-0.10.21-remove_Werror.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-libs/s2n/files/s2n-0.10.21-remove_Werror.patch b/dev-libs/s2n/files/s2n-0.10.21-remove_Werror.patch
new file mode 100644
index 000000000000..d0eadc7a8bd3
--- /dev/null
+++ b/dev-libs/s2n/files/s2n-0.10.21-remove_Werror.patch
@@ -0,0 +1,22 @@
+--- a/CMakeLists.txt 2020-12-14 17:24:27.577239622 +0100
++++ b/CMakeLists.txt 2020-12-14 17:24:50.036240917 +0100
+@@ -193,7 +193,7 @@
+
+ set(CMAKE_C_FLAGS_DEBUGOPT "")
+
+-target_compile_options(${PROJECT_NAME} PRIVATE -pedantic -std=gnu99 -Wall -Werror -Wimplicit -Wunused -Wcomment -Wchar-subscripts
++target_compile_options(${PROJECT_NAME} PRIVATE -pedantic -std=gnu99 -Wall -Wimplicit -Wunused -Wcomment -Wchar-subscripts
+ -Wuninitialized -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings -Wno-deprecated-declarations -Wno-unknown-pragmas -Wformat-security
+ -Wno-missing-braces -fvisibility=hidden -DS2N_EXPORTS)
+
+--- a/s2n.mk 2020-12-14 17:24:35.546240082 +0100
++++ b/s2n.mk 2020-12-14 17:25:05.604241814 +0100
+@@ -42,7 +42,7 @@
+ DEFAULT_CFLAGS = -std=c99 -Wcast-qual
+ endif
+
+-DEFAULT_CFLAGS += -pedantic -Wall -Werror -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized \
++DEFAULT_CFLAGS += -pedantic -Wall -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized \
+ -Wshadow -Wcast-align -Wwrite-strings -fPIC -Wno-missing-braces\
+ -D_POSIX_C_SOURCE=200809L -O2 -I$(LIBCRYPTO_ROOT)/include/ \
+ -I$(S2N_ROOT)/api/ -I$(S2N_ROOT) -Wno-deprecated-declarations -Wno-unknown-pragmas -Wformat-security \