app-misc/ddcutil: drop Werror

Closes: https://bugs.gentoo.org/744970
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-06-11 07:10:57 +01:00
parent 21d16abda2
commit 5c1465b2b9
2 changed files with 45 additions and 0 deletions

View File

@@ -40,6 +40,10 @@ RDEPEND="
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${PN}-1.2.2-no-werror.patch
)
pkg_pretend() {
# This program needs /dev/ic2-* devices to communicate with the monitor.
CONFIG_CHECK="~I2C_CHARDEV"

View File

@@ -0,0 +1,41 @@
--- a/src/adl/Makefile.am
+++ b/src/adl/Makefile.am
@@ -6,7 +6,6 @@ AM_CPPFLAGS = \
AM_CPPFLAGS += -I@ADL_HEADER_DIR@
AM_CFLAGS = -Wall
-AM_CFLAGS += -Werror
if ENABLE_CALLGRAPH_COND
AM_CFLAGS += -fdump-rtl-expand
--- a/src/app_sysenv/Makefile.am
+++ b/src/app_sysenv/Makefile.am
@@ -12,7 +12,6 @@ endif
AM_CFLAGS = -Wall
-AM_CFLAGS += -Werror
# AM_CFLAGS += -Wpedantic
if ENABLE_CALLGRAPH_COND
--- a/src/i2c/Makefile.am
+++ b/src/i2c/Makefile.am
@@ -4,7 +4,6 @@ AM_CPPFLAGS = \
-I$(top_srcdir)/src/public
AM_CFLAGS = -Wall
-AM_CFLAGS += -Werror
# AM_CFLAGS += -Wpedantic
if ENABLE_CALLGRAPH_COND
--- a/src/test/Makefile.am
+++ b/src/test/Makefile.am
@@ -4,7 +4,7 @@ $(GLIB_CFLAGS) \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/public
-AM_CFLAGS = -Wall -Werror
+AM_CFLAGS = -Wall
CLEANFILES = \
*expand