summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-06-11 07:10:57 +0100
committerSam James <sam@gentoo.org>2022-06-11 07:10:57 +0100
commit5c1465b2b9923c2d2d70617b42c058563f108a5b (patch)
treee760201a63e824f77de88f5e891084e7708acdd5 /app-misc/ddcutil
parentdev-cpp/pstreams: avoid Werror (diff)
downloadgentoo-5c1465b2b9923c2d2d70617b42c058563f108a5b.tar.gz
gentoo-5c1465b2b9923c2d2d70617b42c058563f108a5b.tar.bz2
gentoo-5c1465b2b9923c2d2d70617b42c058563f108a5b.zip
app-misc/ddcutil: drop Werror
Closes: https://bugs.gentoo.org/744970 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-misc/ddcutil')
-rw-r--r--app-misc/ddcutil/ddcutil-1.2.2.ebuild4
-rw-r--r--app-misc/ddcutil/files/ddcutil-1.2.2-no-werror.patch41
2 files changed, 45 insertions, 0 deletions
diff --git a/app-misc/ddcutil/ddcutil-1.2.2.ebuild b/app-misc/ddcutil/ddcutil-1.2.2.ebuild
index 9aa77c1cc2d3..d6267f5e0cc6 100644
--- a/app-misc/ddcutil/ddcutil-1.2.2.ebuild
+++ b/app-misc/ddcutil/ddcutil-1.2.2.ebuild
@@ -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"
diff --git a/app-misc/ddcutil/files/ddcutil-1.2.2-no-werror.patch b/app-misc/ddcutil/files/ddcutil-1.2.2-no-werror.patch
new file mode 100644
index 000000000000..caedb9922d27
--- /dev/null
+++ b/app-misc/ddcutil/files/ddcutil-1.2.2-no-werror.patch
@@ -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