public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/ddcutil/, app-misc/ddcutil/files/
Date: Tue, 23 Jan 2024 13:47:37 +0000 (UTC)	[thread overview]
Message-ID: <1706017640.6552f78effce628accd6eb59582f367b39b97f70.andrewammerlaan@gentoo> (raw)

commit:     6552f78effce628accd6eb59582f367b39b97f70
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 23 13:46:29 2024 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Jan 23 13:47:20 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6552f78e

app-misc/ddcutil: fix build with USE=-usb-monitor (again)

Closes: https://bugs.gentoo.org/922715
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 ...dcutil-2.1.0.ebuild => ddcutil-2.1.0-r1.ebuild} |  1 +
 ...2.1.0-fix-build-with-usb-monitor-disabled.patch | 34 ++++++++++++++++++++++
 2 files changed, 35 insertions(+)

diff --git a/app-misc/ddcutil/ddcutil-2.1.0.ebuild b/app-misc/ddcutil/ddcutil-2.1.0-r1.ebuild
similarity index 97%
rename from app-misc/ddcutil/ddcutil-2.1.0.ebuild
rename to app-misc/ddcutil/ddcutil-2.1.0-r1.ebuild
index 746ceafd18ca..933c0987e2ff 100644
--- a/app-misc/ddcutil/ddcutil-2.1.0.ebuild
+++ b/app-misc/ddcutil/ddcutil-2.1.0-r1.ebuild
@@ -43,6 +43,7 @@ BDEPEND="virtual/pkgconfig"
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-1.4.1-no-werror.patch
+	"${FILESDIR}"/${PN}-2.1.0-fix-build-with-usb-monitor-disabled.patch
 )
 
 pkg_pretend() {

diff --git a/app-misc/ddcutil/files/ddcutil-2.1.0-fix-build-with-usb-monitor-disabled.patch b/app-misc/ddcutil/files/ddcutil-2.1.0-fix-build-with-usb-monitor-disabled.patch
new file mode 100644
index 000000000000..199bf1b1563b
--- /dev/null
+++ b/app-misc/ddcutil/files/ddcutil-2.1.0-fix-build-with-usb-monitor-disabled.patch
@@ -0,0 +1,34 @@
+From a3ad6164977d250cc03d6bb33719814ee34efdfb Mon Sep 17 00:00:00 2001
+From: Sanford Rockowitz <rockowitz@minsoft.com>
+Date: Mon, 22 Jan 2024 18:58:34 -0500
+Subject: [PATCH] missing ifdef around USB only setting (fixes #369)
+
+---
+ src/cmdline/parsed_cmd.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/cmdline/parsed_cmd.c b/src/cmdline/parsed_cmd.c
+index a4e2c080..f5f6ac85 100644
+--- a/src/cmdline/parsed_cmd.c
++++ b/src/cmdline/parsed_cmd.c
+@@ -135,8 +135,10 @@ Parsed_Cmd *  new_parsed_cmd() {
+    g_array_set_clear_func(parsed_cmd->setvcp_values, destroy_parsed_setvcp_value);
+    if (DEFAULT_ENABLE_UDF)
+       parsed_cmd->flags |= CMD_FLAG_ENABLE_UDF;
++#ifdef ENABLE_USB
+    if (DEFAULT_ENABLE_USB)
+       parsed_cmd->flags |= CMD_FLAG_ENABLE_USB;
++#endif
+    if (DEFAULT_ENABLE_CACHED_CAPABILITIES)
+       parsed_cmd->flags |= CMD_FLAG_ENABLE_CACHED_CAPABILITIES;
+    return parsed_cmd;
+@@ -248,7 +250,9 @@ void dbgrpt_parsed_cmd(Parsed_Cmd * parsed_cmd, int depth) {
+ 
+       rpt_nl();
+       rpt_label(depth, "Display Selection");
++#ifdef ENABLE_USB
+       rpt_bool("enable usb",        NULL, parsed_cmd->flags & CMD_FLAG_ENABLE_USB,               d1);
++#endif
+       rpt_structure_loc("pdid", parsed_cmd->pdid,                        d1);
+       if (parsed_cmd->pdid)
+           dbgrpt_display_identifier(parsed_cmd->pdid,                    d2);


             reply	other threads:[~2024-01-23 13:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-23 13:47 Andrew Ammerlaan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-11-27 20:09 [gentoo-commits] repo/gentoo:master commit in: app-misc/ddcutil/, app-misc/ddcutil/files/ Andrew Ammerlaan
2022-08-29 11:46 Andrew Ammerlaan
2018-01-30 21:28 Jonathan Scruggs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1706017640.6552f78effce628accd6eb59582f367b39b97f70.andrewammerlaan@gentoo \
    --to=andrewammerlaan@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox